From 49127319282a4b6023347326512813a11f4d0121 Mon Sep 17 00:00:00 2001 From: shreyakhajanchi <92910380+shreyakhajanchi@users.noreply.github.com> Date: Thu, 1 Aug 2024 14:51:36 +0530 Subject: [PATCH] Sanity updates for gCloud release (#892) --- go.sum | 4 ---- reverse_replication/reverse-replication-runner.go | 2 +- ui/dist/ui/index.html | 8 ++++---- ui/dist/ui/main.580952d7b2f83651.js | 1 - ui/dist/ui/main.d7bac2a603df4648.js | 1 + ui/dist/ui/polyfills.0ace4ea3e0ea1aea.js | 1 + ui/dist/ui/polyfills.c2c201edf5092294.js | 1 - ...me.30e542cf552662e5.js => runtime.7cb62255c16cf7ce.js} | 2 +- ui/dist/ui/styles.9b18c896a09ee20d.css | 1 - ui/dist/ui/styles.bf77748ba70110fe.css | 1 + 10 files changed, 9 insertions(+), 13 deletions(-) delete mode 100644 ui/dist/ui/main.580952d7b2f83651.js create mode 100644 ui/dist/ui/main.d7bac2a603df4648.js create mode 100644 ui/dist/ui/polyfills.0ace4ea3e0ea1aea.js delete mode 100644 ui/dist/ui/polyfills.c2c201edf5092294.js rename ui/dist/ui/{runtime.30e542cf552662e5.js => runtime.7cb62255c16cf7ce.js} (93%) delete mode 100644 ui/dist/ui/styles.9b18c896a09ee20d.css create mode 100644 ui/dist/ui/styles.bf77748ba70110fe.css diff --git a/go.sum b/go.sum index 9e61cc50b..89f4090a6 100644 --- a/go.sum +++ b/go.sum @@ -458,8 +458,6 @@ github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFSt github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pganalyze/pg_query_go/v2 v2.2.0 h1:OW+reH+ZY7jdEuPyuLGlf1m7dLbE+fDudKXhLs0Ttpk= -github.com/pganalyze/pg_query_go/v2 v2.2.0/go.mod h1:XAxmVqz1tEGqizcQ3YSdN90vCOHBWjJi8URL1er5+cA= github.com/pganalyze/pg_query_go/v5 v5.1.0 h1:MlxQqHZnvA3cbRQYyIrjxEjzo560P6MyTgtlaf3pmXg= github.com/pganalyze/pg_query_go/v5 v5.1.0/go.mod h1:FsglvxidZsVN+Ltw3Ai6nTgPVcK2BPukH3jCDEqc1Ug= github.com/pingcap/badger v1.5.1-0.20220314162537-ab58fbf40580 h1:MKVFZuqFvAMiDtv3AbihOQ6rY5IE8LWflI1BuZ/hF0Y= @@ -1007,8 +1005,6 @@ google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlba google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg= -google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= diff --git a/reverse_replication/reverse-replication-runner.go b/reverse_replication/reverse-replication-runner.go index 1de1ddfb0..441b391fd 100644 --- a/reverse_replication/reverse-replication-runner.go +++ b/reverse_replication/reverse-replication-runner.go @@ -97,7 +97,7 @@ func setupGlobalFlags() { flag.IntVar(&readerWorkers, "readerWorkers", 5, "Number of workers for reader job.") flag.IntVar(&writerWorkers, "writerWorkers", 5, "Number of workers for writer job.") flag.StringVar(&spannerReaderTemplateLocation, "spannerReaderTemplateLocation", "gs://dataflow-templates-us-east7/2024-05-21-00_RC00/flex/Spanner_Change_Streams_to_Sharded_File_Sink", "The dataflow template location for the Spanner reader job.") - flag.StringVar(&sourceWriterTemplateLocation, "sourceWriterTemplateLocation", "gs://dataflow-templates-us-east7/2024-07-01-00_RC00/flex/GCS_to_Sourcedb", "The dataflow template location for the Source writer job.") + flag.StringVar(&sourceWriterTemplateLocation, "sourceWriterTemplateLocation", "gs://dataflow-templates-us-east7/2024-07-23-00_RC00/flex/GCS_to_Sourcedb", "The dataflow template location for the Source writer job.") flag.StringVar(&jobsToLaunch, "jobsToLaunch", "both", "Whether to launch the spanner reader job or the source writer job or both. Default is both. Support values are both,reader,writer.") flag.BoolVar(&skipChangeStreamCreation, "skipChangeStreamCreation", false, "Whether to skip the change stream creation. Default is false.") flag.BoolVar(&skipMetadataDatabaseCreation, "skipMetadataDatabaseCreation", false, "Whether to skip Metadata database creation.Default is false.") diff --git a/ui/dist/ui/index.html b/ui/dist/ui/index.html index eb6cdd69d..74e441769 100644 --- a/ui/dist/ui/index.html +++ b/ui/dist/ui/index.html @@ -7,10 +7,10 @@ - - - + + + - + diff --git a/ui/dist/ui/main.580952d7b2f83651.js b/ui/dist/ui/main.580952d7b2f83651.js deleted file mode 100644 index 27fd4dcbf..000000000 --- a/ui/dist/ui/main.580952d7b2f83651.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkui=self.webpackChunkui||[]).push([[590],{536:(ld,q,Re)=>{"use strict";let k=null,$=1;const W=Symbol("SIGNAL");function V(t){const n=k;return k=t,n}function j(t){if((!H(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==$)){if(!t.producerMustRecompute(t)&&!Fe(t))return t.dirty=!1,void(t.lastCleanEpoch=$);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=$}}function Fe(t){Ce(t);for(let n=0;n0}function Ce(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let fe=null;function J(t){return"function"==typeof t}function L(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const O=L(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Z(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class de{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(J(i))try{i()}catch(r){n=r instanceof O?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{je(r)}catch(a){n=n??[],a instanceof O?n=[...n,...a.errors]:n.push(a)}}if(n)throw new O(n)}}add(n){var e;if(n&&n!==this)if(this.closed)je(n);else{if(n instanceof de){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Z(e,n)}remove(n){const{_finalizers:e}=this;e&&Z(e,n),n instanceof de&&n._removeParent(this)}}de.EMPTY=(()=>{const t=new de;return t.closed=!0,t})();const Ee=de.EMPTY;function ce(t){return t instanceof de||t&&"closed"in t&&J(t.remove)&&J(t.add)&&J(t.unsubscribe)}function je(t){J(t)?t():t.unsubscribe()}const Je={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ze={setTimeout(t,n,...e){const{delegate:i}=ze;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=ze;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ht(t){ze.setTimeout(()=>{const{onUnhandledError:n}=Je;if(!n)throw t;n(t)})}function oi(){}const Kt=_o("C",void 0,void 0);function _o(t,n,e){return{kind:t,value:n,error:e}}let Mo=null;function Ti(t){if(Je.useDeprecatedSynchronousErrorHandling){const n=!Mo;if(n&&(Mo={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=Mo;if(Mo=null,e)throw i}}else t()}class xs extends de{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,ce(n)&&n.add(this)):this.destination=yc}static create(n,e,i){return new Ds(n,e,i)}next(n){this.isStopped?Qr(function ws(t){return _o("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Qr(function go(t){return _o("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Qr(Kt,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const sr=Function.prototype.bind;function bc(t,n){return sr.call(t,n)}class Ag{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){vc(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){vc(i)}else vc(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){vc(e)}}}class Ds extends xs{constructor(n,e,i){let o;if(super(),J(n)||!n)o={next:n??void 0,error:e??void 0,complete:i??void 0};else{let r;this&&Je.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&bc(n.next,r),error:n.error&&bc(n.error,r),complete:n.complete&&bc(n.complete,r)}):o=n}this.destination=new Ag(o)}}function vc(t){Je.useDeprecatedSynchronousErrorHandling?function _c(t){Je.useDeprecatedSynchronousErrorHandling&&Mo&&(Mo.errorThrown=!0,Mo.error=t)}(t):ht(t)}function Qr(t,n){const{onStoppedNotification:e}=Je;e&&ze.setTimeout(()=>e(t,n))}const yc={closed:!0,next:oi,error:function Sh(t){throw t},complete:oi},Pg="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ra(t){return t}function Tw(t){return 0===t.length?Ra:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}let li=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function ZN(t){return t&&t instanceof xs||function KN(t){return t&&J(t.next)&&J(t.error)&&J(t.complete)}(t)&&ce(t)}(e)?e:new Ds(e,i,o);return Ti(()=>{const{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Iw(i))((o,r)=>{const a=new Ds({next:s=>{try{e(s)}catch(c){r(c),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[Pg](){return this}pipe(...e){return Tw(e)(this)}toPromise(e){return new(e=Iw(e))((i,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>i(r))})}}return t.create=n=>new t(n),t})();function Iw(t){var n;return null!==(n=t??Je.Promise)&&void 0!==n?n:Promise}const YN=L(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let qe=(()=>{class t extends li{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Ew(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new YN}next(e){Ti(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Ti(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Ti(()=>{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=this.currentObservers=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:i,isStopped:o,observers:r}=this;return i||o?Ee:(this.currentObservers=null,r.push(e),new de(()=>{this.currentObservers=null,Z(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new li;return e.source=this,e}}return t.create=(n,e)=>new Ew(n,e),t})();class Ew extends qe{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:Ee}}class pt extends qe{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function Ow(t){return J(t?.lift)}function $i(t){return n=>{if(Ow(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Fi(t,n,e,i,o){return new QN(t,n,e,i,o)}class QN extends xs{constructor(n,e,i,o,r,a){super(n),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(c){n.error(c)}}:super._next,this._error=o?function(s){try{o(s)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function nt(t,n){return $i((e,i)=>{let o=0;e.subscribe(Fi(i,r=>{i.next(t.call(n,r,o++))}))})}const Aw="https://g.co/ng/security#xss";class ue extends Error{constructor(n,e){super(function Cc(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function Rg(t){return n=>{setTimeout(t,void 0,n)}}const Ne=class XN extends qe{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let o=n,r=e||(()=>null),a=i;if(n&&"object"==typeof n){const c=n;o=c.next?.bind(c),r=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(r=Rg(r),o&&(o=Rg(o)),a&&(a=Rg(a)));const s=super.subscribe({next:o,error:r,complete:a});return n instanceof de&&n.add(s),s}};var $t=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}($t||{});function yn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(yn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Ng(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}var Mh=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Mh||{}),cr=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(cr||{});function Xr(t){return{toString:t}.toString()}const di=globalThis,kr={},Jt=[];function mi(t){for(let n in t)if(t[n]===mi)return n;throw Error("Could not find renamed property on target object.")}function iF(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}const dd=mi({\u0275cmp:mi}),Fg=mi({\u0275dir:mi}),Lg=mi({\u0275pipe:mi}),Nw=mi({\u0275mod:mi}),Jr=mi({\u0275fac:mi}),ud=mi({__NG_ELEMENT_ID__:mi}),Fw=mi({__NG_ENV_ID__:mi});var ge=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(ge||{});function Lw(t,n,e){let i=t.length;for(;;){const o=t.indexOf(n,e);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const r=n.length;if(o+r===i||t.charCodeAt(o+r)<=32)return o}e=o+1}}function Bg(t,n,e){let i=0;for(;in){a=r-1;break}}}for(;rr?"":o[g+1].toLowerCase();const w=8&i?b:null;if(w&&-1!==Lw(w,u,0)||2&i&&u!==b){if(lr(i))return!1;a=!0}}}}else{if(!a&&!lr(i)&&!lr(c))return!1;if(a&&lr(c))continue;a=!1,i=c|1&i}}return lr(i)||a}function lr(t){return 0==(1&t)}function aF(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&i?o+="."+a:4&i&&(o+=" "+a);else""!==o&&!lr(a)&&(n+=$w(r,o),o=""),i=a,r=r||!lr(i);e++}return""!==o&&(n+=$w(r,o)),n}function Ie(t){return Xr(()=>{const n=qw(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Mh.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||cr.Emulated,styles:t.styles||Jt,_:null,schemas:t.schemas||null,tView:null,id:""};Ww(e);const i=t.dependencies;return e.directiveDefs=Th(i,!1),e.pipeDefs=Th(i,!0),e.id=function _F(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function pF(t){return Ht(t)||Cn(t)}function fF(t){return null!==t}function ct(t){return Xr(()=>({type:t.type,bootstrap:t.bootstrap||Jt,declarations:t.declarations||Jt,imports:t.imports||Jt,exports:t.exports||Jt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Gw(t,n){if(null==t)return kr;const e={};for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];let r,a,s=ge.None;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r):(r=o,a=o),n?(e[r]=s!==ge.None?[i,s]:i,n[r]=a):e[r]=i}return e}function Q(t){return Xr(()=>{const n=qw(t);return Ww(n),n})}function bo(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ht(t){return t[dd]||null}function Cn(t){return t[Fg]||null}function Ln(t){return t[Lg]||null}function Un(t,n){const e=t[Nw]||null;if(!e&&!0===n)throw new Error(`Type ${yn(t)} does not have '\u0275mod' property.`);return e}function qw(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||kr,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||Jt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Gw(t.inputs,n),outputs:Gw(t.outputs),debugInfo:null}}function Ww(t){t.features?.forEach(n=>n(t))}function Th(t,n){if(!t)return null;const e=n?Ln:pF;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(fF)}const Vi=0,He=1,lt=2,Ji=3,dr=4,$n=5,ur=6,wc=7,Ii=8,Gn=9,ea=10,Et=11,md=12,Kw=13,xc=14,Gi=15,pd=16,Dc=17,ta=18,fd=19,Zw=20,La=21,Ih=22,Ss=23,Ot=25,Vg=1,Mr=7,Sc=9,en=10;var jg=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(jg||{});function qn(t){return Array.isArray(t)&&"object"==typeof t[Vg]}function Wn(t){return Array.isArray(t)&&!0===t[Vg]}function zg(t){return 0!=(4&t.flags)}function ks(t){return t.componentOffset>-1}function Oh(t){return 1==(1&t.flags)}function hr(t){return!!t.template}function Hg(t){return 0!=(512&t[lt])}const Jw="svg";let tx=!1;function bi(t){for(;Array.isArray(t);)t=t[Vi];return t}function _d(t,n){return bi(n[t])}function io(t,n){return bi(n[t.index])}function bd(t,n){return t.data[n]}function kc(t,n){return t[n]}function Eo(t,n){const e=n[t];return qn(e)?e:e[Vi]}function qg(t){return 128==(128&t[lt])}function Tr(t,n){return null==n?null:t[n]}function ix(t){t[Dc]=0}function SF(t){1024&t[lt]||(t[lt]|=1024,qg(t)&&vd(t))}function Wg(t){return!!(9216&t[lt]||t[Ss]?.dirty)}function Kg(t){Wg(t)?vd(t):64&t[lt]&&(function CF(){return tx}()?(t[lt]|=1024,vd(t)):t[ea].changeDetectionScheduler?.notify())}function vd(t){t[ea].changeDetectionScheduler?.notify();let n=Ms(t);for(;null!==n&&!(8192&n[lt])&&(n[lt]|=8192,qg(n));)n=Ms(n)}function Ah(t,n){if(256==(256&t[lt]))throw new ue(911,!1);null===t[La]&&(t[La]=[]),t[La].push(n)}function Ms(t){const n=t[Ji];return Wn(n)?n[Ji]:n}const Dt={lFrame:hx(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function rx(){return Dt.bindingsEnabled}function Mc(){return null!==Dt.skipHydrationRootTNode}function be(){return Dt.lFrame.lView}function Gt(){return Dt.lFrame.tView}function ne(t){return Dt.lFrame.contextLView=t,t[Ii]}function oe(t){return Dt.lFrame.contextLView=null,t}function pi(){let t=ax();for(;null!==t&&64===t.type;)t=t.parent;return t}function ax(){return Dt.lFrame.currentTNode}function Ir(t,n){const e=Dt.lFrame;e.currentTNode=t,e.isParent=n}function Yg(){return Dt.lFrame.isParent}function Qg(){Dt.lFrame.isParent=!1}function no(){const t=Dt.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function ia(){return Dt.lFrame.bindingIndex}function mr(){return Dt.lFrame.bindingIndex++}function na(t){const n=Dt.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function FF(t,n){const e=Dt.lFrame;e.bindingIndex=e.bindingRootIndex=t,Xg(n)}function Xg(t){Dt.lFrame.currentDirectiveIndex=t}function Jg(t){const n=Dt.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function e_(){return Dt.lFrame.currentQueryIndex}function Ph(t){Dt.lFrame.currentQueryIndex=t}function BF(t){const n=t[He];return 2===n.type?n.declTNode:1===n.type?t[$n]:null}function dx(t,n,e){if(e&$t.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&$t.Host||(o=BF(r),null===o||(r=r[xc],10&o.type))););if(null===o)return!1;n=o,t=r}const i=Dt.lFrame=ux();return i.currentTNode=n,i.lView=t,!0}function t_(t){const n=ux(),e=t[He];Dt.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function ux(){const t=Dt.lFrame,n=null===t?null:t.child;return null===n?hx(t):n}function hx(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function mx(){const t=Dt.lFrame;return Dt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const px=mx;function i_(){const t=mx();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Kn(){return Dt.lFrame.selectedIndex}function Ts(t){Dt.lFrame.selectedIndex=t}function Ei(){const t=Dt.lFrame;return bd(t.tView,t.selectedIndex)}function ei(){Dt.lFrame.currentNamespace=Jw}function pr(){!function zF(){Dt.lFrame.currentNamespace=null}()}let gx=!0;function Rh(){return gx}function Ba(t){gx=t}function HF(){return Tc(pi(),be())}function Tc(t,n){return new Be(io(t,n))}let r_,Be=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=HF}return t})();function _x(t){return t instanceof Be?t.nativeElement:t}function Ic(t,n){t.forEach(e=>Array.isArray(e)?Ic(e,n):n(e))}function bx(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Nh(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Oo(t,n,e){let i=Ec(t,n);return i>=0?t[1|i]=e:(i=~i,function vx(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function o_(t,n){const e=Ec(t,n);if(e>=0)return t[1|e]}function Ec(t,n){return function yx(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),a=t[r<n?o=r:i=r+1}return~(o<YF}),YF="ng",Sx=new se(""),ra=new se("",{providedIn:"platform",factory:()=>"unknown"}),ui=new se(""),s_=new se("",{providedIn:"root",factory:()=>Va().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),JF=mi({__forward_ref__:mi});function Qt(t){return t.__forward_ref__=Qt,t.toString=function(){return yn(this())},t}function wt(t){return Hh(t)?t():t}function Hh(t){return"function"==typeof t&&t.hasOwnProperty(JF)&&t.__forward_ref__===Qt}function h_(t){return t&&!!t.\u0275providers}function At(t){return"string"==typeof t?t:null==t?"":String(t)}function m_(t,n){throw new ue(-201,!1)}let p_;function Mx(){return p_}function yo(t){const n=p_;return p_=t,n}function Tx(t,n,e){const i=Vh(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&$t.Optional?null:void 0!==n?n:void m_()}const xd={},f_="__NG_DI_FLAG__",Uh="ngTempTokenPath",a3=/\n/gm,Ix="__source";let Oc;function ja(t){const n=Oc;return Oc=t,n}function l3(t,n=$t.Default){if(void 0===Oc)throw new ue(-203,!1);return null===Oc?Tx(t,void 0,n):Oc.get(t,n&$t.Optional?null:void 0,n)}function X(t,n=$t.Default){return(Mx()||l3)(wt(t),n)}function De(t,n=$t.Default){return X(t,$h(n))}function $h(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function g_(t){const n=[];for(let e=0;enull;function D_(t,n,e=!1){return Ox(t,n,e)}const Fc="__parameters__";function Bc(t,n,e){return Xr(()=>{const i=function T_(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const a=new o(...r);return s.annotation=a,s;function s(c,u,p){const g=c.hasOwnProperty(Fc)?c[Fc]:Object.defineProperty(c,Fc,{value:[]})[Fc];for(;g.length<=p;)g.push(null);return(g[p]=g[p]||[]).push(a),c}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}const za=Dd(Bc("Optional"),8),Vc=Dd(Bc("SkipSelf"),4);function Is(t,n){return t.hasOwnProperty(Jr)?t[Jr]:null}const Es=new se(""),Lx=new se("",-1),I_=new se("");class Yh{get(n,e=xd){if(e===xd){const i=new Error(`NullInjectorError: No provider for ${yn(n)}!`);throw i.name="NullInjectorError",i}return e}}function D3(...t){return{\u0275providers:Bx(0,t),\u0275fromNgModule:!0}}function Bx(t,...n){const e=[],i=new Set;let o;const r=a=>{e.push(a)};return Ic(n,a=>{const s=a;Xh(s,r,[],i)&&(o||=[],o.push(s))}),void 0!==o&&Vx(o,r),e}function Vx(t,n){for(let e=0;e{n(r,i)})}}function Xh(t,n,e,i){if(!(t=wt(t)))return!1;let o=null,r=jh(t);const a=!r&&Ht(t);if(r||a){if(a&&!a.standalone)return!1;o=t}else{const c=t.ngModule;if(r=jh(c),!r)return!1;o=c}const s=i.has(o);if(a){if(s)return!1;if(i.add(o),a.dependencies){const c="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const u of c)Xh(u,n,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!s){let u;i.add(o);try{Ic(r.imports,p=>{Xh(p,n,e,i)&&(u||=[],u.push(p))})}finally{}void 0!==u&&Vx(u,n)}if(!s){const u=Is(o)||(()=>new o);n({provide:o,useFactory:u,deps:Jt},o),n({provide:I_,useValue:o,multi:!0},o),n({provide:Es,useValue:()=>X(o),multi:!0},o)}const c=r.providers;if(null!=c&&!s){const u=t;E_(c,p=>{n(p,u)})}}}return o!==t&&void 0!==t.providers}function E_(t,n){for(let e of t)h_(e)&&(e=e.\u0275providers),Array.isArray(e)?E_(e,n):n(e)}const S3=mi({provide:String,useValue:mi});function O_(t){return null!==t&&"object"==typeof t&&S3 in t}function Os(t){return"function"==typeof t}const A_=new se(""),Jh={},M3={};let P_;function em(){return void 0===P_&&(P_=new Yh),P_}class Ao{}class jc extends Ao{get destroyed(){return this._destroyed}constructor(n,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,N_(n,a=>this.processProvider(a)),this.records.set(Lx,zc(void 0,this)),o.has("environment")&&this.records.set(Ao,zc(void 0,this));const r=this.records.get(A_);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(I_,Jt,$t.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of n)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=ja(this),i=yo(void 0);try{return n()}finally{ja(e),yo(i)}}get(n,e=xd,i=$t.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Fw))return n[Fw](this);i=$h(i);const r=ja(this),a=yo(void 0);try{if(!(i&$t.SkipSelf)){let c=this.records.get(n);if(void 0===c){const u=function A3(t){return"function"==typeof t||"object"==typeof t&&t instanceof se}(n)&&Vh(n);c=u&&this.injectableDefInScope(u)?zc(R_(n),Jh):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&$t.Self?em():this.parent).get(n,e=i&$t.Optional&&e===xd?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Uh]=s[Uh]||[]).unshift(yn(n)),r)throw s;return function u3(t,n,e,i){const o=t[Uh];throw n[Ix]&&o.unshift(n[Ix]),t.message=function h3(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=yn(n);if(Array.isArray(n))o=n.map(yn).join(" -> ");else if("object"==typeof n){let r=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];r.push(a+":"+("string"==typeof s?JSON.stringify(s):yn(s)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(a3,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[Uh]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{yo(a),ja(r)}}resolveInjectorInitializers(){const n=ja(this),e=yo(void 0);try{const o=this.get(Es,Jt,$t.Self);for(const r of o)r()}finally{ja(n),yo(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(yn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ue(205,!1)}processProvider(n){let e=Os(n=wt(n))?n:wt(n&&n.provide);const i=function I3(t){return O_(t)?zc(void 0,t.useValue):zc(Hx(t),Jh)}(n);if(!Os(n)&&!0===n.multi){let o=this.records.get(e);o||(o=zc(void 0,Jh,!0),o.factory=()=>g_(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Jh&&(e.value=M3,e.value=e.factory()),"object"==typeof e.value&&e.value&&function O3(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=wt(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function R_(t){const n=Vh(t),e=null!==n?n.factory:Is(t);if(null!==e)return e;if(t instanceof se)throw new ue(204,!1);if(t instanceof Function)return function T3(t){if(t.length>0)throw new ue(204,!1);const e=function KF(t){return t&&(t[zh]||t[Dx])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new ue(204,!1)}function Hx(t,n,e){let i;if(Os(t)){const o=wt(t);return Is(o)||R_(o)}if(O_(t))i=()=>wt(t.useValue);else if(function zx(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...g_(t.deps||[]));else if(function jx(t){return!(!t||!t.useExisting)}(t))i=()=>X(wt(t.useExisting));else{const o=wt(t&&(t.useClass||t.provide));if(!function E3(t){return!!t.deps}(t))return Is(o)||R_(o);i=()=>new o(...g_(t.deps))}return i}function zc(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function N_(t,n){for(const e of t)Array.isArray(e)?N_(e,n):e&&h_(e)?N_(e.\u0275providers,n):n(e)}function Ha(t,n){t instanceof jc&&t.assertNotDestroyed();const i=ja(t),o=yo(void 0);try{return n()}finally{ja(i),yo(o)}}class H3{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function $x(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function fi(){return Gx}function Gx(t){return t.type.prototype.ngOnChanges&&(t.setInput=$3),U3}function U3(){const t=Wx(this),n=t?.current;if(n){const e=t.previous;if(e===kr)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function $3(t,n,e,i,o){const r=this.declaredInputs[i],a=Wx(t)||function G3(t,n){return t[qx]=n}(t,{previous:kr,current:null}),s=a.current||(a.current={}),c=a.previous,u=c[r];s[r]=new H3(u&&u.currentValue,e,c===kr),$x(t,n,o,e)}fi.ngInherit=!0;const qx="__ngSimpleChanges__";function Wx(t){return t[qx]||null}const Er=function(t,n,e){};function im(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[c]<0&&(t[Dc]+=65536),(s>14>16&&(3&t[lt])===n&&(t[lt]+=16384,Zx(s,r)):Zx(s,r)}const Uc=-1;class Id{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function z_(t){return t!==Uc}function Ed(t){return 32767&t}function Od(t,n){let e=function J3(t){return t>>16}(t),i=n;for(;e>0;)i=i[xc],e--;return i}let H_=!0;function rm(t){const n=H_;return H_=t,n}const Yx=255,Qx=5;let eL=0;const Or={};function am(t,n){const e=Xx(t,n);if(-1!==e)return e;const i=n[He];i.firstCreatePass&&(t.injectorIndex=n.length,U_(i.data,t),U_(n,null),U_(i.blueprint,null));const o=sm(t,n),r=t.injectorIndex;if(z_(o)){const a=Ed(o),s=Od(o,n),c=s[He].data;for(let u=0;u<8;u++)n[r+u]=s[a+u]|c[a+u]}return n[r+8]=o,r}function U_(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Xx(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function sm(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){if(i=a1(o),null===i)return Uc;if(e++,o=o[xc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return Uc}function $_(t,n,e){!function tL(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ud)&&(i=e[ud]),null==i&&(i=e[ud]=eL++);const o=i&Yx;n.data[t+(o>>Qx)]|=1<=0?n&Yx:rL:n}(e);if("function"==typeof r){if(!dx(n,t,i))return i&$t.Host?Jx(o,0,i):e1(n,e,i,o);try{let a;if(a=r(i),null!=a||i&$t.Optional)return a;m_()}finally{px()}}else if("number"==typeof r){let a=null,s=Xx(t,n),c=Uc,u=i&$t.Host?n[Gi][$n]:null;for((-1===s||i&$t.SkipSelf)&&(c=-1===s?sm(t,n):n[s+8],c!==Uc&&r1(i,!1)?(a=n[He],s=Ed(c),n=Od(c,n)):s=-1);-1!==s;){const p=n[He];if(o1(r,s,p.data)){const g=nL(s,n,e,a,i,u);if(g!==Or)return g}c=n[s+8],c!==Uc&&r1(i,n[He].data[s+8]===u)&&o1(r,s,n)?(a=p,s=Ed(c),n=Od(c,n)):s=-1}}return o}function nL(t,n,e,i,o,r){const a=n[He],s=a.data[t+8],p=cm(s,a,e,null==i?ks(s)&&H_:i!=a&&0!=(3&s.type),o&$t.Host&&r===s);return null!==p?As(n,a,p,s):Or}function cm(t,n,e,i,o){const r=t.providerIndexes,a=n.data,s=1048575&r,c=t.directiveStart,p=r>>20,b=o?s+p:t.directiveEnd;for(let w=i?s:s+p;w=c&&S.type===e)return w}if(o){const w=a[c];if(w&&hr(w)&&w.type===e)return c}return null}function As(t,n,e,i){let o=t[e];const r=n.data;if(function Z3(t){return t instanceof Id}(o)){const a=o;a.resolving&&function n3(t,n){throw n&&n.join(" > "),new ue(-200,t)}(function ri(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():At(t)}(r[e]));const s=rm(a.canSeeViewProviders);a.resolving=!0;const u=a.injectImpl?yo(a.injectImpl):null;dx(t,i,$t.Default);try{o=t[e]=a.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function W3(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const a=Gx(n);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}(e,r[e],n)}finally{null!==u&&yo(u),rm(s),a.resolving=!1,px()}}return o}function o1(t,n,e){return!!(e[n+(t>>Qx)]&1<{const n=t.prototype.constructor,e=n[Jr]||G_(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[Jr]||G_(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function G_(t){return Hh(t)?()=>{const n=G_(wt(t));return n&&n()}:Is(t)}function a1(t){const n=t[He],e=n.type;return 2===e?n.declTNode:1===e?t[$n]:null}function oo(t){return function iL(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o{class t{static#e=this.THROW_IF_NOT_FOUND=xd;static#t=this.NULL=new Yh;static create(e,i){if(Array.isArray(e))return u1({name:""},i,e,"");{const o=e.name??"";return u1({name:o},e.parent,e.providers,o)}}static#i=this.\u0275prov=ke({token:t,providedIn:"any",factory:()=>X(Lx)});static#n=this.__NG_ELEMENT_ID__=-1}return t})();function W_(t){return t.ngOriginalError}class Go{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&W_(n);for(;e&&W_(e);)e=W_(e);return e||null}}const p1=new se("",{providedIn:"root",factory:()=>De(Go).handleError.bind(void 0)}),g1=new se("",{providedIn:"root",factory:()=>!1});let um,hm;function qc(t){return function K_(){if(void 0===um&&(um=null,di.trustedTypes))try{um=di.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return um}()?.createHTML(t)||t}function Z_(){if(void 0===hm&&(hm=null,di.trustedTypes))try{hm=di.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return hm}function _1(t){return Z_()?.createHTML(t)||t}function v1(t){return Z_()?.createScriptURL(t)||t}class Ps{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Aw})`}}class gL extends Ps{getTypeName(){return"HTML"}}class _L extends Ps{getTypeName(){return"Style"}}class bL extends Ps{getTypeName(){return"Script"}}class vL extends Ps{getTypeName(){return"URL"}}class yL extends Ps{getTypeName(){return"ResourceURL"}}function Po(t){return t instanceof Ps?t.changingThisBreaksApplicationSecurity:t}function Ar(t,n){const e=function CL(t){return t instanceof Ps&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Aw})`)}return e===n}class ML{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(qc(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class TL{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=qc(n),e}}const EL=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function mm(t){return(t=String(t)).match(EL)?t:"unsafe:"+t}function aa(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Ad(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const C1=aa("area,br,col,hr,img,wbr"),w1=aa("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),x1=aa("rp,rt"),Y_=Ad(C1,Ad(w1,aa("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ad(x1,aa("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ad(x1,w1)),Q_=aa("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),D1=Ad(Q_,aa("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),aa("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),OL=aa("script,style,template");class AL{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!Y_.hasOwnProperty(e))return this.sanitizedSomething=!0,!OL.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const e=n.nodeName.toLowerCase();Y_.hasOwnProperty(e)&&!C1.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(S1(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const PL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,RL=/([^\#-~ |!])/g;function S1(t){return t.replace(/&/g,"&").replace(PL,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(RL,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let pm;function k1(t,n){let e=null;try{pm=pm||function y1(t){const n=new TL(t);return function IL(){try{return!!(new window.DOMParser).parseFromString(qc(""),"text/html")}catch{return!1}}()?new ML(n):n}(t);let i=n?String(n):"";e=pm.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=pm.getInertBodyElement(i)}while(i!==r);return qc((new AL).sanitizeChildren(X_(e)||e))}finally{if(e){const i=X_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function X_(t){return"content"in t&&function NL(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Bn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Bn||{});function M1(t){const n=Pd();return n?_1(n.sanitize(Bn.HTML,t)||""):Ar(t,"HTML")?_1(Po(t)):k1(Va(),At(t))}function qo(t){const n=Pd();return n?n.sanitize(Bn.URL,t)||"":Ar(t,"URL")?Po(t):mm(At(t))}function T1(t){const n=Pd();if(n)return v1(n.sanitize(Bn.RESOURCE_URL,t)||"");if(Ar(t,"ResourceURL"))return v1(Po(t));throw new ue(904,!1)}function Pd(){const t=be();return t&&t[ea].sanitizer}const zL=/^>|^->||--!>|)/g,UL="\u200b$1\u200b";const J_=new Map;let KL=0;const tb="__ngContext__";function Zn(t,n){qn(n)?(t[tb]=n[fd],function YL(t){J_.set(t[fd],t)}(n)):t[tb]=n}function Ro(t){return t instanceof Function?t():t}var $a=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}($a||{});let rb;function ab(t,n){return rb(t,n)}function Kc(t,n,e,i,o){if(null!=i){let r,a=!1;Wn(i)?r=i:qn(i)&&(a=!0,i=i[Vi]);const s=bi(i);0===t&&null!==e?null==o?K1(n,e,s):Rs(n,e,s,o||null,!0):1===t&&null!==e?Rs(n,e,s,o||null,!0):2===t?function wm(t,n,e){const i=ym(t,n);i&&function v4(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,s,a):3===t&&n.destroyNode(s),null!=r&&function w4(t,n,e,i,o){const r=e[Mr];r!==bi(e)&&Kc(n,t,i,r,o);for(let s=en;sn.replace(HL,UL))}(n))}function bm(t,n,e){return t.createElement(n,e)}function G1(t,n){xm(t,n,n[Et],2,null,null)}function q1(t,n){const e=t[Sc],i=e.indexOf(n);e.splice(i,1)}function Nd(t,n){if(t.length<=en)return;const e=en+n,i=t[e];if(i){const o=i[pd];null!==o&&o!==t&&q1(o,i),n>0&&(t[e-1][dr]=i[dr]);const r=Nh(t,en+n);!function h4(t,n){G1(t,n),n[Vi]=null,n[$n]=null}(i[He],i);const a=r[ta];null!==a&&a.detachView(r[He]),i[Ji]=null,i[dr]=null,i[lt]&=-129}return i}function vm(t,n){if(!(256&n[lt])){const e=n[Et];e.destroyNode&&xm(t,n,e,3,null,null),function p4(t){let n=t[md];if(!n)return cb(t[He],t);for(;n;){let e=null;if(qn(n))e=n[md];else{const i=n[en];i&&(e=i)}if(!e){for(;n&&!n[dr]&&n!==t;)qn(n)&&cb(n[He],n),n=n[Ji];null===n&&(n=t),qn(n)&&cb(n[He],n),e=n&&n[dr]}n=e}}(n)}}function cb(t,n){if(!(256&n[lt])){n[lt]&=-129,n[lt]|=256,n[Ss]&&function ye(t){if(Ce(t),H(t))for(let n=0;n=0?i[a]():i[-a].unsubscribe(),r+=2}else e[r].call(i[e[r+1]]);null!==i&&(n[wc]=null);const o=n[La];if(null!==o){n[La]=null;for(let r=0;r-1){const{encapsulation:r}=t.data[i.directiveStart+o];if(r===cr.None||r===cr.Emulated)return null}return io(i,e)}}(t,n.parent,e)}function Rs(t,n,e,i,o){t.insertBefore(n,e,i,o)}function K1(t,n,e){t.appendChild(n,e)}function Z1(t,n,e,i,o){null!==i?Rs(t,n,e,i,o):K1(t,n,e)}function ym(t,n){return t.parentNode(n)}function Y1(t,n,e){return X1(t,n,e)}let db,X1=function Q1(t,n,e){return 40&t.type?io(t,e):null};function Cm(t,n,e,i){const o=lb(t,i,n),r=n[Et],s=Y1(i.parent||n[$n],i,n);if(null!=o)if(Array.isArray(e))for(let c=0;cOt&&rD(t,n,Ot,!1),Er(a?2:0,o),e(i,o)}finally{Ts(r),Er(a?3:1,o)}}function pb(t,n,e){if(zg(n)){const i=V(null);try{const r=n.directiveEnd;for(let a=n.directiveStart;anull;function dD(t,n,e,i,o){for(let r in n){if(!n.hasOwnProperty(r))continue;const a=n[r];if(void 0===a)continue;i??={};let s,c=ge.None;Array.isArray(a)?(s=a[0],c=a[1]):s=a;let u=r;if(null!==o){if(!o.hasOwnProperty(r))continue;u=o[r]}0===t?uD(i,e,u,s,c):uD(i,e,u,s)}return i}function uD(t,n,e,i,o){let r;t.hasOwnProperty(e)?(r=t[e]).push(n,i):r=t[e]=[n,i],void 0!==o&&r.push(o)}function wo(t,n,e,i,o,r,a,s){const c=io(n,e);let p,u=n.inputs;!s&&null!=u&&(p=u[i])?(wb(t,e,p,i,o),ks(n)&&function N4(t,n){const e=Eo(n,t);16&e[lt]||(e[lt]|=64)}(e,n.index)):3&n.type&&(i=function R4(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=a?a(o,n.value||"",i):o,r.setProperty(c,i,o))}function bb(t,n,e,i){if(rx()){const o=null===i?null:{"":-1},r=function z4(t,n){const e=t.directiveRegistry;let i=null,o=null;if(e)for(let r=0;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,i,r)}}(t,n,i,Ld(t,e,o.hostVars,Nt),o)}function Rr(t,n,e,i,o,r){const a=io(t,n);!function yb(t,n,e,i,o,r,a){if(null==r)t.removeAttribute(n,o,e);else{const s=null==a?At(r):a(r,i||"",o);t.setAttribute(n,o,s,e)}}(n[Et],a,r,t.value,e,i,o)}function W4(t,n,e,i,o,r){const a=r[n];if(null!==a)for(let s=0;s0&&(e[o-1][dr]=n),i!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{vd(t.lView)},consumerOnSignalRead(){this.lView[Ss]=this}};function wD(t){return DD(t[md])}function xD(t){return DD(t[dr])}function DD(t){for(;null!==t&&!Wn(t);)t=t[dr];return t}function Mm(t,n=!0,e=0){const i=t[ea],o=i.rendererFactory;o.begin?.();try{!function r5(t,n){Sb(t,n);let e=0;for(;Wg(t);){if(100===e)throw new ue(103,!1);e++,Sb(t,1)}}(t,e)}catch(a){throw n&&km(t,a),a}finally{o.end?.(),i.inlineEffectRunner?.flush()}}function a5(t,n,e,i){const o=n[lt];if(256==(256&o))return;n[ea].inlineEffectRunner?.flush(),t_(n);let a=null,s=null;(function s5(t){return 2!==t.type})(t)&&(s=function X4(t){return t[Ss]??function J4(t){const n=CD.pop()??Object.create(t5);return n.lView=t,n}(t)}(n),a=function Te(t){return t&&(t.nextProducerIndex=0),V(t)}(s));try{ix(n),function cx(t){return Dt.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&sD(t,n,e,2,i);const c=3==(3&o);if(c){const g=t.preOrderCheckHooks;null!==g&&nm(n,g,null)}else{const g=t.preOrderHooks;null!==g&&om(n,g,0,null),V_(n,0)}if(function c5(t){for(let n=wD(t);null!==n;n=xD(n)){if(!(n[lt]&jg.HasTransplantedViews))continue;const e=n[Sc];for(let i=0;it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(s,a),function e5(t){t.lView[Ss]!==t&&(t.lView=null,CD.push(t))}(s)),i_()}}function kD(t,n){for(let e=wD(t);null!==e;e=xD(e))for(let i=en;i-1&&(Nd(n,i),Nh(e,i))}this._attachedToViewContainer=!1}vm(this._lView[He],this._lView)}onDestroy(n){Ah(this._lView,n)}markForCheck(){zd(this._cdRefInjectingView||this._lView)}detach(){this._lView[lt]&=-129}reattach(){Kg(this._lView),this._lView[lt]|=128}detectChanges(){this._lView[lt]|=1024,Mm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,G1(this._lView[He],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=n,Kg(this._lView)}}let gi=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=h5}return t})();const d5=gi,u5=class extends d5{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const o=function Bd(t,n,e,i){const o=n.tView,s=Dm(t,o,e,4096&t[lt]?4096:16,null,n,null,null,null,i?.injector??null,i?.dehydratedView??null);s[pd]=t[n.index];const u=t[ta];return null!==u&&(s[ta]=u.createEmbeddedView(o)),xb(o,s,e),s}(this._declarationLView,this._declarationTContainer,n,{injector:e,dehydratedView:i});return new Hd(o)}};function h5(){return Tm(pi(),be())}function Tm(t,n){return 4&t.type?new u5(n,t,Tc(t,n)):null}class Ob{}class R5{}class ND{}class F5{resolveComponentFactory(n){throw function N5(t){const n=Error(`No component factory found for ${yn(t)}.`);return n.ngComponent=t,n}(n)}}let Ns=(()=>{class t{static#e=this.NULL=new F5}return t})();class Ab{}let ca=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function L5(){const t=be(),e=Eo(pi().index,t);return(qn(e)?e:t)[Et]}()}return t})(),B5=(()=>{class t{static#e=this.\u0275prov=ke({token:t,providedIn:"root",factory:()=>null})}return t})();const Pb={};function BD(t){return function LD(t){return"function"==typeof t&&void 0!==t[W]}(t)&&"function"==typeof t.set}function VD(t){const n=V(null);try{return t()}finally{V(n)}}function Pm(t){return!!Rb(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function Rb(t){return null!==t&&("function"==typeof t||"object"==typeof t)}class jD{constructor(){}supports(n){return Pm(n)}create(n){return new $5(n)}}const U5=(t,n)=>n;class $5{constructor(n){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=n||U5}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(o,s),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new G5(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=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(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new zD),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new zD),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class G5{constructor(n,e){this.item=n,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 q5{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class zD{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new q5,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function HD(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}const i=new K5(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class K5{constructor(n){this.key=n,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 $D(){return new fr([new jD])}let fr=(()=>{class t{static#e=this.\u0275prov=ke({token:t,providedIn:"root",factory:$D});constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||$D()),deps:[[t,new Vc,new za]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new ue(901,!1)}}return t})();function GD(){return new Rm([new UD])}let Rm=(()=>{class t{static#e=this.\u0275prov=ke({token:t,providedIn:"root",factory:GD});constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||GD()),deps:[[t,new Vc,new za]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new ue(901,!1)}}return t})(),Lt=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=Y5}return t})();function Y5(t){return function Q5(t,n,e){if(ks(t)&&!e){const i=Eo(t.index,n);return new Hd(i,i)}return 47&t.type?new Hd(n[Gi],n):null}(pi(),be(),16==(16&t))}let Nm=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=t8;static#t=this.__NG_ENV_ID__=e=>e}return t})();class e8 extends Nm{constructor(n){super(),this._lView=n}onDestroy(n){return Ah(this._lView,n),()=>function Zg(t,n){if(null===t[La])return;const e=t[La].indexOf(n);-1!==e&&t[La].splice(e,1)}(this._lView,n)}}function t8(){return new e8(be())}const qD=new Set;function Fs(t){qD.has(t)||(qD.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function WD(...t){}class We{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ne(!1),this.onMicrotaskEmpty=new Ne(!1),this.onStable=new Ne(!1),this.onError=new Ne(!1),typeof Zone>"u")throw new ue(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function s8(){const t="function"==typeof di.requestAnimationFrame;let n=di[t?"requestAnimationFrame":"setTimeout"],e=di[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function d8(t){const n=()=>{!function l8(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(di,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Fb(t),t.isCheckStableRunning=!0,Nb(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Fb(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,a,s)=>{if(function u8(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(s))return e.invokeTask(o,r,a,s);try{return KD(t),e.invokeTask(o,r,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),ZD(t)}},onInvoke:(e,i,o,r,a,s,c)=>{try{return KD(t),e.invoke(o,r,a,s,c)}finally{t.shouldCoalesceRunChangeDetection&&n(),ZD(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Fb(t),Nb(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!We.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(We.isInAngularZone())throw new ue(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,n,c8,WD,WD);try{return r.runTask(a,e,i)}finally{r.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const c8={};function Nb(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Fb(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function KD(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ZD(t){t._nesting--,Nb(t)}class YD{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ne,this.onMicrotaskEmpty=new Ne,this.onStable=new Ne,this.onError=new Ne}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}var Ls=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Ls||{});const QD={destroy(){}};function JD(t,n){!n&&function F_(t){if(!Mx()&&!function c3(){return Oc}())throw new ue(-203,!1)}();const e=n?.injector??De(ji);if(!function Ua(t){return"browser"===(t??De(ji)).get(ra)}(e))return QD;Fs("NgAfterNextRender");const i=e.get(Wd),o=i.handler??=new tS,r=n?.phase??Ls.MixedReadWrite,a=()=>{o.unregister(c),s()},s=e.get(Nm).onDestroy(a),c=new eS(e,r,()=>{a(),t()});return o.register(c),{destroy:a}}class eS{constructor(n,e,i){this.phase=e,this.callbackFn=i,this.zone=n.get(We),this.errorHandler=n.get(Go,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class tS{constructor(){this.executingCallbacks=!1,this.buckets={[Ls.EarlyRead]:new Set,[Ls.Write]:new Set,[Ls.MixedReadWrite]:new Set,[Ls.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const e of n)e.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Wd=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of e)i();this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=ke({token:t,providedIn:"root",factory:()=>new t})}return t})();function Lm(t,n,e){let i=e?t.styles:null,o=e?t.classes:null,r=0;if(null!==n)for(let a=0;a0&&nD(t,e,r.join(" "))}}(b,ft,S,i),void 0!==e&&function D8(t,n,e){const i=t.projection=[];for(let o=0;o{class t{static#e=this.__NG_ELEMENT_ID__=k8}return t})();function k8(){return cS(pi(),be())}const M8=vi,aS=class extends M8{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Tc(this._hostTNode,this._hostLView)}get injector(){return new xn(this._hostTNode,this._hostLView)}get parentInjector(){const n=sm(this._hostTNode,this._hostLView);if(z_(n)){const e=Od(n,this._hostLView),i=Ed(n);return new xn(e[He].data[i+8],e)}return new xn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=sS(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-en}createEmbeddedView(n,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const s=n.createEmbeddedViewImpl(e||{},r,null);return this.insertImpl(s,o,Yc(this._hostTNode,null)),s}createComponent(n,e,i,o,r){const a=n&&!function Td(t){return"function"==typeof t}(n);let s;if(a)s=e;else{const S=e||{};s=S.index,i=S.injector,o=S.projectableNodes,r=S.environmentInjector||S.ngModuleRef}const c=a?n:new Yd(Ht(n)),u=i||this.parentInjector;if(!r&&null==c.ngModule){const T=(a?u:this.parentInjector).get(Ao,null);T&&(r=T)}Ht(c.componentType??{});const w=c.create(u,o,null,r);return this.insertImpl(w.hostView,s,Yc(this._hostTNode,null)),w}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const o=n._lView;if(function DF(t){return Wn(t[Ji])}(o)){const s=this.indexOf(n);if(-1!==s)this.detach(s);else{const c=o[Ji],u=new aS(c,c[$n],c[Ji]);u.detach(u.indexOf(n))}}const r=this._adjustIndex(e),a=this._lContainer;return Vd(a,o,r,i),n.attachToViewContainerRef(),bx(Vb(a),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=sS(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Nd(this._lContainer,e);i&&(Nh(Vb(this._lContainer),e),vm(i[He],i))}detach(n){const e=this._adjustIndex(n,-1),i=Nd(this._lContainer,e);return i&&null!=Nh(Vb(this._lContainer),e)?new Hd(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function sS(t){return t[8]}function Vb(t){return t[8]||(t[8]=[])}function cS(t,n){let e;const i=n[t.index];return Wn(i)?e=i:(e=pD(i,n,null,t),n[t.index]=e,Sm(n,e)),lS(e,n,t,i),new aS(e,t,n)}let lS=function uS(t,n,e,i){if(t[Mr])return;let o;o=8&e.type?bi(i):function T8(t,n){const e=t[Et],i=e.createComment(""),o=io(n,t);return Rs(e,ym(e,o),i,function y4(t,n){return t.nextSibling(n)}(e,o),!1),i}(n,e),t[Mr]=o},jb=()=>!1;class zb{constructor(n){this.queryList=n,this.matches=null}clone(){return new zb(this.queryList)}setDirty(){this.queryList.setDirty()}}class Hb{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,o=[];for(let r=0;rn.trim())}(n):n}}class Ub{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i0)i.push(a[s/2]);else{const u=r[s+1],p=n[-c];for(let g=en;g=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=hd(o.hostAttrs,e=hd(e,o.hostAttrs))}}(i)}function W8(t,n){for(const e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;const i=n.inputs[e];if(void 0!==i&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],null!==n.inputTransforms)){const o=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=n.inputTransforms[o]}}}function Vm(t){return t===kr?{}:t===Jt?[]:t}function Z8(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function Y8(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function Q8(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}function PS(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];Array.isArray(o)&&o[3]&&(e[i]=o[3])}t.inputTransforms=e}class Bs{}class RS{}class Zb extends Bs{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new oS(this);const o=Un(n);this._bootstrapComponents=Ro(o.bootstrap),this._r3Injector=h1(n,e,[{provide:Bs,useValue:this},{provide:Ns,useValue:this.componentFactoryResolver},...i],yn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Yb extends RS{constructor(n){super(),this.moduleType=n}create(n){return new Zb(this.moduleType,n,[])}}class NS extends Bs{constructor(n){super(),this.componentFactoryResolver=new oS(this),this.instance=null;const e=new jc([...n.providers,{provide:Bs,useValue:this},{provide:Ns,useValue:this.componentFactoryResolver}],n.parent||em(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Qb(t,n,e=null){return new NS({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let Vs=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new pt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nr(t,n,e){return t[n]=e}function Xd(t,n){return t[n]}function tn(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function js(t,n,e,i){const o=tn(t,n,e);return tn(t,n+1,i)||o}function zm(t,n,e,i,o){const r=js(t,n,e,i);return tn(t,n+2,o)||r}function Wo(t,n,e,i,o,r){const a=js(t,n,e,i);return js(t,n+2,o,r)||a}function y(t,n,e,i,o,r,a,s){const c=be(),u=Gt(),p=t+Ot,g=u.firstCreatePass?function aB(t,n,e,i,o,r,a,s,c){const u=n.consts,p=Zc(n,t,4,a||null,Tr(u,s));bb(n,e,p,Tr(u,c)),im(n,p);const g=p.tView=_b(2,p,i,o,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,u,null);return null!==n.queries&&(n.queries.template(n,p),g.queries=n.queries.embeddedTView(p)),p}(p,u,c,n,e,i,o,r,a):u.data[p];Ir(g,!1);const b=FS(u,c,g,t);Rh()&&Cm(u,c,b,g),Zn(b,c);const w=pD(b,c,b,g);return c[p]=w,Sm(c,w),function dS(t,n,e){return jb(t,n,e)}(w,g,c),Oh(g)&&fb(u,c,g),null!=a&&gb(c,g,s),y}let FS=function LS(t,n,e,i){return Ba(!0),n[Et].createComment("")};function Xe(t,n,e,i){const o=be();return tn(o,mr(),n)&&(Gt(),Rr(Ei(),o,t,n,e,i)),Xe}function al(t,n,e,i){return tn(t,mr(),e)?n+At(e)+i:Nt}function Wm(t,n){return t<<17|n<<2}function Ka(t){return t>>17&32767}function sv(t){return 2|t}function Hs(t){return(131068&t)>>2}function cv(t,n){return-131069&t|n<<2}function lv(t){return 1|t}function pk(t,n,e,i){const o=t[e+1],r=null===n;let a=i?Ka(o):Hs(o),s=!1;for(;0!==a&&(!1===s||r);){const u=t[a+1];$B(t[a],n)&&(s=!0,t[a+1]=i?lv(u):sv(u)),a=i?Ka(u):Hs(u)}s&&(t[e+1]=i?sv(o):lv(o))}function $B(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Ec(t,n)>=0}const Dn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function fk(t){return t.substring(Dn.key,Dn.keyEnd)}function gk(t,n){const e=Dn.textEnd;return e===n?-1:(n=Dn.keyEnd=function KB(t,n,e){for(;n32;)n++;return n}(t,Dn.key=n,e),pl(t,n,e))}function pl(t,n,e){for(;n=0;e=gk(n,e))Oo(t,fk(n),!0)}function gr(t,n,e,i){const o=be(),r=Gt(),a=na(2);r.firstUpdatePass&&wk(r,t,a,i),n!==Nt&&tn(o,a,n)&&Dk(r,r.data[Kn()],o,o[Et],t,o[a+1]=function a6(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=yn(Po(t)))),t}(n,e),i,a)}function Ck(t,n){return n>=t.expandoStartIndex}function wk(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[Kn()],a=Ck(t,e);kk(r,i)&&null===n&&!a&&(n=!1),n=function JB(t,n,e,i){const o=Jg(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=iu(e=uv(null,t,n,e,i),n.attrs,i),r=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==o)if(e=uv(o,t,n,e,i),null===r){let c=function e6(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Hs(i))return t[Ka(i)]}(t,n,i);void 0!==c&&Array.isArray(c)&&(c=uv(null,t,n,c[1],i),c=iu(c,n.attrs,i),function t6(t,n,e,i){t[Ka(e?n.classBindings:n.styleBindings)]=i}(t,n,i,c))}else r=function i6(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(u=!0)):p=e,o)if(0!==c){const b=Ka(t[s+1]);t[i+1]=Wm(b,s),0!==b&&(t[b+1]=cv(t[b+1],i)),t[s+1]=function jB(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=Wm(s,0),0!==s&&(t[s+1]=cv(t[s+1],i)),s=i;else t[i+1]=Wm(c,0),0===s?s=i:t[c+1]=cv(t[c+1],i),c=i;u&&(t[i+1]=sv(t[i+1])),pk(t,p,i,!0),pk(t,p,i,!1),function UB(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&Ec(r,n)>=0&&(e[i+1]=lv(e[i+1]))}(n,p,t,i,r),a=Wm(s,c),r?n.classBindings=a:n.styleBindings=a}(o,r,n,e,a,i)}}function uv(t,n,e,i,o){let r=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const c=t[o],u=Array.isArray(c),p=u?c[1]:c,g=null===p;let b=e[o+1];b===Nt&&(b=g?Jt:void 0);let w=g?o_(b,i):p===i?b:void 0;if(u&&!Km(w)&&(w=o_(c,i)),Km(w)&&(s=w,a))return s;const S=t[o+1];o=a?Ka(S):Hs(S)}if(null!==n){let c=r?n.residualClasses:n.residualStyles;null!=c&&(s=o_(c,i))}return s}function Km(t){return void 0!==t}function kk(t,n){return 0!=(t.flags&(n?8:16))}function Mk(t,n,e){!function _r(t,n,e,i){const o=Gt(),r=na(2);o.firstUpdatePass&&wk(o,null,r,i);const a=be();if(e!==Nt&&tn(a,r,e)){const s=o.data[Kn()];if(kk(s,i)&&!Ck(o,r)){let c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(e=Ng(c,e||"")),dv(o,s,a,e,i)}else!function r6(t,n,e,i,o,r,a,s){o===Nt&&(o=Jt);let c=0,u=0,p=0(Ba(!0),bm(i,o,function fx(){return Dt.lFrame.currentNamespace}()));function me(t,n,e){const i=be(),o=Gt(),r=t+Ot,a=o.firstCreatePass?function O6(t,n,e,i,o){const r=n.consts,a=Tr(r,i),s=Zc(n,t,8,"ng-container",a);return null!==a&&Lm(s,a,!0),bb(n,e,s,Tr(r,o)),null!==n.queries&&n.queries.elementStart(n,s),s}(r,o,i,n,e):o.data[r];Ir(a,!0);const s=Ak(o,i,a,t);return i[r]=s,Rh()&&Cm(o,i,s,a),Zn(s,i),Oh(a)&&(fb(o,i,a),pb(o,a,i)),null!=e&&gb(i,a),me}function pe(){let t=pi();const n=Gt();return Yg()?Qg():(t=t.parent,Ir(t,!1)),n.firstCreatePass&&(im(n,t),zg(t)&&n.queries.elementEnd(t)),pe}function ro(t,n,e){return me(t,n,e),pe(),ro}let Ak=(t,n,e,i)=>(Ba(!0),sb(n[Et],""));function _e(){return be()}function ao(t,n,e){const i=be();return tn(i,mr(),n)&&wo(Gt(),Ei(),i,t,n,i[Et],e,!0),ao}function Zm(t,n,e){const i=be();if(tn(i,mr(),n)){const r=Gt(),a=Ei();wo(r,a,i,t,n,bD(Jg(r.data),a,i),e,!0)}return Zm}const gl="en-US";let Nk=gl;function A(t,n,e,i){const o=be(),r=Gt(),a=pi();return bv(r,o,o[Et],a,t,n,i),A}function ep(t,n){const e=pi(),i=be(),o=Gt();return bv(o,i,bD(Jg(o.data),e,i),e,t,n),ep}function bv(t,n,e,i,o,r,a){const s=Oh(i),u=t.firstCreatePass&&_D(t),p=n[Ii],g=gD(n);let b=!0;if(3&i.type||a){const T=io(i,n),z=a?a(T):T,ie=g.length,ae=a?tt=>a(bi(tt[i.index])):i.index;let Ue=null;if(!a&&s&&(Ue=function EV(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;rc?s[c]:null}"string"==typeof a&&(r+=2)}return null}(t,n,o,i.index)),null!==Ue)(Ue.__ngLastListenerFn__||Ue).__ngNextListenerFn__=r,Ue.__ngLastListenerFn__=r,b=!1;else{r=sM(i,n,p,r,!1);const tt=e.listen(z,o,r);g.push(r,tt),u&&u.push(o,ae,ie,ie+1)}}else r=sM(i,n,p,r,!1);const w=i.outputs;let S;if(b&&null!==w&&(S=w[o])){const T=S.length;if(T)for(let z=0;z-1?Eo(t.index,n):n);let c=aM(n,e,i,a),u=r.__ngNextListenerFn__;for(;u;)c=aM(n,e,u,a)&&c,u=u.__ngNextListenerFn__;return o&&!1===c&&a.preventDefault(),c}}function C(t=1){return function VF(t){return(Dt.lFrame.contextLView=function nx(t,n){for(;t>0;)n=n[xc],t--;return n}(t,Dt.lFrame.contextLView))[Ii]}(t)}function OV(t,n){let e=null;const i=function sF(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o(Ba(!0),function _m(t,n){return t.createText(n)}(n[Et],i));function Pe(t){return xe("",t,""),Pe}function xe(t,n,e){const i=be(),o=al(i,t,n,e);return o!==Nt&&sa(i,Kn(),o),xe}function _l(t,n,e,i,o){const r=be(),a=function sl(t,n,e,i,o,r){const s=js(t,ia(),e,o);return na(2),s?n+At(e)+i+At(o)+r:Nt}(r,t,n,e,i,o);return a!==Nt&&sa(r,Kn(),a),_l}function Cv(t,n,e,i,o,r,a){const s=be(),c=function cl(t,n,e,i,o,r,a,s){const u=zm(t,ia(),e,o,a);return na(3),u?n+At(e)+i+At(o)+r+At(a)+s:Nt}(s,t,n,e,i,o,r,a);return c!==Nt&&sa(s,Kn(),c),Cv}function wv(t,n,e,i,o,r,a,s,c){const u=be(),p=function ll(t,n,e,i,o,r,a,s,c,u){const g=Wo(t,ia(),e,o,a,c);return na(4),g?n+At(e)+i+At(o)+r+At(a)+s+At(c)+u:Nt}(u,t,n,e,i,o,r,a,s,c);return p!==Nt&&sa(u,Kn(),p),wv}function dn(t,n,e){BD(n)&&(n=n());const i=be();return tn(i,mr(),n)&&wo(Gt(),Ei(),i,t,n,i[Et],e,!1),dn}function kn(t,n){const e=BD(t);return e&&t.set(n),e}function un(t,n){const e=be(),i=Gt(),o=pi();return bv(i,e,e[Et],o,t,n),un}function xv(t,n,e,i,o){if(t=wt(t),Array.isArray(t))for(let r=0;r>20;if(Os(t)||!t.multi){const w=new Id(u,o,_),S=Sv(c,n,o?p:p+b,g);-1===S?($_(am(s,a),r,c),Dv(r,t,n.length),n.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(w),a.push(w)):(e[S]=w,a[S]=w)}else{const w=Sv(c,n,p+b,g),S=Sv(c,n,p,p+b),z=S>=0&&e[S];if(o&&!z||!o&&!(w>=0&&e[w])){$_(am(s,a),r,c);const ie=function YV(t,n,e,i,o){const r=new Id(t,e,_);return r.multi=[],r.index=n,r.componentProviders=0,OM(r,o,i&&!e),r}(o?ZV:KV,e.length,o,i,u);!o&&z&&(e[S].providerFactory=ie),Dv(r,t,n.length,0),n.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(ie),a.push(ie)}else Dv(r,t,w>-1?w:S,OM(e[o?S:w],u,!o&&i));!o&&i&&z&&e[S].componentProviders++}}}function Dv(t,n,e,i){const o=Os(n),r=function k3(t){return!!t.useClass}(n);if(o||r){const c=(r?wt(n.useClass):n).prototype.ngOnDestroy;if(c){const u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const p=u.indexOf(e);-1===p?u.push(e,[i,c]):u[p+1].push(i,c)}else u.push(e,c)}}}function OM(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Sv(t,n,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function WV(t,n,e){const i=Gt();if(i.firstCreatePass){const o=hr(t);xv(e,i.data,i.blueprint,o,!0),xv(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}let QV=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=Bx(0,e.type),o=i.length>0?Qb([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=ke({token:t,providedIn:"environment",factory:()=>new t(X(Ao))})}return t})();function AM(t){Fs("NgStandalone"),t.getStandaloneInjector=n=>n.get(QV).getOrCreateStandaloneInjector(t)}function No(t,n,e){const i=no()+t,o=be();return o[i]===Nt?Nr(o,i,e?n.call(e):n()):Xd(o,i)}function hi(t,n,e,i){return GM(be(),no(),t,n,e,i)}function zM(t,n,e,i,o){return function qM(t,n,e,i,o,r,a){const s=n+e;return js(t,s,o,r)?Nr(t,s+2,a?i.call(a,o,r):i(o,r)):cu(t,s+2)}(be(),no(),t,n,e,i,o)}function HM(t,n,e,i,o,r){return function WM(t,n,e,i,o,r,a,s){const c=n+e;return zm(t,c,o,r,a)?Nr(t,c+3,s?i.call(s,o,r,a):i(o,r,a)):cu(t,c+3)}(be(),no(),t,n,e,i,o,r)}function cu(t,n){const e=t[n];return e===Nt?void 0:e}function GM(t,n,e,i,o,r){const a=n+e;return tn(t,a,o)?Nr(t,a+1,r?i.call(r,o):i(o)):cu(t,a+1)}function lu(t,n){const e=Gt();let i;const o=t+Ot;e.firstCreatePass?(i=function uj(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks??=[]).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=Is(i.type)),s=yo(_);try{const c=rm(!1),u=r();return rm(c),function NV(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,be(),o,u),u}finally{yo(s)}}function du(t,n,e){const i=t+Ot,o=be(),r=kc(o,i);return function uu(t,n){return t[He].data[n].pure}(o,i)?GM(o,no(),n,r.transform,e,r):r.transform(e)}function br(t,n){return Tm(t,n)}let uT=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const gT=new se(""),op=new se("");let Nv,Pv=(()=>{class t{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Nv||(function cz(t){Nv=t}(o),o.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{We.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}static#e=this.\u0275fac=function(i){return new(i||t)(X(We),X(Rv),X(op))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})(),Rv=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Nv?.findTestabilityInTree(this,e,i)??null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function pu(t){return!!t&&"function"==typeof t.then}function _T(t){return!!t&&"function"==typeof t.subscribe}const Fv=new se("");let Lv=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=De(Fv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const r=o();if(pu(r))e.push(r);else if(_T(r)){const a=new Promise((s,c)=>{r.subscribe({complete:s,error:c})});e.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Bv=new se("");function yT(t,n){return Array.isArray(n)?n.reduce(yT,t):{...t,...n}}let Za=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=De(p1),this.afterRenderEffectManager=De(Wd),this.componentTypes=[],this.components=[],this.isStable=De(Vs).hasPendingTasks.pipe(nt(e=>!e)),this._injector=De(Ao)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof ND;if(!this._injector.get(Lv).done)throw!o&&function Fa(t){const n=Ht(t)||Cn(t)||Ln(t);return null!==n&&n.standalone}(e),new ue(405,!1);let a;a=o?e:this._injector.get(Ns).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function lz(t){return t.isBoundToModule}(a)?void 0:this._injector.get(Bs),u=a.create(ji.NULL,[],i||a.selector,s),p=u.location.nativeElement,g=u.injector.get(gT,null);return g?.registerApplication(p),u.onDestroy(()=>{this.detachView(u.hostView),rp(this.components,u),g?.unregisterApplication(p)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new ue(101,!1);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}detectChangesInAttachedViews(){let e=0;do{if(100===e)throw new ue(103,!1);const i=0===e;for(let{_lView:o,notifyErrorHandler:r}of this._views)!i&&!CT(o)||this.detectChangesInView(o,r,i);this.afterRenderEffectManager.execute(),e++}while(this._views.some(({_lView:i})=>CT(i)))}detectChangesInView(e,i,o){let r;o?(r=0,e[lt]|=1024):r=64&e[lt]?0:1,Mm(e,i,r)}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;rp(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(Bv,[]);[...this._bootstrapListeners,...i].forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>rp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ue(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rp(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function CT(t){return Wg(t)}class uz{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let wT=(()=>{class t{compileModuleSync(e){return new Yb(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=Ro(Un(e).declarations).reduce((a,s)=>{const c=Ht(s);return c&&a.push(new Yd(c)),a},[]);return new uz(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pz=(()=>{class t{constructor(){this.zone=De(We),this.applicationRef=De(Za)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function fz(){const t=De(We),n=De(Go);return e=>t.runOutsideAngular(()=>n.handleError(e))}let _z=(()=>{class t{constructor(){this.subscription=new de,this.initialized=!1,this.zone=De(We),this.pendingTasks=De(Vs)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{We.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{We.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Br=new se("",{providedIn:"root",factory:()=>De(Br,$t.Optional|$t.SkipSelf)||function bz(){return typeof $localize<"u"&&$localize.locale||gl}()}),Vv=new se("");let kT=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function h8(t="zone.js",n){return"noop"===t?new YD:"zone.js"===t?new We(n):t}(i?.ngZone,function ST(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const r=function rB(t,n,e){return new Zb(t,n,e)}(e.moduleType,this.injector,function DT(t){return[{provide:We,useFactory:t},{provide:Es,multi:!0,useFactory:()=>{const n=De(pz,{optional:!0});return()=>n.initialize()}},{provide:Es,multi:!0,useFactory:()=>{const n=De(_z);return()=>{n.initialize()}}},{provide:p1,useFactory:fz}]}(()=>o)),a=r.injector.get(Go,null);return o.runOutsideAngular(()=>{const s=o.onError.subscribe({next:c=>{a.handleError(c)}});r.onDestroy(()=>{rp(this._modules,r),s.unsubscribe()})}),function vT(t,n,e){try{const i=e();return pu(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(a,o,()=>{const s=r.injector.get(Lv);return s.runInitializers(),s.donePromise.then(()=>(function Fk(t){"string"==typeof t&&(Nk=t.toLowerCase().replace(/_/g,"-"))}(r.injector.get(Br,gl)||gl),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,i=[]){const o=yT({},i);return function mz(t,n,e){const i=new Yb(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(Za);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new ue(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ue(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Vv,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||t)(X(ji))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),Ya=null;const MT=new se("");function TT(t,n,e=[]){const i=`Platform: ${n}`,o=new se(i);return(r=[])=>{let a=jv();if(!a||a.injector.get(MT,!1)){const s=[...e,...r,{provide:o,useValue:!0}];t?t(s):function Cz(t){if(Ya&&!Ya.get(MT,!1))throw new ue(400,!1);(function bT(){!function bt(t){fe=t}(()=>{throw new ue(600,!1)})})(),Ya=t;const n=t.get(kT);(function ET(t){t.get(Sx,null)?.forEach(e=>e())})(t)}(function IT(t=[],n){return ji.create({name:n,providers:[{provide:A_,useValue:"platform"},{provide:Vv,useValue:new Set([()=>Ya=null])},...t]})}(s,i))}return function wz(t){const n=jv();if(!n)throw new ue(401,!1);return n}()}}function jv(){return Ya?.get(kT)??null}const Mz=TT(null,"core",[]);let Tz=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(i){return new(i||t)(X(Za))};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({})}return t})();function Cl(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let t2=null;function Qa(){return t2}class o7{}const ut=new se("");let Wv=(()=>{class t{historyGo(e){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:()=>De(a7),providedIn:"platform"})}return t})();const r7=new se("");let a7=(()=>{class t extends Wv{constructor(){super(),this._doc=De(ut),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Qa().getBaseHref(this._doc)}onPopState(e){const i=Qa().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Qa().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,o){this._history.pushState(e,i,o)}replaceState(e,i,o){this._history.replaceState(e,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function Kv(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function n2(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function la(t){return t&&"?"!==t[0]?"?"+t:t}let qs=(()=>{class t{historyGo(e){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:()=>De(r2),providedIn:"root"})}return t})();const o2=new se("");let r2=(()=>{class t extends qs{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??De(ut).location?.origin??""}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 Kv(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+la(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const a=this.prepareExternalUrl(o+la(r));this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){const a=this.prepareExternalUrl(o+la(r));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(i){return new(i||t)(X(Wv),X(o2,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),s7=(()=>{class t extends qs{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=Kv(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let a=this.prepareExternalUrl(o+la(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){let a=this.prepareExternalUrl(o+la(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(i){return new(i||t)(X(Wv),X(o2,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})(),Ws=(()=>{class t{constructor(e){this._subject=new Ne,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function d7(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(n2(a2(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+la(i))}normalize(e){return t.stripTrailingSlash(function l7(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,a2(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+la(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+la(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}static#e=this.normalizeQueryParams=la;static#t=this.joinWithSlash=Kv;static#i=this.stripTrailingSlash=n2;static#n=this.\u0275fac=function(i){return new(i||t)(X(qs))};static#o=this.\u0275prov=ke({token:t,factory:()=>function c7(){return new Ws(X(qs))}(),providedIn:"root"})}return t})();function a2(t){return t.replace(/\/index.html$/,"")}function f2(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}const oy=/\s+/,g2=[];let yr=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=g2,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(oy):g2}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(oy):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],o=e[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(oy).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ca))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:[ge.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class Z7{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}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 rn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}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 i=this._viewContainer;e.forEachOperation((o,r,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new Z7(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===r?void 0:r);else if(null!==r){const s=i.get(r);i.move(s,a),b2(s,o)}});for(let o=0,r=i.length;o{b2(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(_(vi),_(gi),_(fr))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function b2(t,n){t.context.$implicit=n.item}let It=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new Y7,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){v2("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){v2("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(_(vi),_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class Y7{constructor(){this.$implicit=null,this.ngIf=null}}function v2(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${yn(n)}'.`)}class ry{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let xl=(()=>{class t{constructor(){this._defaultViews=[],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.push(e)}_matchCase(e){const i=e===this._ngSwitch;return this._lastCasesMatched||=i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return t})(),Sp=(()=>{class t{constructor(e,i,o){this.ngSwitch=o,o._addCase(),this._view=new ry(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(i){return new(i||t)(_(vi),_(gi),_(xl,9))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return t})(),y2=(()=>{class t{constructor(e,i,o){o._addDefault(new ry(e,i))}static#e=this.\u0275fac=function(i){return new(i||t)(_(vi),_(gi),_(xl,9))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return t})(),w2=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split("."),a=-1===o.indexOf("-")?void 0:$a.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Rm),_(ca))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return t})(),kp=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,o)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,o),get:(e,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(vi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[fi]})}return t})();function Cr(t,n){return new ue(2100,!1)}class J7{createSubscription(n,e){return VD(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){VD(()=>n.unsubscribe())}}class e9{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const t9=new e9,i9=new J7;let x2=(()=>{class t{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(pu(e))return t9;if(_T(e))return i9;throw Cr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}static#e=this.\u0275fac=function(i){return new(i||t)(_(Lt,16))};static#t=this.\u0275pipe=bo({name:"async",type:t,pure:!1,standalone:!0})}return t})(),D2=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Cr();return e.toUpperCase()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=bo({name:"uppercase",type:t,pure:!0,standalone:!0})}return t})(),ay=(()=>{class t{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=S2}transform(e,i=S2){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ??=this.differs.find(e).create();const o=this.differ.diff(e),r=i!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(function p9(t,n){return{key:t,value:n}}(a.key,a.currentValue))})),(o||r)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}static#e=this.\u0275fac=function(i){return new(i||t)(_(Rm,16))};static#t=this.\u0275pipe=bo({name:"keyvalue",type:t,pure:!1,standalone:!0})}return t})();function S2(t,n){const e=t.key,i=n.key;if(e===i)return 0;if(void 0===e)return 1;if(void 0===i)return-1;if(null===e)return 1;if(null===i)return-1;if("string"==typeof e&&"string"==typeof i)return e{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({})}return t})();const k2="browser";function M2(t){return t===k2}function T2(t){return"server"===t}let C9=(()=>{class t{static#e=this.\u0275prov=ke({token:t,providedIn:"root",factory:()=>M2(De(ra))?new w9(De(ut),window):new D9})}return t})();class w9{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const e=function x9(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const a=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(a)return a}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}}class D9{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class I2{}class X9 extends o7{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class dy extends X9{static makeCurrent(){!function n7(t){t2??=t}(new dy)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function J9(){return yu=yu||document.querySelector("base"),yu?yu.getAttribute("href"):null}();return null==e?null:function eH(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){yu=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return f2(document.cookie,n)}}let yu=null,iH=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();const uy=new se("");let B2=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(r=>r.supports(e)),!i)throw new ue(5101,!1);return this._eventNameToPlugin.set(e,i),i}static#e=this.\u0275fac=function(i){return new(i||t)(X(uy),X(We))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();class V2{constructor(n){this._doc=n}}const hy="ng-app-id";let j2=(()=>{class t{constructor(e,i,o,r={}){this.doc=e,this.appId=i,this.nonce=o,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=T2(r),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(o=>o.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${hy}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(o=>{null!=o.textContent&&i.set(o.textContent,o)}),i}return null}changeUsageCount(e,i){const o=this.styleRef;if(o.has(e)){const r=o.get(e);return r.usage+=i,r.usage}return o.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const o=this.styleNodesInDOM,r=o?.get(i);if(r?.parentNode===e)return o.delete(i),r.removeAttribute(hy),r;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(hy,this.appId),e.appendChild(a),a}}addStyleToHost(e,i){const o=this.getStyleElement(e,i),r=this.styleRef,a=r.get(i)?.elements;a?a.push(o):r.set(i,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(i){return new(i||t)(X(ut),X(wd),X(s_,8),X(ra))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();const my={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},py=/%COMP%/g,aH=new se("",{providedIn:"root",factory:()=>!0});function H2(t,n){return n.map(e=>e.replace(py,t))}let fy=(()=>{class t{constructor(e,i,o,r,a,s,c,u=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=s,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=T2(s),this.defaultRenderer=new gy(e,a,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===cr.ShadowDom&&(i={...i,encapsulation:cr.Emulated});const o=this.getOrCreateRenderer(e,i);return o instanceof $2?o.applyToHost(e):o instanceof _y&&o.applyStyles(),o}getOrCreateRenderer(e,i){const o=this.rendererByCompId;let r=o.get(i.id);if(!r){const a=this.doc,s=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(i.encapsulation){case cr.Emulated:r=new $2(c,u,i,this.appId,p,a,s,g);break;case cr.ShadowDom:return new dH(c,u,e,i,a,s,this.nonce,g);default:r=new _y(c,u,i,p,a,s,g)}o.set(i.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(i){return new(i||t)(X(B2),X(j2),X(wd),X(aH),X(ut),X(ra),X(We),X(s_))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();class gy{constructor(n,e,i,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(my[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(U2(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(U2(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new ue(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=my[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=my[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&($a.DashCase|$a.Important)?n.style.setProperty(e,i,o&$a.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&$a.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){null!=n&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=Qa().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function U2(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class dH extends gy{constructor(n,e,i,o,r,a,s,c){super(n,r,a,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=H2(o.id,o.styles);for(const p of u){const g=document.createElement("style");s&&g.setAttribute("nonce",s),g.textContent=p,this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class _y extends gy{constructor(n,e,i,o,r,a,s,c){super(n,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=c?H2(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class $2 extends _y{constructor(n,e,i,o,r,a,s,c){const u=o+"-"+i.id;super(n,e,i,r,a,s,c,u),this.contentAttr=function sH(t){return"_ngcontent-%COMP%".replace(py,t)}(u),this.hostAttr=function cH(t){return"_nghost-%COMP%".replace(py,t)}(u)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let uH=(()=>{class t extends V2{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}static#e=this.\u0275fac=function(i){return new(i||t)(X(ut))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();const G2=["alt","control","meta","shift"],hH={"\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"},mH={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let pH=(()=>{class t extends V2{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Qa().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),G2.forEach(u=>{const p=i.indexOf(u);p>-1&&(i.splice(p,1),a+=u+".")}),a+=r,0!=i.length||0===r.length)return null;const c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(e,i){let o=hH[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),G2.forEach(a=>{a!==o&&(0,mH[a])(e)&&(r+=a+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(i){return new(i||t)(X(ut))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();const bH=TT(Mz,"browser",[{provide:ra,useValue:k2},{provide:Sx,useValue:function fH(){dy.makeCurrent()},multi:!0},{provide:ut,useFactory:function _H(){return function qF(t){r_=t}(document),document},deps:[]}]),vH=new se(""),K2=[{provide:op,useClass:class tH{addToWindow(n){di.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new ue(5103,!1);return r},di.getAllAngularTestabilities=()=>n.getAllTestabilities(),di.getAllAngularRootElements=()=>n.getAllRootElements(),di.frameworkStabilizers||(di.frameworkStabilizers=[]),di.frameworkStabilizers.push(i=>{const o=di.getAllAngularTestabilities();let r=o.length;const a=function(){r--,0==r&&i()};o.forEach(s=>{s.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?Qa().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:gT,useClass:Pv,deps:[We,Rv,op]},{provide:Pv,useClass:Pv,deps:[We,Rv,op]}],Z2=[{provide:A_,useValue:"root"},{provide:Go,useFactory:function gH(){return new Go},deps:[]},{provide:uy,useClass:uH,multi:!0,deps:[ut,We,ra]},{provide:uy,useClass:pH,multi:!0,deps:[ut]},fy,j2,B2,{provide:Ab,useExisting:fy},{provide:I2,useClass:iH,deps:[]},[]];let Y2=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:wd,useValue:e.appId}]}}static#e=this.\u0275fac=function(i){return new(i||t)(X(vH,12))};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({providers:[...Z2,...K2],imports:[Vn,Tz]})}return t})(),yH=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(i){return new(i||t)(X(ut))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),by=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:function(i){let o=null;return o=i?new(i||t):X(DH),o},providedIn:"root"})}return t})(),DH=(()=>{class t extends by{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Bn.NONE:return i;case Bn.HTML:return Ar(i,"HTML")?Po(i):k1(this._doc,String(i)).toString();case Bn.STYLE:return Ar(i,"Style")?Po(i):i;case Bn.SCRIPT:if(Ar(i,"Script"))return Po(i);throw new ue(5200,!1);case Bn.URL:return Ar(i,"URL")?Po(i):mm(String(i));case Bn.RESOURCE_URL:if(Ar(i,"ResourceURL"))return Po(i);throw new ue(5201,!1);default:throw new ue(5202,!1)}}bypassSecurityTrustHtml(e){return function wL(t){return new gL(t)}(e)}bypassSecurityTrustStyle(e){return function xL(t){return new _L(t)}(e)}bypassSecurityTrustScript(e){return function DL(t){return new bL(t)}(e)}bypassSecurityTrustUrl(e){return function SL(t){return new vL(t)}(e)}bypassSecurityTrustResourceUrl(e){return function kL(t){return new yL(t)}(e)}static#e=this.\u0275fac=function(i){return new(i||t)(X(ut))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var St=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(St||{});const ha="*";function Lo(t,n){return{type:St.Trigger,name:t,definitions:n,options:{}}}function Yi(t,n=null){return{type:St.Animate,styles:n,timings:t}}function vy(t,n=null){return{type:St.Group,steps:t,options:n}}function Zt(t){return{type:St.Style,styles:t,offset:null}}function mn(t,n,e){return{type:St.State,name:t,styles:n,options:e}}function Qi(t,n,e=null){return{type:St.Transition,expr:t,animation:n,options:e}}function yy(t=null){return{type:St.AnimateChild,options:t}}function Cy(t,n,e=null){return{type:St.Query,selector:t,animation:n,options:e}}class wu{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class eI{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++i==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function tI(t){return new ue(3e3,!1)}function Xa(t){switch(t.length){case 0:return new wu;case 1:return t[0];default:return new eI(t)}}function iI(t,n,e=new Map,i=new Map){const o=[],r=[];let a=-1,s=null;if(n.forEach(c=>{const u=c.get("offset"),p=u==a,g=p&&s||new Map;c.forEach((b,w)=>{let S=w,T=b;if("offset"!==w)switch(S=t.normalizePropertyName(S,o),T){case"!":T=e.get(w);break;case ha:T=i.get(w);break;default:T=t.normalizeStyleValue(w,S,T,o)}g.set(S,T)}),p||r.push(g),s=g,a=u}),o.length)throw function XH(t){return new ue(3502,!1)}();return r}function xy(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Dy(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Dy(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Dy(e,"destroy",t)))}}function Dy(t,n,e){const r=Sy(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(r._data=a),r}function Sy(t,n,e,i,o="",r=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function Bo(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function nI(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const dU=typeof document>"u"?null:document.documentElement;function ky(t){const n=t.parentNode||t.host||null;return n===dU?null:n}let Ks=null,oI=!1;function rI(t,n){for(;n;){if(n===t)return!0;n=ky(n)}return!1}function aI(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let My=(()=>{class t{validateStyleProperty(e){return function hU(t){Ks||(Ks=function mU(){return typeof document<"u"?document.body:null}()||{},oI=!!Ks.style&&"WebkitAppearance"in Ks.style);let n=!0;return Ks.style&&!function uU(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Ks.style,!n&&oI&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Ks.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return rI(e,i)}getParentElement(e){return ky(e)}query(e,i,o){return aI(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,a,s=[],c){return new wu(o,r)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();class Ty{static#e=this.NOOP=new My}class Iy{}const fU=1e3,Ey="ng-enter",Ip="ng-leave",Ep="ng-trigger",Op=".ng-trigger",cI="ng-animating",Oy=".ng-animating";function ma(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Ay(parseFloat(n[1]),n[2])}function Ay(t,n){return"s"===n?t*fU:t}function Ap(t,n,e){return t.hasOwnProperty("duration")?t:function _U(t,n,e){let o,r=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return n.push(tI()),{duration:0,delay:0,easing:""};o=Ay(parseFloat(s[1]),s[2]);const c=s[3];null!=c&&(r=Ay(parseFloat(c),s[4]));const u=s[5];u&&(a=u)}else o=t;if(!e){let s=!1,c=n.length;o<0&&(n.push(function EH(){return new ue(3100,!1)}()),s=!0),r<0&&(n.push(function OH(){return new ue(3101,!1)}()),s=!0),s&&n.splice(c,0,tI())}return{duration:o,delay:r,easing:a}}(t,n,e)}function Vr(t,n,e){n.forEach((i,o)=>{const r=Ry(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i})}function Zs(t,n){n.forEach((e,i)=>{const o=Ry(i);t.style[o]=""})}function xu(t){return Array.isArray(t)?1==t.length?t[0]:function SH(t,n=null){return{type:St.Sequence,steps:t,options:n}}(t):t}const Py=new RegExp("{{\\s*(.+?)\\s*}}","g");function dI(t){let n=[];if("string"==typeof t){let e;for(;e=Py.exec(t);)n.push(e[1]);Py.lastIndex=0}return n}function Du(t,n,e){const i=`${t}`,o=i.replace(Py,(r,a)=>{let s=n[a];return null==s&&(e.push(function PH(t){return new ue(3003,!1)}()),s=""),s.toString()});return o==i?t:o}const yU=/-+([a-z0-9])/g;function Ry(t){return t.replace(yU,(...n)=>n[1].toUpperCase())}function Vo(t,n,e){switch(n.type){case St.Trigger:return t.visitTrigger(n,e);case St.State:return t.visitState(n,e);case St.Transition:return t.visitTransition(n,e);case St.Sequence:return t.visitSequence(n,e);case St.Group:return t.visitGroup(n,e);case St.Animate:return t.visitAnimate(n,e);case St.Keyframes:return t.visitKeyframes(n,e);case St.Style:return t.visitStyle(n,e);case St.Reference:return t.visitReference(n,e);case St.AnimateChild:return t.visitAnimateChild(n,e);case St.AnimateRef:return t.visitAnimateRef(n,e);case St.Query:return t.visitQuery(n,e);case St.Stagger:return t.visitStagger(n,e);default:throw function RH(t){return new ue(3004,!1)}()}}function Ny(t,n){return window.getComputedStyle(t)[n]}const xU=new Set(["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"]);class uI extends Iy{normalizePropertyName(n,e){return Ry(n)}normalizeStyleValue(n,e,i,o){let r="";const a=i.toString().trim();if(xU.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&o.push(function NH(t,n){return new ue(3005,!1)}())}return a+r}}const Pp="*";const Rp=new Set(["true","1"]),Np=new Set(["false","0"]);function hI(t,n){const e=Rp.has(t)||Np.has(t),i=Rp.has(n)||Np.has(n);return(o,r)=>{let a=t==Pp||t==o,s=n==Pp||n==r;return!a&&e&&"boolean"==typeof o&&(a=o?Rp.has(t):Np.has(t)),!s&&i&&"boolean"==typeof r&&(s=r?Rp.has(n):Np.has(n)),a&&s}}const MU=new RegExp("s*:selfs*,?","g");function Fy(t,n,e,i){return new TU(t).build(n,e,i)}class TU{constructor(n){this._driver=n}build(n,e,i){const o=new OU(e);return this._resetContextStyleTimingState(o),Vo(this,xu(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],a=[];return"@"==n.name.charAt(0)&&e.errors.push(function FH(){return new ue(3006,!1)}()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==St.State){const c=s,u=c.name;u.toString().split(/\s*,\s*/).forEach(p=>{c.name=p,r.push(this.visitState(c,e))}),c.name=u}else if(s.type==St.Transition){const c=this.visitTransition(s,e);i+=c.queryCount,o+=c.depCount,a.push(c)}else e.errors.push(function LH(){return new ue(3007,!1)}())}),{type:St.Trigger,name:n.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,a=o||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(c=>{dI(c).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&e.errors.push(function BH(t,n){return new ue(3008,!1)}(0,r.values()))}return{type:St.State,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=Vo(this,xu(n.animation),e),o=function DU(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function SU(t,n,e){if(":"==t[0]){const c=function kU(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof c)return void n.push(c);t=c}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function WH(t){return new ue(3015,!1)}()),n;const o=i[1],r=i[2],a=i[3];n.push(hI(o,a)),"<"==r[0]&&(o!=Pp||a!=Pp)&&n.push(hI(a,o))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:St.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ys(n.options)}}visitSequence(n,e){return{type:St.Sequence,steps:n.steps.map(i=>Vo(this,i,e)),options:Ys(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(a=>{e.currentTime=i;const s=Vo(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:St.Group,steps:r,options:Ys(n.options)}}visitAnimate(n,e){const i=function PU(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Ly(Ap(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=Ly(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=Ap(e,n);return Ly(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:Zt({});if(r.type==St.Keyframes)o=this.visitKeyframes(r,e);else{let a=n.styles,s=!1;if(!a){s=!0;const u={};i.easing&&(u.easing=i.easing),a=Zt(u)}e.currentTime+=i.duration+i.delay;const c=this.visitStyle(a,e);c.isEmptyStep=s,o=c}return e.currentAnimateTimings=null,{type:St.Animate,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of o)"string"==typeof s?s===ha?i.push(s):e.errors.push(new ue(3002,!1)):i.push(new Map(Object.entries(s)));let r=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r))for(let c of s.values())if(c.toString().indexOf("{{")>=0){r=!0;break}}),{type:St.Style,styles:i,easing:a,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,c)=>{const u=e.collectedStyles.get(e.currentQuerySelector),p=u.get(c);let g=!0;p&&(r!=o&&r>=p.startTime&&o<=p.endTime&&(e.errors.push(function jH(t,n,e,i,o){return new ue(3010,!1)}()),g=!1),r=p.startTime),g&&u.set(c,{startTime:r,endTime:o}),e.options&&function vU(t,n,e){const i=n.params||{},o=dI(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function AH(t){return new ue(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:St.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function zH(){return new ue(3011,!1)}()),i;let r=0;const a=[];let s=!1,c=!1,u=0;const p=n.steps.map(ie=>{const ae=this._makeStyleAst(ie,e);let Ue=null!=ae.offset?ae.offset:function AU(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(ae.styles),tt=0;return null!=Ue&&(r++,tt=ae.offset=Ue),c=c||tt<0||tt>1,s=s||tt0&&r{const Ue=b>0?ae==w?1:b*ae:a[ae],tt=Ue*z;e.currentTime=S+T.delay+tt,T.duration=tt,this._validateStyleAst(ie,e),ie.offset=Ue,i.styles.push(ie)}),i}visitReference(n,e){return{type:St.Reference,animation:Vo(this,xu(n.animation),e),options:Ys(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:St.AnimateChild,options:Ys(n.options)}}visitAnimateRef(n,e){return{type:St.AnimateRef,animation:this.visitReference(n.animation,e),options:Ys(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,a]=function IU(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(MU,"")),t=t.replace(/@\*/g,Op).replace(/@\w+/g,e=>Op+"-"+e.slice(1)).replace(/:animating/g,Oy),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,Bo(e.collectedStyles,e.currentQuerySelector,new Map);const s=Vo(this,xu(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:St.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:Ys(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function GH(){return new ue(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Ap(n.timings,e.errors,!0);return{type:St.Stagger,animation:Vo(this,xu(n.animation),e),timings:i,options:null}}}class OU{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ys(t){return t?(t={...t}).params&&(t.params=function EU(t){return t?{...t}:null}(t.params)):t={},t}function Ly(t,n,e){return{duration:t,delay:n,easing:e}}function By(t,n,e,i,o,r,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}class Fp{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const FU=new RegExp(":enter","g"),BU=new RegExp(":leave","g");function Vy(t,n,e,i,o,r=new Map,a=new Map,s,c,u=[]){return(new VU).buildKeyframes(t,n,e,i,o,r,a,s,c,u)}class VU{buildKeyframes(n,e,i,o,r,a,s,c,u,p=[]){u=u||new Fp;const g=new jy(n,e,u,o,r,p,[]);g.options=c;const b=c.delay?ma(c.delay):0;g.currentTimeline.delayNextStep(b),g.currentTimeline.setStyles([a],null,g.errors,c),Vo(this,i,g);const w=g.timelines.filter(S=>S.containsAnimation());if(w.length&&s.size){let S;for(let T=w.length-1;T>=0;T--){const z=w[T];if(z.element===e){S=z;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([s],null,g.errors,c)}return w.length?w.map(S=>S.buildKeyframes()):[By(e,[],[],[],0,b,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const o of n){const r=o?.delay;if(r){const a="number"==typeof r?r:ma(Du(r,o?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const a=null!=i.duration?ma(i.duration):null,s=null!=i.delay?ma(i.delay):null;return 0!==a&&n.forEach(c=>{const u=e.appendInstructionToTimeline(c,a,s);r=Math.max(r,u.duration+u.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),Vo(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){o.previousNode.type==St.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Lp);const a=ma(r.delay);o.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>Vo(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?ma(n.options.delay):0;n.steps.forEach(a=>{const s=e.createSubContext(n.options);r&&s.delayNextStep(r),Vo(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Ap(e.params?Du(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;r.type==St.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(c=>{s.forwardTime((c.offset||0)*r),s.setStyles(c.styles,c.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?ma(o.delay):0;r&&(e.previousNode.type===St.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Lp);let a=i;const s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let c=null;s.forEach((u,p)=>{e.currentQueryIndex=p;const g=e.createSubContext(n.options,u);r&&g.delayNextStep(r),u===e.element&&(c=g.currentTimeline),Vo(this,n.animation,g),g.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,g.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1);let c=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":c=s-c;break;case"full":c=i.currentStaggerTime}const p=e.currentTimeline;c&&p.delayNextStep(c);const g=p.currentTime;Vo(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-g+(o.startTime-i.currentTimeline.startTime)}}const Lp={};class jy{constructor(n,e,i,o,r,a,s,c){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Lp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Bp(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=ma(i.duration)),null!=i.delay&&(o.delay=ma(i.delay));const r=i.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=Du(r[s],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new jy(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Lp,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},r=new jU(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,a){let s=[];if(o&&s.push(this.element),n.length>0){n=(n=n.replace(FU,"."+this._enterClassName)).replace(BU,"."+this._leaveClassName);let u=this._driver.query(this.element,n,1!=i);0!==i&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),s.push(...u)}return!r&&0==s.length&&a.push(function qH(t){return new ue(3014,!1)}()),s}}class Bp{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),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.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Bp(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||ha),this._currentKeyframe.set(e,ha);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&this._previousKeyframe.set("easing",e);const r=o&&o.params||{},a=function zU(t,n){const e=new Map;let i;return t.forEach(o=>{if("*"===o){i??=n.keys();for(let r of i)e.set(r,ha)}else for(let[r,a]of o)e.set(r,a)}),e}(n,this._globalTimelineStyles);for(let[s,c]of a){const u=Du(c,r,i);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??ha),this._updateStyle(s,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((s,c)=>{const u=new Map([...this._backFill,...s]);u.forEach((p,g)=>{"!"===p?n.add(g):p===ha&&e.add(g)}),i||u.set("offset",c/this.duration),o.push(u)});const r=[...n.values()],a=[...e.values()];if(i){const s=o[0],c=new Map(s);s.set("offset",0),c.set("offset",1),o=[s,c]}return By(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}}class jU extends Bp{constructor(n,e,i,o,r,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],a=i+e,s=e/a,c=new Map(n[0]);c.set("offset",0),r.push(c);const u=new Map(n[0]);u.set("offset",fI(s)),r.push(u);const p=n.length-1;for(let g=1;g<=p;g++){let b=new Map(n[g]);const w=b.get("offset");b.set("offset",fI((e+w*i)/a)),r.push(b)}i=a,e=0,o="",n=r}return By(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function fI(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function gI(t,n,e,i,o,r,a,s,c,u,p,g,b){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:a,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:p,totalTime:g,errors:b}}const zy={};class _I{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function HU(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,a,s,c,u,p){const g=[],b=this.ast.options&&this.ast.options.params||zy,S=this.buildStyles(i,s&&s.params||zy,g),T=c&&c.params||zy,z=this.buildStyles(o,T,g),ie=new Set,ae=new Map,Ue=new Map,tt="void"===o,ft={params:bI(T,b),delay:this.ast.options?.delay},zt=p?[]:Vy(n,e,this.ast.animation,r,a,S,z,ft,u,g);let Ni=0;return zt.forEach(On=>{Ni=Math.max(On.duration+On.delay,Ni)}),g.length?gI(e,this._triggerName,i,o,tt,S,z,[],[],ae,Ue,Ni,g):(zt.forEach(On=>{const Pa=On.element,cd=Bo(ae,Pa,new Set);On.preStyleProps.forEach(fc=>cd.add(fc));const UN=Bo(Ue,Pa,new Set);On.postStyleProps.forEach(fc=>UN.add(fc)),Pa!==e&&ie.add(Pa)}),gI(e,this._triggerName,i,o,tt,S,z,zt,[...ie.values()],ae,Ue,Ni))}}function bI(t,n){const e={...n};return Object.entries(t).forEach(([i,o])=>{null!=o&&(e[i]=o)}),e}class UU{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,o=bI(n,this.defaultParams);return this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,s)=>{a&&(a=Du(a,o,e));const c=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,c,a,e),i.set(s,a)})}),i}}class GU{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new UU(o.style,o.options&&o.options.params||{},i))}),vI(this.states,"true","1"),vI(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new _I(n,o,this.states))}),this.fallbackTransition=function qU(t,n,e){return new _I(t,{type:St.Transition,animation:{type:St.Sequence,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(a=>a.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function vI(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const WU=new Fp;class KU{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=Fy(this._driver,e,i,[]);if(i.length)throw function JH(t){return new ue(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,e,i){const o=n.element,r=iI(this._normalizer,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations.get(n);let a;const s=new Map;if(r?(a=Vy(this._driver,e,r,Ey,Ip,new Map,new Map,i,WU,o),a.forEach(p=>{const g=Bo(s,p.element,new Map);p.postStyleProps.forEach(b=>g.set(b,null))})):(o.push(function eU(){return new ue(3300,!1)}()),a=[]),o.length)throw function tU(t){return new ue(3504,!1)}();s.forEach((p,g)=>{p.forEach((b,w)=>{p.set(w,this._driver.computeStyle(g,w,ha))})});const u=Xa(a.map(p=>{const g=s.get(p.element);return this._buildPlayer(p,new Map,g)}));return this._playersById.set(n,u),u.onDestroy(()=>this.destroy(n)),this.players.push(u),u}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function iU(t){return new ue(3301,!1)}();return e}listen(n,e,i,o){const r=Sy(e,"","","");return xy(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const yI="ng-animate-queued",Hy="ng-animate-disabled",JU=[],CI={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},e$={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},wr="__ng_removed";class Uy{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function o$(t){return t??null}(i?n.value:n),i){const{value:r,...a}=n;this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const Su="void",$y=new Uy(Su);class t${constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Qo(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw function nU(t,n){return new ue(3302,!1)}();if(null==i||0==i.length)throw function oU(t){return new ue(3303,!1)}();if(!function r$(t){return"start"==t||"done"==t}(i))throw function rU(t,n){return new ue(3400,!1)}();const r=Bo(this._elementListeners,n,[]),a={name:e,phase:i,callback:o};r.push(a);const s=Bo(this._engine.statesByElement,n,new Map);return s.has(e)||(Qo(n,Ep),Qo(n,Ep+"-"+e),s.set(e,$y)),()=>{this._engine.afterFlush(()=>{const c=r.indexOf(a);c>=0&&r.splice(c,1),this._triggers.has(e)||s.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function aU(t){return new ue(3401,!1)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),a=new Gy(this.id,e,n);let s=this._engine.statesByElement.get(n);s||(Qo(n,Ep),Qo(n,Ep+"-"+e),this._engine.statesByElement.set(n,s=new Map));let c=s.get(e);const u=new Uy(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),s.set(e,u),c||(c=$y),u.value!==Su&&c.value===u.value){if(!function c$(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o{Zs(n,z),Vr(n,ie)})}return}const b=Bo(this._engine.playersByElement,n,[]);b.forEach(T=>{T.namespaceId==this.id&&T.triggerName==e&&T.queued&&T.destroy()});let w=r.matchTransition(c.value,u.value,n,u.params),S=!1;if(!w){if(!o)return;w=r.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:w,fromState:c,toState:u,player:a,isFallbackTransition:S}),S||(Qo(n,yI),a.onStart(()=>{Dl(n,yI)})),a.onDone(()=>{let T=this.players.indexOf(a);T>=0&&this.players.splice(T,1);const z=this._engine.playersByElement.get(n);if(z){let ie=z.indexOf(a);ie>=0&&z.splice(ie,1)}}),this.players.push(a),b.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Op,!0);i.forEach(o=>{if(o[wr])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),a=new Map;if(r){const s=[];if(r.forEach((c,u)=>{if(a.set(u,c.value),this._triggers.has(u)){const p=this.trigger(n,u,Su,o);p&&s.push(p)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&Xa(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const a=r.name;if(o.has(a))return;o.add(a);const c=this._triggers.get(a).fallbackTransition,u=i.get(a)||$y,p=new Uy(Su),g=new Gy(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:c,fromState:u,toState:p,player:g,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[wr];(!r||r===CI)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Qo(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==i.triggerName){const c=Sy(r,i.triggerName,i.fromState.value,i.toState.value);c._data=n,xy(i.player,s.phase,c,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,a=o.transition.ast.depCount;return 0==r||0==a?r-a:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class i${_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,o){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=o,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,a)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new t$(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const c=o.get(s);if(c){const u=i.indexOf(c);i.splice(u+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(n,e,i,o){if(Vp(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!Vp(e))return;const r=e[wr];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Qo(n,Hy)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Dl(n,Hy))}removeNode(n,e,i){if(Vp(e)){this.scheduler?.notify();const o=n?this._fetchNamespace(n):null;o?o.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const r=this.namespacesByHostElement.get(e);r&&r.id!==n&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[wr]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return Vp(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,Op,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,Oy,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Xa(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[wr];if(e&&e.setForRemoval){if(n[wr]=CI,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(Hy)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Xa(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function sU(t){return new ue(3402,!1)}()}_flushAnimations(n,e){const i=new Fp,o=[],r=new Map,a=[],s=new Map,c=new Map,u=new Map,p=new Set;this.disabledNodes.forEach(at=>{p.add(at);const _t=this.driver.query(at,".ng-animate-queued",!0);for(let xt=0;xt<_t.length;xt++)p.add(_t[xt])});const g=this.bodyNode,b=Array.from(this.statesByElement.keys()),w=DI(b,this.collectedEnterElements),S=new Map;let T=0;w.forEach((at,_t)=>{const xt=Ey+T++;S.set(_t,xt),at.forEach(ii=>Qo(ii,xt))});const z=[],ie=new Set,ae=new Set;for(let at=0;atie.add(ii)):ae.add(_t))}const Ue=new Map,tt=DI(b,Array.from(ie));tt.forEach((at,_t)=>{const xt=Ip+T++;Ue.set(_t,xt),at.forEach(ii=>Qo(ii,xt))}),n.push(()=>{w.forEach((at,_t)=>{const xt=S.get(_t);at.forEach(ii=>Dl(ii,xt))}),tt.forEach((at,_t)=>{const xt=Ue.get(_t);at.forEach(ii=>Dl(ii,xt))}),z.forEach(at=>{this.processLeaveNode(at)})});const ft=[],zt=[];for(let at=this._namespaceList.length-1;at>=0;at--)this._namespaceList[at].drainQueuedTransitions(e).forEach(xt=>{const ii=xt.player,Nn=xt.element;if(ft.push(ii),this.collectedEnterElements.length){const to=Nn[wr];if(to&&to.setForMove){if(to.previousTriggersValues&&to.previousTriggersValues.has(xt.triggerName)){const gc=to.previousTriggersValues.get(xt.triggerName),rr=this.statesByElement.get(xt.element);if(rr&&rr.has(xt.triggerName)){const Og=rr.get(xt.triggerName);Og.value=gc,rr.set(xt.triggerName,Og)}}return void ii.destroy()}}const Yr=!g||!this.driver.containsElement(g,Nn),$o=Ue.get(Nn),Cs=S.get(Nn),Ki=this._buildInstruction(xt,i,Cs,$o,Yr);if(Ki.errors&&Ki.errors.length)return void zt.push(Ki);if(Yr)return ii.onStart(()=>Zs(Nn,Ki.fromStyles)),ii.onDestroy(()=>Vr(Nn,Ki.toStyles)),void o.push(ii);if(xt.isFallbackTransition)return ii.onStart(()=>Zs(Nn,Ki.fromStyles)),ii.onDestroy(()=>Vr(Nn,Ki.toStyles)),void o.push(ii);const qN=[];Ki.timelines.forEach(to=>{to.stretchStartingKeyframe=!0,this.disabledNodes.has(to.element)||qN.push(to)}),Ki.timelines=qN,i.append(Nn,Ki.timelines),a.push({instruction:Ki,player:ii,element:Nn}),Ki.queriedElements.forEach(to=>Bo(s,to,[]).push(ii)),Ki.preStyleProps.forEach((to,gc)=>{if(to.size){let rr=c.get(gc);rr||c.set(gc,rr=new Set),to.forEach((Og,Mw)=>rr.add(Mw))}}),Ki.postStyleProps.forEach((to,gc)=>{let rr=u.get(gc);rr||u.set(gc,rr=new Set),to.forEach((Og,Mw)=>rr.add(Mw))})});if(zt.length){const at=[];zt.forEach(_t=>{at.push(function cU(t,n){return new ue(3505,!1)}())}),ft.forEach(_t=>_t.destroy()),this.reportError(at)}const Ni=new Map,On=new Map;a.forEach(at=>{const _t=at.element;i.has(_t)&&(On.set(_t,_t),this._beforeAnimationBuild(at.player.namespaceId,at.instruction,Ni))}),o.forEach(at=>{const _t=at.element;this._getPreviousPlayers(_t,!1,at.namespaceId,at.triggerName,null).forEach(ii=>{Bo(Ni,_t,[]).push(ii),ii.destroy()})});const Pa=z.filter(at=>kI(at,c,u)),cd=new Map;xI(cd,this.driver,ae,u,ha).forEach(at=>{kI(at,c,u)&&Pa.push(at)});const fc=new Map;w.forEach((at,_t)=>{xI(fc,this.driver,new Set(at),c,"!")}),Pa.forEach(at=>{const _t=cd.get(at),xt=fc.get(at);cd.set(at,new Map([..._t?.entries()??[],...xt?.entries()??[]]))});const kw=[],$N=[],GN={};a.forEach(at=>{const{element:_t,player:xt,instruction:ii}=at;if(i.has(_t)){if(p.has(_t))return xt.onDestroy(()=>Vr(_t,ii.toStyles)),xt.disabled=!0,xt.overrideTotalTime(ii.totalTime),void o.push(xt);let Nn=GN;if(On.size>1){let $o=_t;const Cs=[];for(;$o=$o.parentNode;){const Ki=On.get($o);if(Ki){Nn=Ki;break}Cs.push($o)}Cs.forEach(Ki=>On.set(Ki,Nn))}const Yr=this._buildAnimation(xt.namespaceId,ii,Ni,r,fc,cd);if(xt.setRealPlayer(Yr),Nn===GN)kw.push(xt);else{const $o=this.playersByElement.get(Nn);$o&&$o.length&&(xt.parentPlayer=Xa($o)),o.push(xt)}}else Zs(_t,ii.fromStyles),xt.onDestroy(()=>Vr(_t,ii.toStyles)),$N.push(xt),p.has(_t)&&o.push(xt)}),$N.forEach(at=>{const _t=r.get(at.element);if(_t&&_t.length){const xt=Xa(_t);at.setRealPlayer(xt)}}),o.forEach(at=>{at.parentPlayer?at.syncPlayerEvents(at.parentPlayer):at.destroy()});for(let at=0;at!Yr.destroyed);Nn.length?a$(this,_t,Nn):this.processLeaveNode(_t)}return z.length=0,kw.forEach(at=>{this.players.push(at),at.onDone(()=>{at.destroy();const _t=this.players.indexOf(at);this.players.splice(_t,1)}),at.play()}),kw}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let a=[];if(e){const s=this.playersByQueriedElement.get(n);s&&(a=s)}else{const s=this.playersByElement.get(n);if(s){const c=!r||r==Su;s.forEach(u=>{u.queued||!c&&u.triggerName!=o||a.push(u)})}}return(i||o)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){const r=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:e.triggerName;for(const c of e.timelines){const u=c.element,p=u!==r,g=Bo(i,u,[]);this._getPreviousPlayers(u,p,a,s,e.toState).forEach(w=>{const S=w.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),w.destroy(),g.push(w)})}Zs(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,a){const s=e.triggerName,c=e.element,u=[],p=new Set,g=new Set,b=e.timelines.map(S=>{const T=S.element;p.add(T);const z=T[wr];if(z&&z.removedBeforeQueried)return new wu(S.duration,S.delay);const ie=T!==c,ae=function s$(t){const n=[];return SI(t,n),n}((i.get(T)||JU).map(Ni=>Ni.getRealPlayer())).filter(Ni=>!!Ni.element&&Ni.element===T),Ue=r.get(T),tt=a.get(T),ft=iI(this._normalizer,S.keyframes,Ue,tt),zt=this._buildPlayer(S,ft,ae);if(S.subTimeline&&o&&g.add(T),ie){const Ni=new Gy(n,s,T);Ni.setRealPlayer(zt),u.push(Ni)}return zt});u.forEach(S=>{Bo(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>function n$(t,n,e){let i=t.get(n);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,S.element,S))}),p.forEach(S=>Qo(S,cI));const w=Xa(b);return w.onDestroy(()=>{p.forEach(S=>Dl(S,cI)),Vr(c,e.toStyles)}),g.forEach(S=>{Bo(o,S,[]).push(w)}),w}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new wu(n.duration,n.delay)}}class Gy{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new wu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>xy(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){Bo(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Vp(t){return t&&1===t.nodeType}function wI(t,n){const e=t.style.display;return t.style.display=n??"none",e}function xI(t,n,e,i,o){const r=[];e.forEach(c=>r.push(wI(c)));const a=[];i.forEach((c,u)=>{const p=new Map;c.forEach(g=>{const b=n.computeStyle(u,g,o);p.set(g,b),(!b||0==b.length)&&(u[wr]=e$,a.push(u))}),t.set(u,p)});let s=0;return e.forEach(c=>wI(c,r[s++])),a}function DI(t,n){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==n.length)return e;const o=new Set(n),r=new Map;function a(s){if(!s)return 1;let c=r.get(s);if(c)return c;const u=s.parentNode;return c=e.has(u)?u:o.has(u)?1:a(u),r.set(s,c),c}return n.forEach(s=>{const c=a(s);1!==c&&e.get(c).push(s)}),e}function Qo(t,n){t.classList?.add(n)}function Dl(t,n){t.classList?.remove(n)}function a$(t,n,e){Xa(e).onDone(()=>t.processLeaveNode(n))}function SI(t,n){for(let e=0;eo.add(r)):n.set(t,i),e.delete(t),!0}class ku{constructor(n,e,i,o){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,a)=>{},this._transitionEngine=new i$(n.body,e,i,o),this._timelineEngine=new KU(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,a)=>this.onRemovalComplete(r,a)}registerTrigger(n,e,i,o,r){const a=n+"-"+o;let s=this._triggerCache[a];if(!s){const c=[],p=Fy(this._driver,r,c,[]);if(c.length)throw function QH(t,n){return new ue(3404,!1)}();s=function $U(t,n,e){return new GU(t,n,e)}(o,p,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,a]=nI(i);this._timelineEngine.command(r,e,a,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[a,s]=nI(i);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class Mu{static#e=this.initialStylesByElement=new WeakMap;constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let o=Mu.initialStylesByElement.get(n);o||Mu.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Vr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Vr(this._element,this._initialStyles),this._endStyles&&(Vr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Mu.initialStylesByElement.delete(this._element),this._startStyles&&(Zs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Zs(this._element,this._endStyles),this._endStyles=null),Vr(this._element,this._initialStyles),this._state=3)}}function qy(t){let n=null;return t.forEach((e,i)=>{(function d$(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class MI{constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:Ny(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class TI{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return rI(n,e)}getParentElement(n){return ky(n)}query(n,e,i){return aI(n,e,i)}computeStyle(n,e,i){return Ny(n,e)}animate(n,e,i,o,r,a=[]){const c={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(c.easing=r);const u=new Map,p=a.filter(w=>w instanceof MI);(function CU(t,n){return 0===t||0===n})(i,o)&&p.forEach(w=>{w.currentSnapshot.forEach((S,T)=>u.set(T,S))});let g=function bU(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}(e).map(w=>new Map(w));g=function wU(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,a)=>{i.has(a)||o.push(a),i.set(a,r)}),o.length)for(let r=1;ra.set(s,Ny(t,s)))}}return n}(n,g,u);const b=function l$(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=qy(n[0]),n.length>1&&(i=qy(n[n.length-1]))):n instanceof Map&&(e=qy(n)),e||i?new Mu(t,e,i):null}(n,g);return new MI(n,g,c,b)}}const II="@.disabled";class EI{constructor(n,e,i,o){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==II?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class u$ extends EI{constructor(n,e,i,o,r){super(e,i,o,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==II?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function h$(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.slice(1),a="";return"@"!=r.charAt(0)&&([r,a]=function m$(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,i,s)})}return this.delegate.listen(n,e,i)}}class p${constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(o,r)=>{const a=r?.parentNode(o);a&&r.removeChild(a,o)}}createRenderer(n,e){const o=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){const u=this._rendererCache;let p=u.get(o);return p||(p=new EI("",o,this.engine,()=>u.delete(o)),u.set(o,p)),p}const r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(r,a,n,u.name,u)};return e.data.animation.forEach(s),new u$(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&ne(i));const o=this._animationCallbacksBuffer;0==o.length&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{const[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}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()}}const OI=[{provide:Iy,useFactory:function g$(){return new uI}},{provide:ku,useClass:(()=>{class t extends ku{constructor(e,i,o){super(e,i,o,De(Ob,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||t)(X(ut),X(Ty),X(Iy))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})()},{provide:Ab,useFactory:function _$(t,n,e){return new p$(t,n,e)},deps:[fy,ku,We]}],Wy=[{provide:Ty,useFactory:()=>new TI},{provide:ui,useValue:"BrowserAnimations"},...OI],AI=[{provide:Ty,useClass:My},{provide:ui,useValue:"NoopAnimations"},...OI];let Ky,b$=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?AI:Wy}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({providers:Wy,imports:[Y2]})}return t})();try{Ky=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ky=!1}let Sl,ci=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?M2(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&&!Ky)&&typeof CSS<"u"&&!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}static#e=this.\u0275fac=function(i){return new(i||t)(X(ra))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const PI=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function RI(){if(Sl)return Sl;if("object"!=typeof document||!document)return Sl=new Set(PI),Sl;let t=document.createElement("input");return Sl=new Set(PI.filter(n=>(t.setAttribute("type",n),t.type===n))),Sl}let Tu,zp,Qs,Zy;function Ja(t){return function v$(){if(null==Tu&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Tu=!0}))}finally{Tu=Tu||!1}return Tu}()?t:!!t.capture}function NI(){if(null==Qs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Qs=!1,Qs;if("scrollBehavior"in document.documentElement.style)Qs=!0;else{const t=Element.prototype.scrollTo;Qs=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Qs}function Iu(){if("object"!=typeof document||!document)return 0;if(null==zp){const t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),zp=0,0===t.scrollLeft&&(t.scrollLeft=1,zp=0===t.scrollLeft?1:2),t.remove()}return zp}function Hp(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function pa(t){return t.composedPath?t.composedPath()[0]:t.target}function Yy(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function FI(t){return t&&J(t.schedule)}function Qy(t){return t[t.length-1]}function LI(t){return J(Qy(t))?t.pop():void 0}function Eu(t){return FI(Qy(t))?t.pop():void 0}function es(t){return this instanceof es?(this.v=t,this):new es(t)}function zI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function t0(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(a){return new Promise(function(s,c){!function o(r,a,s,c){Promise.resolve(c).then(function(u){r({value:u,done:s})},a)}(s,c,(a=t[r](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const n0=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function HI(t){return J(t?.then)}function UI(t){return J(t[Pg])}function $I(t){return Symbol.asyncIterator&&J(t?.[Symbol.asyncIterator])}function GI(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const qI=function $$(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function WI(t){return J(t?.[qI])}function KI(t){return function jI(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},s("next"),s("throw"),s("return",function a(w){return function(S){return Promise.resolve(S).then(w,g)}}),o[Symbol.asyncIterator]=function(){return this},o;function s(w,S){i[w]&&(o[w]=function(T){return new Promise(function(z,ie){r.push([w,T,z,ie])>1||c(w,T)})},S&&(o[w]=S(o[w])))}function c(w,S){try{!function u(w){w.value instanceof es?Promise.resolve(w.value.v).then(p,g):b(r[0][2],w)}(i[w](S))}catch(T){b(r[0][3],T)}}function p(w){c("next",w)}function g(w){c("throw",w)}function b(w,S){w(S),r.shift(),r.length&&c(r[0][0],r[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield es(e.read());if(o)return yield es(void 0);yield yield es(i)}}finally{e.releaseLock()}})}function ZI(t){return J(t?.getReader)}function Yn(t){if(t instanceof li)return t;if(null!=t){if(UI(t))return function G$(t){return new li(n=>{const e=t[Pg]();if(J(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(n0(t))return function q$(t){return new li(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,ht)})}(t);if($I(t))return YI(t);if(WI(t))return function K$(t){return new li(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(ZI(t))return function Z$(t){return YI(KI(t))}(t)}throw GI(t)}function YI(t){return new li(n=>{(function Y$(t,n){var e,i,o,r;return function BI(t,n,e,i){return new(e||(e=Promise))(function(r,a){function s(p){try{u(i.next(p))}catch(g){a(g)}}function c(p){try{u(i.throw(p))}catch(g){a(g)}}function u(p){p.done?r(p.value):function o(r){return r instanceof e?r:new e(function(a){a(r)})}(p.value).then(s,c)}u((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=zI(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function fa(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function QI(t,n=0){return $i((e,i)=>{e.subscribe(Fi(i,o=>fa(i,t,()=>i.next(o),n),()=>fa(i,t,()=>i.complete(),n),o=>fa(i,t,()=>i.error(o),n)))})}function XI(t,n=0){return $i((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function JI(t,n){if(!t)throw new Error("Iterable cannot be null");return new li(e=>{fa(e,n,()=>{const i=t[Symbol.asyncIterator]();fa(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function Xi(t,n){return n?function iG(t,n){if(null!=t){if(UI(t))return function Q$(t,n){return Yn(t).pipe(XI(n),QI(n))}(t,n);if(n0(t))return function J$(t,n){return new li(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(HI(t))return function X$(t,n){return Yn(t).pipe(XI(n),QI(n))}(t,n);if($I(t))return JI(t,n);if(WI(t))return function eG(t,n){return new li(e=>{let i;return fa(e,n,()=>{i=t[qI](),fa(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(a){return void e.error(a)}r?e.complete():e.next(o)},0,!0)}),()=>J(i?.return)&&i.return()})}(t,n);if(ZI(t))return function tG(t,n){return JI(KI(t),n)}(t,n)}throw GI(t)}(t,n):Yn(t)}function Ke(...t){return Xi(t,Eu(t))}function An(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function qt(t,n,e){const i=J(t)||n||e?{next:t,error:n,complete:e}:t;return i?$i((o,r)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;o.subscribe(Fi(r,c=>{var u;null===(u=i.next)||void 0===u||u.call(i,c),r.next(c)},()=>{var c;s=!1,null===(c=i.complete)||void 0===c||c.call(i),r.complete()},c=>{var u;s=!1,null===(u=i.error)||void 0===u||u.call(i,c),r.error(c)},()=>{var c,u;s&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(u=i.finalize)||void 0===u||u.call(i)}))}):Ra}class gG extends de{constructor(n,e){super()}schedule(n,e=0){return this}}const qp={setInterval(t,n,...e){const{delegate:i}=qp;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=qp;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class a0 extends gG{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return qp.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&qp.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Z(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const s0={now:()=>(s0.delegate||Date).now(),delegate:void 0};class Au{constructor(n,e=Au.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}Au.now=s0.now;class c0 extends Au{constructor(n,e=Au.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Pu=new c0(a0),_G=Pu;function Wp(t,n=Pu){return $i((e,i)=>{let o=null,r=null,a=null;const s=()=>{if(o){o.unsubscribe(),o=null;const u=r;r=null,i.next(u)}};function c(){const u=a+t,p=n.now();if(p{r=u,a=n.now(),o||(o=n.schedule(c,t),i.add(o))},()=>{s(),i.complete()},void 0,()=>{r=o=null}))})}function kt(t,n){return $i((e,i)=>{let o=0;e.subscribe(Fi(i,r=>t.call(n,r,o++)&&i.next(r)))})}const jo=new li(t=>t.complete());function Pt(t){return t<=0?()=>jo:$i((n,e)=>{let i=0;n.subscribe(Fi(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function l0(t){return kt((n,e)=>t<=e)}function Ru(t,n=Ra){return t=t??vG,$i((e,i)=>{let o,r=!0;e.subscribe(Fi(i,a=>{const s=n(a);(r||!t(o,s))&&(r=!1,o=s,i.next(a))}))})}function vG(t,n){return t===n}function ot(t){return $i((n,e)=>{Yn(t).subscribe(Fi(e,()=>e.complete(),oi)),!e.closed&&n.subscribe(e)})}function $e(t){return null!=t&&"false"!=`${t}`}function yi(t,n=0){return eE(t)?Number(t):n}function eE(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Kp(t){return Array.isArray(t)?t:[t]}function pn(t){return null==t?"":"string"==typeof t?t:`${t}px`}function _a(t){return t instanceof Be?t.nativeElement:t}let tE=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),CG=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=_a(e);return new li(o=>{const a=this._observeElement(i).subscribe(o);return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new qe,o=this._mutationObserverFactory.create(r=>i.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:o}=this._observedElements.get(e);i&&i.disconnect(),o.complete(),this._observedElements.delete(e)}}static#e=this.\u0275fac=function(i){return new(i||t)(X(tE))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),iE=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=yi(e),this._subscribe()}constructor(e,i,o){this._contentObserver=e,this._elementRef=i,this._ngZone=o,this.event=new Ne,this._disabled=!1,this._currentSubscription=null}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(Wp(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(_(CG),_(Be),_(We))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[ge.None,"cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Zp=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({providers:[tE]})}return t})();const{isArray:wG}=Array,{getPrototypeOf:xG,prototype:DG,keys:SG}=Object;function nE(t){if(1===t.length){const n=t[0];if(wG(n))return{args:n,keys:null};if(function kG(t){return t&&"object"==typeof t&&xG(t)===DG}(n)){const e=SG(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:MG}=Array;function d0(t){return nt(n=>function TG(t,n){return MG(n)?t(...n):t(n)}(t,n))}function oE(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function Xs(...t){const n=Eu(t),e=LI(t),{args:i,keys:o}=nE(t);if(0===i.length)return Xi([],n);const r=new li(function IG(t,n,e=Ra){return i=>{rE(n,()=>{const{length:o}=t,r=new Array(o);let a=o,s=o;for(let c=0;c{const u=Xi(t[c],n);let p=!1;u.subscribe(Fi(i,g=>{r[c]=g,p||(p=!0,s--),s||i.next(e(r.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,o?a=>oE(o,a):Ra));return e?r.pipe(d0(e)):r}function rE(t,n,e){t?fa(e,t,n):n()}function Pn(t,n,e=1/0){return J(n)?Pn((i,o)=>nt((r,a)=>n(i,r,o,a))(Yn(t(i,o))),e):("number"==typeof n&&(e=n),$i((i,o)=>function EG(t,n,e,i,o,r,a,s){const c=[];let u=0,p=0,g=!1;const b=()=>{g&&!c.length&&!u&&n.complete()},w=T=>u{r&&n.next(T),u++;let z=!1;Yn(e(T,p++)).subscribe(Fi(n,ie=>{o?.(ie),r?w(ie):n.next(ie)},()=>{z=!0},void 0,()=>{if(z)try{for(u--;c.length&&uS(ie)):S(ie)}b()}catch(ie){n.error(ie)}}))};return t.subscribe(Fi(n,w,()=>{g=!0,b()})),()=>{s?.()}}(i,o,t,e)))}function Ml(t=1/0){return Pn(Ra,t)}function Nu(...t){return function OG(){return Ml(1)}()(Xi(t,Eu(t)))}function an(...t){const n=Eu(t);return $i((e,i)=>{(n?Nu(t,e,n):Nu(t,e)).subscribe(i)})}const aE=new Set;let Js,AG=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):RG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function PG(t,n){if(!aE.has(t))try{Js||(Js=document.createElement("style"),n&&(Js.nonce=n),Js.setAttribute("type","text/css"),document.head.appendChild(Js)),Js.sheet&&(Js.sheet.insertRule(`@media ${t} {body{ }}`,0),aE.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static#e=this.\u0275fac=function(i){return new(i||t)(X(ci),X(s_,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function RG(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let u0=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new qe}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return sE(Kp(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=Xs(sE(Kp(e)).map(a=>this._registerQuery(a).observable));return r=Nu(r.pipe(Pt(1)),r.pipe(l0(1),Wp(0))),r.pipe(nt(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:u})=>{s.matches=s.matches||c,s.breakpoints[u]=c}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new li(a=>{const s=c=>this._zone.run(()=>a.next(c));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(an(i),nt(({matches:a})=>({query:e,matches:a})),ot(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static#e=this.\u0275fac=function(i){return new(i||t)(X(AG),X(We))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sE(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function Yp(t,n,e){const i=Qp(t,n);i.some(o=>o.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))}function Tl(t,n,e){const o=Qp(t,n).filter(r=>r!=e.trim());o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}function Qp(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const lE="cdk-describedby-message",Xp="cdk-describedby-host";let h0=0,FG=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+h0++,this._document=e,this._id=De(wd)+"-"+h0++}describe(e,i,o){if(!this._canBeDescribed(e,i))return;const r=m0(i,o);"string"!=typeof i?(dE(i,this._id),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,o){if(!i||!this._isElementNode(e))return;const r=m0(i,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),"string"==typeof i){const a=this._messageRegistry.get(r);a&&0===a.referenceCount&&this._deleteMessageElement(r)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Xp}="${this._id}"]`);for(let i=0;i0!=o.indexOf(lE));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const o=this._messageRegistry.get(i);Yp(e,"aria-describedby",o.messageElement.id),e.setAttribute(Xp,this._id),o.referenceCount++}_removeMessageReference(e,i){const o=this._messageRegistry.get(i);o.referenceCount--,Tl(e,"aria-describedby",o.messageElement.id),e.removeAttribute(Xp)}_isElementDescribedByMessage(e,i){const o=Qp(e,"aria-describedby"),r=this._messageRegistry.get(i),a=r&&r.messageElement.id;return!!a&&-1!=o.indexOf(a)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const o=null==i?"":`${i}`.trim(),r=e.getAttribute("aria-label");return!(!o||r&&r.trim()===o)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(i){return new(i||t)(X(ut),X(ci))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function m0(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function dE(t,n){t.id||(t.id=`${lE}-${n}-${h0++}`)}class uE{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new qe,this._typeaheadSubscription=de.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new qe,this.change=new qe,n instanceof oa&&(this._itemChangesSubscription=n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(qt(e=>this._pressedLetters.push(e)),Wp(n),kt(()=>this._pressedLetters.length>0),nt(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.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(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof oa?this._items.toArray():this._items}}class hE extends uE{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class Jp extends uE{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let Fu=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function BG(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function LG(t){try{return t.frameElement}catch{return null}}(function qG(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===pE(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=pE(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function $G(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function GG(t){return!function jG(t){return function HG(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function VG(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function zG(t){return function UG(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||mE(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static#e=this.\u0275fac=function(i){return new(i||t)(X(ci))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mE(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function pE(t){if(!mE(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class fE{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.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(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(Pt(1)).subscribe(n)}}let ef=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new fE(e,this._checker,this._ngZone,this._document,i)}static#e=this.\u0275fac=function(i){return new(i||t)(X(Fu),X(We),X(ut))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function p0(t){return 0===t.buttons||0===t.detail}function f0(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const WG=new se("cdk-input-modality-detector-options"),KG={ignoreKeys:[18,17,224,91,16]},Il=Ja({passive:!0,capture:!0});let ZG=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new pt(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=pa(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(p0(a)?"keyboard":"mouse"),this._mostRecentTarget=pa(a))},this._onTouchstart=a=>{f0(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=pa(a))},this._options={...KG,...r},this.modalityDetected=this._modality.pipe(l0(1)),this.modalityChanged=this.modalityDetected.pipe(Ru()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Il),o.addEventListener("mousedown",this._onMousedown,Il),o.addEventListener("touchstart",this._onTouchstart,Il)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Il),document.removeEventListener("mousedown",this._onMousedown,Il),document.removeEventListener("touchstart",this._onTouchstart,Il))}static#e=this.\u0275fac=function(i){return new(i||t)(X(ci),X(We),X(ut),X(WG,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const YG=new se("liveAnnouncerElement",{providedIn:"root",factory:function QG(){return null}}),XG=new se("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let JG=0,g0=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{constructor(e,i,o,r,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,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 qe,this._rootNodeFocusAndBlurListener=s=>{for(let u=pa(s);u;u=u.parentElement)"focus"===s.type?this._onFocus(s,u):this._onBlur(s,u)},this._document=r,this._detectionMode=a?.detectionMode||0}monitor(e,i=!1){const o=_a(e);if(!this._platform.isBrowser||1!==o.nodeType)return Ke();const r=function C$(t){if(function y$(){if(null==Zy){const t=typeof document<"u"?document.head:null;Zy=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Zy}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;const s={checkChildren:i,subject:new qe,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const i=_a(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=_a(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([s,c])=>this._originChanged(s,i,c)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=pa(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,tf),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,tf)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ot(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,tf),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,tf),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let a=0;a{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new Ne}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(zo))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();const _E="cdk-high-contrast-black-on-white",bE="cdk-high-contrast-white-on-black",_0="cdk-high-contrast-active";let vE=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=De(u0).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(_0,_E,bE),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(_0,_E):2===i&&e.add(_0,bE)}}static#e=this.\u0275fac=function(i){return new(i||t)(X(ci),X(ut))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),b0=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(i){return new(i||t)(X(vE))};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Zp]})}return t})();const iq=new se("cdk-dir-doc",{providedIn:"root",factory:function nq(){return De(ut)}}),oq=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let fn=(()=>{class t{constructor(e){this.value="ltr",this.change=new Ne,e&&(this.value=function rq(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?oq.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(i){return new(i||t)(X(iq,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Lu=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({})}return t})();const aq=["*",[["mat-option"],["ng-container"]]],sq=["*","mat-option, ng-container"],cq=["text"];function lq(t,n){if(1&t&&D(0,"mat-pseudo-checkbox",6),2&t){const e=C();f("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function dq(t,n){1&t&&D(0,"mat-pseudo-checkbox",7),2&t&&f("disabled",C().disabled)}function uq(t,n){if(1&t&&(d(0,"span",8),h(1),l()),2&t){const e=C();m(),xe("(",e.group.label,")")}}const hq=[[["mat-icon"]],"*"],mq=["mat-icon","*"],fq=new se("mat-sanity-checks",{providedIn:"root",factory:function pq(){return!0}});let Mt=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Yy()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static#e=this.\u0275fac=function(i){return new(i||t)(X(vE),X(fq,8),X(ut))};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Lu,Lu]})}return t})();function jr(t){return class extends t{get disabled(){return this._disabled}set disabled(n){this._disabled=$e(n)}constructor(...n){super(...n),this._disabled=!1}}}function is(t,n){return class extends t{get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}constructor(...e){super(...e),this.defaultColor=n,this.color=n}}}function ns(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=$e(n)}constructor(...n){super(...n),this._disableRipple=!1}}}function os(t,n=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?yi(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=n,this.defaultTabIndex=n}}}function v0(t){return class extends t{updateErrorState(){const n=this.errorState,r=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);r!==n&&(this.errorState=r,this.stateChanges.next())}constructor(...n){super(...n),this.errorState=!1}}}function gq(t){return class extends t{constructor(...n){super(...n),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new li(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(n){n.next(),n.complete()}}}let nf=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class bq{constructor(n,e,i,o=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const wE=Ja({passive:!0,capture:!0});class vq{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=pa(n);e&&this._events.get(n.type)?.forEach((i,o)=>{(o===e||o.contains(e))&&i.forEach(r=>r.handleEvent(n))})}}addHandler(n,e,i,o){const r=this._events.get(e);if(r){const a=r.get(i);a?a.add(o):r.set(i,new Set([o]))}else this._events.set(e,new Map([[i,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,wE)})}removeHandler(n,e,i){const o=this._events.get(n);if(!o)return;const r=o.get(e);r&&(r.delete(i),0===r.size&&o.delete(e),0===o.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,wE)))}}const xE={enterDuration:225,exitDuration:150},DE=Ja({passive:!0,capture:!0}),SE=["mousedown","touchstart"],kE=["mouseup","mouseleave","touchend","touchcancel"];class Vu{static#e=this._eventManager=new vq;constructor(n,e,i,o){this._target=n,this._ngZone=e,this._platform=o,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=_a(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r={...xE,...i.animation};i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const a=i.radius||function Cq(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),s=n-o.left,c=e-o.top,u=r.enterDuration,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=s-a+"px",p.style.top=c-a+"px",p.style.height=2*a+"px",p.style.width=2*a+"px",null!=i.color&&(p.style.backgroundColor=i.color),p.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(p);const g=window.getComputedStyle(p),w=g.transitionDuration,S="none"===g.transitionProperty||"0s"===w||"0s, 0s"===w||0===o.width&&0===o.height,T=new bq(this,p,i,S);p.style.transform="scale3d(1, 1, 1)",T.state=0,i.persistent||(this._mostRecentTransientRipple=T);let z=null;return!S&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ie=()=>this._finishRippleTransition(T),ae=()=>this._destroyRipple(T);p.addEventListener("transitionend",ie),p.addEventListener("transitioncancel",ae),z={onTransitionEnd:ie,onTransitionCancel:ae}}),this._activeRipples.set(T,z),(S||!u)&&this._finishRippleTransition(T),T}fadeOutRipple(n){if(2===n.state||3===n.state)return;const e=n.element,i={...xE,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=2,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=_a(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,SE.forEach(i=>{Vu._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{kE.forEach(e=>{this._triggerElement.addEventListener(e,this,DE)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){0===n.state?this._startFadeOutTransition(n):2===n.state&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=1,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=3,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=p0(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(SE.forEach(e=>Vu._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&kE.forEach(e=>n.removeEventListener(e,this,DE)))}}const El=new se("mat-ripple-global-options");let rs=(()=>{class t{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()}constructor(e,i,o,r,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Vu(this,i,e,o)}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:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We),_(ci),_(El,8),_(ui,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){2&i&&et("mat-ripple-unbounded",o.unbounded)},inputs:{color:[ge.None,"matRippleColor","color"],unbounded:[ge.None,"matRippleUnbounded","unbounded"],centered:[ge.None,"matRippleCentered","centered"],radius:[ge.None,"matRippleRadius","radius"],animation:[ge.None,"matRippleAnimation","animation"],disabled:[ge.None,"matRippleDisabled","disabled"],trigger:[ge.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return t})(),as=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Mt,Mt]})}return t})(),wq=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(i){return new(i||t)(_(ui,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){2&i&&et("mat-pseudo-checkbox-indeterminate","indeterminate"===o.state)("mat-pseudo-checkbox-checked","checked"===o.state)("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal","minimal"===o.appearance)("mat-pseudo-checkbox-full","full"===o.appearance)("_mat-animation-noopable","NoopAnimations"===o._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,o){},styles:['.mat-pseudo-checkbox{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-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return t})(),ME=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Mt]})}return t})();const rf=new se("MAT_OPTION_PARENT_COMPONENT"),xq=jr(class{});let Dq=0,Sq=(()=>{class t extends xq{constructor(e){super(),this._labelId="mat-optgroup-label-"+Dq++,this._inert=e?.inertGroups??!1}static#e=this.\u0275fac=function(i){return new(i||t)(_(rf,8))};static#t=this.\u0275dir=Q({type:t,inputs:{label:"label"},features:[ve]})}return t})();const af=new se("MatOptgroup");let TE=(()=>{class t extends Sq{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(i,o){2&i&&Xe("role",o._inert?null:"group")("aria-disabled",o._inert?null:o.disabled.toString())("aria-labelledby",o._inert?null:o._labelId)},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[Ye([{provide:af,useExisting:t}]),ve],ngContentSelectors:sq,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(i,o){1&i&&(Ut(aq),d(0,"span",0)(1,"span",1),h(2),Ze(3),l()(),Ze(4,1)),2&i&&(et("mdc-list-item--disabled",o.disabled),f("id",o._labelId),m(2),xe("",o.label," "))},styles:[".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color);font-family:var(--mat-optgroup-label-text-font);line-height:var(--mat-optgroup-label-text-line-height);font-size:var(--mat-optgroup-label-text-size);letter-spacing:var(--mat-optgroup-label-text-tracking);font-weight:var(--mat-optgroup-label-text-weight)}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;min-height:48px}.mat-mdc-optgroup-label:focus{outline:none}[dir=rtl] .mat-mdc-optgroup-label,.mat-mdc-optgroup-label[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"],encapsulation:2,changeDetection:0})}return t})(),kq=0;class IE{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let Mq=(()=>{class t{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=$e(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+kq++,this.onSelectionChange=new Ne,this._stateChanges=new qe}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!An(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new IE(this,e))}static#e=this.\u0275fac=function(i){Pr()};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&vt(cq,7),2&i){let r;Oe(r=Ae())&&(o._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}})}return t})(),Tn=(()=>{class t extends Mq{constructor(e,i,o,r){super(e,i,o,r)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Lt),_(rf,8),_(af,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){1&i&&A("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),2&i&&(ao("id",o.id),Xe("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),et("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},exportAs:["matOption"],features:[ve],ngContentSelectors:mq,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(i,o){1&i&&(Ut(hq),y(0,lq,1,2,"mat-pseudo-checkbox",0),Ze(1),d(2,"span",1,2),Ze(4,1),l(),y(5,dq,1,1,"mat-pseudo-checkbox",3)(6,uq,2,1,"span",4),D(7,"div",5)),2&i&&(f("ngIf",o.multiple),m(5),f("ngIf",!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator),m(),f("ngIf",o.group&&o.group._inert),m(),f("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[rs,It,wq],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})();function EE(t,n,e){if(e.length){let i=n.toArray(),o=e.toArray(),r=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}let sf=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[as,Vn,Mt,ME]})}return t})();const AE={capture:!0},PE=["focus","click","mouseenter","touchstart"],y0="mat-ripple-loader-uninitialized",C0="mat-ripple-loader-class-name",RE="mat-ripple-loader-centered",cf="mat-ripple-loader-disabled";let NE=(()=>{class t{constructor(){this._document=De(ut,{optional:!0}),this._animationMode=De(ui,{optional:!0}),this._globalRippleOptions=De(El,{optional:!0}),this._platform=De(ci),this._ngZone=De(We),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const o=e.target.closest(`[${y0}]`);o&&this._createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const e of PE)this._document?.addEventListener(e,this._onInteraction,AE)})}ngOnDestroy(){const e=this._hosts.keys();for(const i of e)this.destroyRipple(i);for(const i of PE)this._document?.removeEventListener(i,this._onInteraction,AE)}configureRipple(e,i){e.setAttribute(y0,""),(i.className||!e.hasAttribute(C0))&&e.setAttribute(C0,i.className||""),i.centered&&e.setAttribute(RE,""),i.disabled&&e.setAttribute(cf,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){const o=this._hosts.get(e);o?o.disabled=i:i?e.setAttribute(cf,""):e.removeAttribute(cf)}_createRipple(e){if(!this._document)return;const i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();const o=this._document.createElement("span");o.classList.add("mat-ripple",e.getAttribute(C0)),e.append(o);const r=new rs(new Be(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=e,r.centered=e.hasAttribute(RE),r.disabled=e.hasAttribute(cf),this.attachRipple(e,r),r}attachRipple(e,i){e.removeAttribute(y0),this._hosts.set(e,i)}destroyRipple(e){const i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Tq=["*",[["mat-toolbar-row"]]],Iq=["*","mat-toolbar-row"],Eq=is(class{constructor(t){this._elementRef=t}});let Oq=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),Aq=(()=>{class t extends Eq{constructor(e,i,o){super(e),this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ci),_(ut))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,o,r){if(1&i&>(r,Oq,5),2&i){let a;Oe(a=Ae())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(i,o){2&i&&et("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",0===o._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[ve],ngContentSelectors:Iq,decls:2,vars:0,template:function(i,o){1&i&&(Ut(Tq),Ze(0),Ze(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}return t})(),FE=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Mt,Mt]})}return t})();const LE=["mat-button",""],BE=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],VE=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],jE=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",Rq=["mat-icon-button",""],Nq=["*"],Fq=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],Lq=is(jr(ns(class{constructor(t){this._elementRef=t}})));let w0=(()=>{class t extends Lq{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=$e(e),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._updateRippleDisabled()}constructor(e,i,o,r){super(e),this._platform=i,this._ngZone=o,this._animationMode=r,this._focusMonitor=De(zo),this._rippleLoader=De(NE),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const a=e.nativeElement.classList;for(const s of Fq)this._hasHostAttributes(s.selector)&&s.mdcClasses.forEach(c=>{a.add(c)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_hasHostAttributes(...e){return e.some(i=>this._elementRef.nativeElement.hasAttribute(i))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(i){Pr()};static#t=this.\u0275dir=Q({type:t,features:[ve]})}return t})(),Vq=(()=>{class t extends w0{constructor(e,i,o,r){super(e,i,o,r),this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}static#e=this.\u0275fac=function(i){Pr()};static#t=this.\u0275dir=Q({type:t,features:[ve]})}return t})(),Yt=(()=>{class t extends w0{constructor(e,i,o,r){super(e,i,o,r)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ci),_(We),_(ui,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(i,o){2&i&&(Xe("disabled",o.disabled||null),et("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ve],attrs:LE,ngContentSelectors:VE,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){1&i&&(Ut(BE),D(0,"span",0),Ze(1),d(2,"span",1),Ze(3,1),l(),Ze(4,2),D(5,"span",2)(6,"span",3)),2&i&&et("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return t})(),zE=(()=>{class t extends Vq{constructor(e,i,o,r){super(e,i,o,r)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ci),_(We),_(ui,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:9,hostBindings:function(i,o){2&i&&(Xe("disabled",o.disabled||null)("tabindex",o.disabled?-1:o.tabIndex)("aria-disabled",o.disabled.toString()),et("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[ve],attrs:LE,ngContentSelectors:VE,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){1&i&&(Ut(BE),D(0,"span",0),Ze(1),d(2,"span",1),Ze(3,1),l(),Ze(4,2),D(5,"span",2)(6,"span",3)),2&i&&et("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',jE],encapsulation:2,changeDetection:0})}return t})(),ba=(()=>{class t extends w0{constructor(e,i,o,r){super(e,i,o,r),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ci),_(We),_(ui,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(i,o){2&i&&(Xe("disabled",o.disabled||null),et("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ve],attrs:Rq,ngContentSelectors:Nq,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){1&i&&(Ut(),D(0,"span",0),Ze(1),D(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',jE],encapsulation:2,changeDetection:0})}return t})(),lf=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Mt,as,Mt]})}return t})();function ju(t,n){const e=J(t)?t:()=>t,i=o=>o.error(e());return new li(n?o=>n.schedule(i,0,o):i)}function x0(...t){const n=LI(t),{args:e,keys:i}=nE(t),o=new li(r=>{const{length:a}=e;if(!a)return void r.complete();const s=new Array(a);let c=a,u=a;for(let p=0;p{g||(g=!0,u--),s[p]=b},()=>c--,void 0,()=>{(!c||!g)&&(u||r.next(i?oE(i,s):s),r.complete())}))}});return n?o.pipe(d0(n)):o}function Li(t){return $i((n,e)=>{let r,i=null,o=!1;i=n.subscribe(Fi(e,void 0,void 0,a=>{r=Yn(t(a,Li(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function ec(t){return $i((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function HE(t={}){const{connector:n=(()=>new qe),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,c,u=0,p=!1,g=!1;const b=()=>{s?.unsubscribe(),s=void 0},w=()=>{b(),a=c=void 0,p=g=!1},S=()=>{const T=a;w(),T?.unsubscribe()};return $i((T,z)=>{u++,!g&&!p&&b();const ie=c=c??n();z.add(()=>{u--,0===u&&!g&&!p&&(s=D0(S,o))}),ie.subscribe(z),!a&&u>0&&(a=new Ds({next:ae=>ie.next(ae),error:ae=>{g=!0,b(),s=D0(w,e,ae),ie.error(ae)},complete:()=>{p=!0,b(),s=D0(w,i),ie.complete()}}),Yn(T).subscribe(a))})(r)}}function D0(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new Ds({next:()=>{i.unsubscribe(),t()}});return Yn(n(...e)).subscribe(i)}function Ol(t,n){return J(n)?Pn(t,n,1):Pn(t,1)}function gn(t,n){return $i((e,i)=>{let o=null,r=0,a=!1;const s=()=>a&&!o&&i.complete();e.subscribe(Fi(i,c=>{o?.unsubscribe();let u=0;const p=r++;Yn(t(c,p)).subscribe(o=Fi(i,g=>i.next(n?n(c,g,p,u++):g),()=>{o=null,s()}))},()=>{a=!0,s()}))})}class df{}class uf{}class Jo{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Jo?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Jo;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Jo?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===r.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class zq{encodeKey(n){return UE(n)}encodeValue(n){return UE(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const Uq=/%(\d[a-f0-9])/gi,$q={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function UE(t){return encodeURIComponent(t).replace(Uq,(n,e)=>$q[e]??n)}function hf(t){return`${t}`}class ss{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new zq,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Hq(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[a,s]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],c=e.get(a)||[];c.push(s),e.set(a,c)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],o=Array.isArray(i)?i.map(hf):[hf(i)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new ss({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(hf(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(hf(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class Gq{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function $E(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function GE(t){return typeof Blob<"u"&&t instanceof Blob}function qE(t){return typeof FormData<"u"&&t instanceof FormData}class zu{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function qq(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new Jo,this.context??=new Gq,this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":sg.set(b,n.setHeaders[b]),c)),n.setParams&&(u=Object.keys(n.setParams).reduce((g,b)=>g.set(b,n.setParams[b]),u)),new zu(e,i,r,{params:u,headers:c,context:p,reportProgress:s,responseType:o,withCredentials:a})}}var cs=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(cs||{});class S0{constructor(n,e=Hu.Ok,i="OK"){this.headers=n.headers||new Jo,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class mf extends S0{constructor(n={}){super(n),this.type=cs.ResponseHeader}clone(n={}){return new mf({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class tc extends S0{constructor(n={}){super(n),this.type=cs.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new tc({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Al extends S0{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var Hu=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(Hu||{});function k0(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let pf=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof zu)r=e;else{let c,u;c=o.headers instanceof Jo?o.headers:new Jo(o.headers),o.params&&(u=o.params instanceof ss?o.params:new ss({fromObject:o.params})),r=new zu(e,i,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const a=Ke(r).pipe(Ol(c=>this.handler.handle(c)));if(e instanceof zu||"events"===o.observe)return a;const s=a.pipe(kt(c=>c instanceof tc));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(nt(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return s.pipe(nt(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return s.pipe(nt(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return s.pipe(nt(c=>c.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new ss).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,k0(o,i))}post(e,i,o={}){return this.request("POST",e,k0(o,i))}put(e,i,o={}){return this.request("PUT",e,k0(o,i))}static#e=this.\u0275fac=function(i){return new(i||t)(X(df))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();function KE(t,n){return n(t)}function Xq(t,n){return(e,i)=>n.intercept(e,{handle:o=>t(o,i)})}const ZE=new se(""),Uu=new se(""),YE=new se(""),QE=new se("");function eW(){let t=null;return(n,e)=>{null===t&&(t=(De(ZE,{optional:!0})??[]).reduceRight(Xq,KE));const i=De(Vs),o=i.add();return t(n,e).pipe(ec(()=>i.remove(o)))}}let XE=(()=>{class t extends df{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=De(Vs);const o=De(QE,{optional:!0});this.backend=o??e}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Uu),...this.injector.get(YE,[])]));this.chain=o.reduceRight((r,a)=>function Jq(t,n,e){return(i,o)=>Ha(e,()=>n(i,r=>t(r,o)))}(r,a,this.injector),KE)}const i=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(ec(()=>this.pendingTasks.remove(i)))}static#e=this.\u0275fac=function(i){return new(i||t)(X(uf),X(Ao))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();const rW=/^\)\]\}',?\n/;let eO=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new ue(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?Xi(i.\u0275loadImpl()):Ke(null)).pipe(gn(()=>new li(r=>{const a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((T,z)=>a.setRequestHeader(T,z.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const T=e.detectContentTypeHeader();null!==T&&a.setRequestHeader("Content-Type",T)}if(e.responseType){const T=e.responseType.toLowerCase();a.responseType="json"!==T?T:"text"}const s=e.serializeBody();let c=null;const u=()=>{if(null!==c)return c;const T=a.statusText||"OK",z=new Jo(a.getAllResponseHeaders()),ie=function aW(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(a)||e.url;return c=new mf({headers:z,status:a.status,statusText:T,url:ie}),c},p=()=>{let{headers:T,status:z,statusText:ie,url:ae}=u(),Ue=null;z!==Hu.NoContent&&(Ue=typeof a.response>"u"?a.responseText:a.response),0===z&&(z=Ue?Hu.Ok:0);let tt=z>=200&&z<300;if("json"===e.responseType&&"string"==typeof Ue){const ft=Ue;Ue=Ue.replace(rW,"");try{Ue=""!==Ue?JSON.parse(Ue):null}catch(zt){Ue=ft,tt&&(tt=!1,Ue={error:zt,text:Ue})}}tt?(r.next(new tc({body:Ue,headers:T,status:z,statusText:ie,url:ae||void 0})),r.complete()):r.error(new Al({error:Ue,headers:T,status:z,statusText:ie,url:ae||void 0}))},g=T=>{const{url:z}=u(),ie=new Al({error:T,status:a.status||0,statusText:a.statusText||"Unknown Error",url:z||void 0});r.error(ie)};let b=!1;const w=T=>{b||(r.next(u()),b=!0);let z={type:cs.DownloadProgress,loaded:T.loaded};T.lengthComputable&&(z.total=T.total),"text"===e.responseType&&a.responseText&&(z.partialText=a.responseText),r.next(z)},S=T=>{let z={type:cs.UploadProgress,loaded:T.loaded};T.lengthComputable&&(z.total=T.total),r.next(z)};return a.addEventListener("load",p),a.addEventListener("error",g),a.addEventListener("timeout",g),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",w),null!==s&&a.upload&&a.upload.addEventListener("progress",S)),a.send(s),r.next({type:cs.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",p),a.removeEventListener("timeout",g),e.reportProgress&&(a.removeEventListener("progress",w),null!==s&&a.upload&&a.upload.removeEventListener("progress",S)),a.readyState!==a.DONE&&a.abort()}})))}static#e=this.\u0275fac=function(i){return new(i||t)(X(I2))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();const I0=new se(""),tO=new se("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),iO=new se("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class nO{}let lW=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,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=f2(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(i){return new(i||t)(X(ut),X(ra),X(tO))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();function dW(t,n){const e=t.url.toLowerCase();if(!De(I0)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=De(nO).getToken(),o=De(iO);return null!=i&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),n(t)}var ls=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(ls||{});function uW(...t){const n=[pf,eO,XE,{provide:df,useExisting:XE},{provide:uf,useExisting:eO},{provide:Uu,useValue:dW,multi:!0},{provide:I0,useValue:!0},{provide:nO,useClass:lW}];for(const e of t)n.push(...e.\u0275providers);return function Qh(t){return{\u0275providers:t}}(n)}const oO=new se("");function hW(){return function ic(t,n){return{\u0275kind:t,\u0275providers:n}}(ls.LegacyInterceptors,[{provide:oO,useFactory:eW},{provide:Uu,useExisting:oO,multi:!0}])}let mW=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({providers:[uW(hW())]})}return t})();const vW=["*"];let gf;function $u(t){return function yW(){if(void 0===gf&&(gf=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(gf=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return gf}()?.createHTML(t)||t}function uO(t){return Error(`Unable to find icon with the name "${t}"`)}function hO(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function mO(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class nc{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}}let _f=(()=>{class t{constructor(e,i,o,r){this._httpClient=e,this._sanitizer=i,this._errorHandler=r,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","mat-ligature-font"],this._document=o}addSvgIcon(e,i,o){return this.addSvgIconInNamespace("",e,i,o)}addSvgIconLiteral(e,i,o){return this.addSvgIconLiteralInNamespace("",e,i,o)}addSvgIconInNamespace(e,i,o,r){return this._addSvgIconConfig(e,i,new nc(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,o,r){const a=this._sanitizer.sanitize(Bn.HTML,o);if(!a)throw mO(o);const s=$u(a);return this._addSvgIconConfig(e,i,new nc("",s,r))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,o){return this._addSvgIconSetConfig(e,new nc(i,null,o))}addSvgIconSetLiteralInNamespace(e,i,o){const r=this._sanitizer.sanitize(Bn.HTML,i);if(!r)throw mO(i);const a=$u(r);return this._addSvgIconSetConfig(e,new nc("",a,o))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(Bn.RESOURCE_URL,e);if(!i)throw hO(e);const o=this._cachedIconsByUrl.get(i);return o?Ke(bf(o)):this._loadSvgIconFromConfig(new nc(e,null)).pipe(qt(r=>this._cachedIconsByUrl.set(i,r)),nt(r=>bf(r)))}getNamedSvgIcon(e,i=""){const o=pO(i,e);let r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(i,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);const a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):ju(uO(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Ke(bf(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(nt(i=>bf(i)))}_getSvgFromIconSetConfigs(e,i){const o=this._extractIconWithNameFromAnySet(e,i);return o?Ke(o):x0(i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Li(s=>{const u=`Loading icon set URL: ${this._sanitizer.sanitize(Bn.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),Ke(null)})))).pipe(nt(()=>{const a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw uO(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let o=i.length-1;o>=0;o--){const r=i[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(qt(i=>e.svgText=i),nt(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Ke(null):this._fetchIcon(e).pipe(qt(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,o){const r=e.querySelector(`[id="${i}"]`);if(!r)return null;const a=r.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,o);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),o);const s=this._svgElementFromString($u(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const o=i.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const i=this._svgElementFromString($u("")),o=e.attributes;for(let r=0;r$u(u)),ec(()=>this._inProgressUrlFetches.delete(a)),HE());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,o){return this._svgIconConfigs.set(pO(e,i),o),this}_addSvgIconSetConfig(e,i){const o=this._iconSetConfigs.get(e);return o?o.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let o=0;on?n.pathname+n.search:""}}}),fO=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],TW=fO.map(t=>`[${t}]`).join(", "),IW=/^url\(['"]?#(.*?)['"]?\)$/;let Mi=(()=>{class t extends DW{get inline(){return this._inline}set inline(e){this._inline=$e(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,o,r,a,s){super(e),this._iconRegistry=i,this._location=r,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=de.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const o=e.childNodes[i];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),i.forEach(o=>e.classList.add(o)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(TW),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{const s=i[r],c=s.getAttribute(a),u=c?c.match(IW):null;if(u){let p=o.get(s);p||(p=[],o.set(s,p)),p.push({name:a,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,o]=this._splitIconName(e);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(Pt(1)).subscribe(r=>this._setSvgElement(r),r=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${o}! ${r.message}`))})}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(_f),oo("aria-hidden"),_(kW),_(Go),_(SW,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(i,o){2&i&&(Xe("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),et("mat-icon-inline",o.inline)("mat-icon-no-color","primary"!==o.color&&"accent"!==o.color&&"warn"!==o.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[ve],ngContentSelectors:vW,decls:1,vars:0,template:function(i,o){1&i&&(Ut(),Ze(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0})}return t})(),gO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Mt,Mt]})}return t})();const EW=["*"],PW=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],RW=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],NW=new se("MAT_CARD_CONFIG");let Gu=(()=>{class t{constructor(e){this.appearance=e?.appearance||"raised"}static#e=this.\u0275fac=function(i){return new(i||t)(_(NW,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,o){2&i&&et("mat-mdc-card-outlined","outlined"===o.appearance)("mdc-card--outlined","outlined"===o.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:EW,decls:1,vars:0,template:function(i,o){1&i&&(Ut(),Ze(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation);--mdc-elevated-card-container-shape:4px;--mdc-outlined-card-container-shape:4px;--mdc-outlined-card-outline-width:1px}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}return t})(),E0=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})(),O0=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})(),_O=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:RW,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,o){1&i&&(Ut(PW),Ze(0),d(1,"div",0),Ze(2,1),l(),Ze(3,2))},encapsulation:2,changeDetection:0})}return t})(),bO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Mt,Vn,Mt]})}return t})();const VW=new se("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),zW=is(class{constructor(t){this._elementRef=t}},"primary");let vO=(()=>{class t extends zW{constructor(e,i,o,r,a){super(e),this._ngZone=i,this._changeDetectorRef=o,this._animationMode=r,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new Ne,this._mode="determinate",this._transitionendHandler=s=>{0===this.animationEnd.observers.length||!s.target||!s.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===r,a&&(a.color&&(this.color=this.defaultColor=a.color),this.mode=a.mode||this.mode)}get value(){return this._value}set value(e){this._value=yO(yi(e)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=yO(yi(e)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We),_(Lt),_(ui,8),_(VW,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(i,o){2&i&&(Xe("aria-valuenow",o._isIndeterminate()?null:o.value)("mode",o.mode),et("_mat-animation-noopable",o._isNoopAnimation)("mdc-linear-progress--animation-ready",!o._isNoopAnimation)("mdc-linear-progress--indeterminate",o._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[ve],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(i,o){1&i&&(d(0,"div",0),D(1,"div",1)(2,"div",2),l(),d(3,"div",3),D(4,"span",4),l(),d(5,"div",5),D(6,"span",4),l()),2&i&&(m(),Sn("flex-basis",o._getBufferBarFlexBasis()),m(2),Sn("transform",o._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill=''/%3E%3C/svg%3E\")}}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{display:block;text-align:left;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}[dir=rtl] .mat-mdc-progress-bar{text-align:right}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0})}return t})();function yO(t,n=0,e=100){return Math.max(n,Math.min(e,t))}let CO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Mt]})}return t})();function Ri(...t){const n=Eu(t),e=function w$(t,n){return"number"==typeof Qy(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?Yn(i[0]):Ml(e)(Xi(i,n)):jo}let wO=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=$e(e)}get inset(){return this._inset}set inset(e){this._inset=$e(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,o){2&i&&(Xe("aria-orientation",o.vertical?"vertical":"horizontal"),et("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,o){},styles:[".mat-divider{--mat-divider-width:1px;display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}return t})(),A0=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Mt,Mt]})}return t})();function P0(){return $i((t,n)=>{let e=null;t._refCount++;const i=Fi(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class R0 extends li{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Ow(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new de;const e=this.getSubject();n.add(this.source.subscribe(Fi(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=de.EMPTY)}return n}refCount(){return P0()(this)}}function Pl(t){return!!t&&(t instanceof li||J(t.lift)&&J(t.subscribe))}class vf{}function yf(t){return t&&"function"==typeof t.connect&&!(t instanceof R0)}class xO{applyChanges(n,e,i,o,r){n.forEachOperation((a,s,c)=>{let u,p;if(null==a.previousIndex){const g=i(a,s,c);u=e.createEmbeddedView(g.templateRef,g.context,g.index),p=1}else null==c?(e.remove(s),p=3):(u=e.get(s),e.move(u,c),p=2);r&&r({context:u?.context,operation:p,record:a})})}detach(){}}class qu{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(n=!1,e,i=!0,o){this._multiple=n,this._emitChanges=i,this.compareWith=o,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new qe,e&&e.length&&(n?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);const e=this.selected,i=new Set(n);n.forEach(r=>this._markSelected(r)),e.filter(r=>!i.has(r)).forEach(r=>this._unmarkSelected(r));const o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();const e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}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(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(n){if(this.compareWith){for(let e of this._selection)if(this.compareWith(n,e))return e;return n}return n}}let N0=(()=>{class t{constructor(){this._listeners=[]}notify(e,i){for(let o of this._listeners)o(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Wu=new se("_ViewRepeater");let SO=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(ca),_(Be))};static#t=this.\u0275dir=Q({type:t})}return t})(),oc=(()=>{class t extends SO{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,features:[ve]})}return t})();const uo=new se(""),UW={provide:uo,useExisting:Qt(()=>Ci),multi:!0},GW=new se("");let Ci=(()=>{class t extends SO{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function $W(){const t=Qa()?Qa().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",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)}static#e=this.\u0275fac=function(i){return new(i||t)(_(ca),_(Be),_(GW,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){1&i&&A("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Ye([UW]),ve]})}return t})();function ds(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function MO(t){return null!=t&&"number"==typeof t.length}const jn=new se(""),us=new se(""),qW=/^(?=.{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 ee{static min(n){return function TO(t){return n=>{if(ds(n.value)||ds(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(ds(n.value)||ds(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return EO(n)}static requiredTrue(n){return function OO(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function AO(t){return ds(t.value)||qW.test(t.value)?null:{email:!0}}(n)}static minLength(n){return PO(n)}static maxLength(n){return RO(n)}static pattern(n){return NO(n)}static nullValidator(n){return null}static compose(n){return zO(n)}static composeAsync(n){return HO(n)}}function EO(t){return ds(t.value)?{required:!0}:null}function PO(t){return n=>ds(n.value)||!MO(n.value)?null:n.value.lengthMO(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}function NO(t){if(!t)return Cf;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(ds(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function Cf(t){return null}function FO(t){return null!=t}function LO(t){return pu(t)?Xi(t):t}function BO(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function VO(t,n){return n.map(e=>e(t))}function jO(t){return t.map(n=>function WW(t){return!t.validate}(n)?n:e=>n.validate(e))}function zO(t){if(!t)return null;const n=t.filter(FO);return 0==n.length?null:function(e){return BO(VO(e,n))}}function F0(t){return null!=t?zO(jO(t)):null}function HO(t){if(!t)return null;const n=t.filter(FO);return 0==n.length?null:function(e){return x0(VO(e,n).map(LO)).pipe(nt(BO))}}function L0(t){return null!=t?HO(jO(t)):null}function UO(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function $O(t){return t._rawValidators}function GO(t){return t._rawAsyncValidators}function B0(t){return t?Array.isArray(t)?t:[t]:[]}function wf(t,n){return Array.isArray(t)?t.includes(n):t===n}function qO(t,n){const e=B0(n);return B0(t).forEach(o=>{wf(e,o)||e.push(o)}),e}function WO(t,n){return B0(n).filter(e=>!wf(t,e))}class KO{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(n){this._rawValidators=n||[],this._composedValidatorFn=F0(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=L0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class ho extends KO{get formDirective(){return null}get path(){return null}}class xr extends KO{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ZO{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let _i=(()=>{class t extends ZO{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(xr,2))};static#t=this.\u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){2&i&&et("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ve]})}return t})(),Bi=(()=>{class t extends ZO{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(ho,10))};static#t=this.\u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){2&i&&et("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ve]})}return t})();const Ku="VALID",Df="INVALID",Rl="PENDING",Zu="DISABLED";function z0(t){return(Sf(t)?t.validators:t)||null}function H0(t,n){return(Sf(n)?n.asyncValidators:t)||null}function Sf(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function QO(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new ue(1e3,"");if(!i[e])throw new ue(1001,"")}function XO(t,n,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new ue(1002,"")})}class kf{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Ku}get invalid(){return this.status===Df}get pending(){return this.status==Rl}get disabled(){return this.status===Zu}get enabled(){return this.status!==Zu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(qO(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(qO(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(WO(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(WO(n,this._rawAsyncValidators))}hasValidator(n){return wf(this._rawValidators,n)}hasAsyncValidator(n){return wf(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Rl,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Zu,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Ku,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ku||this.status===Rl)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Zu:Ku}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Rl,this._hasOwnPendingAsyncValidator=!0;const e=LO(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Ne,this.statusChanges=new Ne}_calculateStatus(){return this._allControlsDisabled()?Zu:this.errors?Df:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Rl)?Rl:this._anyControlsHaveStatus(Df)?Df:Ku}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Sf(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function QW(t){return Array.isArray(t)?F0(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function XW(t){return Array.isArray(t)?L0(t):t||null}(this._rawAsyncValidators)}}class ti extends kf{constructor(n,e,i){super(z0(e),H0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){XO(this,0,n),Object.keys(n).forEach(i=>{QO(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n?n[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class JO extends ti{}const rc=new se("CallSetDisabledState",{providedIn:"root",factory:()=>Yu}),Yu="always";function Mf(t,n){return[...n.path,t]}function Qu(t,n,e=Yu){U0(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function eK(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&eA(t,n)})}(t,n),function iK(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function tK(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&eA(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function JW(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Tf(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),Ef(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function If(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function U0(t,n){const e=$O(t);null!==n.validator?t.setValidators(UO(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=GO(t);null!==n.asyncValidator?t.setAsyncValidators(UO(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();If(n._rawValidators,o),If(n._rawAsyncValidators,o)}function Ef(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=$O(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=GO(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return If(n._rawValidators,i),If(n._rawAsyncValidators,i),e}function eA(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function tA(t,n){U0(t,n)}function G0(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function iA(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function q0(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===Ci?e=r:function rK(t){return Object.getPrototypeOf(t.constructor)===oc}(r)?i=r:o=r}),o||i||e||null}const sK={provide:ho,useExisting:Qt(()=>hs)},Xu=Promise.resolve();let hs=(()=>{class t extends ho{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ne,this.form=new ti({},F0(e),L0(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Xu.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Qu(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Xu.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Xu.then(()=>{const i=this._findContainer(e.path),o=new ti({});tA(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Xu.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Xu.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,iA(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){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}static#e=this.\u0275fac=function(i){return new(i||t)(_(jn,10),_(us,10),_(rc,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){1&i&&A("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[ge.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ye([sK]),ve]})}return t})();function nA(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function oA(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const U=class extends kf{constructor(n=null,e,i){super(z0(e),H0(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Sf(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=oA(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){nA(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){nA(this._onDisabledChange,n)}_forEachChild(n){}_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(n){oA(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let rA=(()=>{class t extends ho{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Mf(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,features:[ve]})}return t})();const dK={provide:xr,useExisting:Qt(()=>Nl)},sA=Promise.resolve();let Nl=(()=>{class t extends xr{constructor(e,i,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new U,this._registered=!1,this.name="",this.update=new Ne,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=q0(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),G0(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(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(){Qu(this.control,this,this.callSetDisabledState),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){sA.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&Cl(i);sA.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Mf(e,this._parent):[e]}static#e=this.\u0275fac=function(i){return new(i||t)(_(ho,9),_(jn,10),_(us,10),_(uo,10),_(Lt,8),_(rc,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[ge.None,"disabled","isDisabled"],model:[ge.None,"ngModel","model"],options:[ge.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ye([dK]),ve,fi]})}return t})(),_n=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return t})();const uK={provide:uo,useExisting:Qt(()=>W0),multi:!0};let W0=(()=>{class t extends oc{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,o){1&i&&A("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[Ye([uK]),ve]})}return t})();const K0=new se(""),fK={provide:xr,useExisting:Qt(()=>Fl)};let Fl=(()=>{class t extends xr{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this.update=new Ne,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=q0(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&Tf(i,this,!1),Qu(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}G0(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Tf(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static#t=this.\u0275fac=function(i){return new(i||t)(_(jn,10),_(us,10),_(uo,10),_(K0,8),_(rc,8))};static#i=this.\u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:[ge.None,"formControl","form"],isDisabled:[ge.None,"disabled","isDisabled"],model:[ge.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ye([fK]),ve,fi]})}return t})();const gK={provide:ho,useExisting:Qt(()=>wi)};let wi=(()=>{class t extends ho{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ne,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ef(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Qu(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Tf(e.control||null,e,!1),function aK(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,iA(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(Tf(i||null,e),(t=>t instanceof U)(o)&&(Qu(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);tA(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function nK(t,n){return Ef(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){U0(this.form,this),this._oldForm&&Ef(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(jn,10),_(us,10),_(rc,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){1&i&&A("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[ge.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ye([gK]),ve,fi]})}return t})();const _K={provide:ho,useExisting:Qt(()=>Ju)};let Ju=(()=>{class t extends rA{constructor(e,i,o){super(),this.name=null,this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){dA(this._parent)}static#e=this.\u0275fac=function(i){return new(i||t)(_(ho,13),_(jn,10),_(us,10))};static#t=this.\u0275dir=Q({type:t,selectors:[["","formGroupName",""]],inputs:{name:[ge.None,"formGroupName","name"]},features:[Ye([_K]),ve]})}return t})();const bK={provide:ho,useExisting:Qt(()=>eh)};let eh=(()=>{class t extends ho{constructor(e,i,o){super(),this.name=null,this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Mf(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){dA(this._parent)}static#e=this.\u0275fac=function(i){return new(i||t)(_(ho,13),_(jn,10),_(us,10))};static#t=this.\u0275dir=Q({type:t,selectors:[["","formArrayName",""]],inputs:{name:[ge.None,"formArrayName","name"]},features:[Ye([bK]),ve]})}return t})();function dA(t){return!(t instanceof Ju||t instanceof wi||t instanceof eh)}const vK={provide:xr,useExisting:Qt(()=>zi)};let zi=(()=>{class t extends xr{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new Ne,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=q0(0,r)}ngOnChanges(e){this._added||this._setUpControl(),G0(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Mf(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(i){return new(i||t)(_(ho,13),_(jn,10),_(us,10),_(uo,10),_(K0,8))};static#i=this.\u0275dir=Q({type:t,selectors:[["","formControlName",""]],inputs:{name:[ge.None,"formControlName","name"],isDisabled:[ge.None,"disabled","isDisabled"],model:[ge.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ye([vK]),ve,fi]})}return t})();function mA(t){return"number"==typeof t?t:parseInt(t,10)}let ac=(()=>{class t{constructor(){this._validator=Cf}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Cf,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,features:[fi]})}return t})();const TK={provide:jn,useExisting:Qt(()=>Do),multi:!0};let Do=(()=>{class t extends ac{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Cl,this.createValidator=e=>EO}enabled(e){return e}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){2&i&&Xe("required",o._enabled?"":null)},inputs:{required:"required"},features:[Ye([TK]),ve]})}return t})();const OK={provide:jn,useExisting:Qt(()=>X0),multi:!0};let X0=(()=>{class t extends ac{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>mA(e),this.createValidator=e=>PO(e)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&Xe("minlength",o._enabled?o.minlength:null)},inputs:{minlength:"minlength"},features:[Ye([OK]),ve]})}return t})();const AK={provide:jn,useExisting:Qt(()=>J0),multi:!0};let J0=(()=>{class t extends ac{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>mA(e),this.createValidator=e=>RO(e)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&Xe("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ye([AK]),ve]})}return t})();const PK={provide:jn,useExisting:Qt(()=>eC),multi:!0};let eC=(()=>{class t extends ac{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>NO(e)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&Xe("pattern",o._enabled?o.pattern:null)},inputs:{pattern:"pattern"},features:[Ye([PK]),ve]})}return t})(),bA=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({})}return t})();class vA extends kf{constructor(n,e,i){super(z0(e),H0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){XO(this,0,n),n.forEach((i,o)=>{QO(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function yA(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let Dr=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const o=this._reduceControls(e);let r={};return yA(i)?r=i:null!==i&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new ti(o,r)}record(e,i=null){const o=this._reduceControls(e);return new JO(o,i)}control(e,i,o){let r={};return this.useNonNullable?(yA(i)?r=i:(r.validators=i,r.asyncValidators=o),new U(e,{...r,nonNullable:!0})):new U(e,i,o)}array(e,i,o){const r=e.map(a=>this._createControl(a));return new vA(r,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return e instanceof U||e instanceof kf?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),RK=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:rc,useValue:e.callSetDisabledState??Yu}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[bA]})}return t})(),CA=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:K0,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:rc,useValue:e.callSetDisabledState??Yu}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[bA]})}return t})(),kA=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Zp,Vn,Mt,as,ME,A0]})}return t})();class dZ extends qe{constructor(n=1/0,e=1/0,i=s0){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:i,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(i.push(n),!o&&i.push(r.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:o}=this,r=o.slice();for(let a=0;athis._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new li(e=>{const i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(kt(e=>e.some(i=>i.target===n)),function uZ(t,n,e){let i,o=!1;return t&&"object"==typeof t?({bufferSize:i=1/0,windowTime:n=1/0,refCount:o=!1,scheduler:e}=t):i=t??1/0,HE({connector:()=>new dZ(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}({bufferSize:1,refCount:!0}),ot(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let mZ=(()=>{class t{constructor(){this._observers=new Map,this._ngZone=De(We)}ngOnDestroy(){for(const[,e]of this._observers)e.destroy();this._observers.clear()}observe(e,i){const o=i?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new hZ(o)),this._observers.get(o).observe(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const pZ=["notch"],fZ=["matFormFieldNotchedOutline",""],gZ=["*"],_Z=["textField"],bZ=["iconPrefixContainer"],vZ=["textPrefixContainer"];function yZ(t,n){1&t&&D(0,"span",19)}function CZ(t,n){if(1&t&&(d(0,"label",17),Ze(1,1),y(2,yZ,1,0,"span",18),l()),2&t){const e=C(2);f("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),Xe("for",e._control.id),m(2),f("ngIf",!e.hideRequiredMarker&&e._control.required)}}function wZ(t,n){1&t&&y(0,CZ,3,5,"label",16),2&t&&f("ngIf",C()._hasFloatingLabel())}function xZ(t,n){1&t&&D(0,"div",20)}function DZ(t,n){}function SZ(t,n){1&t&&y(0,DZ,0,0,"ng-template",22),2&t&&(C(2),f("ngTemplateOutlet",Ft(1)))}function kZ(t,n){if(1&t&&(d(0,"div",21),y(1,SZ,1,1,"ng-template",9),l()),2&t){const e=C();f("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),m(),f("ngIf",!e._forceDisplayInfixLabel())}}function MZ(t,n){1&t&&(d(0,"div",23,24),Ze(2,2),l())}function TZ(t,n){1&t&&(d(0,"div",25,26),Ze(2,3),l())}function IZ(t,n){}function EZ(t,n){1&t&&y(0,IZ,0,0,"ng-template",22),2&t&&(C(),f("ngTemplateOutlet",Ft(1)))}function OZ(t,n){1&t&&(d(0,"div",27),Ze(1,4),l())}function AZ(t,n){1&t&&(d(0,"div",28),Ze(1,5),l())}function PZ(t,n){1&t&&D(0,"div",29)}function RZ(t,n){1&t&&(d(0,"div",30),Ze(1,6),l()),2&t&&f("@transitionMessages",C()._subscriptAnimationState)}function NZ(t,n){if(1&t&&(d(0,"mat-hint",34),h(1),l()),2&t){const e=C(2);f("id",e._hintLabelId),m(),Pe(e.hintLabel)}}function FZ(t,n){if(1&t&&(d(0,"div",31),y(1,NZ,2,2,"mat-hint",32),Ze(2,7),D(3,"div",33),Ze(4,8),l()),2&t){const e=C();f("@transitionMessages",e._subscriptAnimationState),m(),f("ngIf",e.hintLabel)}}const LZ=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],BZ=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let xi=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-label"]]})}return t})(),VZ=0;const MA=new se("MatError");let iC=(()=>{class t{constructor(e,i){this.id="mat-mdc-error-"+VZ++,e||i.nativeElement.setAttribute("aria-live","polite")}static#e=this.\u0275fac=function(i){return new(i||t)(oo("aria-live"),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,o){2&i&&ao("id",o.id)},inputs:{id:"id"},features:[Ye([{provide:MA,useExisting:t}])]})}return t})(),jZ=0,sc=(()=>{class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+jZ++}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,o){2&i&&(ao("id",o.id),Xe("align",null),et("mat-mdc-form-field-hint-end","end"===o.align))},inputs:{align:"align",id:"id"}})}return t})();const zZ=new se("MatPrefix"),TA=new se("MatSuffix");let nC=(()=>{class t{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[ge.None,"matTextSuffix","_isTextSelector"]},features:[Ye([{provide:TA,useExisting:t}])]})}return t})();const IA=new se("FloatingLabelParent");let EA=(()=>{class t{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=De(mZ),this._ngZone=De(We),this._parent=De(IA),this._resizeSubscription=new de}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function HZ(t){if(null!==t.offsetParent)return t.scrollWidth;const e=t.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);const i=e.scrollWidth;return e.remove(),i}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,o){2&i&&et("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();const OA="mdc-line-ripple--active",Of="mdc-line-ripple--deactivating";let AA=(()=>{class t{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=o=>{const r=this._elementRef.nativeElement.classList,a=r.contains(Of);"opacity"===o.propertyName&&a&&r.remove(OA,Of)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(Of),e.add(OA)}deactivate(){this._elementRef.nativeElement.classList.add(Of)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We))};static#t=this.\u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),PA=(()=>{class t{constructor(e,i){this._elementRef=e,this._ngZone=i,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){this._notch.nativeElement.style.width=this.open&&e?`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,o){if(1&i&&vt(pZ,5),2&i){let r;Oe(r=Ae())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,o){2&i&&et("mdc-notched-outline--notched",o.open)},inputs:{open:[ge.None,"matFormFieldNotchedOutlineOpen","open"]},attrs:fZ,ngContentSelectors:gZ,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(i,o){1&i&&(Ut(),D(0,"div",0),d(1,"div",1,2),Ze(3),l(),D(4,"div",3))},encapsulation:2,changeDetection:0})}return t})();const UZ={transitionMessages:Lo("transitionMessages",[mn("enter",Zt({opacity:1,transform:"translateY(0%)"})),Qi("void => enter",[Zt({opacity:0,transform:"translateY(-5px)"}),Yi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Af=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t})}return t})();const th=new se("MatFormField"),$Z=new se("MAT_FORM_FIELD_DEFAULT_OPTIONS");let RA=0,Di=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=$e(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,i,o,r,a,s,c,u){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=o,this._dir=r,this._platform=a,this._defaults=s,this._animationMode=c,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+RA++,this._hintLabelId="mat-mdc-hint-"+RA++,this._subscriptAnimationState="",this._destroyed=new qe,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,s&&(s.appearance&&(this.appearance=s.appearance),this._hideRequiredMarker=!!s?.hideRequiredMarker,s.color&&(this.color=s.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ot(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Ri(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ot(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(ot(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(r=>"start"===r.align):null,o=this._hintChildren?this._hintChildren.find(r=>"end"===r.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const e=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(e.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const i=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,r=i?.getBoundingClientRect().width??0,a=o?.getBoundingClientRect().width??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${r+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Lt),_(We),_(fn),_(ci),_($Z,8),_(ui,8),_(ut))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,o,r){if(1&i&&(gt(r,xi,5),gt(r,xi,7),gt(r,Af,5),gt(r,zZ,5),gt(r,TA,5),gt(r,MA,5),gt(r,sc,5)),2&i){let a;Oe(a=Ae())&&(o._labelChildNonStatic=a.first),Oe(a=Ae())&&(o._labelChildStatic=a.first),Oe(a=Ae())&&(o._formFieldControl=a.first),Oe(a=Ae())&&(o._prefixChildren=a),Oe(a=Ae())&&(o._suffixChildren=a),Oe(a=Ae())&&(o._errorChildren=a),Oe(a=Ae())&&(o._hintChildren=a)}},viewQuery:function(i,o){if(1&i&&(vt(_Z,5),vt(bZ,5),vt(vZ,5),vt(EA,5),vt(PA,5),vt(AA,5)),2&i){let r;Oe(r=Ae())&&(o._textField=r.first),Oe(r=Ae())&&(o._iconPrefixContainer=r.first),Oe(r=Ae())&&(o._textPrefixContainer=r.first),Oe(r=Ae())&&(o._floatingLabel=r.first),Oe(r=Ae())&&(o._notchedOutline=r.first),Oe(r=Ae())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,o){2&i&&et("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===o._animationMode)("mat-form-field-appearance-fill","fill"==o.appearance)("mat-form-field-appearance-outline","outline"==o.appearance)("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary","accent"!==o.color&&"warn"!==o.color)("mat-accent","accent"===o.color)("mat-warn","warn"===o.color)("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ye([{provide:th,useExisting:t},{provide:IA,useExisting:t}])],ngContentSelectors:BZ,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(i,o){1&i&&(Ut(LZ),y(0,wZ,1,1,"ng-template",null,0,br),d(2,"div",1,2),A("click",function(a){return o._control.onContainerClick(a)}),y(4,xZ,1,0,"div",3),d(5,"div",4),y(6,kZ,2,2,"div",5)(7,MZ,3,0,"div",6)(8,TZ,3,0,"div",7),d(9,"div",8),y(10,EZ,1,1,"ng-template",9),Ze(11),l(),y(12,OZ,2,0,"div",10)(13,AZ,2,0,"div",11),l(),y(14,PZ,1,0,"div",12),l(),d(15,"div",13),y(16,RZ,2,1,"div",14)(17,FZ,5,2,"div",15),l()),2&i&&(m(2),et("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),m(2),f("ngIf",!o._hasOutline()&&!o._control.disabled),m(2),f("ngIf",o._hasOutline()),m(),f("ngIf",o._hasIconPrefix),m(),f("ngIf",o._hasTextPrefix),m(2),f("ngIf",!o._hasOutline()||o._forceDisplayInfixLabel()),m(2),f("ngIf",o._hasTextSuffix),m(),f("ngIf",o._hasIconSuffix),m(),f("ngIf",!o._hasOutline()),m(),et("mat-mdc-form-field-subscript-dynamic-size","dynamic"===o.subscriptSizing),f("ngSwitch",o._getDisplayedMessages()),m(),f("ngSwitchCase","error"),m(),f("ngSwitchCase","hint"))},dependencies:[It,kp,xl,Sp,sc,EA,PA,AA],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[UZ.transitionMessages]},changeDetection:0})}return t})(),ih=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Mt,Vn,Zp,Mt]})}return t})();const WZ=["addListener","removeListener"],KZ=["addEventListener","removeEventListener"],ZZ=["on","off"];function er(t,n,e,i){if(J(e)&&(i=e,e=void 0),i)return er(t,n,e).pipe(d0(i));const[o,r]=function XZ(t){return J(t.addEventListener)&&J(t.removeEventListener)}(t)?KZ.map(a=>s=>t[a](n,s,e)):function YZ(t){return J(t.addListener)&&J(t.removeListener)}(t)?WZ.map(LA(t,n)):function QZ(t){return J(t.on)&&J(t.off)}(t)?ZZ.map(LA(t,n)):[];if(!o&&n0(t))return Pn(a=>er(a,n,e))(Yn(t));if(!o)throw new TypeError("Invalid event target");return new li(a=>{const s=(...c)=>a.next(1r(s)})}function LA(t,n){return e=>i=>t[e](n,i)}function Pf(t=0,n,e=_G){let i=-1;return null!=n&&(FI(n)?e=n:i=n),new li(o=>{let r=function eY(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=i?this.schedule(void 0,i):o.complete())},r)})}function oC(t,n=Pu){return function JZ(t){return $i((n,e)=>{let i=!1,o=null,r=null,a=!1;const s=()=>{if(r?.unsubscribe(),r=null,i){i=!1;const u=o;o=null,e.next(u)}a&&e.complete()},c=()=>{r=null,a&&e.complete()};n.subscribe(Fi(e,u=>{i=!0,o=u,r||Yn(t(u)).subscribe(r=Fi(e,s,c))},()=>{a=!0,(!i||!r||r.closed)&&e.complete()}))})}(()=>Pf(t,n))}const BA=Ja({passive:!0});let tY=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return jo;const i=_a(e),o=this._monitoredElements.get(i);if(o)return o.subject;const r=new qe,a="cdk-text-field-autofilled",s=c=>{"cdk-text-field-autofill-start"!==c.animationName||i.classList.contains(a)?"cdk-text-field-autofill-end"===c.animationName&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>r.next({target:c.target,isAutofilled:!1}))):(i.classList.add(a),this._ngZone.run(()=>r.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",s,BA),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:()=>{i.removeEventListener("animationstart",s,BA)}}),r}stopMonitoring(e){const i=_a(e),o=this._monitoredElements.get(i);o&&(o.unlisten(),o.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static#e=this.\u0275fac=function(i){return new(i||t)(X(ci),X(We))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),VA=(()=>{class t{get minRows(){return this._minRows}set minRows(e){this._minRows=yi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=yi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=$e(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(e,i,o,r){this._elementRef=e,this._platform=i,this._ngZone=o,this._destroyed=new qe,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=a=>{this._hasFocus="focus"===a.type},this._document=r,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{er(this._getWindow(),"resize").pipe(oC(16),ot(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,i=e.style.marginBottom||"",o=this._platform.FIREFOX,r=o&&this._hasFocus,a=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";r&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);const s=e.scrollHeight-4;return e.classList.remove(a),r&&(e.style.marginBottom=i),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const i=this._elementRef.nativeElement,o=i.value;if(!e&&this._minRows===this._previousMinRows&&o===this._previousValue)return;const r=this._measureScrollHeight(),a=Math.max(r,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=o,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:i,selectionEnd:o}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,o)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ci),_(We),_(ut,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,o){1&i&&A("input",function(){return o._noopInputHandler()})},inputs:{minRows:[ge.None,"cdkAutosizeMinRows","minRows"],maxRows:[ge.None,"cdkAutosizeMaxRows","maxRows"],enabled:[ge.None,"cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),iY=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({})}return t})();const nY=new se("MAT_INPUT_VALUE_ACCESSOR"),oY=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let rY=0;const aY=v0(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new qe}});let qi=(()=>{class t extends aY{get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(ee.required)??!1}set required(e){this._required=$e(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&RI().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=$e(e)}constructor(e,i,o,r,a,s,c,u,p,g){super(s,r,a,o),this._elementRef=e,this._platform=i,this._autofillMonitor=u,this._formField=g,this._uid="mat-input-"+rY++,this.focused=!1,this.stateChanges=new qe,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(S=>RI().has(S)),this._iOSKeyupListener=S=>{const T=S.target;!T.value&&0===T.selectionStart&&0===T.selectionEnd&&(T.setSelectionRange(1,1),T.setSelectionRange(0,0))};const b=this._elementRef.nativeElement,w=b.nodeName.toLowerCase();this._inputValueAccessor=c||b,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&p.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===w,this._isTextarea="textarea"===w,this._isInFormField=!!g,this._isNativeSelect&&(this.controlType=b.multiple?"mat-native-select-multiple":"mat-native-select")}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),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const e=this._getPlaceholder();if(e!==this._previousPlaceholder){const i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){oY.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ci),_(xr,10),_(hs,8),_(wi,8),_(nf),_(nY,10),_(tY),_(We),_(th,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(i,o){1&i&&A("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),2&i&&(ao("id",o.id)("disabled",o.disabled)("required",o.required),Xe("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),et("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[ge.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Ye([{provide:Af,useExisting:t}]),ve,fi]})}return t})(),jA=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Mt,ih,ih,iY,Mt]})}return t})();const nh={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=nh;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const o=n(r=>{e=void 0,t(r)});return new de(()=>e?.(o))},requestAnimationFrame(...t){const{delegate:n}=nh;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=nh;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};new class cY extends c0{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class sY extends a0{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=nh.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(nh.cancelAnimationFrame(e),n._scheduled=void 0)}});let rC,dY=1;const Rf={};function zA(t){return t in Rf&&(delete Rf[t],!0)}const uY={setImmediate(t){const n=dY++;return Rf[n]=!0,rC||(rC=Promise.resolve()),rC.then(()=>zA(n)&&t()),n},clearImmediate(t){zA(t)}},{setImmediate:hY,clearImmediate:mY}=uY,Nf={setImmediate(...t){const{delegate:n}=Nf;return(n?.setImmediate||hY)(...t)},clearImmediate(t){const{delegate:n}=Nf;return(n?.clearImmediate||mY)(t)},delegate:void 0},aC=new class fY extends c0{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class pY extends a0{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Nf.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(Nf.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}});let oh=(()=>{class t{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new qe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new li(i=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(oC(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ke()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(kt(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=_a(i),r=e.getElementRef().nativeElement;do{if(o==r)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>er(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(i){return new(i||t)(X(We),X(ci),X(ut,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rh=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=o,this.dir=r,this._destroyed=new qe,this._elementScrolled=new li(a=>this.ngZone.runOutsideAngular(()=>er(this.elementRef.nativeElement,"scroll").pipe(ot(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=o?e.end:e.start),null==e.right&&(e.right=o?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),o&&0!=Iu()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==Iu()?e.left=e.right:1==Iu()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;NI()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",o="right",r=this.elementRef.nativeElement;if("top"==e)return r.scrollTop;if("bottom"==e)return r.scrollHeight-r.clientHeight-r.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?o:i:"end"==e&&(e=a?i:o),a&&2==Iu()?e==i?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&1==Iu()?e==i?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==i?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(oh),_(We),_(fn,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return t})(),va=(()=>{class t{constructor(e,i,o){this._platform=e,this._change=new qe,this._changeListener=r=>{this._change.next(r)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(oC(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}}static#e=this.\u0275fac=function(i){return new(i||t)(X(ci),X(We),X(ut,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ms=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({})}return t})(),sC=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Lu,ms,Lu,ms]})}return t})();class cC{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class Ll extends cC{constructor(n,e,i,o,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=o,this.projectableNodes=r}}class ya extends cC{constructor(n,e,i,o){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=o}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class vY extends cC{constructor(n){super(),this.element=n instanceof Be?n.nativeElement:n}}class Ff{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof Ll?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof ya?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof vY?(this._attachedPortal=n,this.attachDomPortal(n)):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(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class yY extends Ff{constructor(n,e,i,o,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=o,this.attachDomPortal=a=>{const s=a.element,c=this._document.createComment("dom-portal");s.parentNode.insertBefore(c,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(s,c)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let o;return n.viewContainerRef?(o=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>o.destroy())):(o=i.create(n.injector||this._defaultInjector||ji.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=n,o}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(i);-1!==o&&e.remove(o)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let CY=(()=>{class t extends ya{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(vi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[ve]})}return t})(),Ca=(()=>{class t extends Ff{constructor(e,i,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Ne,this.attachDomPortal=r=>{const a=r.element,s=this._document.createComment("dom-portal");r.setAttachedHost(this),a.parentNode.insertBefore(s,a),this._getRootNode().appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(a,s)})},this._document=o}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._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(r,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ns),_(vi),_(ut))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[ge.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ve]})}return t})(),cc=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({})}return t})();const HA=NI();class wY{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=pn(-this._previousScrollPosition.left),n.style.top=pn(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,o=this._document.body.style,r=i.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),HA&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),HA&&(i.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class xY{constructor(n,e,i,o){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(kt(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class UA{enable(){}disable(){}attach(){}}function lC(t,n){return n.some(e=>t.bottome.bottom||t.righte.right)}function $A(t,n){return n.some(e=>t.tope.bottom||t.lefte.right)}class DY{constructor(n,e,i,o){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=o,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();lC(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let SY=(()=>{class t{constructor(e,i,o,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new UA,this.close=a=>new xY(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new wY(this._viewportRuler,this._document),this.reposition=a=>new DY(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=r}static#e=this.\u0275fac=function(i){return new(i||t)(X(oh),X(va),X(We),X(ut))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class Bl{constructor(n){if(this.scrollStrategy=new UA,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class kY{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}let GA=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(i){return new(i||t)(X(ut))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),MY=(()=>{class t extends GA{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=o=>{const r=this._attachedOverlays;for(let a=r.length-1;a>-1;a--)if(r[a]._keydownEvents.observers.length>0){const s=r[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(o)):s.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(i){return new(i||t)(X(ut),X(We,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),TY=(()=>{class t extends GA{constructor(e,i,o){super(e),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=pa(r)},this._clickListener=r=>{const a=pa(r),s="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let u=c.length-1;u>-1;u--){const p=c[u];if(p._outsidePointerEvents.observers.length<1||!p.hasAttached())continue;if(p.overlayElement.contains(a)||p.overlayElement.contains(s))break;const g=p._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>g.next(r)):g.next(r)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const 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}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(i){return new(i||t)(X(ut),X(ci),X(We,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Lf=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Yy()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;rthis._backdropClick.next(g),this._backdropTransitionendHandler=g=>{this._disposeBackdrop(g.target)},this._keydownEvents=new qe,this._outsidePointerEvents=new qe,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Pt(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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),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 n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=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),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,n&&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(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=pn(this._config.width),n.height=pn(this._config.height),n.minWidth=pn(this._config.minWidth),n.minHeight=pn(this._config.minHeight),n.maxWidth=pn(this._config.maxWidth),n.maxHeight=pn(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){const o=Kp(e||[]).filter(r=>!!r);o.length&&(i?n.classList.add(...o):n.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(ot(Ri(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()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const qA="cdk-overlay-connected-position-bounding-box",IY=/([A-Za-z%]+)$/;class EY{get positions(){return this._preferredPositions}constructor(n,e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new qe,this._resizeSubscription=de.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(qA),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,o=this._containerRect,r=[];let a;for(let s of this._preferredPositions){let c=this._getOriginPoint(n,o,s),u=this._getOverlayPoint(c,e,s),p=this._getOverlayFit(u,e,i,s);if(p.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(p,u,i)?r.push({position:s,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!a||a.overlayFit.visibleAreac&&(c=p,s=u)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&lc(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(qA),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let o,r;if("center"==i.originX)o=n.left+n.width/2;else{const a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;o="start"==i.originX?a:s}return e.left<0&&(o-=e.left),r="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(n,e,i){let o,r;return o="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+o,y:n.y+r}}_getOverlayFit(n,e,i,o){const r=KA(e);let{x:a,y:s}=n,c=this._getOffset(o,"x"),u=this._getOffset(o,"y");c&&(a+=c),u&&(s+=u);let b=0-s,w=s+r.height-i.height,S=this._subtractOverflows(r.width,0-a,a+r.width-i.width),T=this._subtractOverflows(r.height,b,w),z=S*T;return{visibleArea:z,isCompletelyWithinViewport:r.width*r.height===z,fitsInViewportVertically:T===r.height,fitsInViewportHorizontally:S==r.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const o=i.bottom-e.y,r=i.right-e.x,a=WA(this._overlayRef.getConfig().minHeight),s=WA(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=a&&a<=o)&&(n.fitsInViewportHorizontally||null!=s&&s<=r)}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const o=KA(e),r=this._viewportRect,a=Math.max(n.x+o.width-r.width,0),s=Math.max(n.y+o.height-r.height,0),c=Math.max(r.top-i.top-n.y,0),u=Math.max(r.left-i.left-n.x,0);let p=0,g=0;return p=o.width<=r.width?u||-a:n.xS&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-S/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)b=i.width-n.x+this._viewportMargin,p=n.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)g=n.x,p=i.right-n.x;else{const w=Math.min(i.right-n.x+i.left,n.x),S=this._lastBoundingBoxSize.width;p=2*w,g=n.x-w,p>S&&!this._isInitialRender&&!this._growAfterOpen&&(g=n.x-S/2)}return{top:a,left:g,bottom:s,right:b,width:p,height:r}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.height=pn(i.height),o.top=pn(i.top),o.bottom=pn(i.bottom),o.width=pn(i.width),o.left=pn(i.left),o.right=pn(i.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(o.maxHeight=pn(r)),a&&(o.maxWidth=pn(a))}this._lastBoundingBoxSize=i,lc(this._boundingBox.style,o)}_resetBoundingBoxStyles(){lc(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){lc(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){const p=this._viewportRuler.getViewportScrollPosition();lc(i,this._getExactOverlayY(e,n,p)),lc(i,this._getExactOverlayX(e,n,p))}else i.position="static";let s="",c=this._getOffset(e,"x"),u=this._getOffset(e,"y");c&&(s+=`translateX(${c}px) `),u&&(s+=`translateY(${u}px)`),i.transform=s.trim(),a.maxHeight&&(o?i.maxHeight=pn(a.maxHeight):r&&(i.maxHeight="")),a.maxWidth&&(o?i.maxWidth=pn(a.maxWidth):r&&(i.maxWidth="")),lc(this._pane.style,i)}_getExactOverlayY(n,e,i){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===n.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=pn(r.y),o}_getExactOverlayX(n,e,i){let a,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),a=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===a?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=pn(r.x),o}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:$A(n,i),isOriginOutsideView:lC(n,i),isOverlayClipped:$A(e,i),isOverlayOutsideView:lC(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,o)=>i-Math.max(o,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&Kp(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Be)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function lc(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function WA(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(IY);return e&&"px"!==e?null:parseFloat(n)}return t||null}function KA(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const ZA="cdk-global-overlay-wrapper";class OY{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(ZA),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=i,c=!("100%"!==o&&"100vw"!==o||a&&"100%"!==a&&"100vw"!==a),u=!("100%"!==r&&"100vh"!==r||s&&"100%"!==s&&"100vh"!==s),p=this._xPosition,g=this._xOffset,b="rtl"===this._overlayRef.getConfig().direction;let w="",S="",T="";c?T="flex-start":"center"===p?(T="center",b?S=g:w=g):b?"left"===p||"end"===p?(T="flex-end",w=g):("right"===p||"start"===p)&&(T="flex-start",S=g):"left"===p||"start"===p?(T="flex-start",w=g):("right"===p||"end"===p)&&(T="flex-end",S=g),n.position=this._cssPosition,n.marginLeft=c?"0":w,n.marginTop=u?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=c?"0":S,e.justifyContent=T,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(ZA),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let AY=(()=>{class t{constructor(e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r}global(){return new OY}flexibleConnectedTo(e){return new EY(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(i){return new(i||t)(X(va),X(ut),X(ci),X(Lf))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),PY=0,Qn=(()=>{class t{constructor(e,i,o,r,a,s,c,u,p,g,b,w){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=s,this._ngZone=c,this._document=u,this._directionality=p,this._location=g,this._outsideClickDispatcher=b,this._animationsModuleType=w}create(e){const i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),a=new Bl(e);return a.direction=a.direction||this._directionality.value,new ah(r,i,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+PY++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Za)),new yY(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(X(SY),X(Lf),X(Ns),X(AY),X(MY),X(ji),X(We),X(ut),X(fn),X(Ws),X(TY),X(ui,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const RY=[{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"}],YA=new se("cdk-connected-overlay-scroll-strategy");let dC=(()=>{class t{constructor(e){this.elementRef=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return t})(),QA=(()=>{class t{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=$e(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=$e(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=$e(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=$e(e)}get push(){return this._push}set push(e){this._push=$e(e)}constructor(e,i,o,r,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=de.EMPTY,this._attachSubscription=de.EMPTY,this._detachSubscription=de.EMPTY,this._positionSubscription=de.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Ne,this.positionChange=new Ne,this.attach=new Ne,this.detach=new Ne,this.overlayKeydown=new Ne,this.overlayOutsideClick=new Ne,this._templatePortal=new ya(i,o),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}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=RY);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(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!An(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Bl({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).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 dC?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 bY(t,n=!1){return $i((e,i)=>{let o=0;e.subscribe(Fi(i,r=>{const a=t(r,o++);(a||n)&&i.next(r),!a&&i.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()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Qn),_(gi),_(vi),_(YA),_(fn,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[ge.None,"cdkConnectedOverlayOrigin","origin"],positions:[ge.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[ge.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[ge.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[ge.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[ge.None,"cdkConnectedOverlayWidth","width"],height:[ge.None,"cdkConnectedOverlayHeight","height"],minWidth:[ge.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[ge.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[ge.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[ge.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[ge.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[ge.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[ge.None,"cdkConnectedOverlayOpen","open"],disableClose:[ge.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[ge.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[ge.None,"cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:[ge.None,"cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:[ge.None,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:[ge.None,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:[ge.None,"cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[fi]})}return t})();const FY={provide:YA,deps:[Qn],useFactory:function NY(t){return()=>t.scrollStrategies.reposition()}};let dc=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({providers:[Qn,FY],imports:[Lu,cc,sC,sC]})}return t})();function Vl(t){return new li(n=>{Yn(t()).subscribe(n)})}const LY=["trigger"],BY=["panel"];function VY(t,n){if(1&t&&(d(0,"span",10),h(1),l()),2&t){const e=C();m(),Pe(e.placeholder)}}function jY(t,n){if(1&t&&(d(0,"span",14),h(1),l()),2&t){const e=C(2);m(),Pe(e.triggerValue)}}function zY(t,n){1&t&&Ze(0,0,["*ngSwitchCase","true"])}function HY(t,n){1&t&&(d(0,"span",11),y(1,jY,2,1,"span",12)(2,zY,1,0,"ng-content",13),l()),2&t&&(f("ngSwitch",!!C().customTrigger),m(2),f("ngSwitchCase",!0))}function UY(t,n){if(1&t){const e=_e();ei(),pr(),d(0,"div",15,16),A("@transformPanel.done",function(o){return ne(e),oe(C()._panelDoneAnimatingStream.next(o.toState))})("keydown",function(o){return ne(e),oe(C()._handleKeydown(o))}),Ze(2,1),l()}if(2&t){const e=C();Mk("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),f("ngClass",e.panelClass)("@transformPanel","showing"),Xe("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const $Y=[[["mat-select-trigger"]],"*"],GY=["mat-select-trigger","*"],qY={transformPanelWrap:Lo("transformPanelWrap",[Qi("* => void",Cy("@transformPanel",[yy()],{optional:!0}))]),transformPanel:Lo("transformPanel",[mn("void",Zt({opacity:0,transform:"scale(1, 0.8)"})),Qi("void => showing",Yi("120ms cubic-bezier(0, 0, 0.2, 1)",Zt({opacity:1,transform:"scale(1, 1)"}))),Qi("* => void",Yi("100ms linear",Zt({opacity:0})))])};let XA=0;const JA=new se("mat-select-scroll-strategy"),KY=new se("MAT_SELECT_CONFIG"),ZY={provide:JA,deps:[Qn],useFactory:function WY(t){return()=>t.scrollStrategies.reposition()}},YY=new se("MatSelectTrigger");class QY{constructor(n,e){this.source=n,this.value=e}}const XY=ns(os(jr(v0(class{constructor(t,n,e,i,o){this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new qe}}))));let JY=(()=>{class t extends XY{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(ee.required)??!1}set required(e){this._required=$e(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=$e(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=$e(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=yi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,i,o,r,a,s,c,u,p,g,b,w,S,T){super(a,r,c,u,g),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=o,this._dir=s,this._parentFormField=p,this._liveAnnouncer=S,this._defaultOptions=T,this._panelOpen=!1,this._compareWith=(z,ie)=>z===ie,this._uid="mat-select-"+XA++,this._triggerAriaLabelledBy=null,this._destroy=new qe,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+XA++,this._panelDoneAnimatingStream=new qe,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=Vl(()=>{const z=this.options;return z?z.changes.pipe(an(z),gn(()=>Ri(...z.map(ie=>ie.onSelectionChange)))):this._ngZone.onStable.pipe(Pt(1),gn(()=>this.optionSelectionChanges))}),this.openedChange=new Ne,this._openedStream=this.openedChange.pipe(kt(z=>z),nt(()=>{})),this._closedStream=this.openedChange.pipe(kt(z=>!z),nt(()=>{})),this.selectionChange=new Ne,this.valueChange=new Ne,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=T?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=T.typeaheadDebounceInterval),this._scrollStrategyFactory=w,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(b)||0,this.id=this.id}ngOnInit(){this._selectionModel=new qu(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ru(),ot(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(ot(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(an(null),ot(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;const i=`${this.id}-panel`;this._trackedModal&&Tl(this._trackedModal,"aria-owns",i),Yp(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(Tl(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(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(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.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 i=e.keyCode,o=40===i||38===i||37===i||39===i,r=13===i||32===i,a=this._keyManager;if(!a.isTyping()&&r&&!An(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;a.onKeydown(e);const c=this.selected;c&&s!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,o=e.keyCode,r=40===o||38===o,a=i.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(a||13!==o&&32!==o||!i.activeItem||An(e))if(!a&&this._multiple&&65===o&&e.ctrlKey){e.preventDefault();const s=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(s?c.select():c.deselect())})}else{const s=i.activeItemIndex;i.onKeydown(e),this._multiple&&r&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Pt(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.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return null!=o.value&&this._compareWith(o.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_skipPredicate(e){return e.disabled}_initKeyManager(){this._keyManager=new hE(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.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=Ri(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(ot(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Ri(...this.options.map(i=>i._stateChanges)).pipe(ot(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){const o=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,o)=>this.sortComparator?this.sortComparator(i,o,e):e.indexOf(i)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(o=>o.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}static#e=this.\u0275fac=function(i){return new(i||t)(_(va),_(Lt),_(We),_(nf),_(Be),_(fn,8),_(hs,8),_(wi,8),_(th,8),_(xr,10),oo("tabindex"),_(JA),_(g0),_(KY,8))};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&(vt(LY,5),vt(BY,5),vt(QA,5)),2&i){let r;Oe(r=Ae())&&(o.trigger=r.first),Oe(r=Ae())&&(o.panel=r.first),Oe(r=Ae())&&(o._overlayDir=r.first)}},inputs:{userAriaDescribedBy:[ge.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:[ge.None,"aria-label","ariaLabel"],ariaLabelledby:[ge.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[ve,fi]})}return t})(),Xn=(()=>{class t extends JY{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=e=>!this.panelOpen&&e.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(ot(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const i=this.options.toArray()[e];if(i){const o=this.panel.nativeElement,r=EE(e,this.options,this.optionGroups),a=i._getHostElement();o.scrollTop=0===e&&1===r?0:OE(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new QY(this,e)}_getOverlayWidth(e){return"auto"===this.panelWidth?(e instanceof dC?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=$e(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-select"]],contentQueries:function(i,o,r){if(1&i&&(gt(r,YY,5),gt(r,Tn,5),gt(r,af,5)),2&i){let a;Oe(a=Ae())&&(o.customTrigger=a.first),Oe(a=Ae())&&(o.options=a),Oe(a=Ae())&&(o.optionGroups=a)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,o){1&i&&A("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),2&i&&(Xe("id",o.id)("tabindex",o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),et("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[Ye([{provide:Af,useExisting:t},{provide:rf,useExisting:t}]),ve],ngContentSelectors:GY,decls:11,vars:10,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(i,o){if(1&i&&(Ut($Y),d(0,"div",0,1),A("click",function(){return o.toggle()}),d(3,"div",2),y(4,VY,2,1,"span",3)(5,HY,3,2,"span",4),l(),d(6,"div",5)(7,"div",6),ei(),d(8,"svg",7),D(9,"path",8),l()()()(),y(10,UY,3,9,"ng-template",9),A("backdropClick",function(){return o.close()})("attach",function(){return o._onAttached()})("detach",function(){return o.close()})),2&i){const r=Ft(1);m(3),f("ngSwitch",o.empty),Xe("id",o._valueId),m(),f("ngSwitchCase",!0),m(),f("ngSwitchCase",!1),m(5),f("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[yr,xl,Sp,y2,QA,dC],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[qY.transformPanel]},changeDetection:0})}return t})(),uC=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({providers:[ZY],imports:[Vn,dc,sf,Mt,ms,ih,sf,Mt]})}return t})();function Bf(t){return nt(()=>t)}function eP(t,n){return n?e=>Nu(n.pipe(Pt(1),function eQ(){return $i((t,n)=>{t.subscribe(Fi(n,oi))})}()),e.pipe(eP(t))):Pn((e,i)=>Yn(t(e,i)).pipe(Pt(1),Bf(e)))}function hC(t,n=Pu){const e=Pf(t,n);return eP(()=>e)}const tQ=["mat-menu-item",""];function iQ(t,n){1&t&&(ei(),d(0,"svg",3),D(1,"polygon",4),l())}const nQ=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],oQ=["mat-icon, [matMenuItemIcon]","*"];function rQ(t,n){if(1&t){const e=_e();d(0,"div",0),A("keydown",function(o){return ne(e),oe(C()._handleKeydown(o))})("click",function(){return ne(e),oe(C().closed.emit("click"))})("@transformMenu.start",function(o){return ne(e),oe(C()._onAnimationStart(o))})("@transformMenu.done",function(o){return ne(e),oe(C()._onAnimationDone(o))}),d(1,"div",1),Ze(2),l()()}if(2&t){const e=C();f("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Xe("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const aQ=["*"],mC=new se("MAT_MENU_PANEL"),sQ=ns(jr(class{}));let wa=(()=>{class t extends sQ{constructor(e,i,o,r,a){super(),this._elementRef=e,this._document=i,this._focusMonitor=o,this._parentMenu=r,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new qe,this._focused=new qe,this._highlighted=!1,this._triggersSubmenu=!1,r?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o enter",Yi("120ms cubic-bezier(0, 0, 0.2, 1)",Zt({opacity:1,transform:"scale(1)"}))),Qi("* => void",Yi("100ms 25ms linear",Zt({opacity:0})))]),fadeInItems:Lo("fadeInItems",[mn("showing",Zt({opacity:1})),Qi("void => *",[Zt({opacity:0}),Yi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let lQ=0;const tP=new se("mat-menu-default-options",{providedIn:"root",factory:function dQ(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let sh=(()=>{class t{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=$e(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=$e(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,i,o,r){this._elementRef=e,this._ngZone=i,this._changeDetectorRef=r,this._directDescendantItems=new oa,this._classList={},this._panelAnimationState="void",this._animationDone=new qe,this.closed=new Ne,this.close=this.closed,this.panelId="mat-menu-panel-"+lQ++,this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this._overlapTrigger=o.overlapTrigger,this._hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Jp(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(an(this._directDescendantItems),gn(e=>Ri(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const i=this._keyManager;if("enter"===this._panelAnimationState&&i.activeItem?._hasFocus()){const o=e.toArray(),r=Math.max(0,Math.min(o.length-1,i.activeItemIndex||0));o[r]&&!o[r].disabled?i.setActiveItem(r):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(an(this._directDescendantItems),gn(i=>Ri(...i.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,o=this._keyManager;switch(i){case 27:An(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(Pt(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),o=`${this._elevationPrefix}${i}`,r=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(e=this.xPosition,i=this.yPosition){const o=this._classList;o["mat-menu-before"]="before"===e,o["mat-menu-after"]="after"===e,o["mat-menu-above"]="above"===i,o["mat-menu-below"]="below"===i,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(an(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We),_(tP),_(Lt))};static#t=this.\u0275dir=Q({type:t,contentQueries:function(i,o,r){if(1&i&&(gt(r,cQ,5),gt(r,wa,5),gt(r,wa,4)),2&i){let a;Oe(a=Ae())&&(o.lazyContent=a.first),Oe(a=Ae())&&(o._allItems=a),Oe(a=Ae())&&(o.items=a)}},viewQuery:function(i,o){if(1&i&&vt(gi,5),2&i){let r;Oe(r=Ae())&&(o.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:[ge.None,"aria-label","ariaLabel"],ariaLabelledby:[ge.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[ge.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:[ge.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}})}return t})(),jl=(()=>{class t extends sh{constructor(e,i,o,r){super(e,i,o,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(We),_(tP),_(Lt))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:3,hostBindings:function(i,o){2&i&&Xe("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Ye([{provide:mC,useExisting:t}]),ve],ngContentSelectors:aQ,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content"]],template:function(i,o){1&i&&(Ut(),y(0,rQ,3,6,"ng-template"))},dependencies:[yr],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{--mat-menu-container-shape:4px;min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Vf.transformMenu,Vf.fadeInItems]},changeDetection:0})}return t})();const iP=new se("mat-menu-scroll-strategy"),hQ={provide:iP,deps:[Qn],useFactory:function uQ(t){return()=>t.scrollStrategies.reposition()}},nP=Ja({passive:!0});let mQ=(()=>{class t{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,i,o,r,a,s,c,u,p){this._overlay=e,this._element=i,this._viewContainerRef=o,this._menuItemInstance=s,this._dir=c,this._focusMonitor=u,this._ngZone=p,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=de.EMPTY,this._hoverSubscription=de.EMPTY,this._menuCloseSubscription=de.EMPTY,this._changeDetectorRef=De(Lt),this._handleTouchStart=g=>{f0(g)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ne,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ne,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=a instanceof sh?a:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,nP)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,nP),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),o=i.getConfig(),r=o.positionStrategy;this._setPosition(e,r),o.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof sh&&(e._startAnimation(),e._directDescendantItems.changes.pipe(ot(e.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof sh?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(kt(o=>"void"===o.toState),Pt(1),ot(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,o=e.parentMenu;for(;o;)i++,o=o.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Bl({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(o=>{const r="start"===o.connectionPair.overlayX?"after":"before",a="top"===o.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(r,a)):e.setPositionClasses(r,a)})}_setPosition(e,i){let[o,r]="before"===e.xPosition?["end","start"]:["start","end"],[a,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[c,u]=[a,s],[p,g]=[o,r],b=0;if(this.triggersSubmenu()){if(g=o="before"===e.xPosition?"start":"end",r=p="end"===o?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const w=this._parentMaterialMenu.items.first;this._parentInnerPadding=w?w._getHostElement().offsetTop:0}b="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c="top"===a?"bottom":"top",u="top"===s?"bottom":"top");i.withPositions([{originX:o,originY:c,overlayX:p,overlayY:a,offsetY:b},{originX:r,originY:c,overlayX:g,overlayY:a,offsetY:b},{originX:o,originY:u,overlayX:p,overlayY:s,offsetY:-b},{originX:r,originY:u,overlayX:g,overlayY:s,offsetY:-b}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Ri(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ke(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(kt(a=>a!==this._menuItemInstance),kt(()=>this._menuOpen)):Ke(),i)}_handleMousedown(e){p0(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(kt(e=>e===this._menuItemInstance&&!e.disabled),hC(0,aC)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof sh&&this.menu._isAnimating?this.menu._animationDone.pipe(Pt(1),hC(0,aC),ot(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new ya(e.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(i){return new(i||t)(_(Qn),_(Be),_(vi),_(iP),_(mC,8),_(wa,10),_(fn,8),_(zo),_(We))};static#t=this.\u0275dir=Q({type:t,hostVars:3,hostBindings:function(i,o){1&i&&A("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),2&i&&Xe("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[ge.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[ge.None,"matMenuTriggerFor","menu"],menuData:[ge.None,"matMenuTriggerData","menuData"],restoreFocus:[ge.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}})}return t})(),zl=(()=>{class t extends mQ{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[ve]})}return t})(),oP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({providers:[hQ],imports:[Vn,as,Mt,dc,ms,Mt]})}return t})();const pQ=[[["caption"]],[["colgroup"],["col"]]],fQ=["caption","colgroup, col"];function pC(t){return class extends t{get sticky(){return this._sticky}set sticky(n){const e=this._sticky;this._sticky=$e(n),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const n=this._hasStickyChanged;return this._hasStickyChanged=!1,n}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...n){super(...n),this._sticky=!1,this._hasStickyChanged=!1}}}const Hl=new se("CDK_TABLE");let Ul=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),$l=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),jf=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})();class vQ{}const yQ=pC(vQ);let xa=(()=>{class t extends yQ{get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=$e(e),this._hasStickyChanged=i!==this._stickyEnd}constructor(e){super(),this._table=e,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static#e=this.\u0275fac=function(i){return new(i||t)(_(Hl,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,o,r){if(1&i&&(gt(r,Ul,5),gt(r,$l,5),gt(r,jf,5)),2&i){let a;Oe(a=Ae())&&(o.cell=a.first),Oe(a=Ae())&&(o.headerCell=a.first),Oe(a=Ae())&&(o.footerCell=a.first)}},inputs:{sticky:"sticky",name:[ge.None,"cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Ye([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ve]})}return t})();class fC{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}}let gC=(()=>{class t extends fC{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(_(xa),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ve]})}return t})(),_C=(()=>{class t extends fC{constructor(e,i){if(super(e,i),1===e._table?._elementRef.nativeElement.nodeType){const o=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===o||"treegrid"===o?"gridcell":"cell")}}static#e=this.\u0275fac=function(i){return new(i||t)(_(xa),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[ve]})}return t})();class aP{constructor(){this.tasks=[],this.endTasks=[]}}const bC=new se("_COALESCED_STYLE_SCHEDULER");let sP=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new qe}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new aP,this._getScheduleObservable().pipe(ot(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new aP;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Xi(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Pt(1))}static#e=this.\u0275fac=function(i){return new(i||t)(X(We))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})(),vC=(()=>{class t{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof ch?e.headerCell.template:this instanceof lh?e.footerCell.template:e.cell.template}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(fr))};static#t=this.\u0275dir=Q({type:t,features:[fi]})}return t})();class CQ extends vC{}const wQ=pC(CQ);let ch=(()=>{class t extends wQ{constructor(e,i,o){super(e,i),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(fr),_(Hl,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[ge.None,"cdkHeaderRowDef","columns"],sticky:[ge.None,"cdkHeaderRowDefSticky","sticky"]},features:[ve,fi]})}return t})();class xQ extends vC{}const DQ=pC(xQ);let lh=(()=>{class t extends DQ{constructor(e,i,o){super(e,i),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(fr),_(Hl,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[ge.None,"cdkFooterRowDef","columns"],sticky:[ge.None,"cdkFooterRowDefSticky","sticky"]},features:[ve,fi]})}return t})(),zf=(()=>{class t extends vC{constructor(e,i,o){super(e,i),this._table=o}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(fr),_(Hl,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[ge.None,"cdkRowDefColumns","columns"],when:[ge.None,"cdkRowDefWhen","when"]},features:[ve]})}return t})(),Da=(()=>{class t{static#e=this.mostRecentCellOutlet=null;constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static#t=this.\u0275fac=function(i){return new(i||t)(_(vi))};static#i=this.\u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),yC=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){1&i&&ro(0,0)},dependencies:[Da],encapsulation:2})}return t})(),wC=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){1&i&&ro(0,0)},dependencies:[Da],encapsulation:2})}return t})(),Hf=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})();const cP=["top","bottom","left","right"];class SQ{constructor(n,e,i,o,r=!0,a=!0,s){this._isNativeHtmlTable=n,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=r,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){const i=[];for(const o of n)if(o.nodeType===o.ELEMENT_NODE){i.push(o);for(let r=0;r{for(const o of i)this._removeStickyStyle(o,e)})}updateStickyColumns(n,e,i,o=!0){if(!n.length||!this._isBrowser||!e.some(b=>b)&&!i.some(b=>b))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const r=n[0],a=r.children.length,s=this._getCellWidths(r,o),c=this._getStickyStartColumnPositions(s,e),u=this._getStickyEndColumnPositions(s,i),p=e.lastIndexOf(!0),g=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const b="rtl"===this.direction,w=b?"right":"left",S=b?"left":"right";for(const T of n)for(let z=0;ze[z]?T:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===g?[]:s.slice(g).map((T,z)=>i[z+g]?T:null).reverse()}))})}stickRows(n,e,i){if(!this._isBrowser)return;const o="bottom"===i?n.slice().reverse():n,r="bottom"===i?e.slice().reverse():e,a=[],s=[],c=[];for(let p=0,g=0;p{for(let p=0;p{e.some(o=>!o)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(n,e){for(const o of e)n.style[o]="",n.classList.remove(this._borderCellCss[o]);cP.some(o=>-1===e.indexOf(o)&&n.style[o])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,o){n.classList.add(this._stickCellCss),o&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const o of cP)n.style[o]&&(i+=e[o]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],o=n.children;for(let r=0;r0;r--)e[r]&&(i[r]=o,o+=n[r]);return i}}const xC=new se("CDK_SPL");let Uf=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(vi),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]})}return t})(),$f=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(vi),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),Gf=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(vi),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),qf=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(vi),_(Be))};static#t=this.\u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),Wf=(()=>{class t{get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=$e(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=$e(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,i,o,r,a,s,c,u,p,g,b,w){this._differs=e,this._changeDetectorRef=i,this._elementRef=o,this._dir=a,this._platform=c,this._viewRepeater=u,this._coalescedStyleScheduler=p,this._viewportRuler=g,this._stickyPositioningListener=b,this._ngZone=w,this._onDestroy=new qe,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new Ne,this.viewChange=new pt({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(ot(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),yf(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(o,r,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{1===o.operation&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{i.get(o.currentIndex).context.$implicit=o.item.data}),this._updateNoDataRow(),this._ngZone&&We.isInAngularZone()?this._ngZone.onStable.pipe(Pt(1),ot(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),o=this._elementRef.nativeElement.querySelector("thead");o&&(o.style.display=e.length?"":"none");const r=this._headerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,r,"top"),this._headerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),o=this._elementRef.nativeElement.querySelector("tfoot");o&&(o.style.display=e.length?"":"none");const r=this._footerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{const a=[];for(let s=0;s{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{const s=o&&o.has(a)?o.get(a):[];if(s.length){const c=s.shift();return c.dataIndex=i,c}return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Kf(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Kf(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Kf(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Kf(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(a,s)=>a||!!s.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();const r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),i||o||r}_switchDataSource(e){this._data=[],yf(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;yf(this.dataSource)?e=this.dataSource.connect(this):Pl(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Ke(this.dataSource)),this._renderChangeSubscription=e.pipe(ot(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const o=Array.from(i.columns||[]).map(s=>this._columnDefsByName.get(s)),r=o.map(s=>s.sticky),a=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let o=0;o!r.when||r.when(i,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;r&&o.push(r)}return o}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,o,r={}){const a=e.viewContainer.createEmbeddedView(i.template,r,o);return this._renderCellTemplateForItem(i,r),a}_renderCellTemplateForItem(e,i){for(let o of this._getCellTemplates(e))Da.mostRecentCellOutlet&&Da.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,o=e.length;i{const o=this._columnDefsByName.get(i);return e.extractCellTemplate(o)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const o of i){const r=this._document.createElement(o.tag);r.setAttribute("role","rowgroup");for(const a of o.outlets)r.appendChild(a.elementRef.nativeElement);e.appendChild(r)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,o)=>i||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new SQ(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Ke()).pipe(ot(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const o=this._noDataRowOutlet.viewContainer;if(i){const r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];1===r.rootNodes.length&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(_(fr),_(Lt),_(Be),oo("role"),_(fn,8),_(ut),_(ci),_(Wu),_(bC),_(va),_(xC,12),_(We,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,o,r){if(1&i&&(gt(r,Hf,5),gt(r,xa,5),gt(r,zf,5),gt(r,ch,5),gt(r,lh,5)),2&i){let a;Oe(a=Ae())&&(o._noDataRow=a.first),Oe(a=Ae())&&(o._contentColumnDefs=a),Oe(a=Ae())&&(o._contentRowDefs=a),Oe(a=Ae())&&(o._contentHeaderRowDefs=a),Oe(a=Ae())&&(o._contentFooterRowDefs=a)}},viewQuery:function(i,o){if(1&i&&(vt(Uf,7),vt($f,7),vt(Gf,7),vt(qf,7)),2&i){let r;Oe(r=Ae())&&(o._rowOutlet=r.first),Oe(r=Ae())&&(o._headerRowOutlet=r.first),Oe(r=Ae())&&(o._footerRowOutlet=r.first),Oe(r=Ae())&&(o._noDataRowOutlet=r.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(i,o){2&i&&et("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Ye([{provide:Hl,useExisting:t},{provide:Wu,useClass:xO},{provide:bC,useClass:sP},{provide:xC,useValue:null}])],ngContentSelectors:fQ,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){1&i&&(Ut(pQ),Ze(0),Ze(1,1),ro(2,0)(3,1)(4,2)(5,3))},dependencies:[Uf,$f,Gf,qf],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return t})();function Kf(t,n){return t.concat(Array.from(n))}let MQ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[sC]})}return t})();const TQ=[[["caption"]],[["colgroup"],["col"]]],IQ=["caption","colgroup, col"];let ps=(()=>{class t extends Wf{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,o){2&i&&et("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[Ye([{provide:Wf,useExisting:t},{provide:Hl,useExisting:t},{provide:bC,useClass:sP},{provide:Wu,useClass:xO},{provide:xC,useValue:null}]),ve],ngContentSelectors:IQ,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){1&i&&(Ut(TQ),Ze(0),Ze(1,1),ro(2,0)(3,1)(4,2)(5,3))},dependencies:[Uf,$f,Gf,qf],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{--mat-table-row-item-outline-width:1px;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return t})(),Sa=(()=>{class t extends Ul{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[Ye([{provide:Ul,useExisting:t}]),ve]})}return t})(),ka=(()=>{class t extends $l{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ye([{provide:$l,useExisting:t}]),ve]})}return t})(),Ma=(()=>{class t extends xa{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:[ge.None,"matColumnDef","name"]},features:[Ye([{provide:xa,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ve]})}return t})(),Ta=(()=>{class t extends gC{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[ve]})}return t})(),Ia=(()=>{class t extends _C{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[ve]})}return t})(),fs=(()=>{class t extends ch{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[ge.None,"matHeaderRowDef","columns"],sticky:[ge.None,"matHeaderRowDefSticky","sticky"]},features:[Ye([{provide:ch,useExisting:t}]),ve]})}return t})(),gs=(()=>{class t extends zf{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[ge.None,"matRowDefColumns","columns"],when:[ge.None,"matRowDefWhen","when"]},features:[Ye([{provide:zf,useExisting:t}]),ve]})}return t})(),_s=(()=>{class t extends yC{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ye([{provide:yC,useExisting:t}]),ve],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){1&i&&ro(0,0)},dependencies:[Da],encapsulation:2})}return t})(),bs=(()=>{class t extends wC{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ye([{provide:wC,useExisting:t}]),ve],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){1&i&&ro(0,0)},dependencies:[Da],encapsulation:2})}return t})(),dP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Mt,MQ,Mt]})}return t})();class BQ extends vf{get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}constructor(n=[]){super(),this._renderData=new pt([]),this._filter=new pt(""),this._internalPageChanges=new qe,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const o=e[i];if(eE(o)){const r=Number(o);return r<9007199254740991?r:o}return o},this.sortData=(e,i)=>{const o=i.active,r=i.direction;return o&&""!=r?e.sort((a,s)=>{let c=this.sortingDataAccessor(a,o),u=this.sortingDataAccessor(s,o);const p=typeof c,g=typeof u;p!==g&&("number"===p&&(c+=""),"number"===g&&(u+=""));let b=0;return null!=c&&null!=u?c>u?b=1:c{const o=Object.keys(e).reduce((a,s)=>a+e[s]+"\u25ec","").toLowerCase(),r=i.trim().toLowerCase();return-1!=o.indexOf(r)},this._data=new pt(n),this._updateChangeSubscription()}_updateChangeSubscription(){const n=this._sort?Ri(this._sort.sortChange,this._sort.initialized):Ke(null),e=this._paginator?Ri(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Ke(null),o=Xs([this._data,this._filter]).pipe(nt(([s])=>this._filterData(s))),r=Xs([o,n]).pipe(nt(([s])=>this._orderData(s))),a=Xs([r,e]).pipe(nt(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(n){return this.filteredData=null==this.filter||""===this.filter?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;const e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,i);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class uP extends BQ{}const hP=new se("CdkAccordion");let VQ=0,jQ=(()=>{class t{get expanded(){return this._expanded}set expanded(e){e=$e(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e)}constructor(e,i,o){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=o,this._openCloseAllSubscription=de.EMPTY,this.closed=new Ne,this.opened=new Ne,this.destroyed=new Ne,this.expandedChange=new Ne,this.id="cdk-accordion-child-"+VQ++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((r,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==r&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static#e=this.\u0275fac=function(i){return new(i||t)(_(hP,12),_(Lt),_(N0))};static#t=this.\u0275dir=Q({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ye([{provide:hP,useValue:void 0}])]})}return t})(),zQ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({})}return t})();const HQ=["body"];function UQ(t,n){}const $Q=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],GQ=["mat-expansion-panel-header","*","mat-action-row"];function qQ(t,n){1&t&&D(0,"span",2),2&t&&f("@indicatorRotate",C()._getExpandedState())}const WQ=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],KQ=["mat-panel-title","mat-panel-description","*"],mP=new se("MAT_ACCORDION"),pP="225ms cubic-bezier(0.4,0.0,0.2,1)",fP={indicatorRotate:Lo("indicatorRotate",[mn("collapsed, void",Zt({transform:"rotate(0deg)"})),mn("expanded",Zt({transform:"rotate(180deg)"})),Qi("expanded <=> collapsed, void => collapsed",Yi(pP))]),bodyExpansion:Lo("bodyExpansion",[mn("collapsed, void",Zt({height:"0px",visibility:"hidden"})),mn("expanded",Zt({height:"*",visibility:""})),Qi("expanded <=> collapsed, void => collapsed",Yi(pP))])},gP=new se("MAT_EXPANSION_PANEL");let ZQ=(()=>{class t{constructor(e,i){this._template=e,this._expansionPanel=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(gP,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),YQ=0;const _P=new se("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let DC=(()=>{class t extends jQ{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=$e(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}constructor(e,i,o,r,a,s,c){super(e,i,o),this._viewContainerRef=r,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new Ne,this.afterCollapse=new Ne,this._inputChanges=new qe,this._headerId="mat-expansion-panel-header-"+YQ++,this._bodyAnimationDone=new qe,this.accordion=e,this._document=a,this._bodyAnimationDone.pipe(Ru((u,p)=>u.fromState===p.fromState&&u.toState===p.toState)).subscribe(u=>{"void"!==u.fromState&&("expanded"===u.toState?this.afterExpand.emit():"collapsed"===u.toState&&this.afterCollapse.emit())}),c&&(this.hideToggle=c.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(an(null),kt(()=>this.expanded&&!this._portal),Pt(1)).subscribe(()=>{this._portal=new ya(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}static#e=this.\u0275fac=function(i){return new(i||t)(_(mP,12),_(Lt),_(N0),_(vi),_(ut),_(ui,8),_(_P,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,o,r){if(1&i&>(r,ZQ,5),2&i){let a;Oe(a=Ae())&&(o._lazyContent=a.first)}},viewQuery:function(i,o){if(1&i&&vt(HQ,5),2&i){let r;Oe(r=Ae())&&(o._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(i,o){2&i&&et("mat-expanded",o.expanded)("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-expansion-panel-spacing",o._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ye([{provide:mP,useValue:void 0},{provide:gP,useExisting:t}]),ve,fi],ngContentSelectors:GQ,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(i,o){1&i&&(Ut($Q),Ze(0),d(1,"div",0,1),A("@bodyExpansion.done",function(a){return o._bodyAnimationDone.next(a)}),d(3,"div",2),Ze(4,1),y(5,UQ,0,0,"ng-template",3),l(),Ze(6,2),l()),2&i&&(m(),f("@bodyExpansion",o._getExpandedState())("id",o.id),Xe("aria-labelledby",o._headerId),m(4),f("cdkPortalOutlet",o._portal))},dependencies:[Ca],styles:['.mat-expansion-panel{--mat-expansion-container-shape:4px;box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[fP.bodyExpansion]},changeDetection:0})}return t})();class QQ{}const XQ=os(QQ);let bP=(()=>{class t extends XQ{constructor(e,i,o,r,a,s,c){super(),this.panel=e,this._element=i,this._focusMonitor=o,this._changeDetectorRef=r,this._animationMode=s,this._parentChangeSubscription=de.EMPTY;const u=e.accordion?e.accordion._stateChanges.pipe(kt(p=>!(!p.hideToggle&&!p.togglePosition))):jo;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=Ri(e.opened,e.closed,u,e._inputChanges.pipe(kt(p=>!!(p.hideToggle||p.disabled||p.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(kt(()=>e._containsFocus())).subscribe(()=>o.focusVia(i,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:An(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static#e=this.\u0275fac=function(i){return new(i||t)(_(DC,1),_(Be),_(zo),_(Lt),_(_P,8),_(ui,8),oo("tabindex"))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(i,o){1&i&&A("click",function(){return o._toggle()})("keydown",function(a){return o._keydown(a)}),2&i&&(Xe("id",o.panel._headerId)("tabindex",o.tabIndex)("aria-controls",o._getPanelId())("aria-expanded",o._isExpanded())("aria-disabled",o.panel.disabled),Sn("height",o._getHeaderHeight()),et("mat-expanded",o._isExpanded())("mat-expansion-toggle-indicator-after","after"===o._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===o._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===o._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[ve],ngContentSelectors:KQ,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(i,o){1&i&&(Ut(WQ),d(0,"span",0),Ze(1),Ze(2,1),Ze(3,2),l(),y(4,qQ,1,1,"span",1)),2&i&&(et("mat-content-hide-toggle",!o._showToggle()),m(4),f("ngIf",o._showToggle()))},dependencies:[It],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[fP.indicatorRotate]},changeDetection:0})}return t})(),JQ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})(),vP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Vn,Mt,zQ,cc]})}return t})();function eX(t,n){1&t&&(d(0,"span",7),Ze(1,1),l())}function tX(t,n){1&t&&(d(0,"span",8),Ze(1,2),l())}const yP=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],CP=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function oX(t,n){1&t&&(me(0),D(1,"span",8),pe())}function rX(t,n){1&t&&(d(0,"span",9),Ze(1),l())}function aX(t,n){1&t&&(me(0),Ze(1,1),pe())}function sX(t,n){1&t&&Ze(0,2,["*ngIf","contentEditInput; else defaultMatChipEditInput"])}function cX(t,n){1&t&&D(0,"span",12)}function lX(t,n){if(1&t&&(me(0),y(1,sX,1,0,"ng-content",10)(2,cX,1,0,"ng-template",null,11,br),pe()),2&t){const e=Ft(3),i=C();m(),f("ngIf",i.contentEditInput)("ngIfElse",e)}}function dX(t,n){1&t&&(d(0,"span",13),Ze(1,3),l())}const uX=[[["mat-chip-avatar"],["","matChipAvatar",""]],"*",[["","matChipEditInput",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],hX=["mat-chip-avatar, [matChipAvatar]","*","[matChipEditInput]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],SC=["*"],Zf=new se("mat-chips-default-options"),kC=new se("MatChipAvatar"),MC=new se("MatChipTrailingIcon"),TC=new se("MatChipRemove"),Yf=new se("MatChip");class mX{}const pX=os(mX,-1);let Gl=(()=>{class t extends pX{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(e){this._disabled=$e(e)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(e,i){super(),this._elementRef=e,this._parentChip=i,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Yf))};static#t=this.\u0275dir=Q({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(i,o){1&i&&A("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),2&i&&(Xe("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),et("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[ve]})}return t})(),DP=(()=>{class t extends Gl{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(i,o){2&i&&Xe("aria-hidden",null)},features:[Ye([{provide:TC,useExisting:t}]),ve]})}return t})(),_X=0;const bX=os(is(ns(jr(class{constructor(t){this._elementRef=t}})),"primary"),-1);let uc=(()=>{class t extends bX{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}get removable(){return this._removable}set removable(e){this._removable=$e(e)}get highlighted(){return this._highlighted}set highlighted(e){this._highlighted=$e(e)}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}constructor(e,i,o,r,a,s,c,u){super(i),this._changeDetectorRef=e,this._ngZone=o,this._focusMonitor=r,this._globalRippleOptions=c,this._onFocus=new qe,this._onBlur=new qe,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+_X++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new Ne,this.destroyed=new Ne,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=De(NE),this._document=a,this._animationsDisabled="NoopAnimations"===s,null!=u&&(this.tabIndex=parseInt(u)??this.defaultTabIndex),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const e=this._elementRef.nativeElement;this._isBasicChip=e.hasAttribute(this.basicChipAttrName)||e.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Ri(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(e){(8===e.keyCode||46===e.keyCode)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{const o=i._elementRef.nativeElement;return o===e||o.contains(e)})}_getActions(){const e=[];return this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=null!==e;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe(Pt(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Lt),_(Be),_(We),_(zo),_(ut),_(ui,8),_(El,8),oo("tabindex"))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,o,r){if(1&i&&(gt(r,kC,5),gt(r,MC,5),gt(r,TC,5),gt(r,kC,5),gt(r,MC,5),gt(r,TC,5)),2&i){let a;Oe(a=Ae())&&(o.leadingIcon=a.first),Oe(a=Ae())&&(o.trailingIcon=a.first),Oe(a=Ae())&&(o.removeIcon=a.first),Oe(a=Ae())&&(o._allLeadingIcons=a),Oe(a=Ae())&&(o._allTrailingIcons=a),Oe(a=Ae())&&(o._allRemoveIcons=a)}},viewQuery:function(i,o){if(1&i&&vt(Gl,5),2&i){let r;Oe(r=Ae())&&(o.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(i,o){1&i&&A("keydown",function(a){return o._handleKeydown(a)}),2&i&&(ao("id",o.id),Xe("role",o.role)("tabindex",o.role?o.tabIndex:null)("aria-label",o.ariaLabel),et("mdc-evolution-chip",!o._isBasicChip)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-basic-chip",o._isBasicChip)("mat-mdc-standard-chip",!o._isBasicChip)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon())("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:[ge.None,"aria-label","ariaLabel"],ariaDescription:[ge.None,"aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ye([{provide:Yf,useExisting:t}]),ve],ngContentSelectors:CP,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,o){1&i&&(Ut(yP),D(0,"span",0),d(1,"span",1)(2,"span",2),y(3,eX,2,0,"span",3),d(4,"span",4),Ze(5),D(6,"span",5),l()()(),y(7,tX,2,0,"span",6)),2&i&&(m(2),f("isInteractive",!1),m(),f("ngIf",o.leadingIcon),m(4),f("ngIf",o._hasTrailingIcon()))},dependencies:[It,Gl],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})(),Qf=(()=>{class t{constructor(e,i){this._elementRef=e,this._document=i}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);const i=window.getSelection();i.removeAllRanges(),i.addRange(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ut))};static#t=this.\u0275dir=Q({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return t})(),IC=(()=>{class t extends uc{constructor(e,i,o,r,a,s,c,u){super(e,i,o,r,a,s,c,u),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new Ne,this._isEditing=!1,this.role="row",this._onBlur.pipe(ot(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(e){13!==e.keyCode||this.disabled?this._isEditing?e.stopPropagation():super._handleKeydown(e):this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e)}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_startEditing(e){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(e.target)===this.removeIcon)return;const i=this.value;this._isEditing=this._editStartPending=!0,this._changeDetectorRef.detectChanges(),setTimeout(()=>{this._getEditInput().initialize(i),this._editStartPending=!1})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}static#e=this.\u0275fac=function(i){return new(i||t)(_(Lt),_(Be),_(We),_(zo),_(ut),_(ui,8),_(El,8),oo("tabindex"))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(i,o,r){if(1&i&>(r,Qf,5),2&i){let a;Oe(a=Ae())&&(o.contentEditInput=a.first)}},viewQuery:function(i,o){if(1&i&&vt(Qf,5),2&i){let r;Oe(r=Ae())&&(o.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(i,o){1&i&&A("focus",function(a){return o._handleFocus(a)})("dblclick",function(a){return o._handleDoubleclick(a)}),2&i&&(ao("id",o.id),Xe("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),et("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-chip-editing",o._isEditing)("mat-mdc-chip-editable",o.editable)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[Ye([{provide:uc,useExisting:t},{provide:Yf,useExisting:t}]),ve],ngContentSelectors:hX,decls:10,vars:12,consts:[[4,"ngIf"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label",3,"ngSwitch"],[4,"ngSwitchCase"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[4,"ngIf","ngIfElse"],["defaultMatChipEditInput",""],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,o){1&i&&(Ut(uX),y(0,oX,2,0,"ng-container",0),d(1,"span",1),y(2,rX,2,0,"span",2),d(3,"span",3),y(4,aX,2,0,"ng-container",4)(5,lX,4,2,"ng-container",4),D(6,"span",5),l()(),y(7,dX,2,0,"span",6),d(8,"span",7),h(9),l()),2&i&&(f("ngIf",!o._isEditing),m(),f("tabIndex",o.tabIndex)("disabled",o.disabled),Xe("aria-label",o.ariaLabel)("aria-describedby",o._ariaDescriptionId),m(),f("ngIf",o.leadingIcon),m(),f("ngSwitch",o._isEditing),m(),f("ngSwitchCase",!1),m(),f("ngSwitchCase",!0),m(2),f("ngIf",o._hasTrailingIcon()),m(),f("id",o._ariaDescriptionId),m(),Pe(o.ariaDescription))},dependencies:[It,xl,Sp,Gl,Qf],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})();class vX{constructor(n){}}const yX=os(vX);let EC=(()=>{class t extends yX{get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(e){this._explicitRole=e}get focused(){return this._hasFocusedChip()}constructor(e,i,o){super(e),this._elementRef=e,this._changeDetectorRef=i,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new qe,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new oa}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(e=>{e.disabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis.tabIndex=e)}}_getChipStream(e){return this._chips.changes.pipe(an(null),gn(()=>Ri(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(an(this._chips)).subscribe(e=>{const i=[];e.forEach(o=>o._getActions().forEach(r=>i.push(r))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new Jp(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(ot(this._destroyed)).subscribe(({chip:e})=>{const i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(ot(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(an(null),ot(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(ot(this._destroyed)).subscribe(e=>{const o=this._chips.toArray().indexOf(e.chip);this._isValidIndex(o)&&e.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Lt),_(fn,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-chip-set"]],contentQueries:function(i,o,r){if(1&i&>(r,uc,5),2&i){let a;Oe(a=Ae())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,o){1&i&&A("keydown",function(a){return o._handleKeydown(a)}),2&i&&Xe("role",o.role)},inputs:{disabled:"disabled",role:"role"},features:[ve],ngContentSelectors:SC,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,o){1&i&&(Ut(),d(0,"div",0),Ze(1),l())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return t})();class xX{constructor(n,e){this.source=n,this.value=e}}class DX extends EC{constructor(n,e,i,o,r,a,s){super(n,e,i),this._defaultErrorStateMatcher=o,this._parentForm=r,this._parentFormGroup=a,this.ngControl=s,this.stateChanges=new qe}}const SX=v0(DX);let MP=(()=>{class t extends SX{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=$e(e),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(ee.required)??!1}set required(e){this._required=$e(e),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}constructor(e,i,o,r,a,s,c){super(e,i,o,s,r,a,c),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new Ne,this.valueChange=new Ne,this._chips=void 0,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe(ot(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),Ri(this.chipFocusChanges,this._chips.changes).pipe(ot(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?.setDescribedByIds(e)}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(e){9===e.keyCode?this._chipInput.focused&&An(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(e),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const e=this._chips.length?this._chips.toArray().map(i=>i.value):[];this._value=e,this.change.emit(new xX(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Lt),_(fn,8),_(hs,8),_(wi,8),_(nf),_(xr,10))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(i,o,r){if(1&i&>(r,IC,5),2&i){let a;Oe(a=Ae())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(i,o){1&i&&A("focus",function(){return o.focus()})("blur",function(){return o._blur()}),2&i&&(ao("tabIndex",o._chips&&0===o._chips.length?-1:o.tabIndex),Xe("role",o.role)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),et("mat-mdc-chip-list-disabled",o.disabled)("mat-mdc-chip-list-invalid",o.errorState)("mat-mdc-chip-list-required",o.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Ye([{provide:Af,useExisting:t}]),ve],ngContentSelectors:SC,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,o){1&i&&(Ut(),d(0,"div",0),Ze(1),l())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return t})(),kX=0,TP=(()=>{class t{set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=$e(e)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=$e(e)}get empty(){return!this.inputElement.value}constructor(e,i,o){this._elementRef=e,this.focused=!1,this._addOnBlur=!1,this.chipEnd=new Ne,this.placeholder="",this.id="mat-mdc-chip-list-input-"+kX++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=i.separatorKeyCodes,o&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),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._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(e){(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(e){const i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.removeAttribute("aria-describedby")}_isSeparatorKey(e){return!An(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Zf),_(th,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(i,o){1&i&&A("keydown",function(a){return o._keydown(a)})("keyup",function(a){return o._keyup(a)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),2&i&&(ao("id",o.id),Xe("disabled",o.disabled||null)("placeholder",o.placeholder||null)("aria-invalid",o._chipGrid&&o._chipGrid.ngControl?o._chipGrid.ngControl.invalid:null)("aria-required",o._chipGrid&&o._chipGrid.required||null)("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[ge.None,"matChipInputFor","chipGrid"],addOnBlur:[ge.None,"matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:[ge.None,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[fi]})}return t})(),OC=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({providers:[nf,{provide:Zf,useValue:{separatorKeyCodes:[13]}}],imports:[Mt,Vn,as,Mt]})}return t})();class IP{constructor(){this.expansionModel=new qu(!0)}toggle(n){this.expansionModel.toggle(this._trackByValue(n))}expand(n){this.expansionModel.select(this._trackByValue(n))}collapse(n){this.expansionModel.deselect(this._trackByValue(n))}isExpanded(n){return this.expansionModel.isSelected(this._trackByValue(n))}toggleDescendants(n){this.expansionModel.isSelected(this._trackByValue(n))?this.collapseDescendants(n):this.expandDescendants(n)}collapseAll(){this.expansionModel.clear()}expandDescendants(n){let e=[n];e.push(...this.getDescendants(n)),this.expansionModel.select(...e.map(i=>this._trackByValue(i)))}collapseDescendants(n){let e=[n];e.push(...this.getDescendants(n)),this.expansionModel.deselect(...e.map(i=>this._trackByValue(i)))}_trackByValue(n){return this.trackBy?this.trackBy(n):n}}class EP extends IP{constructor(n,e,i){super(),this.getLevel=n,this.isExpandable=e,this.options=i,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(n){const i=[];for(let o=this.dataNodes.indexOf(n)+1;othis._trackByValue(n)))}}let OX=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({})}return t})(),OP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[OX,Mt,Mt]})}return t})();class LX{constructor(n,e,i,o){this.transformFunction=n,this.getLevel=e,this.isExpandable=i,this.getChildren=o}_flattenNode(n,e,i,o){const r=this.transformFunction(n,e);if(i.push(r),this.isExpandable(r)){const a=this.getChildren(n);a&&(Array.isArray(a)?this._flattenChildren(a,e,i,o):a.pipe(Pt(1)).subscribe(s=>{this._flattenChildren(s,e,i,o)}))}return i}_flattenChildren(n,e,i,o){n.forEach((r,a)=>{let s=o.slice();s.push(a!=n.length-1),this._flattenNode(r,e+1,i,s)})}flattenNodes(n){let e=[];return n.forEach(i=>this._flattenNode(i,0,e,[])),e}expandFlattenedNodes(n,e){let i=[],o=[];return o[0]=!0,n.forEach(r=>{let a=!0;for(let s=0;s<=this.getLevel(r);s++)a=a&&o[s];a&&i.push(r),this.isExpandable(r)&&(o[this.getLevel(r)+1]=e.isExpanded(r))}),i}}class AP extends vf{get data(){return this._data.value}set data(n){this._data.next(n),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}constructor(n,e,i){super(),this._treeControl=n,this._treeFlattener=e,this._flattenedData=new pt([]),this._expandedData=new pt([]),this._data=new pt([]),i&&(this.data=i)}connect(n){return Ri(n.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(nt(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}function BX(t,n){}const VX=t=>({animationDuration:t}),jX=(t,n)=>({value:t,params:n});function zX(t,n){1&t&&Ze(0)}const PP=["*"],HX=["tabListContainer"],UX=["tabList"],$X=["tabListInner"],GX=["nextPaginator"],qX=["previousPaginator"],WX=["tabBodyWrapper"],KX=["tabHeader"];function ZX(t,n){}function YX(t,n){1&t&&y(0,ZX,0,0,"ng-template",14),2&t&&f("cdkPortalOutlet",C().$implicit.templateLabel)}function QX(t,n){1&t&&h(0),2&t&&Pe(C().$implicit.textLabel)}function XX(t,n){if(1&t){const e=_e();d(0,"div",6,7),A("click",function(){const o=ne(e),r=o.$implicit,a=o.index,s=C(),c=Ft(1);return oe(s._handleClick(r,c,a))})("cdkFocusChange",function(o){const a=ne(e).index;return oe(C()._tabFocusChanged(o,a))}),D(2,"span",8)(3,"div",9),d(4,"span",10)(5,"span",11),y(6,YX,1,1,"ng-template",12)(7,QX,1,1,"ng-template",null,13,br),l()()()}if(2&t){const e=n.$implicit,i=n.index,o=Ft(1),r=Ft(8),a=C();et("mdc-tab--active",a.selectedIndex===i),f("id",a._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),Xe("tabIndex",a._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(i))("aria-selected",a.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(3),f("matRippleTrigger",o)("matRippleDisabled",e.disabled||a.disableRipple),m(3),f("ngIf",e.templateLabel)("ngIfElse",r)}}function JX(t,n){if(1&t){const e=_e();d(0,"mat-tab-body",15),A("_onCentered",function(){return ne(e),oe(C()._removeTabBodyWrapperHeight())})("_onCentering",function(o){return ne(e),oe(C()._setTabBodyWrapperHeight(o))}),l()}if(2&t){const e=n.$implicit,i=n.index,o=C();et("mat-mdc-tab-body-active",o.selectedIndex===i),f("id",o._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),Xe("tabindex",null!=o.contentTabIndex&&o.selectedIndex===i?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(i))("aria-hidden",o.selectedIndex!==i)}}const eJ={translateTab:Lo("translateTab",[mn("center, void, left-origin-center, right-origin-center",Zt({transform:"none"})),mn("left",Zt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),mn("right",Zt({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Qi("* => left, * => right, left => center, right => center",Yi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Qi("void => left-origin-center",[Zt({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Yi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Qi("void => right-origin-center",[Zt({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Yi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let tJ=(()=>{class t extends Ca{constructor(e,i,o,r){super(e,i,r),this._host=o,this._centeringSub=de.EMPTY,this._leavingSub=de.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(an(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ns),_(vi),_(Qt(()=>RP)),_(ut))};static#t=this.\u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[ve]})}return t})(),iJ=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,o){this._elementRef=e,this._dir=i,this._dirChangeSubscription=de.EMPTY,this._translateTabComplete=new qe,this._onCentering=new Ne,this._beforeCentering=new Ne,this._afterLeavingCenter=new Ne,this._onCentered=new Ne(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(r=>{this._computePositionAnimationState(r),o.markForCheck()})),this._translateTabComplete.pipe(Ru((r,a)=>r.fromState===a.fromState&&r.toState===a.toState)).subscribe(r=>{this._isCenterPosition(r.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(r.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(fn,8),_(Lt))};static#t=this.\u0275dir=Q({type:t,inputs:{_content:[ge.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}})}return t})(),RP=(()=>{class t extends iJ{constructor(e,i,o){super(e,i,o)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(fn,8),_(Lt))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,o){if(1&i&&vt(Ca,5),2&i){let r;Oe(r=Ae())&&(o._portalHost=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[ve],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(i,o){1&i&&(d(0,"div",0,1),A("@translateTab.start",function(a){return o._onTranslateTabStarted(a)})("@translateTab.done",function(a){return o._translateTabComplete.next(a)}),y(2,BX,0,0,"ng-template",2),l()),2&i&&f("@translateTab",zM(3,jX,o._position,hi(1,VX,o.animationDuration)))},dependencies:[tJ],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[eJ.translateTab]}})}return t})();const nJ=new se("MatTabContent");let oJ=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi))};static#t=this.\u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[Ye([{provide:nJ,useExisting:t}])]})}return t})();const rJ=new se("MatTabLabel"),NP=new se("MAT_TAB");let FC=(()=>{class t extends CY{constructor(e,i,o){super(e,i),this._closestTab=o}static#e=this.\u0275fac=function(i){return new(i||t)(_(gi),_(vi),_(NP,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ye([{provide:rJ,useExisting:t}]),ve]})}return t})();const LC="mdc-tab-indicator--active",FP="mdc-tab-indicator--no-transition";class aJ{constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar())}alignToElement(n){const e=this._items.find(o=>o.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){const o=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(o),this._currentItem=e}}}function sJ(t){return class extends t{constructor(...n){super(...n),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(n){const e=$e(n);this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(n){const e=this.elementRef.nativeElement;if(!n||!e.getBoundingClientRect||!this._inkBarContentElement)return void e.classList.add(LC);const i=e.getBoundingClientRect(),o=n.width/i.width,r=n.left-i.left;e.classList.add(FP),this._inkBarContentElement.style.setProperty("transform",`translateX(${r}px) scaleX(${o})`),e.getBoundingClientRect(),e.classList.remove(FP),e.classList.add(LC),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(LC)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const n=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=n.createElement("span"),this._inkBarContentElement=n.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const lJ=jr(class{}),dJ=sJ((()=>{class t extends lJ{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be))};static#t=this.\u0275dir=Q({type:t,features:[ve]})}return t})());let LP=(()=>{class t extends dJ{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,o){2&i&&(Xe("aria-disabled",!!o.disabled),et("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[ve]})}return t})();const uJ=jr(class{}),BP=new se("MAT_TAB_GROUP");let hJ=(()=>{class t extends uJ{get content(){return this._contentPortal}constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new qe,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new ya(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(vi),_(BP,8))};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&vt(gi,7),2&i){let r;Oe(r=Ae())&&(o._implicitContent=r.first)}},inputs:{textLabel:[ge.None,"label","textLabel"],ariaLabel:[ge.None,"aria-label","ariaLabel"],ariaLabelledby:[ge.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[ve,fi]})}return t})(),eg=(()=>{class t extends hJ{constructor(){super(...arguments),this._explicitContent=void 0}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-tab"]],contentQueries:function(i,o,r){if(1&i&&(gt(r,oJ,7,gi),gt(r,FC,5)),2&i){let a;Oe(a=Ae())&&(o._explicitContent=a.first),Oe(a=Ae())&&(o.templateLabel=a.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[Ye([{provide:NP,useExisting:t}]),ve],ngContentSelectors:PP,decls:1,vars:0,template:function(i,o){1&i&&(Ut(),y(0,zX,1,0,"ng-template"))},encapsulation:2})}return t})();const VP=Ja({passive:!0});let fJ=(()=>{class t{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=$e(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=yi(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}constructor(e,i,o,r,a,s,c){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=o,this._dir=r,this._ngZone=a,this._platform=s,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new qe,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new qe,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ne,this.indexFocused=new Ne,a.runOutsideAngular(()=>{er(e.nativeElement,"mouseleave").pipe(ot(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){er(this._previousPaginator.nativeElement,"touchstart",VP).pipe(ot(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),er(this._nextPaginator.nativeElement,"touchstart",VP).pipe(ot(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:Ke("ltr"),i=this._viewportRuler.change(150),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Jp(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(Pt(1)).subscribe(o),Ri(e,i,this._items.changes,this._itemsResized()).pipe(ot(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(r=>{this.indexFocused.emit(r),this._setTabFocus(r)})}_itemsResized(){return"function"!=typeof ResizeObserver?jo:this._items.changes.pipe(an(this._items),gn(e=>new li(i=>this._ngZone.runOutsideAngular(()=>{const o=new ResizeObserver(r=>i.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),l0(1),kt(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!An(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return!this._items||!!this._items.toArray()[e]}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:a}=i.elementRef.nativeElement;let s,c;"ltr"==this._getLayoutDirection()?(s=r,c=s+a):(c=this._tabListInner.nativeElement.offsetWidth-r,s=c-a);const u=this.scrollDistance,p=this.scrollDistance+o;sp&&(this.scrollDistance+=Math.min(c-p,s-u))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),Pf(650,100).pipe(ot(Ri(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:o,distance:r}=this._scrollHeader(e);(0===r||r>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Lt),_(va),_(fn,8),_(We),_(ci),_(ui,8))};static#t=this.\u0275dir=Q({type:t,inputs:{disablePagination:"disablePagination"}})}return t})(),gJ=(()=>{class t extends fJ{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=$e(e)}constructor(e,i,o,r,a,s,c){super(e,i,o,r,a,s,c),this._disableRipple=!1}_itemSelected(e){e.preventDefault()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Lt),_(va),_(fn,8),_(We),_(ci),_(ui,8))};static#t=this.\u0275dir=Q({type:t,inputs:{disableRipple:"disableRipple"},features:[ve]})}return t})(),_J=(()=>{class t extends gJ{constructor(e,i,o,r,a,s,c){super(e,i,o,r,a,s,c)}ngAfterContentInit(){this._inkBar=new aJ(this._items),super.ngAfterContentInit()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Lt),_(va),_(fn,8),_(We),_(ci),_(ui,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,o,r){if(1&i&>(r,LP,4),2&i){let a;Oe(a=Ae())&&(o._items=a)}},viewQuery:function(i,o){if(1&i&&(vt(HX,7),vt(UX,7),vt($X,7),vt(GX,5),vt(qX,5)),2&i){let r;Oe(r=Ae())&&(o._tabListContainer=r.first),Oe(r=Ae())&&(o._tabList=r.first),Oe(r=Ae())&&(o._tabListInner=r.first),Oe(r=Ae())&&(o._nextPaginator=r.first),Oe(r=Ae())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,o){2&i&&et("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==o._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ve],ngContentSelectors:PP,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(i,o){1&i&&(Ut(),d(0,"button",0,1),A("click",function(){return o._handlePaginatorClick("before")})("mousedown",function(a){return o._handlePaginatorPress("before",a)})("touchend",function(){return o._stopInterval()}),D(2,"div",2),l(),d(3,"div",3,4),A("keydown",function(a){return o._handleKeydown(a)}),d(5,"div",5,6),A("cdkObserveContent",function(){return o._onContentChanges()}),d(7,"div",7,8),Ze(9),l()()(),d(10,"button",9,10),A("mousedown",function(a){return o._handlePaginatorPress("after",a)})("click",function(){return o._handlePaginatorClick("after")})("touchend",function(){return o._stopInterval()}),D(12,"div",2),l()),2&i&&(et("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),f("matRippleDisabled",o._disableScrollBefore||o.disableRipple)("disabled",o._disableScrollBefore||null),m(3),et("_mat-animation-noopable","NoopAnimations"===o._animationMode),m(7),et("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),f("matRippleDisabled",o._disableScrollAfter||o.disableRipple)("disabled",o._disableScrollAfter||null))},dependencies:[rs,iE],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0;--mdc-tab-indicator-active-indicator-height:2px;--mdc-tab-indicator-active-indicator-shape:0;--mdc-secondary-navigation-tab-container-height:48px}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}return t})();const jP=new se("MAT_TABS_CONFIG");let bJ=0;const vJ=is(ns(class{constructor(t){this._elementRef=t}}),"primary");let yJ=(()=>{class t extends vJ{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=$e(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=yi(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=yi(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=$e(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=$e(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,o,r){super(e),this._changeDetectorRef=i,this._animationMode=r,this._tabs=new oa,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=de.EMPTY,this._tabLabelSubscription=de.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Ne,this.focusChange=new Ne,this.animationDone=new Ne,this.selectedTabChange=new Ne(!0),this._groupId=bJ++,this.animationDuration=o&&o.animationDuration?o.animationDuration:"500ms",this.disablePagination=!(!o||null==o.disablePagination)&&o.disablePagination,this.dynamicHeight=!(!o||null==o.dynamicHeight)&&o.dynamicHeight,this.contentTabIndex=o?.contentTabIndex??null,this.preserveContent=!!o?.preserveContent}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,r)=>o.isActive=r===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,o)=>{i.position=o-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const i=this._tabs.toArray();let o;for(let r=0;r{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(an(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new CJ;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Ri(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,o){i.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Lt),_(jP,8),_(ui,8))};static#t=this.\u0275dir=Q({type:t,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[ve]})}return t})(),BC=(()=>{class t extends yJ{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=$e(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=$e(e)}constructor(e,i,o,r){super(e,i,o,r),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!o||null==o.fitInkBarToContent)&&o.fitInkBarToContent,this.stretchTabs=!o||null==o.stretchTabs||o.stretchTabs}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Lt),_(jP,8),_(ui,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,o,r){if(1&i&>(r,eg,5),2&i){let a;Oe(a=Ae())&&(o._allTabs=a)}},viewQuery:function(i,o){if(1&i&&(vt(WX,5),vt(KX,5)),2&i){let r;Oe(r=Ae())&&(o._tabBodyWrapper=r.first),Oe(r=Ae())&&(o._tabHeader=r.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(i,o){2&i&&(Sn("--mat-tab-animation-duration",o.animationDuration),et("mat-mdc-tab-group-dynamic-height",o.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===o.headerPosition)("mat-mdc-tab-group-stretch-tabs",o.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:[ge.None,"mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[Ye([{provide:BP,useExisting:t}]),ve],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(i,o){1&i&&(d(0,"mat-tab-header",0,1),A("indexFocused",function(a){return o._focusChanged(a)})("selectFocusedIndex",function(a){return o.selectedIndex=a}),y(2,XX,9,17,"div",2),l(),d(3,"div",3,4),y(5,JX,1,12,"mat-tab-body",5),l()),2&i&&(f("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),m(2),f("ngForOf",o._tabs),m(),et("_mat-animation-noopable","NoopAnimations"===o._animationMode),m(2),f("ngForOf",o._tabs))},dependencies:[yr,rn,It,Ca,rs,tq,RP,LP,_J],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return t})();class CJ{}let zP=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Vn,Mt,cc,as,Zp,b0,Mt]})}return t})();function wJ(t,n){if(1&t){const e=_e();d(0,"div",2)(1,"button",3),A("click",function(){return ne(e),oe(C().action())}),h(2),l()()}if(2&t){const e=C();m(2),xe(" ",e.data.action," ")}}const xJ=["label"];function DJ(t,n){}const SJ=Math.pow(2,31)-1;class VC{constructor(n,e){this._overlayRef=e,this._afterDismissed=new qe,this._afterOpened=new qe,this._onAction=new qe,this._dismissedByAction=!1,this.containerInstance=n,n._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(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,SJ))}_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}}const HP=new se("MatSnackBarData");class tg{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let kJ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),MJ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),TJ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),IJ=(()=>{class t{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#e=this.\u0275fac=function(i){return new(i||t)(_(VC),_(HP))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0),h(1),l(),y(2,wJ,3,1,"div",1)),2&i&&(m(),xe(" ",o.data.message,"\n"),m(),f("ngIf",o.hasAction))},dependencies:[It,Yt,kJ,MJ,TJ],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return t})();const EJ={snackBarState:Lo("state",[mn("void, hidden",Zt({transform:"scale(0.8)",opacity:0})),mn("visible",Zt({transform:"scale(1)",opacity:1})),Qi("* => visible",Yi("150ms cubic-bezier(0, 0, 0.2, 1)")),Qi("* => void, * => hidden",Yi("75ms cubic-bezier(0.4, 0.0, 1, 1)",Zt({opacity:0})))])};let OJ=0,AJ=(()=>{class t extends Ff{constructor(e,i,o,r,a){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=o,this._platform=r,this.snackBarConfig=a,this._document=De(ut),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new qe,this._onExit=new qe,this._onEnter=new qe,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+OJ++,this.attachDomPortal=s=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(s);return this._afterPortalAttached(),c},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:o}=e;if(("void"===o&&"void"!==i||"hidden"===o)&&this._completeExit(),"visible"===o){const r=this._onEnter;this._ngZone.run(()=>{r.next(),r.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Pt(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(o=>e.classList.add(o)):e.classList.add(i)),this._exposeToModals()}_exposeToModals(){const e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{const i=e.getAttribute("aria-owns");if(i){const o=i.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(o=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#e=this.\u0275fac=function(i){return new(i||t)(_(We),_(Be),_(Lt),_(ci),_(tg))};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&vt(Ca,7),2&i){let r;Oe(r=Ae())&&(o._portalOutlet=r.first)}},features:[ve]})}return t})(),PJ=(()=>{class t extends AJ{_afterPortalAttached(){super._afterPortalAttached();const e=this._label.nativeElement,i="mdc-snackbar__label";e.classList.toggle(i,!e.querySelector(`.${i}`))}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,o){if(1&i&&vt(xJ,7),2&i){let r;Oe(r=Ae())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(i,o){1&i&&ep("@state.done",function(a){return o.onAnimationEnd(a)}),2&i&&Zm("@state",o._animationState)},features:[ve],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1,2)(3,"div",3),y(4,DJ,0,0,"ng-template",4),l(),D(5,"div"),l()()),2&i&&(m(5),Xe("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Ca],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;--mdc-snackbar-container-shape:4px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[EJ.snackBarState]}})}return t})(),jC=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[dc,cc,Vn,lf,Mt,Mt]})}return t})();const UP=new se("mat-snack-bar-default-options",{providedIn:"root",factory:function RJ(){return new tg}});let NJ=(()=>{class t{get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,i,o,r,a,s){this._overlay=e,this._live=i,this._injector=o,this._breakpointObserver=r,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",o){const r={...this._defaultConfig,...o};return r.data={message:e,action:i},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const r=ji.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:tg,useValue:i}]}),a=new Ll(this.snackBarContainerComponent,i.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(e,i){const o={...new tg,...this._defaultConfig,...i},r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new VC(a,r);if(e instanceof gi){const c=new ya(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{const c=this._createInjector(o,s),u=new Ll(e,void 0,c),p=a.attachComponentPortal(u);s.instance=p.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(ot(r.detachments())).subscribe(c=>{r.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Bl;i.direction=e.direction;let o=this._overlay.position().global();const r="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!r||"end"===e.horizontalPosition&&r,s=!a&&"center"!==e.horizontalPosition;return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),"top"===e.verticalPosition?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}_createInjector(e,i){return ji.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:VC,useValue:i},{provide:HP,useValue:e.data}]})}static#e=this.\u0275fac=function(i){return new(i||t)(X(Qn),X(g0),X(ji),X(u0),X(t,12),X(UP))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})(),FJ=(()=>{class t extends NJ{constructor(e,i,o,r,a,s){super(e,i,o,r,a,s),this.simpleSnackBarComponent=IJ,this.snackBarContainerComponent=PJ,this.handsetCssClass="mat-mdc-snack-bar-handset"}static#e=this.\u0275fac=function(i){return new(i||t)(X(Qn),X(g0),X(ji),X(u0),X(t,12),X(UP))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:jC})}return t})();function LJ(t,n){}class ig{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let $P=(()=>{class t extends Ff{constructor(e,i,o,r,a,s,c,u){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=r,this._interactivityChecker=a,this._ngZone=s,this._overlayRef=c,this._focusMonitor=u,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=p=>{this._portalOutlet.hasAttached();const g=this._portalOutlet.attachDomPortal(p);return this._contentAttached(),g},this._document=o,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_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(i=>{i||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._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const o=Hp(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Hp();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Hp())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ef),_(ut,8),_(ig),_(Fu),_(We),_(ah),_(zo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,o){if(1&i&&vt(Ca,7),2&i){let r;Oe(r=Ae())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,o){2&i&&Xe("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},features:[ve],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,o){1&i&&y(0,LJ,0,0,"ng-template",0)},dependencies:[Ca],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return t})();class zC{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new qe,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!An(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{!1!==e.closeOnOverlayDetachments&&this.close()})}close(n,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}}const GP=new se("DialogScrollStrategy"),BJ=new se("DialogData"),VJ=new se("DefaultDialogConfig"),zJ={provide:GP,deps:[Qn],useFactory:function jJ(t){return()=>t.scrollStrategies.block()}};let HJ=0,qP=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,o,r,a,s){this._overlay=e,this._injector=i,this._defaultOptions=o,this._parentDialog=r,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new qe,this._afterOpenedAtThisLevel=new qe,this._ariaHiddenElements=new Map,this.afterAllClosed=Vl(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(an(void 0))),this._scrollStrategy=s}open(e,i){(i={...this._defaultOptions||new ig,...i}).id=i.id||"cdk-dialog-"+HJ++,i.id&&this.getDialogById(i.id);const r=this._getOverlayConfig(i),a=this._overlay.create(r),s=new zC(a,i),c=this._attachContainer(a,s,i);return s.containerInstance=c,this._attachDialogContent(e,s,c,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){HC(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){HC(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),HC(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new Bl({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),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,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,o){const r=o.injector||o.viewContainerRef?.injector,a=[{provide:ig,useValue:o},{provide:zC,useValue:i},{provide:ah,useValue:e}];let s;o.container?"function"==typeof o.container?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=$P;const c=new Ll(s,o.viewContainerRef,ji.create({parent:r||this._injector,providers:a}),o.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,i,o,r){if(e instanceof gi){const a=this._createInjector(r,i,o,void 0);let s={$implicit:r.data,dialogRef:i};r.templateContext&&(s={...s,..."function"==typeof r.templateContext?r.templateContext():r.templateContext}),o.attachTemplatePortal(new ya(e,null,s,a))}else{const a=this._createInjector(r,i,o,this._injector),s=o.attachComponentPortal(new Ll(e,r.viewContainerRef,a,r.componentFactoryResolver));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(e,i,o,r){const a=e.injector||e.viewContainerRef?.injector,s=[{provide:BJ,useValue:e.data},{provide:zC,useValue:i}];return e.providers&&("function"==typeof e.providers?s.push(...e.providers(i,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(fn,null,{optional:!0}))&&s.push({provide:fn,useValue:{value:e.direction,change:Ke()}}),ji.create({parent:a||r,providers:s})}_removeOpenDialog(e,i){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let o=i.length-1;o>-1;o--){const r=i[o];r!==e&&"SCRIPT"!==r.nodeName&&"STYLE"!==r.nodeName&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(i){return new(i||t)(X(Qn),X(ji),X(VJ,8),X(t,12),X(Lf),X(GP))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();function HC(t,n){let e=t.length;for(;e--;)n(t[e])}let UJ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({providers:[qP,zJ],imports:[dc,cc,b0,cc]})}return t})();function $J(t,n){}class ng{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.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const UC="mdc-dialog--open",WP="mdc-dialog--opening",KP="mdc-dialog--closing";let WJ=(()=>{class t extends $P{constructor(e,i,o,r,a,s,c,u){super(e,i,o,r,a,s,c,u),this._animationStateChanged=new Ne}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ef),_(ut,8),_(ng),_(Fu),_(We),_(ah),_(zo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["ng-component"]],features:[ve],decls:0,vars:0,template:function(i,o){},encapsulation:2})}return t})();const ZP="--mat-dialog-transition-duration";function YP(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?yi(t.substring(0,t.length-2)):t.endsWith("s")?1e3*yi(t.substring(0,t.length-1)):"0"===t?0:null}let KJ=(()=>{class t extends WJ{constructor(e,i,o,r,a,s,c,u,p){super(e,i,o,r,a,s,c,p),this._animationMode=u,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?YP(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?YP(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(ZP,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(WP,UC)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(UC),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(UC),this._animationsEnabled?(this._hostElement.style.setProperty(ZP,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(KP)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(WP,KP)}_waitForAnimationToComplete(e,i){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ef),_(ut,8),_(ng),_(Fu),_(We),_(ah),_(ui,8),_(zo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(i,o){2&i&&(ao("id",o._config.id),Xe("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),et("_mat-animation-noopable",!o._animationsEnabled))},features:[ve],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1),y(2,$J,0,0,"ng-template",2),l()())},dependencies:[Ca],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return t})();class bn{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new qe,this._beforeClosed=new qe,this._state=0,this.disableClose=e.disableClose,this.id=n.id,i._animationStateChanged.pipe(kt(o=>"opened"===o.state),Pt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(kt(o=>"closed"===o.state),Pt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Ri(this.backdropClick(),this.keydownEvents().pipe(kt(o=>27===o.keyCode&&!this.disableClose&&!An(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),QP(this,"keydown"===o.type?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(kt(e=>"closing"===e.state),Pt(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function QP(t,n,e){return t._closeInteractionType=n,t.close(e)}const mo=new se("MatMdcDialogData"),ZJ=new se("mat-mdc-dialog-default-options"),XP=new se("mat-mdc-dialog-scroll-strategy"),QJ={provide:XP,deps:[Qn],useFactory:function YJ(t){return()=>t.scrollStrategies.block()}};let XJ=0,JJ=(()=>{class t{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}constructor(e,i,o,r,a,s,c,u,p,g){this._overlay=e,this._defaultOptions=o,this._parentDialog=r,this._dialogRefConstructor=c,this._dialogContainerType=u,this._dialogDataToken=p,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new qe,this._afterOpenedAtThisLevel=new qe,this._idPrefix="mat-dialog-",this.dialogConfigClass=ng,this.afterAllClosed=Vl(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(an(void 0))),this._scrollStrategy=s,this._dialog=i.get(qP)}open(e,i){let o;(i={...this._defaultOptions||new ng,...i}).id=i.id||`${this._idPrefix}${XJ++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const r=this._dialog.open(e,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:ig,useValue:i}]},templateContext:()=>({dialogRef:o}),providers:(a,s,c)=>(o=new this._dialogRefConstructor(a,i,c),o.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])});return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{const a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static#e=this.\u0275fac=function(i){Pr()};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})(),Hr=(()=>{class t extends JJ{constructor(e,i,o,r,a,s,c,u){super(e,i,r,s,c,a,bn,KJ,mo,u),this._idPrefix="mat-mdc-dialog-"}static#e=this.\u0275fac=function(i){return new(i||t)(X(Qn),X(ji),X(Ws,8),X(ZJ,8),X(XP),X(t,12),X(Lf),X(ui,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})(),eee=0,zn=(()=>{class t{constructor(e,i,o){this.dialogRef=e,this._elementRef=i,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=JP(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){QP(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(i){return new(i||t)(_(bn,8),_(Be),_(Hr))};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,o){1&i&&A("click",function(a){return o._onButtonClick(a)}),2&i&&Xe("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:[ge.None,"aria-label","ariaLabel"],type:"type",dialogResult:[ge.None,"mat-dialog-close","dialogResult"],_matDialogClose:[ge.None,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[fi]})}return t})(),tee=(()=>{class t{constructor(e,i,o){this._dialogRef=e,this._elementRef=i,this._dialog=o,this.id="mat-mdc-dialog-title-"+eee++}ngOnInit(){this._dialogRef||(this._dialogRef=JP(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const e=this._dialogRef?._containerInstance?._ariaLabelledByQueue;e&&Promise.resolve().then(()=>{const i=e.indexOf(this.id);i>-1&&e.splice(i,1)})}static#e=this.\u0275fac=function(i){return new(i||t)(_(bn,8),_(Be),_(Hr))};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,o){2&i&&ao("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]})}return t})(),So=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]})}return t})(),ko=(()=>{class t{constructor(){this.align="start"}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(i,o){2&i&&et("mat-mdc-dialog-actions-align-center","center"===o.align)("mat-mdc-dialog-actions-align-end","end"===o.align)},inputs:{align:"align"}})}return t})();function JP(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}let eR=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({providers:[Hr,QJ],imports:[UJ,dc,cc,Mt,Mt]})}return t})();const iee=["tooltip"],iR=new se("mat-tooltip-scroll-strategy"),ree={provide:iR,deps:[Qn],useFactory:function oee(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},see=new se("mat-tooltip-default-options",{providedIn:"root",factory:function aee(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),nR="tooltip-panel",oR=Ja({passive:!0});let mee=(()=>{class t{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=$e(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=yi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=yi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,o,r,a,s,c,u,p,g,b,w){this._overlay=e,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=r,this._ngZone=a,this._platform=s,this._ariaDescriber=c,this._focusMonitor=u,this._dir=g,this._defaultOptions=b,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new qe,this._scrollStrategy=p,this._document=w,b&&(this._showDelay=b.showDelay,this._hideDelay=b.hideDelay,b.position&&(this.position=b.position),b.positionAtOrigin&&(this.positionAtOrigin=b.positionAtOrigin),b.touchGestures&&(this.touchGestures=b.touchGestures)),g.change.pipe(ot(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ot(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,o])=>{e.removeEventListener(i,o,oR)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const o=this._createOverlay(i);this._detach(),this._portal=this._portal||new Ll(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(ot(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&r._origin instanceof Be)return this._overlayRef;this._detach()}const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(ot(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${nR}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ot(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ot(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ot(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!An(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();i.withPositions([this._addOffset({...o.main,...r.main}),this._addOffset({...o.fallback,...r.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i||"below"==i?o={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={originX:"end",originY:"center"});const{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i?o={overlayX:"center",overlayY:"bottom"}:"below"==i?o={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={overlayX:"start",overlayY:"center"});const{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Pt(1),ot(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:o,originY:r}=e;let a;if(a="center"===i?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===i&&"top"===r?"above":"below",a!==this._currentPosition){const s=this._overlayRef;if(s){const c=`${this._cssClassPrefix}-${nR}-`;s.removePanelClass(c+this._currentPosition),s.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(i=e),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const i=e.targetTouches?.[0],o=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{const o=i.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,o])=>{this._elementRef.nativeElement.addEventListener(i,o,oR)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,o=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(i){Pr()};static#t=this.\u0275dir=Q({type:t,inputs:{position:[ge.None,"matTooltipPosition","position"],positionAtOrigin:[ge.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[ge.None,"matTooltipDisabled","disabled"],showDelay:[ge.None,"matTooltipShowDelay","showDelay"],hideDelay:[ge.None,"matTooltipHideDelay","hideDelay"],touchGestures:[ge.None,"matTooltipTouchGestures","touchGestures"],message:[ge.None,"matTooltip","message"],tooltipClass:[ge.None,"matTooltipClass","tooltipClass"]}})}return t})(),vn=(()=>{class t extends mee{constructor(e,i,o,r,a,s,c,u,p,g,b,w){super(e,i,o,r,a,s,c,u,p,g,b,w),this._tooltipComponent=fee,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(e){const o=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=o?-8:8:"end"===e.originX&&(e.offsetX=o?8:-8),e}static#e=this.\u0275fac=function(i){return new(i||t)(_(Qn),_(Be),_(oh),_(vi),_(We),_(ci),_(FG),_(zo),_(iR),_(fn,8),_(see,8),_(ut))};static#t=this.\u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,o){2&i&&et("mat-mdc-tooltip-disabled",o.disabled)},exportAs:["matTooltip"],features:[ve]})}return t})(),pee=(()=>{class t{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new qe,this._animationsDisabled="NoopAnimations"===i}show(e){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(i.classList.remove(e?r:o),i.classList.add(e?o:r),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(i);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static#e=this.\u0275fac=function(i){return new(i||t)(_(Lt),_(ui,8))};static#t=this.\u0275dir=Q({type:t})}return t})(),fee=(()=>{class t extends pee{constructor(e,i,o){super(e,o),this._elementRef=i,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}static#e=this.\u0275fac=function(i){return new(i||t)(_(Lt),_(Be),_(ui,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,o){if(1&i&&vt(iee,7),2&i){let r;Oe(r=Ae())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,o){1&i&&A("mouseleave",function(a){return o._handleMouseLeave(a)}),2&i&&Sn("zoom",o.isVisible()?1:null)},features:[ve],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(i,o){1&i&&(d(0,"div",0,1),A("animationend",function(a){return o._handleAnimationEnd(a)}),d(2,"div",2),h(3),l()()),2&i&&(et("mdc-tooltip--multiline",o._isMultiline),f("ngClass",o.tooltipClass),m(3),Pe(o.message))},dependencies:[yr],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return t})(),$C=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({providers:[ree],imports:[b0,Vn,dc,Mt,Mt,ms]})}return t})();const gee=["input"],_ee=["label"],bee=["*"],vee=new se("mat-checkbox-default-options",{providedIn:"root",factory:rR});function rR(){return{color:"accent",clickAction:"check-indeterminate"}}const yee={provide:uo,useExisting:Qt(()=>og),multi:!0};class Cee{}let wee=0;const aR=rR(),xee=os(is(ns(jr(class{constructor(t){this._elementRef=t}}))));let Dee=(()=>{class t extends xee{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=$e(e)}constructor(e,i,o,r,a,s,c){super(i),this._changeDetectorRef=o,this._ngZone=r,this._animationMode=s,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Ne,this.indeterminateChange=new Ne,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||aR,this.color=this.defaultColor=this._options.color||aR.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${e}${++wee}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=$e(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=$e(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=$e(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_transitionCheckState(e){let i=this._currentCheckState,o=this._getAnimationTargetElement();if(i!==e&&o&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);const r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===i)return this._animationClasses.uncheckedToChecked;if(3==i)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===i?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===i?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===i?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}static#e=this.\u0275fac=function(i){Pr()};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&(vt(gee,5),vt(_ee,5),vt(rs,5)),2&i){let r;Oe(r=Ae())&&(o._inputElement=r.first),Oe(r=Ae())&&(o._labelElement=r.first),Oe(r=Ae())&&(o.ripple=r.first)}},inputs:{ariaLabel:[ge.None,"aria-label","ariaLabel"],ariaLabelledby:[ge.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[ge.None,"aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[ve]})}return t})(),og=(()=>{class t extends Dee{constructor(e,i,o,r,a,s){super("mat-mdc-checkbox-",e,i,o,r,a,s),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const i=new Cee;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Lt),_(We),oo("tabindex"),_(ui,8),_(vee,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(i,o){2&i&&(ao("id",o.id),Xe("tabindex",null)("aria-label",null)("aria-labelledby",null),et("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[Ye([yee]),ve],ngContentSelectors:bee,decls:15,vars:20,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"],["label",""]],template:function(i,o){if(1&i&&(Ut(),d(0,"div",0),A("click",function(a){return o._preventBubblingFromLabel(a)}),d(1,"div",1,2)(3,"div",3),A("click",function(){return o._onTouchTargetClick()}),l(),d(4,"input",4,5),A("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(a){return o._onInteractionEvent(a)}),l(),D(6,"div",6),d(7,"div",7),ei(),d(8,"svg",8),D(9,"path",9),l(),pr(),D(10,"div",10),l(),D(11,"div",11),l(),d(12,"label",12,13),Ze(14),l()()),2&i){const r=Ft(2);et("mdc-form-field--align-end","before"==o.labelPosition),m(4),et("mdc-checkbox--selected",o.checked),f("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled)("id",o.inputId)("required",o.required)("tabIndex",o.tabIndex),Xe("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("name",o.name)("value",o.value),m(7),f("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),f("for",o.inputId)}},dependencies:[rs],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}html{--mdc-checkbox-disabled-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-state-layer-opacity:0.16;--mdc-checkbox-selected-hover-state-layer-opacity:0.04;--mdc-checkbox-selected-pressed-state-layer-opacity:0.16;--mdc-checkbox-unselected-focus-state-layer-opacity:0.16;--mdc-checkbox-unselected-hover-state-layer-opacity:0.04;--mdc-checkbox-unselected-pressed-state-layer-opacity:0.16}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})(),sR=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({})}return t})(),cR=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Mt,as,sR,Mt,sR]})}return t})();const rg=["*"],Mee=["content"];function Tee(t,n){if(1&t){const e=_e();d(0,"div",2),A("click",function(){return ne(e),oe(C()._onBackdropClicked())}),l()}2&t&&et("mat-drawer-shown",C()._isShowingBackdrop())}function Iee(t,n){1&t&&(d(0,"mat-drawer-content"),Ze(1,2),l())}const Eee=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Oee=["mat-drawer","mat-drawer-content","*"];function Aee(t,n){if(1&t){const e=_e();d(0,"div",2),A("click",function(){return ne(e),oe(C()._onBackdropClicked())}),l()}2&t&&et("mat-drawer-shown",C()._isShowingBackdrop())}function Pee(t,n){1&t&&(d(0,"mat-sidenav-content"),Ze(1,2),l())}const Ree=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Nee=["mat-sidenav","mat-sidenav-content","*"],lR={transformDrawer:Lo("transform",[mn("open, open-instant",Zt({transform:"none",visibility:"visible"})),mn("void",Zt({"box-shadow":"none",visibility:"hidden"})),Qi("void => open-instant",Yi("0ms")),Qi("void <=> open, open-instant => void",Yi("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Lee=new se("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Bee(){return!1}}),GC=new se("MAT_DRAWER_CONTAINER");let ag=(()=>{class t extends rh{constructor(e,i,o,r,a){super(o,r,a),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Lt),_(Qt(()=>uR)),_(Be),_(oh),_(We))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-drawer-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content"],hostVars:4,hostBindings:function(i,o){2&i&&Sn("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},features:[Ye([{provide:rh,useExisting:t}]),ve],ngContentSelectors:rg,decls:1,vars:0,template:function(i,o){1&i&&(Ut(),Ze(0))},encapsulation:2,changeDetection:0})}return t})(),dR=(()=>{class t{get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=$e(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=$e(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle($e(e))}constructor(e,i,o,r,a,s,c,u){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=o,this._platform=r,this._ngZone=a,this._interactivityChecker=s,this._doc=c,this._container=u,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new qe,this._animationEnd=new qe,this._animationState="void",this.openedChange=new Ne(!0),this._openedStream=this.openedChange.pipe(kt(p=>p),nt(()=>{})),this.openedStart=this._animationStarted.pipe(kt(p=>p.fromState!==p.toState&&0===p.toState.indexOf("open")),Bf(void 0)),this._closedStream=this.openedChange.pipe(kt(p=>!p),nt(()=>{})),this.closedStart=this._animationStarted.pipe(kt(p=>p.fromState!==p.toState&&"void"===p.toState),Bf(void 0)),this._destroyed=new qe,this.onPositionChanged=new Ne,this._modeChanged=new qe,this.openedChange.subscribe(p=>{p?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{er(this._elementRef.nativeElement,"keydown").pipe(kt(p=>27===p.keyCode&&!this.disableClose&&!An(p)),ot(this._destroyed)).subscribe(p=>this._ngZone.run(()=>{this.close(),p.stopPropagation(),p.preventDefault()}))}),this._animationEnd.pipe(Ru((p,g)=>p.fromState===g.fromState&&p.toState===g.toState)).subscribe(p=>{const{fromState:g,toState:b}=p;(0===b.indexOf("open")&&"void"===g||"void"===b&&0===g.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{!i&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);const o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,i,o){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(r=>{this.openedChange.pipe(Pt(1)).subscribe(a=>r(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(e){const i=this._elementRef.nativeElement,o=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ef),_(zo),_(ci),_(We),_(Fu),_(ut,8),_(GC,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,o){if(1&i&&vt(Mee,5),2&i){let r;Oe(r=Ae())&&(o._content=r.first)}},hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer"],hostVars:12,hostBindings:function(i,o){1&i&&ep("@transform.start",function(a){return o._animationStarted.next(a)})("@transform.done",function(a){return o._animationEnd.next(a)}),2&i&&(Xe("align",null),Zm("@transform",o._animationState),et("mat-drawer-end","end"===o.position)("mat-drawer-over","over"===o.mode)("mat-drawer-push","push"===o.mode)("mat-drawer-side","side"===o.mode)("mat-drawer-opened",o.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:rg,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(i,o){1&i&&(Ut(),d(0,"div",0,1),Ze(2),l())},dependencies:[rh],encapsulation:2,data:{animation:[lR.transformDrawer]},changeDetection:0})}return t})(),uR=(()=>{class t{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=$e(e)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=null==e?null:$e(e)}get scrollable(){return this._userContent||this._content}constructor(e,i,o,r,a,s=!1,c){this._dir=e,this._element=i,this._ngZone=o,this._changeDetectorRef=r,this._animationMode=c,this._drawers=new oa,this.backdropClick=new Ne,this._destroyed=new qe,this._doCheckSubject=new qe,this._contentMargins={left:null,right:null},this._contentMarginChanges=new qe,e&&e.change.pipe(ot(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(ot(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}ngAfterContentInit(){this._allDrawers.changes.pipe(an(this._allDrawers),ot(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(an(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Wp(10),ot(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const o=this._left._getWidth();e+=o,i-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const o=this._right._getWidth();i+=o,e-=o}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(kt(i=>i.fromState!==i.toState),ot(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(ot(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(ot(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Pt(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(ot(Ri(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?i.add(o):i.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return null!=e&&e.opened}_drawerHasBackdrop(e){return null==this._backdropOverride?!!e&&"side"!==e.mode:this._backdropOverride}static#e=this.\u0275fac=function(i){return new(i||t)(_(fn,8),_(Be),_(We),_(Lt),_(va),_(Lee),_(ui,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,o,r){if(1&i&&(gt(r,ag,5),gt(r,dR,5)),2&i){let a;Oe(a=Ae())&&(o._content=a.first),Oe(a=Ae())&&(o._allDrawers=a)}},viewQuery:function(i,o){if(1&i&&vt(ag,5),2&i){let r;Oe(r=Ae())&&(o._userContent=r.first)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,o){2&i&&et("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ye([{provide:GC,useExisting:t}])],ngContentSelectors:Oee,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,o){1&i&&(Ut(Eee),y(0,Tee,1,2,"div",0),Ze(1),Ze(2,1),y(3,Iee,2,0,"mat-drawer-content",1)),2&i&&(f("ngIf",o.hasBackdrop),m(3),f("ngIf",!o._content))},dependencies:[It,ag],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return t})(),qC=(()=>{class t extends ag{constructor(e,i,o,r,a){super(e,i,o,r,a)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Lt),_(Qt(()=>mR)),_(Be),_(oh),_(We))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(i,o){2&i&&Sn("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},features:[Ye([{provide:rh,useExisting:t}]),ve],ngContentSelectors:rg,decls:1,vars:0,template:function(i,o){1&i&&(Ut(),Ze(0))},encapsulation:2,changeDetection:0})}return t})(),hR=(()=>{class t extends dR{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=$e(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=yi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=yi(e)}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(i,o){2&i&&(Xe("align",null),Sn("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),et("mat-drawer-end","end"===o.position)("mat-drawer-over","over"===o.mode)("mat-drawer-push","push"===o.mode)("mat-drawer-side","side"===o.mode)("mat-drawer-opened",o.opened)("mat-sidenav-fixed",o.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[ve],ngContentSelectors:rg,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(i,o){1&i&&(Ut(),d(0,"div",0,1),Ze(2),l())},dependencies:[rh],encapsulation:2,data:{animation:[lR.transformDrawer]},changeDetection:0})}return t})(),mR=(()=>{class t extends uR{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(i,o,r){if(1&i&&(gt(r,qC,5),gt(r,hR,5)),2&i){let a;Oe(a=Ae())&&(o._content=a.first),Oe(a=Ae())&&(o._allDrawers=a)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,o){2&i&&et("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ye([{provide:GC,useExisting:t}]),ve],ngContentSelectors:Nee,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,o){1&i&&(Ut(Ree),y(0,Aee,1,2,"div",0),Ze(1),Ze(2,1),y(3,Pee,2,0,"mat-sidenav-content",1)),2&i&&(f("ngIf",o.hasBackdrop),m(3),f("ngIf",!o._content))},dependencies:[It,qC],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return t})(),pR=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Vn,Mt,ms,ms,Mt]})}return t})();const Vee=["panel"];function jee(t,n){if(1&t){const e=_e();d(0,"div",0,1),A("@panelAnimation.done",function(o){return ne(e),oe(C()._animationDone.next(o))}),Ze(2),l()}if(2&t){const e=n.id,i=C();f("id",i.id)("ngClass",i._classList)("@panelAnimation",i.isOpen?"visible":"hidden"),Xe("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const zee=["*"],Hee=Lo("panelAnimation",[mn("void, hidden",Zt({opacity:0,transform:"scaleY(0.8)"})),Qi(":enter, hidden => visible",[vy([Yi("0.03s linear",Zt({opacity:1})),Yi("0.12s cubic-bezier(0, 0, 0.2, 1)",Zt({transform:"scaleY(1)"}))])]),Qi(":leave, visible => hidden",[Yi("0.075s linear",Zt({opacity:0}))])]);let Uee=0;class $ee{constructor(n,e){this.source=n,this.option=e}}const Gee=ns(class{}),fR=new se("mat-autocomplete-default-options",{providedIn:"root",factory:function qee(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let Wee=(()=>{class t extends Gee{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=$e(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=$e(e)}get requireSelection(){return this._requireSelection}set requireSelection(e){this._requireSelection=$e(e)}set classList(e){this._classList=e&&e.length?function yG(t,n=/\s+/){const e=[];if(null!=t){const i=Array.isArray(t)?t:`${t}`.split(n);for(const o of i){const r=`${o}`.trim();r&&e.push(r)}}return e}(e).reduce((i,o)=>(i[o]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(e,i,o,r){super(),this._changeDetectorRef=e,this._elementRef=i,this._defaults=o,this._activeOptionChanges=de.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Ne,this.opened=new Ne,this.closed=new Ne,this.optionActivated=new Ne,this._classList={},this.id="mat-autocomplete-"+Uee++,this.inertGroups=r?.SAFARI||!1,this._autoActiveFirstOption=!!o.autoActiveFirstOption,this._autoSelectActiveOption=!!o.autoSelectActiveOption,this._requireSelection=!!o.requireSelection}ngAfterContentInit(){this._keyManager=new hE(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new $ee(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}_setThemeClasses(e){e["mat-primary"]="primary"===this._color,e["mat-warn"]="warn"===this._color,e["mat-accent"]="accent"===this._color}_skipPredicate(e){return e.disabled}static#e=this.\u0275fac=function(i){return new(i||t)(_(Lt),_(Be),_(fR),_(ci))};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&(vt(gi,7),vt(Vee,5)),2&i){let r;Oe(r=Ae())&&(o.template=r.first),Oe(r=Ae())&&(o.panel=r.first)}},inputs:{ariaLabel:[ge.None,"aria-label","ariaLabel"],ariaLabelledby:[ge.None,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",requireSelection:"requireSelection",panelWidth:"panelWidth",classList:[ge.None,"class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[ve]})}return t})(),Kee=(()=>{class t extends Wee{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new Ne,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=$e(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}ngOnDestroy(){super.ngOnDestroy(),this._animationDone.complete()}_skipPredicate(e){return!1}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,o,r){if(1&i&&(gt(r,af,5),gt(r,Tn,5)),2&i){let a;Oe(a=Ae())&&(o.optionGroups=a),Oe(a=Ae())&&(o.options=a)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[Ye([{provide:rf,useExisting:t}]),ve],ngContentSelectors:zee,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(i,o){1&i&&(Ut(),y(0,jee,3,5,"ng-template"))},dependencies:[yr],styles:["div.mat-mdc-autocomplete-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Hee]},changeDetection:0})}return t})();const Zee={provide:uo,useExisting:Qt(()=>_R),multi:!0},gR=new se("mat-autocomplete-scroll-strategy"),Qee={provide:gR,deps:[Qn],useFactory:function Yee(t){return()=>t.scrollStrategies.reposition()}};let Xee=(()=>{class t{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=$e(e)}constructor(e,i,o,r,a,s,c,u,p,g,b){this._element=e,this._overlay=i,this._viewContainerRef=o,this._zone=r,this._changeDetectorRef=a,this._dir=c,this._formField=u,this._document=p,this._viewportRuler=g,this._defaults=b,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=de.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new qe,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Vl(()=>{const w=this.autocomplete?this.autocomplete.options:null;return w?w.changes.pipe(an(w),gn(()=>Ri(...w.map(S=>S.onSelectionChange)))):this._zone.onStable.pipe(Pt(1),gn(()=>this.optionSelections))}),this._handlePanelKeydown=w=>{(27===w.keyCode&&!An(w)||38===w.keyCode&&An(w,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),w.stopPropagation(),w.preventDefault())},this._trackedModal=null,this._scrollStrategy=s}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel(),this._trackedModal&&Yp(this._trackedModal,"aria-owns",this.autocomplete.id)}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal)&&Tl(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Ri(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(kt(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(kt(()=>this._overlayAttached)):Ke()).pipe(nt(e=>e instanceof IE?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Ri(er(this._document,"click"),er(this._document,"auxclick"),er(this._document,"touchend")).pipe(kt(e=>{const i=pa(e),o=this._formField?this._formField._elementRef.nativeElement:null,r=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(i))&&(!r||!r.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,o=An(e);if(27===i&&!o&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const r=this.autocomplete._keyManager.activeItem,a=38===i||40===i;9===i||a&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==r)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,o=i.value;"number"===i.type&&(o=""==o?null:parseFloat(o)),this._previousValue!==o&&(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),o||this._clearPreviousSelectedOption(null,!1),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Ri(this._zone.onStable.pipe(Pt(1)),this.autocomplete.options.changes.pipe(qt(()=>this._positionStrategy.reapplyLastPosition()),hC(0))).pipe(gn(()=>(this._zone.run(()=>{const o=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?(this._captureValueOnAttach(),this._emitOpened()):this.autocomplete.closed.emit())}),this.panelClosingActions)),Pt(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_captureValueOnAttach(){this._valueOnAttach=this._element.nativeElement.value}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const i=this.autocomplete,o=e?e.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),i._emitSelectEvent(o),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),i._animationDone?i._animationDone.pipe(Pt(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(i)})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new ya(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const i=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this._captureValueOnAttach(),this.panelOpen&&i!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Bl({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}];let a;a="above"===this.position?r:"below"===this.position?i:[...i,...r],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;const i=this.autocomplete.id;this._trackedModal&&Tl(this._trackedModal,"aria-owns",i),Yp(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(Tl(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(Qn),_(vi),_(We),_(Lt),_(gR),_(fn,8),_(th,9),_(ut,8),_(va),_(fR,8))};static#t=this.\u0275dir=Q({type:t,inputs:{autocomplete:[ge.None,"matAutocomplete","autocomplete"],position:[ge.None,"matAutocompletePosition","position"],connectedTo:[ge.None,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[ge.None,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[ge.None,"matAutocompleteDisabled","autocompleteDisabled"]},features:[fi]})}return t})(),_R=(()=>{class t extends Xee{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,o){1&i&&A("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),2&i&&Xe("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||null==o.autocomplete?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[Ye([Zee]),ve]})}return t})(),bR=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({providers:[Qee],imports:[dc,sf,Mt,Vn,ms,sf,Mt]})}return t})();function Jee(t,n){if(1&t&&(d(0,"mat-option",19),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),xe(" ",e," ")}}function ete(t,n){if(1&t){const e=_e();d(0,"mat-form-field",16)(1,"mat-select",17),A("selectionChange",function(o){return ne(e),oe(C(2)._changePageSize(o.value))}),y(2,Jee,2,2,"mat-option",18),l()()}if(2&t){const e=C(2);f("appearance",e._formFieldAppearance)("color",e.color),m(),f("value",e.pageSize)("disabled",e.disabled)("aria-labelledby",e._pageSizeLabelId)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),m(),f("ngForOf",e._displayedPageSizeOptions)}}function tte(t,n){if(1&t&&(d(0,"div",20),h(1),l()),2&t){const e=C(2);m(),Pe(e.pageSize)}}function ite(t,n){if(1&t&&(d(0,"div",12)(1,"div",13),h(2),l(),y(3,ete,3,8,"mat-form-field",14)(4,tte,2,1,"div",15),l()),2&t){const e=C();m(),vv("id",e._pageSizeLabelId),m(),xe(" ",e._intl.itemsPerPageLabel," "),m(),f("ngIf",e._displayedPageSizeOptions.length>1),m(),f("ngIf",e._displayedPageSizeOptions.length<=1)}}function nte(t,n){if(1&t){const e=_e();d(0,"button",21),A("click",function(){return ne(e),oe(C().firstPage())}),ei(),d(1,"svg",7),D(2,"path",22),l()()}if(2&t){const e=C();f("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Xe("aria-label",e._intl.firstPageLabel)}}function ote(t,n){if(1&t){const e=_e();ei(),pr(),d(0,"button",23),A("click",function(){return ne(e),oe(C().lastPage())}),ei(),d(1,"svg",7),D(2,"path",24),l()()}if(2&t){const e=C();f("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Xe("aria-label",e._intl.lastPageLabel)}}let sg=(()=>{class t{constructor(){this.changes=new qe,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,i,o)=>{if(0==o||0==i)return`0 of ${o}`;const r=e*i;return`${r+1} \u2013 ${r<(o=Math.max(o,0))?Math.min(r+i,o):r+i} of ${o}`}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const ate={provide:sg,deps:[[new za,new Vc,sg]],useFactory:function rte(t){return t||new sg}},cte=new se("MAT_PAGINATOR_DEFAULT_OPTIONS"),lte=jr(gq(class{}));let dte=(()=>{class t extends lte{get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(yi(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=yi(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(yi(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>yi(i)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=$e(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=$e(e)}constructor(e,i,o){if(super(),this._intl=e,this._changeDetectorRef=i,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new Ne,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),o){const{pageSize:r,pageSizeOptions:a,hidePageSize:s,showFirstLastButtons:c}=o;null!=r&&(this._pageSize=r),null!=a&&(this._pageSizeOptions=a),null!=s&&(this._hidePageSize=s),null!=c&&(this._showFirstLastButtons=c)}}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static#e=this.\u0275fac=function(i){Pr()};static#t=this.\u0275dir=Q({type:t,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[ve]})}return t})(),ute=0,WC=(()=>{class t extends dte{constructor(e,i,o){super(e,i,o),this._pageSizeLabelId="mat-paginator-page-size-label-"+ute++,this._formFieldAppearance=o?.formFieldAppearance||"outline"}static#e=this.\u0275fac=function(i){return new(i||t)(_(sg),_(Lt),_(cte,8))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[ve],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size",4,"ngIf"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label",3,"id"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-mdc-paginator-page-size-value",4,"ngIf"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1),y(2,ite,5,4,"div",2),d(3,"div",3)(4,"div",4),h(5),l(),y(6,nte,3,5,"button",5),d(7,"button",6),A("click",function(){return o.previousPage()}),ei(),d(8,"svg",7),D(9,"path",8),l()(),pr(),d(10,"button",9),A("click",function(){return o.nextPage()}),ei(),d(11,"svg",7),D(12,"path",10),l()(),y(13,ote,3,5,"button",11),l()()()),2&i&&(m(2),f("ngIf",!o.hidePageSize),m(3),xe(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),m(),f("ngIf",o.showFirstLastButtons),m(),f("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("matTooltipPosition","above")("disabled",o._previousButtonsDisabled()),Xe("aria-label",o._intl.previousPageLabel),m(3),f("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("matTooltipPosition","above")("disabled",o._nextButtonsDisabled()),Xe("aria-label",o._intl.nextPageLabel),m(3),f("ngIf",o.showFirstLastButtons))},dependencies:[rn,It,ba,Di,Xn,Tn,vn],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return t})(),vR=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({providers:[ate],imports:[Vn,lf,uC,$C]})}return t})();const hte=[FE,lf,gO,bO,CO,kA,ih,jA,uC,CA,oP,dP,vP,OC,vR,OP,zP,jC,eR,A0,$C,cR,pR,bR];let mte=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[hte,FE,lf,gO,bO,CO,kA,ih,jA,uC,CA,oP,dP,vP,OC,vR,OP,zP,jC,eR,A0,$C,cR,pR,bR]})}return t})();const pte=["input"],fte=["*"];let yR=0;class CR{constructor(n,e){this.source=n,this.value=e}}const gte={provide:uo,useExisting:Qt(()=>cg),multi:!0},wR=new se("MatRadioGroup"),_te=new se("mat-radio-default-options",{providedIn:"root",factory:function bte(){return{color:"accent"}}});let vte=(()=>{class t{get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=$e(e),this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+yR++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new Ne}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new CR(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Lt))};static#t=this.\u0275dir=Q({type:t,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}})}return t})();class yte{constructor(n){this._elementRef=n}}const Cte=ns(os(yte));let wte=(()=>{class t extends Cte{get checked(){return this._checked}set checked(e){const i=$e(e);this._checked!==i&&(this._checked=i,i&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!i&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),i&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled($e(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=$e(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,o,r,a,s,c,u){super(i),this._changeDetector=o,this._focusMonitor=r,this._radioDispatcher=a,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++yR,this.id=this._uniqueId,this.change=new Ne,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,u&&(this.tabIndex=yi(u,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new CR(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let i;if(i=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,i!==this._previousTabIndex){const o=this._inputElement?.nativeElement;o&&(o.setAttribute("tabindex",i+""),this._previousTabIndex=i)}}static#e=this.\u0275fac=function(i){Pr()};static#t=this.\u0275dir=Q({type:t,viewQuery:function(i,o){if(1&i&&vt(pte,5),2&i){let r;Oe(r=Ae())&&(o._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:[ge.None,"aria-label","ariaLabel"],ariaLabelledby:[ge.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[ge.None,"aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[ve]})}return t})(),cg=(()=>{class t extends vte{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275dir=Q({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,o,r){if(1&i&>(r,lg,5),2&i){let a;Oe(a=Ae())&&(o._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[Ye([gte,{provide:wR,useExisting:t}]),ve]})}return t})(),lg=(()=>{class t extends wte{constructor(e,i,o,r,a,s,c,u){super(e,i,o,r,a,s,c,u)}static#e=this.\u0275fac=function(i){return new(i||t)(_(wR,8),_(Be),_(Lt),_(zo),_(N0),_(ui,8),_(_te,8),oo("tabindex"))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(i,o){1&i&&A("focus",function(){return o._inputElement.nativeElement.focus()}),2&i&&(Xe("id",o.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),et("mat-primary","primary"===o.color)("mat-accent","accent"===o.color)("mat-warn","warn"===o.color)("mat-mdc-radio-checked",o.checked)("_mat-animation-noopable",o._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[ve],ngContentSelectors:fte,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,o){if(1&i&&(Ut(),d(0,"div",0,1)(2,"div",2)(3,"div",3),A("click",function(a){return o._onTouchTargetClick(a)}),l(),d(4,"input",4,5),A("change",function(a){return o._onInputInteraction(a)}),l(),d(6,"div",6),D(7,"div",7)(8,"div",8),l(),d(9,"div",9),D(10,"div",10),l()(),d(11,"label",11),Ze(12),l()()),2&i){const r=Ft(1);et("mdc-form-field--align-end","before"==o.labelPosition),m(2),et("mdc-radio--disabled",o.disabled),m(2),f("id",o.inputId)("checked",o.checked)("disabled",o.disabled)("required",o.required),Xe("name",o.name)("value",o.value)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby),m(5),f("matRippleTrigger",r)("matRippleDisabled",o._isRippleDisabled())("matRippleCentered",!0),m(2),f("for",o.inputId)}},dependencies:[rs],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{--mdc-radio-disabled-selected-icon-opacity:0.38;--mdc-radio-disabled-unselected-icon-opacity:0.38;--mdc-radio-state-layer-size:40px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}return t})(),xte=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Mt,Vn,as,Mt]})}return t})();class Dte{constructor(n,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),o=i.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",i.setAttribute("aria-hidden","true"),i.value=n,i.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(i)}copy(){const n=this._textarea;let e=!1;try{if(n){const i=this._document.activeElement;n.select(),n.setSelectionRange(0,n.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch{}return e}destroy(){const n=this._textarea;n&&(n.remove(),this._textarea=void 0)}}let Ste=(()=>{class t{constructor(e){this._document=e}copy(e){const i=this.beginCopy(e),o=i.copy();return i.destroy(),o}beginCopy(e){return new Dte(e,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(X(ut))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const kte=new se("CDK_COPY_TO_CLIPBOARD_CONFIG");let KC=(()=>{class t{constructor(e,i,o){this._clipboard=e,this._ngZone=i,this.text="",this.attempts=1,this.copied=new Ne,this._pending=new Set,o&&null!=o.attempts&&(this.attempts=o.attempts)}copy(e=this.attempts){if(e>1){let i=e;const o=this._clipboard.beginCopy(this.text);this._pending.add(o);const r=()=>{const a=o.copy();a||! --i||this._destroyed?(this._currentTimeout=null,this._pending.delete(o),o.destroy(),this.copied.emit(a)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(r,1))};r()}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}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ste),_(We),_(kte,8))};static#t=this.\u0275dir=Q({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(i,o){1&i&&A("click",function(){return o.copy()})},inputs:{text:[ge.None,"cdkCopyToClipboard","text"],attempts:[ge.None,"cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}})}return t})(),Mte=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({})}return t})();const dg=L(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ug(t){return $i((n,e)=>{let i=!1;n.subscribe(Fi(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function xR(t=Tte){return $i((n,e)=>{let i=!1;n.subscribe(Fi(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function Tte(){return new dg}function hc(t,n){const e=arguments.length>=2;return i=>i.pipe(t?kt((o,r)=>t(o,r,i)):Ra,Pt(1),e?ug(n):xR(()=>new dg))}function ZC(t){return t<=0?()=>jo:$i((n,e)=>{let i=[];n.subscribe(Fi(e,o=>{i.push(o),t{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}const Bt="primary",uh=Symbol("RouteTitle");class Ate{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ql(t){return new Ate(t)}function Pte(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===o)}return t===n}function SR(t){return t.length>0?t[t.length-1]:null}function vs(t){return Pl(t)?t:pu(t)?Xi(Promise.resolve(t)):Ke(t)}const Nte={exact:function TR(t,n,e){if(!mc(t.segments,n.segments)||!hg(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!TR(t.children[i],n.children[i],e))return!1;return!0},subset:IR},kR={exact:function Fte(t,n){return Ur(t,n)},subset:function Lte(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>DR(t[e],n[e]))},ignored:()=>!0};function MR(t,n,e){return Nte[e.paths](t.root,n.root,e.matrixParams)&&kR[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function IR(t,n,e){return ER(t,n,n.segments,e)}function ER(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!mc(o,e)||n.hasChildren()||!hg(o,e,i))}if(t.segments.length===e.length){if(!mc(t.segments,e)||!hg(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!IR(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(mc(t.segments,o)&&hg(t.segments,o,i)&&t.children[Bt])&&ER(t.children[Bt],n,r,i)}}function hg(t,n,e){return n.every((i,o)=>kR[e](t[o].parameters,i.parameters))}class Wl{constructor(n=new Si([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=ql(this.queryParams),this._queryParamMap}toString(){return jte.serialize(this)}}class Si{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return mg(this)}}class hh{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ql(this.parameters),this._parameterMap}toString(){return PR(this)}}function mc(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let Kl=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:()=>new QC,providedIn:"root"})}return t})();class QC{parse(n){const e=new Qte(n);return new Wl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${mh(n.root,!0)}`,i=function Ute(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(o=>`${pg(e)}=${pg(o)}`).join("&"):`${pg(e)}=${pg(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function zte(t){return encodeURI(t)}(n.fragment)}`:""}`}}const jte=new QC;function mg(t){return t.segments.map(n=>PR(n)).join("/")}function mh(t,n){if(!t.hasChildren())return mg(t);if(n){const e=t.children[Bt]?mh(t.children[Bt],!1):"",i=[];return Object.entries(t.children).forEach(([o,r])=>{o!==Bt&&i.push(`${o}:${mh(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function Vte(t,n){let e=[];return Object.entries(t.children).forEach(([i,o])=>{i===Bt&&(e=e.concat(n(o,i)))}),Object.entries(t.children).forEach(([i,o])=>{i!==Bt&&(e=e.concat(n(o,i)))}),e}(t,(i,o)=>o===Bt?[mh(t.children[Bt],!1)]:[`${o}:${mh(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Bt]?`${mg(t)}/${e[0]}`:`${mg(t)}/(${e.join("//")})`}}function OR(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function pg(t){return OR(t).replace(/%3B/gi,";")}function XC(t){return OR(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function fg(t){return decodeURIComponent(t)}function AR(t){return fg(t.replace(/\+/g,"%20"))}function PR(t){return`${XC(t.path)}${function Hte(t){return Object.entries(t).map(([n,e])=>`;${XC(n)}=${XC(e)}`).join("")}(t.parameters)}`}const $te=/^[^\/()?;#]+/;function JC(t){const n=t.match($te);return n?n[0]:""}const Gte=/^[^\/()?;=#]+/,Wte=/^[^=?&#]+/,Zte=/^[^&#]+/;class Qte{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Si([],{}):new Si([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Bt]=new Si(n,e)),i}parseSegment(){const n=JC(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new ue(4009,!1);return this.capture(n),new hh(fg(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function qte(t){const n=t.match(Gte);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=JC(this.remaining);o&&(i=o,this.capture(i))}n[fg(e)]=fg(i)}parseQueryParam(n){const e=function Kte(t){const n=t.match(Wte);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function Yte(t){const n=t.match(Zte);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const o=AR(e),r=AR(i);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=JC(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new ue(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=Bt);const a=this.parseChildren();e[r]=1===Object.keys(a).length?a[Bt]:new Si([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new ue(4011,!1)}}function RR(t){return t.segments.length>0?new Si([],{[Bt]:t}):t}function NR(t){const n={};for(const[i,o]of Object.entries(t.children)){const r=NR(o);if(i===Bt&&0===r.segments.length&&r.hasChildren())for(const[a,s]of Object.entries(r.children))n[a]=s;else(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function Xte(t){if(1===t.numberOfChildren&&t.children[Bt]){const n=t.children[Bt];return new Si(t.segments.concat(n.segments),n.children)}return t}(new Si(t.segments,n))}function Zl(t){return t instanceof Wl}function FR(t){let n;const o=RR(function e(r){const a={};for(const c of r.children){const u=e(c);a[c.outlet]=u}const s=new Si(r.url,a);return r===t&&(n=s),s}(t.root));return n??o}function LR(t,n,e,i){let o=t;for(;o.parent;)o=o.parent;if(0===n.length)return ew(o,o,o,e,i);const r=function eie(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new VR(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,a)=>{if("object"==typeof r&&null!=r){if(r.outlets){const s={};return Object.entries(r.outlets).forEach(([c,u])=>{s[c]="string"==typeof u?u.split("/"):u}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===a?(r.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?e=!0:".."===s?n++:""!=s&&o.push(s))}),o):[...o,r]},[]);return new VR(e,n,i)}(n);if(r.toRoot())return ew(o,o,new Si([],{}),e,i);const a=function tie(t,n,e){if(t.isAbsolute)return new _g(n,!0,0);if(!e)return new _g(n,!1,NaN);if(null===e.parent)return new _g(e,!0,0);const i=gg(t.commands[0])?0:1;return function iie(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new ue(4005,!1);o=i.segments.length}return new _g(i,!1,o-r)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(r,o,t),s=a.processChildren?fh(a.segmentGroup,a.index,r.commands):jR(a.segmentGroup,a.index,r.commands);return ew(o,a.segmentGroup,s,e,i)}function gg(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ph(t){return"object"==typeof t&&null!=t&&t.outlets}function ew(t,n,e,i,o){let a,r={};i&&Object.entries(i).forEach(([c,u])=>{r[c]=Array.isArray(u)?u.map(p=>`${p}`):`${u}`}),a=t===n?e:BR(t,n,e);const s=RR(NR(a));return new Wl(s,r,o)}function BR(t,n,e){const i={};return Object.entries(t.children).forEach(([o,r])=>{i[o]=r===n?e:BR(r,n,e)}),new Si(t.segments,i)}class VR{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&gg(i[0]))throw new ue(4003,!1);const o=i.find(ph);if(o&&o!==SR(i))throw new ue(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class _g{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function jR(t,n,e){if(t??=new Si([],{}),0===t.segments.length&&t.hasChildren())return fh(t,n,e);const i=function oie(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;const a=t.segments[o],s=e[i];if(ph(s))break;const c=`${s}`,u=i0&&void 0===c)break;if(c&&u&&"object"==typeof u&&void 0===u.outlets){if(!HR(c,u,a))return r;i+=2}else{if(!HR(c,{},a))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndexr!==Bt)&&t.children[Bt]&&1===t.numberOfChildren&&0===t.children[Bt].segments.length){const r=fh(t.children[Bt],n,e);return new Si(t.segments,r.children)}return Object.entries(i).forEach(([r,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(o[r]=jR(t.children[r],n,a))}),Object.entries(t.children).forEach(([r,a])=>{void 0===i[r]&&(o[r]=a)}),new Si(t.segments,o)}}function tw(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=tw(new Si([],{}),0,i))}),n}function zR(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function HR(t,n,e){return t==e.path&&Ur(n,e.parameters)}const gh="imperative";var Xt=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Xt||{});class $r{constructor(n,e){this.id=n,this.url=e}}class bg extends $r{constructor(n,e,i="imperative",o=null){super(n,e),this.type=Xt.NavigationStart,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Oa extends $r{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=Xt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var tr=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(tr||{}),vg=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(vg||{});class Yl extends $r{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=Xt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ql extends $r{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=Xt.NavigationSkipped}}class yg extends $r{constructor(n,e,i,o){super(n,e),this.error=i,this.target=o,this.type=Xt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class UR extends $r{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=Xt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class aie extends $r{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=Xt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sie extends $r{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=Xt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class cie extends $r{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=Xt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lie extends $r{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=Xt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class die{constructor(n){this.route=n,this.type=Xt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class uie{constructor(n){this.route=n,this.type=Xt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class hie{constructor(n){this.snapshot=n,this.type=Xt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mie{constructor(n){this.snapshot=n,this.type=Xt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pie{constructor(n){this.snapshot=n,this.type=Xt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fie{constructor(n){this.snapshot=n,this.type=Xt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $R{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=Xt.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class iw{}class nw{constructor(n){this.url=n}}class gie{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new _h,this.attachRef=null}}let _h=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new gie,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class GR{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=ow(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=ow(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=rw(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return rw(n,this._root).map(e=>e.value)}}function ow(t,n){if(t===n.value)return n;for(const e of n.children){const i=ow(t,e);if(i)return i}return null}function rw(t,n){if(t===n.value)return[n];for(const e of n.children){const i=rw(t,e);if(i.length)return i.unshift(n),i}return[]}class Sr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Xl(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class qR extends GR{constructor(n,e){super(n),this.snapshot=e,cw(this,n)}toString(){return this.snapshot.toString()}}function WR(t){const n=function _ie(t){const r=new sw([],{},{},"",{},Bt,t,null,{});return new KR("",new Sr(r,[]))}(t),e=new pt([new hh("",{})]),i=new pt({}),o=new pt({}),r=new pt({}),a=new pt(""),s=new Jl(e,i,r,a,o,Bt,t,n.root);return s.snapshot=n.root,new qR(new Sr(s,[]),n)}class Jl{constructor(n,e,i,o,r,a,s,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(nt(u=>u[uh]))??Ke(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r}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.params.pipe(nt(n=>ql(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(nt(n=>ql(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function aw(t,n,e="emptyOnly"){let i;const{routeConfig:o}=t;return i=null===n||"always"!==e&&""!==o?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.data,...o?.data,...t._resolvedData}},o&&YR(o)&&(i.resolve[uh]=o.title),i}class sw{get title(){return this.data?.[uh]}constructor(n,e,i,o,r,a,s,c,u){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=c,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??=ql(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ql(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class KR extends GR{constructor(n,e){super(e),this.url=n,cw(this,e)}toString(){return ZR(this._root)}}function cw(t,n){n.value._routerState=t,n.children.forEach(e=>cw(t,e))}function ZR(t){const n=t.children.length>0?` { ${t.children.map(ZR).join(", ")} } `:"";return`${t.value}${n}`}function lw(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Ur(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Ur(n.params,e.params)||t.paramsSubject.next(e.params),function Rte(t,n){if(t.length!==n.length)return!1;for(let e=0;eUr(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||dw(t.parent,n.parent))}function YR(t){return"string"==typeof t.title||null===t.title}let Cg=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Bt,this.activateEvents=new Ne,this.deactivateEvents=new Ne,this.attachEvents=new Ne,this.detachEvents=new Ne,this.parentContexts=De(_h),this.location=De(vi),this.changeDetector=De(Lt),this.environmentInjector=De(Ao),this.inputBinder=De(wg,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:o}=e.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ue(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),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,i){if(this.isActivated)throw new ue(4013,!1);this._activatedRoute=e;const o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new bie(e,s,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[fi]})}return t})();class bie{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Jl?this.route:n===_h?this.childContexts:this.parent.get(n,e)}}const wg=new se("");let QR=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,o=Xs([i.queryParams,i.params,i.data]).pipe(gn(([r,a,s],c)=>(s={...r,...a,...s},0===c?Ke(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const a=function i7(t){const n=Ht(t);if(!n)return null;const e=new Yd(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(a)for(const{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();function bh(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function yie(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return bh(t,i,o);return bh(t,i)})}(t,n,e);return new Sr(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const a=r.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>bh(t,s)),a}}const i=function Cie(t){return new Jl(new pt(t.url),new pt(t.params),new pt(t.queryParams),new pt(t.fragment),new pt(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>bh(t,r));return new Sr(i,o)}}const XR="ngNavigationCancelingError";function JR(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=Zl(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=eN(!1,tr.Redirect);return o.url=e,o.navigationBehaviorOptions=i,o}function eN(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[XR]=!0,e.cancellationCode=n,e}function tN(t){return!!t&&t[XR]}let iN=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({type:t,selectors:[["ng-component"]],standalone:!0,features:[AM],decls:1,vars:0,template:function(i,o){1&i&&D(0,"router-outlet")},dependencies:[Cg],encapsulation:2})}return t})();function uw(t){const n=t.children&&t.children.map(uw),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Bt&&(e.component=iN),e}function Gr(t){return t.outlet||Bt}function vh(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Iie{constructor(n,e,i,o,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),lw(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=Xl(e);n.children.forEach(r=>{const a=r.value.outlet;this.deactivateRoutes(r,o[a],i),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const a=i.getContext(o.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=Xl(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(i&&i.outlet){const a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=Xl(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){const o=Xl(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new fie(r.value.snapshot))}),n.children.length&&this.forwardEvent(new mie(n.value.snapshot))}activateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(lw(o),o===r)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),lw(s.route.value),this.activateChildRoutes(n,null,a.children)}else{const s=vh(o.snapshot);a.attachRef=null,a.route=o,a.injector=s,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class nN{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class xg{constructor(n,e){this.component=n,this.route=e}}function Eie(t,n,e){const i=t._root;return yh(i,n?n._root:null,e,[i.value])}function ed(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function WF(t){return null!==Vh(t)}(t)?n.get(t):t:i}function yh(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=Xl(n);return t.children.forEach(a=>{(function Aie(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const c=function Pie(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!mc(t.url,n.url);case"pathParamsOrQueryParamsChange":return!mc(t.url,n.url)||!Ur(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!dw(t,n)||!Ur(t.queryParams,n.queryParams);default:return!dw(t,n)}}(a,r,r.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new nN(i)):(r.data=a.data,r._resolvedData=a._resolvedData),yh(t,n,r.component?s?s.children:null:e,i,o),c&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new xg(s.outlet.component,a))}else a&&Ch(n,s,o),o.canActivateChecks.push(new nN(i)),yh(t,null,r.component?s?s.children:null:e,i,o)})(a,r[a.value.outlet],e,i.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>Ch(s,e.getContext(a),o)),o}function Ch(t,n,e){const i=Xl(t),o=t.value;Object.entries(i).forEach(([r,a])=>{Ch(a,o.component?n?n.children.getContext(r):null:n,e)}),e.canDeactivateChecks.push(new xg(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function wh(t){return"function"==typeof t}function oN(t){return t instanceof dg||"EmptyError"===t?.name}const Dg=Symbol("INITIAL_VALUE");function td(){return gn(t=>Xs(t.map(n=>n.pipe(Pt(1),an(Dg)))).pipe(nt(n=>{for(const e of n)if(!0!==e){if(e===Dg)return Dg;if(!1===e||e instanceof Wl)return e}return!0}),kt(n=>n!==Dg),Pt(1)))}function rN(t){return function WN(...t){return Tw(t)}(qt(n=>{if(Zl(n))throw JR(0,n)}),nt(n=>!0===n))}class hw{constructor(n){this.segmentGroup=n||null}}class mw extends Error{constructor(n){super(),this.urlTree=n}}function id(t){return ju(new hw(t))}class Xie{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return Ke(i);if(o.numberOfChildren>1||!o.children[Bt])return ju(new ue(4e3,!1));o=o.children[Bt]}}applyRedirectCommands(n,e,i){const o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e.startsWith("/"))throw new mw(o);return o}applyRedirectCreateUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new Wl(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([o,r])=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);i[o]=e[s]}else i[o]=r}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let a={};return Object.entries(e.children).forEach(([s,c])=>{a[s]=this.createSegmentGroup(n,c,i,o)}),new Si(r,a)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new ue(4001,!1);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}const pw={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Jie(t,n,e,i,o){const r=fw(t,n,e);return r.matched?(i=function xie(t,n){return t.providers&&!t._injector&&(t._injector=Qb(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function Zie(t,n,e,i){const o=n.canMatch;return o&&0!==o.length?Ke(o.map(a=>{const s=ed(a,t);return vs(function Vie(t){return t&&wh(t.canMatch)}(s)?s.canMatch(n,e):Ha(t,()=>s(n,e)))})).pipe(td(),rN()):Ke(!0)}(i,n,e).pipe(nt(a=>!0===a?r:{...pw}))):Ke(r)}function fw(t,n,e){if("**"===n.path)return function ene(t){return{matched:!0,parameters:t.length>0?SR(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...pw}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||Pte)(e,t,n);if(!o)return{...pw};const r={};Object.entries(o.posParams??{}).forEach(([s,c])=>{r[s]=c.path});const a=o.consumed.length>0?{...r,...o.consumed[o.consumed.length-1].parameters}:r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function aN(t,n,e,i){return e.length>0&&function nne(t,n,e){return e.some(i=>Sg(t,n,i)&&Gr(i)!==Bt)}(t,e,i)?{segmentGroup:new Si(n,ine(i,new Si(e,t.children))),slicedSegments:[]}:0===e.length&&function one(t,n,e){return e.some(i=>Sg(t,n,i))}(t,e,i)?{segmentGroup:new Si(t.segments,tne(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new Si(t.segments,t.children),slicedSegments:e}}function tne(t,n,e,i){const o={};for(const r of e)if(Sg(t,n,r)&&!i[Gr(r)]){const a=new Si([],{});o[Gr(r)]=a}return{...i,...o}}function ine(t,n){const e={};e[Bt]=n;for(const i of t)if(""===i.path&&Gr(i)!==Bt){const o=new Si([],{});e[Gr(i)]=o}return e}function Sg(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class sne{}class dne{constructor(n,e,i,o,r,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new Xie(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new ue(4002,`'${n.segmentGroup}'`)}recognize(){const n=aN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(nt(e=>{const i=new sw([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Bt,this.rootComponentType,null,{}),o=new Sr(i,e),r=new KR("",o),a=function Jte(t,n,e=null,i=null){return LR(FR(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,Bt).pipe(Li(i=>{if(i instanceof mw)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof hw?this.noMatchError(i):i}))}inheritParamsAndData(n,e){const i=n.value,o=aw(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(o.params),i.data=Object.freeze(o.data),n.children.forEach(r=>this.inheritParamsAndData(r,i))}processSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,o,!0).pipe(nt(r=>r instanceof Sr?[r]:[]))}processChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return Xi(o).pipe(Ol(r=>{const a=i.children[r],s=function Mie(t,n){const e=t.filter(i=>Gr(i)===n);return e.push(...t.filter(i=>Gr(i)!==n)),e}(e,r);return this.processSegmentGroup(n,s,a,r)}),function Ete(t,n){return $i(function Ite(t,n,e,i,o){return(r,a)=>{let s=e,c=n,u=0;r.subscribe(Fi(a,p=>{const g=u++;c=s?t(c,p,g):(s=!0,p),i&&a.next(c)},o&&(()=>{s&&a.next(c),a.complete()})))}}(t,n,arguments.length>=2,!0))}((r,a)=>(r.push(...a),r)),ug(null),function Ote(t,n){const e=arguments.length>=2;return i=>i.pipe(t?kt((o,r)=>t(o,r,i)):Ra,ZC(1),e?ug(n):xR(()=>new dg))}(),Pn(r=>{if(null===r)return id(i);const a=sN(r);return function une(t){t.sort((n,e)=>n.value.outlet===Bt?-1:e.value.outlet===Bt?1:n.value.outlet.localeCompare(e.value.outlet))}(a),Ke(a)}))}processSegment(n,e,i,o,r,a){return Xi(e).pipe(Ol(s=>this.processSegmentAgainstRoute(s._injector??n,e,s,i,o,r,a).pipe(Li(c=>{if(c instanceof hw)return Ke(null);throw c}))),hc(s=>!!s),Li(s=>{if(oN(s))return function ane(t,n,e){return 0===n.length&&!t.children[e]}(i,o,r)?Ke(new sne):id(i);throw s}))}processSegmentAgainstRoute(n,e,i,o,r,a,s){return function rne(t,n,e,i){return!!(Gr(t)===i||i!==Bt&&Sg(n,e,t))&&fw(n,t,e).matched}(i,o,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,o,i,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,i,r,a):id(o):id(o)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){const{matched:s,consumedSegments:c,positionalParamSegments:u,remainingSegments:p}=fw(e,o,r);if(!s)return id(e);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const g=this.applyRedirects.applyRedirectCommands(c,o.redirectTo,u);return this.applyRedirects.lineralizeSegments(o,g).pipe(Pn(b=>this.processSegment(n,i,e,b.concat(p),a,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){const a=Jie(e,i,o,n);return"**"===i.path&&(e.children={}),a.pipe(gn(s=>s.matched?this.getChildConfig(n=i._injector??n,i,o).pipe(gn(({routes:c})=>{const u=i._loadedInjector??n,{consumedSegments:p,remainingSegments:g,parameters:b}=s,w=new sw(p,b,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function mne(t){return t.data||{}}(i),Gr(i),i.component??i._loadedComponent??null,i,function pne(t){return t.resolve||{}}(i)),{segmentGroup:S,slicedSegments:T}=aN(e,p,g,c);if(0===T.length&&S.hasChildren())return this.processChildren(u,c,S).pipe(nt(ie=>null===ie?null:new Sr(w,ie)));if(0===c.length&&0===T.length)return Ke(new Sr(w,[]));const z=Gr(i)===r;return this.processSegment(u,c,S,T,z?Bt:r,!0).pipe(nt(ie=>new Sr(w,ie instanceof Sr?[ie]:[])))})):id(e)))}getChildConfig(n,e,i){return e.children?Ke({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Ke({routes:e._loadedRoutes,injector:e._loadedInjector}):function Kie(t,n,e,i){const o=n.canLoad;return void 0===o||0===o.length?Ke(!0):Ke(o.map(a=>{const s=ed(a,t);return vs(function Nie(t){return t&&wh(t.canLoad)}(s)?s.canLoad(n,e):Ha(t,()=>s(n,e)))})).pipe(td(),rN())}(n,e,i).pipe(Pn(o=>o?this.configLoader.loadChildren(n,e).pipe(qt(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):function Qie(t){return ju(eN(!1,tr.GuardRejected))}())):Ke({routes:[],injector:n})}}function hne(t){const n=t.value.routeConfig;return n&&""===n.path}function sN(t){const n=[],e=new Set;for(const i of t){if(!hne(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=sN(i.children);n.push(new Sr(i.value,o))}return n.filter(i=>!e.has(i))}function cN(t){const n=t.children.map(e=>cN(e)).flat();return[t,...n]}function gw(t){return gn(n=>{const e=t(n);return e?Xi(e).pipe(nt(()=>n)):Ke(n)})}let lN=(()=>{class t{buildTitle(e){let i,o=e.root;for(;void 0!==o;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(r=>r.outlet===Bt);return i}getResolvedTitleForRoute(e){return e.data[uh]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:()=>De(yne),providedIn:"root"})}return t})(),yne=(()=>{class t extends lN{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static#e=this.\u0275fac=function(i){return new(i||t)(X(yH))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const nd=new se("",{providedIn:"root",factory:()=>({})}),od=new se("");let _w=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=De(wT)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Ke(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=vs(e.loadComponent()).pipe(nt(dN),qt(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),ec(()=>{this.componentLoaders.delete(e)})),o=new R0(i,()=>new qe).pipe(P0());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Ke({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=function Cne(t,n,e,i){return vs(t.loadChildren()).pipe(nt(dN),Pn(o=>o instanceof RS||Array.isArray(o)?Ke(o):Xi(n.compileModuleAsync(o))),nt(o=>{i&&i(t);let r,a,s=!1;return Array.isArray(o)?(a=o,!0):(r=o.create(e).injector,a=r.get(od,[],{optional:!0,self:!0}).flat()),{routes:a.map(uw),injector:r}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(ec(()=>{this.childrenLoaders.delete(i)})),a=new R0(r,()=>new qe).pipe(P0());return this.childrenLoaders.set(i,a),a}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dN(t){return function wne(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let bw=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:()=>De(xne),providedIn:"root"})}return t})(),xne=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const uN=new se(""),hN=new se("");function Dne(t,n,e){const i=t.get(hN),o=t.get(ut);return t.get(We).runOutsideAngular(()=>{if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,Promise.resolve();let r;const a=new Promise(u=>{r=u}),s=o.startViewTransition(()=>(r(),function Sne(t){return new Promise(n=>{JD(n,{injector:t})})}(t))),{onViewTransitionCreated:c}=i;return c&&Ha(t,()=>c({transition:s,from:n,to:e})),a})}let kg=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new qe,this.transitionAbortSubject=new qe,this.configLoader=De(_w),this.environmentInjector=De(Ao),this.urlSerializer=De(Kl),this.rootContexts=De(_h),this.location=De(Ws),this.inputBindingEnabled=null!==De(wg,{optional:!0}),this.titleStrategy=De(lN),this.options=De(nd,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=De(bw),this.createViewTransition=De(uN,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Ke(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new uie(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new die(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,o){return this.transitions=new pt({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:gh,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(kt(r=>0!==r.id),nt(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),gn(r=>{this.currentTransition=r;let a=!1,s=!1;return Ke(r).pipe(qt(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),gn(c=>{const u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!u&&"reload"!==(c.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const g="";return this.events.next(new Ql(c.id,this.urlSerializer.serialize(c.rawUrl),g,vg.IgnoredSameUrlNavigation)),c.resolve(null),jo}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return Ke(c).pipe(gn(g=>{const b=this.transitions?.getValue();return this.events.next(new bg(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),b!==this.transitions?.getValue()?jo:Promise.resolve(g)}),function fne(t,n,e,i,o,r){return Pn(a=>function cne(t,n,e,i,o,r,a="emptyOnly"){return new dne(t,n,e,i,o,a,r).recognize()}(t,n,e,i,a.extractedUrl,o,r).pipe(nt(({state:s,tree:c})=>({...a,targetSnapshot:s,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),qt(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:g.urlAfterRedirects};const b=new UR(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(b)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:g,extractedUrl:b,source:w,restoredState:S,extras:T}=c,z=new bg(g,this.urlSerializer.serialize(b),w,S);this.events.next(z);const ie=WR(this.rootComponentType).snapshot;return this.currentTransition=r={...c,targetSnapshot:ie,urlAfterRedirects:b,extras:{...T,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=b,Ke(r)}{const g="";return this.events.next(new Ql(c.id,this.urlSerializer.serialize(c.extractedUrl),g,vg.IgnoredByUrlHandlingStrategy)),c.resolve(null),jo}}),qt(c=>{const u=new aie(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),nt(c=>(this.currentTransition=r={...c,guards:Eie(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},r)),function jie(t,n){return Pn(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return 0===a.length&&0===r.length?Ke({...e,guardsResult:!0}):function zie(t,n,e,i){return Xi(t).pipe(Pn(o=>function Wie(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?Ke(r.map(s=>{const c=vh(n)??o,u=ed(s,c);return vs(function Bie(t){return t&&wh(t.canDeactivate)}(u)?u.canDeactivate(t,n,e,i):Ha(c,()=>u(t,n,e,i))).pipe(hc())})).pipe(td()):Ke(!0)}(o.component,o.route,e,n,i)),hc(o=>!0!==o,!0))}(a,i,o,t).pipe(Pn(s=>s&&function Rie(t){return"boolean"==typeof t}(s)?function Hie(t,n,e,i){return Xi(n).pipe(Ol(o=>Nu(function $ie(t,n){return null!==t&&n&&n(new hie(t)),Ke(!0)}(o.route.parent,i),function Uie(t,n){return null!==t&&n&&n(new pie(t)),Ke(!0)}(o.route,i),function qie(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(a=>function Oie(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>Vl(()=>Ke(a.guards.map(c=>{const u=vh(a.node)??e,p=ed(c,u);return vs(function Lie(t){return t&&wh(t.canActivateChild)}(p)?p.canActivateChild(i,t):Ha(u,()=>p(i,t))).pipe(hc())})).pipe(td())));return Ke(r).pipe(td())}(t,o.path,e),function Gie(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Ke(!0);const o=i.map(r=>Vl(()=>{const a=vh(n)??e,s=ed(r,a);return vs(function Fie(t){return t&&wh(t.canActivate)}(s)?s.canActivate(n,t):Ha(a,()=>s(n,t))).pipe(hc())}));return Ke(o).pipe(td())}(t,o.route,e))),hc(o=>!0!==o,!0))}(i,r,t,n):Ke(s)),nt(s=>({...e,guardsResult:s})))})}(this.environmentInjector,c=>this.events.next(c)),qt(c=>{if(r.guardsResult=c.guardsResult,Zl(c.guardsResult))throw JR(0,c.guardsResult);const u=new sie(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),kt(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",tr.GuardRejected),!1)),gw(c=>{if(c.guards.canActivateChecks.length)return Ke(c).pipe(qt(u=>{const p=new cie(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(p)}),gn(u=>{let p=!1;return Ke(u).pipe(function gne(t,n){return Pn(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return Ke(e);const r=new Set(o.map(c=>c.route)),a=new Set;for(const c of r)if(!a.has(c))for(const u of cN(c))a.add(u);let s=0;return Xi(a).pipe(Ol(c=>r.has(c)?function _ne(t,n,e,i){const o=t.routeConfig,r=t._resolve;return void 0!==o?.title&&!YR(o)&&(r[uh]=o.title),function bne(t,n,e,i){const o=YC(t);if(0===o.length)return Ke({});const r={};return Xi(o).pipe(Pn(a=>function vne(t,n,e,i){const o=vh(n)??i,r=ed(t,o);return vs(r.resolve?r.resolve(n,e):Ha(o,()=>r(n,e)))}(t[a],n,e,i).pipe(hc(),qt(s=>{r[a]=s}))),ZC(1),Bf(r),Li(a=>oN(a)?jo:ju(a)))}(r,t,n,i).pipe(nt(a=>(t._resolvedData=a,t.data=aw(t,t.parent,e).resolve,null)))}(c,i,t,n):(c.data=aw(c,c.parent,t).resolve,Ke(void 0))),qt(()=>s++),ZC(1),Pn(c=>s===a.size?Ke(e):jo))})}(this.paramsInheritanceStrategy,this.environmentInjector),qt({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(u,"",tr.NoDataFromResolver)}}))}),qt(u=>{const p=new lie(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(p)}))}),gw(c=>{const u=p=>{const g=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&g.push(this.configLoader.loadComponent(p.routeConfig).pipe(qt(b=>{p.component=b}),nt(()=>{})));for(const b of p.children)g.push(...u(b));return g};return Xs(u(c.targetSnapshot.root)).pipe(ug(null),Pt(1))}),gw(()=>this.afterPreactivation()),gn(()=>{const{currentSnapshot:c,targetSnapshot:u}=r,p=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return p?Xi(p).pipe(nt(()=>r)):Ke(r)}),nt(c=>{const u=function vie(t,n,e){const i=bh(t,n._root,e?e._root:void 0);return new qR(i,n)}(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=r={...c,targetRouterState:u},this.currentNavigation.targetRouterState=u,r}),qt(()=>{this.events.next(new iw)}),((t,n,e,i)=>nt(o=>(new Iie(n,o.targetRouterState,o.currentRouterState,e,i).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Pt(1),qt({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Oa(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),ot(this.transitionAbortSubject.pipe(qt(c=>{throw c}))),ec(()=>{!a&&!s&&this.cancelNavigationTransition(r,"",tr.SupersededByNewNavigation),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Li(c=>{if(s=!0,tN(c))this.events.next(new Yl(r.id,this.urlSerializer.serialize(r.extractedUrl),c.message,c.cancellationCode)),function wie(t){return tN(t)&&Zl(t.url)}(c)?this.events.next(new nw(c.url)):r.resolve(!1);else{this.events.next(new yg(r.id,this.urlSerializer.serialize(r.extractedUrl),c,r.targetSnapshot??void 0));try{r.resolve(e.errorHandler(c))}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return jo}))}))}cancelNavigationTransition(e,i,o){const r=new Yl(e.id,this.urlSerializer.serialize(e.extractedUrl),i,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kne(t){return t!==gh}let Mne=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:()=>De(Ine),providedIn:"root"})}return t})();class Tne{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let Ine=(()=>{class t extends Tne{static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mN=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:()=>De(Ene),providedIn:"root"})}return t})(),Ene=(()=>{class t extends mN{constructor(){super(...arguments),this.location=De(Ws),this.urlSerializer=De(Kl),this.options=De(nd,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=De(bw),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Wl,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=WR(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{"popstate"===i.type&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof bg)this.stateMemento=this.createStateMemento();else if(e instanceof Ql)this.rawUrlTree=i.initialUrl;else if(e instanceof UR){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else e instanceof iw?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof Yl&&(e.code===tr.GuardRejected||e.code===tr.NoDataFromResolver)?this.restoreHistory(i):e instanceof yg?this.restoreHistory(i,!0):e instanceof Oa&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){const a={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const r={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(o,"",r)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-this.browserPageId;0!==r?this.location.historyGo(r):this.currentUrlTree===e.finalUrl&&0===r&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static#e=this.\u0275fac=(()=>{let e;return function(o){return(e||(e=dt(t)))(o||t)}})();static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var xh=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(xh||{});function pN(t,n){t.events.pipe(kt(e=>e instanceof Oa||e instanceof Yl||e instanceof yg||e instanceof Ql),nt(e=>e instanceof Oa||e instanceof Ql?xh.COMPLETE:e instanceof Yl&&(e.code===tr.Redirect||e.code===tr.SupersededByNewNavigation)?xh.REDIRECTING:xh.FAILED),kt(e=>e!==xh.REDIRECTING),Pt(1)).subscribe(()=>{n()})}function One(t){throw t}const Ane={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Pne={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Rn=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=De(uT),this.stateManager=De(mN),this.options=De(nd,{optional:!0})||{},this.pendingTasks=De(Vs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=De(kg),this.urlSerializer=De(Kl),this.location=De(Ws),this.urlHandlingStrategy=De(bw),this._events=new qe,this.errorHandler=this.options.errorHandler||One,this.navigated=!1,this.routeReuseStrategy=De(Mne),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=De(od,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!De(wg,{optional:!0}),this.eventsSubscription=new de,this.isNgZoneEnabled=De(We)instanceof We&&We.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const o=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(null!==o&&null!==r)if(this.stateManager.handleRouterEvent(i,r),i instanceof Yl&&i.code!==tr.Redirect&&i.code!==tr.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Oa)this.navigated=!0;else if(i instanceof nw){const a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),s={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||kne(o.source)};this.scheduleNavigation(a,gh,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function Nne(t){return!(t instanceof iw||t instanceof nw)})(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),gh,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,o){const r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const c={...o};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(r.state=c)}const s=this.parseUrl(e);this.scheduleNavigation(s,i,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(uw),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:c}=i,u=c?this.currentUrlTree.fragment:a;let g,p=null;switch(s){case"merge":p={...this.currentUrlTree.queryParams,...r};break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=r||null}null!==p&&(p=this.removeEmptyProps(p));try{g=FR(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),g=this.currentUrlTree.root}return LR(g,e,p,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=Zl(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,gh,null,i)}navigate(e,i={skipLocationChange:!1}){return function Rne(t){for(let n=0;n(null!=r&&(i[o]=r),i),{})}scheduleNavigation(e,i,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,c,u;a?(s=a.resolve,c=a.reject,u=a.promise):u=new Promise((g,b)=>{s=g,c=b});const p=this.pendingTasks.add();return pN(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(g=>Promise.reject(g))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qr=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.route=i,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s,this.href=null,this.commands=null,this.onChanges=new qe,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=e.events.subscribe(u=>{u instanceof Oa&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,o,r,a){const s=this.urlTree;return!!(null===s||this.isAnchorElement&&(0!==e||i||o||r||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(s,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const e=this.urlTree;this.href=null!==e&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;const i=null===this.href?null:function I1(t,n,e){return function jL(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?T1:qo}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){const o=this.renderer,r=this.el.nativeElement;null!==i?o.setAttribute(r,e,i):o.removeAttribute(r,e)}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:this.preserveFragment})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Rn),_(Jl),oo("tabindex"),_(ca),_(Be),_(qs))};static#t=this.\u0275dir=Q({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){1&i&&A("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&i&&Xe("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[ge.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Cl],skipLocationChange:[ge.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Cl],replaceUrl:[ge.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Cl],routerLink:"routerLink"},standalone:!0,features:[PS,fi]})}return t})();class fN{}let Bne=(()=>{class t{constructor(e,i,o,r,a){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(kt(e=>e instanceof Oa),Ol(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i){r.providers&&!r._injector&&(r._injector=Qb(r.providers,e,`Route: ${r.path}`));const a=r._injector??e,s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&void 0===r.canLoad||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return Xi(o).pipe(Ml())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Ke(null);const r=o.pipe(Pn(a=>null===a?Ke(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return i.loadComponent&&!i._loadedComponent?Xi([r,this.loader.loadComponent(i)]).pipe(Ml()):r})}static#e=this.\u0275fac=function(i){return new(i||t)(X(Rn),X(wT),X(Ao),X(fN),X(_w))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const vw=new se("");let gN=(()=>{class t{constructor(e,i,o,r,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=o,this.zone=r,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof bg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Oa?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Ql&&e.code===vg.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof $R&&(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,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new $R(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){Pr()};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();function Wr(t,n){return{\u0275kind:t,\u0275providers:n}}function bN(){const t=De(ji);return n=>{const e=t.get(Za);if(n!==e.components[0])return;const i=t.get(Rn),o=t.get(vN);1===t.get(yw)&&i.initialNavigation(),t.get(yN,null,$t.Optional)?.setUpPreloading(),t.get(vw,null,$t.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const vN=new se("",{factory:()=>new qe}),yw=new se("",{providedIn:"root",factory:()=>1}),yN=new se("");function Hne(t){return Wr(0,[{provide:yN,useExisting:Bne},{provide:fN,useExisting:t}])}function $ne(t){return Wr(9,[{provide:uN,useValue:Dne},{provide:hN,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const CN=new se("ROUTER_FORROOT_GUARD"),Gne=[Ws,{provide:Kl,useClass:QC},Rn,_h,{provide:Jl,useFactory:function _N(t){return t.routerState.root},deps:[Rn]},_w,[]];let wN=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[Gne,[],{provide:od,multi:!0,useValue:e},{provide:CN,useFactory:Zne,deps:[[Rn,new za,new Vc]]},{provide:nd,useValue:i||{}},i?.useHash?{provide:qs,useClass:s7}:{provide:qs,useClass:r2},{provide:vw,useFactory:()=>{const t=De(C9),n=De(We),e=De(nd),i=De(kg),o=De(Kl);return e.scrollOffset&&t.setOffset(e.scrollOffset),new gN(o,i,t,n,e)}},i?.preloadingStrategy?Hne(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?Yne(i):[],i?.bindToComponentInputs?Wr(8,[QR,{provide:wg,useExisting:QR}]).\u0275providers:[],i?.enableViewTransitions?$ne().\u0275providers:[],[{provide:xN,useFactory:bN},{provide:Bv,multi:!0,useExisting:xN}]]}}static forChild(e){return{ngModule:t,providers:[{provide:od,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(i){return new(i||t)(X(CN,8))};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({})}return t})();function Zne(t){return"guarded"}function Yne(t){return["disabled"===t.initialNavigation?Wr(3,[{provide:Fv,multi:!0,useFactory:()=>{const n=De(Rn);return()=>{n.setUpLocationChangeListener()}}},{provide:yw,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Wr(2,[{provide:yw,useValue:0},{provide:Fv,multi:!0,deps:[ji],useFactory:n=>{const e=n.get(r7,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const o=n.get(Rn),r=n.get(vN);pN(o,()=>{i(!0)}),n.get(kg).afterPreactivation=()=>(i(!0),r.closed?Ke(void 0):r),o.initialNavigation()}))}}]).\u0275providers:[]]}const xN=new se("");var Jn=function(t){return t.DirectConnect="directConnect",t.DumpFile="dumpFile",t.SessionFile="sessionFile",t.ResumeSession="resumeSession",t}(Jn||{}),Wi=function(t){return t.Type="inputType",t.Config="config",t.SourceDbName="sourceDbName",t}(Wi||{}),ir=function(t){return t.MySQL="MySQL",t.Postgres="Postgres",t.SQLServer="SQL Server",t.Oracle="Oracle",t}(ir||{}),jt=function(t){return t.DbName="databaseName",t.Tables="tables",t.Table="tableName",t.Indexes="indexes",t.Index="indexName",t.Sequences="sequences",t.Sequence="sequenceName",t}(jt||{}),Kr=function(t){return t.schemaOnly="Schema",t.dataOnly="Data",t.schemaAndData="Schema And Data",t}(Kr||{}),ys=function(t){return t.Table="table",t.Index="index",t.Sequence="sequence",t}(ys||{}),Hn=function(t){return t.bulkMigration="bulk",t.lowDowntimeMigration="lowdt",t}(Hn||{}),he=function(t){return t.MigrationMode="migrationMode",t.MigrationType="migrationType",t.IsTargetDetailSet="isTargetDetailSet",t.IsSourceConnectionProfileSet="isSourceConnectionProfileSet",t.IsSourceDetailsSet="isSourceDetailsSet",t.IsTargetConnectionProfileSet="isTargetConnectionProfileSet",t.IsMigrationDetailSet="isMigrationDetailSet",t.IsMigrationInProgress="isMigrationInProgress",t.HasDataMigrationStarted="hasDataMigrationStarted",t.HasSchemaMigrationStarted="hasSchemaMigrationStarted",t.SchemaProgressMessage="schemaProgressMessage",t.DataProgressMessage="dataProgressMessage",t.DataMigrationProgress="dataMigrationProgress",t.SchemaMigrationProgress="schemaMigrationProgress",t.HasForeignKeyUpdateStarted="hasForeignKeyUpdateStarted",t.ForeignKeyProgressMessage="foreignKeyProgressMessage",t.ForeignKeyUpdateProgress="foreignKeyUpdateProgress",t.GeneratingResources="generatingResources",t.NumberOfShards="numberOfShards",t.NumberOfInstances="numberOfInstances",t.isForeignKeySkipped="isForeignKeySkipped",t.IsGcsMetadataPathSet="isGcsMetadataPathSet",t}(he||{}),yt=function(t){return t.TargetDB="targetDb",t.Dialect="dialect",t.SourceConnProfile="sourceConnProfile",t.TargetConnProfile="targetConnProfile",t.ReplicationSlot="replicationSlot",t.Publication="publication",t.GcsMetadataName="gcsName",t.GcsMetadataRootPath="gcsRootPath",t}(yt||{});var rd=function(t){return t[t.SchemaMigrationComplete=1]="SchemaMigrationComplete",t[t.SchemaCreationInProgress=2]="SchemaCreationInProgress",t[t.DataMigrationComplete=3]="DataMigrationComplete",t[t.DataWriteInProgress=4]="DataWriteInProgress",t[t.ForeignKeyUpdateInProgress=5]="ForeignKeyUpdateInProgress",t[t.ForeignKeyUpdateComplete=6]="ForeignKeyUpdateComplete",t}(rd||{});const DN=[{value:"google_standard_sql",displayName:"Google Standard SQL Dialect"},{value:"postgresql",displayName:"PostgreSQL Dialect"}],In={StorageMaxLength:0x8000000000000000,StringMaxLength:2621440,ByteMaxLength:10485760,DataTypes:["STRING","BYTES","VARCHAR"]},SN_GoogleStandardSQL=["BOOL","BYTES","DATE","FLOAT64","INT64","STRING","TIMESTAMP","NUMERIC","JSON"],SN_PostgreSQL=["BOOL","BYTEA","DATE","FLOAT8","INT8","VARCHAR","TIMESTAMPTZ","NUMERIC","JSONB"];var Zr=function(t){return t.DirectConnectForm="directConnectForm",t.IsConnectionSuccessful="isConnectionSuccessful",t}(Zr||{});const kN=["MySQL"],MN={width:"50%",minWidth:"40%",maxWidth:"70%"},Jne={width:"100%",minWidth:"50%",maxWidth:"75%"},eoe={width:"30vw",minWidth:"400px",maxWidth:"500px"};function ad(t){return"mysql"==t||"mysqldump"==t?ir.MySQL:"postgres"===t||"pgdump"===t||"pg_dump"===t?ir.Postgres:"oracle"===t?ir.Oracle:"sqlserver"===t?ir.SQLServer:t}function TN(t){var n=document.createElement("a");let e=JSON.stringify(t).replace(/9223372036854776000/g,"9223372036854775807");n.href="data:text/json;charset=utf-8,"+encodeURIComponent(e),n.download=`${t.SessionName}_${t.DatabaseType}_${t.DatabaseName}.json`,n.click()}function IN(t){const n={};return Object.keys(t).forEach(e=>{n[e]=function toe(t){return t.reduce((n,e)=>{const i=e.GenerationType;return n[i]||(n[i]=[]),n[i].push(e),n},{})}(t[e])}),n}function EN(t,n){return e=>{const i=e,o=i.get(t),r=i.get(n);return o&&r&&(o.value&&!r.value||!o.value&&r.value)?{linkedError:"Both Skip Range Min and Max are required"}:null}}let En=(()=>{class t{constructor(e){this.http=e,this.url=window.location.origin}connectTodb(e,i){const{dbEngine:o,isSharded:r,hostName:a,port:s,dbName:c,userName:u,password:p}=e;return this.http.post(`${this.url}/connect`,{Driver:o,IsSharded:r,Host:a,Port:s,Database:c,User:u,Password:p,Dialect:i},{observe:"response"})}getLastSessionDetails(){return this.http.get(`${this.url}/GetLatestSessionDetails`)}getSchemaConversionFromDirectConnect(){return this.http.get(`${this.url}/convert/infoschema`)}getSchemaConversionFromDump(e){return this.http.post(`${this.url}/convert/dump`,e)}setSourceDBDetailsForDump(e){return this.http.post(`${this.url}/SetSourceDBDetailsForDump`,e)}setSourceDBDetailsForDirectConnect(e){const{dbEngine:i,hostName:o,port:r,dbName:a,userName:s,password:c}=e;return this.http.post(`${this.url}/SetSourceDBDetailsForDirectConnect`,{Driver:i,Host:o,Port:r,Database:a,User:s,Password:c})}setShardsSourceDBDetailsForBulk(e){const{dbConfigs:i,isRestoredSession:o}=e;let r=[];return i.forEach(a=>{r.push({Driver:a.dbEngine,Host:a.hostName,Port:a.port,Database:a.dbName,User:a.userName,Password:a.password,DataShardId:a.shardId})}),this.http.post(`${this.url}/SetShardsSourceDBDetailsForBulk`,{DbConfigs:r,IsRestoredSession:o})}setShardsSourceDBDetailsForDataflow(e){return this.http.post(`${this.url}/SetShardsSourceDBDetailsForDataflow`,{MigrationProfile:e})}setDatastreamDetailsForShardedMigrations(e){return this.http.post(`${this.url}/SetDatastreamDetailsForShardedMigrations`,e)}setGcsDetailsForShardedMigrations(e){return this.http.post(`${this.url}/SetGcsDetailsForShardedMigrations`,e)}setDataflowDetailsForShardedMigrations(e){return this.http.post(`${this.url}/SetDataflowDetailsForShardedMigrations`,e)}getSourceProfile(){return this.http.get(`${this.url}/GetSourceProfileConfig`)}getSchemaConversionFromSessionFile(e){return this.http.post(`${this.url}/convert/session`,e)}getDStructuredReport(){return this.http.get(`${this.url}/downloadStructuredReport`)}getDTextReport(){return this.http.get(`${this.url}/downloadTextReport`)}getDSpannerDDL(){return this.http.get(`${this.url}/downloadDDL`)}getIssueDescription(){return this.http.get(`${this.url}/issueDescription`)}getConversionRate(){return this.http.get(`${this.url}/conversion`)}getConnectionProfiles(e){return this.http.get(`${this.url}/GetConnectionProfiles?source=${e}`)}getGeneratedResources(){return this.http.get(`${this.url}/GetGeneratedResources`)}getStaticIps(){return this.http.get(`${this.url}/GetStaticIps`)}createConnectionProfile(e){return this.http.post(`${this.url}/CreateConnectionProfile`,e)}verifyJsonConfiguration(e){return this.http.post(`${this.url}/VerifyJsonConfiguration`,{MigrationProfile:e})}getSummary(){return this.http.get(`${this.url}/summary`)}getDdl(){return this.http.get(`${this.url}/ddl`)}getSequenceDdl(){return this.http.get(`${this.url}/seqDdl`)}getTypeMap(){return this.http.get(`${this.url}/typemap`)}getAutoGenMap(){return this.http.get(`${this.url}/autoGenMap`)}getSequenceKind(){return this.http.get(`${this.url}/getSequenceKind`)}getSpannerDefaultTypeMap(){return this.http.get(`${this.url}/spannerDefaultTypeMap`)}reviewTableUpdate(e,i){return this.http.post(`${this.url}/typemap/reviewTableSchema?table=${e}`,i)}updateTable(e,i){return this.http.post(`${this.url}/typemap/table?table=${e}`,i)}removeInterleave(e){return this.http.post(`${this.url}/removeParent?tableId=${e}`,{})}restoreTables(e){return this.http.post(`${this.url}/restore/tables`,e)}restoreTable(e){return this.http.post(`${this.url}/restore/table?table=${e}`,{})}dropTable(e){return this.http.post(`${this.url}/drop/table?table=${e}`,{})}dropTables(e){return this.http.post(`${this.url}/drop/tables`,e)}updatePk(e){return this.http.post(`${this.url}/primaryKey`,e)}updateFk(e,i){return this.http.post(`${this.url}/update/fks?table=${e}`,i)}addColumn(e,i){return this.http.post(`${this.url}/AddColumn?table=${e}`,i)}addSequence(e){return this.http.post(`${this.url}/AddSequence`,e)}removeFk(e,i){return this.http.post(`${this.url}/drop/fk?table=${e}`,{Id:i})}getTableWithErrors(){return this.http.get(`${this.url}/GetTableWithErrors`)}getSessions(){return this.http.get(`${this.url}/GetSessions`)}getConvForSession(e){return this.http.get(`${this.url}/GetSession/${e}`,{responseType:"blob"})}resumeSession(e){return this.http.post(`${this.url}/ResumeSession/${e}`,{})}saveSession(e){return this.http.post(`${this.url}/SaveRemoteSession`,e)}getSpannerConfig(){return this.http.get(`${this.url}/GetConfig`)}setSpannerConfig(e){return this.http.post(`${this.url}/SetSpannerConfig`,e)}getIsOffline(){return this.http.get(`${this.url}/IsOffline`)}updateIndex(e,i){return this.http.post(`${this.url}/update/indexes?table=${e}`,i)}updateSequence(e){return this.http.post(`${this.url}/UpdateSequence`,e)}dropIndex(e,i){return this.http.post(`${this.url}/drop/secondaryindex?table=${e}`,{Id:i})}dropSequence(e){return this.http.post(`${this.url}/drop/sequence?sequence=${e}`,{})}restoreIndex(e,i){return this.http.post(`${this.url}/restore/secondaryIndex?tableId=${e}&indexId=${i}`,{})}getInterleaveStatus(e){return this.http.get(`${this.url}/setparent?table=${e}&update=false`)}setInterleave(e){return this.http.get(`${this.url}/setparent?table=${e}&update=true`)}getSourceDestinationSummary(){return this.http.get(`${this.url}/GetSourceDestinationSummary`)}migrate(e){return this.http.post(`${this.url}/Migrate`,e)}getProgress(){return this.http.get(`${this.url}/GetProgress`)}uploadFile(e){return this.http.post(`${this.url}/uploadFile`,e)}cleanUpStreamingJobs(){return this.http.post(`${this.url}/CleanUpStreamingJobs`,{})}applyRule(e){return this.http.post(`${this.url}/applyrule`,e)}dropRule(e){return this.http.post(`${this.url}/dropRule?id=${e}`,{})}getStandardTypeToPGSQLTypemap(){return this.http.get(`${this.url}/typemap/GetStandardTypeToPGSQLTypemap`)}getPGSQLToStandardTypeTypemap(){return this.http.get(`${this.url}/typemap/GetPGSQLToStandardTypeTypemap`)}checkBackendHealth(){return this.http.get(`${this.url}/ping`)}static#e=this.\u0275fac=function(i){return new(i||t)(X(pf))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nr=(()=>{class t{constructor(e){this.snackBar=e}openSnackBar(e,i,o){o||(o=10),this.snackBar.open(e,i,{duration:1e3*o})}openSnackBarWithoutTimeout(e,i){this.snackBar.open(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(X(FJ))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),or=(()=>{class t{constructor(){this.spannerConfigSub=new pt(!1),this.datebaseLoaderSub=new pt({type:"",databaseName:""}),this.viewAssesmentSub=new pt({srcDbType:"",connectionDetail:"",conversionRates:{good:0,ok:0,bad:0}}),this.tabToSpannerSub=new pt(!1),this.cancelDbLoadSub=new pt(!1),this.spannerConfig=this.spannerConfigSub.asObservable(),this.databaseLoader=this.datebaseLoaderSub.asObservable(),this.viewAssesment=this.viewAssesmentSub.asObservable(),this.tabToSpanner=this.tabToSpannerSub.asObservable(),this.cancelDbLoad=this.cancelDbLoadSub.asObservable()}openSpannerConfig(){this.spannerConfigSub.next(!0)}openDatabaseLoader(e,i){this.datebaseLoaderSub.next({type:e,databaseName:i})}closeDatabaseLoader(){this.datebaseLoaderSub.next({type:"",databaseName:""})}setViewAssesmentData(e){this.viewAssesmentSub.next(e)}setTabToSpanner(){this.tabToSpannerSub.next(!0)}cancelDbLoading(){this.cancelDbLoadSub.next(!0)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cw=(()=>{class t{constructor(){this.reviewTableChangesSub=new pt({Changes:[],DDL:""}),this.tableUpdateDetailSub=new pt({tableName:"",tableId:"",updateDetail:{UpdateCols:{}}}),this.reviewTableChanges=this.reviewTableChangesSub.asObservable(),this.tableUpdateDetail=this.tableUpdateDetailSub.asObservable()}setTableReviewChanges(e){this.reviewTableChangesSub.next(e)}setTableUpdateDetail(e){this.tableUpdateDetailSub.next(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pc=(()=>{class t{constructor(e){this.fetch=e,this.standardTypeToPGSQLTypeMapSub=new pt(new Map),this.pgSQLToStandardTypeTypeMapSub=new pt(new Map),this.standardTypeToPGSQLTypeMap=this.standardTypeToPGSQLTypeMapSub.asObservable(),this.pgSQLToStandardTypeTypeMap=this.pgSQLToStandardTypeTypeMapSub.asObservable(),this.srcDbName=localStorage.getItem(Wi.SourceDbName)}getStandardTypeToPGSQLTypemap(){return this.fetch.getStandardTypeToPGSQLTypemap().subscribe({next:e=>{this.standardTypeToPGSQLTypeMapSub.next(new Map(Object.entries(e)))}})}getPGSQLToStandardTypeTypemap(){return this.fetch.getPGSQLToStandardTypeTypemap().subscribe({next:e=>{this.pgSQLToStandardTypeTypeMapSub.next(new Map(Object.entries(e)))}})}createTreeNode(e,i,o="",r=""){e.DatabaseType&&(this.srcDbName=ad(e.DatabaseType));let a=Object.keys(e.SpSchema).filter(w=>e.SpSchema[w].Name.toLocaleLowerCase().includes(o.toLocaleLowerCase())),s=Object.keys(e.SpSequences).filter(w=>e.SpSequences[w].Name.toLocaleLowerCase().includes(o.toLocaleLowerCase())),c=Object.keys(e.SrcSchema).filter(w=>-1==a.indexOf(w)&&e.SrcSchema[w].Name.replace(/[^A-Za-z0-9_]/g,"_").includes(o.toLocaleLowerCase())),u=this.getDeletedIndexes(e),p={name:`Tables (${a.length})`,type:jt.Tables,parent:"",pos:-1,isSpannerNode:!0,id:"",parentId:"",children:a.map(w=>{let S=e.SpSchema[w];return{name:S.Name,status:i[w],type:jt.Table,parent:""!=S.ParentTable.Id?e.SpSchema[S.ParentTable.Id]?.Name:"",pos:-1,isSpannerNode:!0,id:w,parentId:S.ParentTable.Id,children:[{name:`Indexes (${S.Indexes?S.Indexes.length:0})`,status:"",type:jt.Indexes,parent:e.SpSchema[w].Name,pos:-1,isSpannerNode:!0,id:"",parentId:w,children:S.Indexes?S.Indexes.map((T,z)=>({name:T.Name,type:jt.Index,parent:e.SpSchema[w].Name,pos:z,isSpannerNode:!0,id:T.Id,parentId:w})):[]}]}})};c.forEach(w=>{p.children?.push({name:e.SrcSchema[w].Name.replace(/[^A-Za-z0-9_]/g,"_"),status:"DARK",type:jt.Table,pos:-1,isSpannerNode:!0,children:[],isDeleted:!0,id:w,parent:"",parentId:""})}),p.children?.forEach((w,S)=>{u[w.id]&&u[w.id].forEach(T=>{p.children[S].children[0].children?.push({name:T.Name.replace(/[^A-Za-z0-9_]/g,"_"),type:jt.Index,parent:e.SpSchema[w.name]?.Name,pos:S,isSpannerNode:!0,isDeleted:!0,id:T.Id,parentId:w.id})})});let g={name:`Sequences (${s.length})`,type:jt.Sequences,parent:"",pos:-1,isSpannerNode:!0,id:"",parentId:"",children:s.map(w=>({name:e.SpSequences[w].Name,status:"",type:jt.Sequence,parent:"",pos:-1,isSpannerNode:!0,id:w,parentId:"",children:[]}))};this.sortNodeChildren(p,r),this.sortNodeChildren(g,r);let b=[p];return kN.includes(this.srcDbName)&&b.push(g),[{name:e.DatabaseName,children:b,type:jt.DbName,parent:"",pos:-1,isSpannerNode:!0,id:"",parentId:""}]}sortNodeChildren(e,i){"asc"===i||""===i?e.children?.sort((o,r)=>o.name>r.name?1:r.name>o.name?-1:0):"desc"===i&&e.children?.sort((o,r)=>r.name>o.name?1:o.name>r.name?-1:0)}createTreeNodeForSource(e,i,o="",r=""){let a=Object.keys(e.SrcSchema).filter(c=>e.SrcSchema[c].Name.toLocaleLowerCase().includes(o.toLocaleLowerCase())),s={name:`Tables (${a.length})`,type:jt.Tables,pos:-1,isSpannerNode:!1,id:"",parent:"",parentId:"",children:a.map(c=>{let u=e.SrcSchema[c];return{name:u.Name,status:i[c]?i[c]:"NONE",type:jt.Table,parent:"",pos:-1,isSpannerNode:!1,id:c,parentId:"",parentOnDelete:"",children:[{name:`Indexes (${u.Indexes?.length||"0"})`,status:"",type:jt.Indexes,parent:"",pos:-1,isSpannerNode:!1,id:"",parentId:"",parentOnDelete:"",children:u.Indexes?u.Indexes.map((p,g)=>({name:p.Name,type:jt.Index,parent:e.SrcSchema[c].Name,isSpannerNode:!1,pos:g,id:p.Id,parentId:c})):[]}]}})};return"asc"===r||""===r?s.children?.sort((c,u)=>c.name>u.name?1:u.name>c.name?-1:0):"desc"===r&&s.children?.sort((c,u)=>u.name>c.name?1:c.name>u.name?-1:0),[{name:e.DatabaseName,children:[s],type:jt.DbName,isSpannerNode:!1,parent:"",pos:-1,id:"",parentId:""}]}getColumnMapping(e,i){let u,o=this.getSpannerTableNameFromId(e,i),r=i.SrcSchema[e].ColIds,a=i.SpSchema[e]?i.SpSchema[e].ColIds:null,s=i.SrcSchema[e].PrimaryKeys,c=a?i.SpSchema[e].PrimaryKeys:null;this.standardTypeToPGSQLTypeMap.subscribe(b=>{u=b});const p=In.StorageMaxLength,g=i.SrcSchema[e].ColIds.map((b,w)=>{let S;o&&i.SpSchema[e].PrimaryKeys.forEach(ie=>{ie.ColId==b&&(S=ie.Order)});let T=o?i.SpSchema[e]?.ColDefs[b]:null,z=T?u.get(T.T.Name):"";return{spOrder:T?w+1:"",srcOrder:w+1,spColName:T?T.Name:"",spDataType:T?"postgresql"===i.SpDialect?void 0===z?T.T.Name:z:T.T.Name:"",srcColName:i.SrcSchema[e].ColDefs[b].Name,srcDataType:i.SrcSchema[e].ColDefs[b].Type.Name,spIsPk:!(!T||!o)&&-1!==i.SpSchema[e].PrimaryKeys?.map(ie=>ie.ColId).indexOf(b),srcIsPk:!!s&&-1!==s.map(ie=>ie.ColId).indexOf(b),spIsNotNull:!(!T||!o)&&T.NotNull,srcIsNotNull:i.SrcSchema[e].ColDefs[b].NotNull,srcId:b,spId:T?b:"",spColMaxLength:0!=T?.T.Len?T?.T.Len!=p?T?.T.Len:"MAX":"",srcColMaxLength:null!=i.SrcSchema[e].ColDefs[b].Type.Mods?i.SrcSchema[e].ColDefs[b].Type.Mods[0]:"",spAutoGen:null!=T?.AutoGen?T?.AutoGen:{Name:"",GenerationType:""},srcAutoGen:i.SrcSchema[e].ColDefs[b].AutoGen?i.SrcSchema[e].ColDefs[b].AutoGen:{Name:"",GenerationType:""}}});return a&&a.forEach((b,w)=>{if(r.indexOf(b)<0){let S=i.SpSchema[e].ColDefs[b],T=o?i.SpSchema[e]?.ColDefs[b]:null,z=T?u.get(T.T.Name):"";g.push({spOrder:w+1,srcOrder:"",spColName:S.Name,spDataType:T?"postgresql"===i.SpDialect?void 0===z?T.T.Name:z:T.T.Name:"",srcColName:"",srcDataType:"",spIsPk:!!c&&-1!==c.map(ie=>ie.ColId).indexOf(b),srcIsPk:!1,spIsNotNull:S.NotNull,srcIsNotNull:!1,srcId:"",spId:b,srcColMaxLength:"",spColMaxLength:T?.T.Len,spAutoGen:S.AutoGen,srcAutoGen:{Name:"",GenerationType:""}})}}),g}getPkMapping(e){let i=e.filter(o=>o.spIsPk||o.srcIsPk);return JSON.parse(JSON.stringify(i))}getFkMapping(e,i){let o=i.SrcSchema[e]?.ForeignKeys;return o?o.map(r=>{let a=this.getSpannerFkFromId(i,e,r.Id),s=a?a.ColIds.map(w=>i.SpSchema[e].ColDefs[w].Name):[],c=a?a.ColIds:[],u=r.ColIds.map(w=>i.SrcSchema[e].ColDefs[w].Name),p=a?a.ReferColumnIds.map(w=>i.SpSchema[r.ReferTableId].ColDefs[w].Name):[],g=a?a.ReferColumnIds:[],b=r.ReferColumnIds.map(w=>i.SrcSchema[r.ReferTableId].ColDefs[w].Name);return{srcFkId:r.Id,spFkId:a?.Id,spName:a?a.Name:"",srcName:r.Name,spColumns:s,srcColumns:u,spReferTable:a?i.SpSchema[a.ReferTableId].Name:"",srcReferTable:i.SrcSchema[r.ReferTableId].Name,spReferColumns:p,srcReferColumns:b,spColIds:c,spReferColumnIds:g,spReferTableId:a?a.ReferTableId:"",srcOnDelete:r.OnDelete,spOnDelete:a?a.OnDelete:"",srcOnUpdate:r.OnUpdate,spOnUpdate:a?a.OnUpdate:""}}):[]}getIndexMapping(e,i,o){let r=this.getSourceIndexFromId(i,e,o),a=this.getSpannerIndexFromId(i,e,o),s=r?r.Keys.map(p=>p.ColId):[],c=a?a.Keys.map(p=>p.ColId):[],u=r?r.Keys.map(p=>{let g=this.getSpannerIndexKeyFromColId(i,e,o,p.ColId);return{srcColId:p.ColId,spColId:g?g.ColId:void 0,srcColName:i.SrcSchema[e].ColDefs[p.ColId].Name,srcOrder:p.Order,srcDesc:p.Desc,spColName:g?i.SpSchema[e].ColDefs[g.ColId].Name:"",spOrder:g?g.Order:void 0,spDesc:g?g.Desc:void 0}}):[];return c.forEach(p=>{if(-1==s.indexOf(p)){let g=this.getSpannerIndexKeyFromColId(i,e,o,p);u.push({srcColName:"",srcOrder:"",srcColId:void 0,srcDesc:void 0,spColName:i.SpSchema[e].ColDefs[p].Name,spOrder:g?g.Order:void 0,spDesc:g?g.Desc:void 0,spColId:g?g.ColId:void 0})}}),u}getSequenceMapping(e,i){let a={};if(null!=this.getSpannerSequenceNameFromId(e,i)){let s=i.SpSequences[e];a.spSeqName=s.Name,a.spSequenceKind=s.SequenceKind,a.spSkipRangeMax=s.SkipRangeMax,a.spSkipRangeMin=s.SkipRangeMin,a.spStartWithCounter=s.StartWithCounter}return a}getSpannerFkFromId(e,i,o){let r=null;return e.SpSchema[i]?.ForeignKeys?.forEach(a=>{a.Id==o&&(r=a)}),r}getSourceIndexFromId(e,i,o){let r=null;return e.SrcSchema[i]?.Indexes?.forEach(a=>{a.Id==o&&(r=a)}),r}getSpannerIndexFromId(e,i,o){let r=null;return e.SpSchema[i]?.Indexes?.forEach(a=>{a.Id==o&&(r=a)}),r}getSpannerSequenceNameFromId(e,i){let o=null;return Object.keys(i.SpSequences).forEach(r=>{i.SpSequences[r].Id===e&&(o=i.SpSequences[r].Name)}),o}getSpannerIndexKeyFromColId(e,i,o,r){let a=null,s=e.SpSchema[i]?.Indexes?e.SpSchema[i].Indexes.filter(c=>c.Id==o):null;if(s&&s.length>0){let c=s[0].Keys.filter(u=>u.ColId==r);a=c.length>0?c[0]:null}return a}getSourceIndexKeyFromColId(e,i,o,r){let a=null,s=e.SrcSchema[i]?.Indexes?e.SrcSchema[i].Indexes.filter(c=>c.Id==o):null;if(s&&s.length>0){let c=s[0].Keys.filter(u=>u.ColId==r);a=c.length>0?c[0]:null}return a}getSpannerColDefFromId(e,i,o){let r=null;return Object.keys(o.SpSchema[e].ColDefs).forEach(a=>{o.SpSchema[e].ColDefs[a].Id==i&&(r=o.SpSchema[e].ColDefs[a])}),r}getSourceTableNameFromId(e,i){let o="";return Object.keys(i.SrcSchema).forEach(r=>{i.SrcSchema[r].Id===e&&(o=i.SrcSchema[r].Name)}),o}getSpannerTableNameFromId(e,i){let o=null;return Object.keys(i.SpSchema).forEach(r=>{i.SpSchema[r].Id===e&&(o=i.SpSchema[r].Name)}),o}getTableIdFromSpName(e,i){let o="";return Object.keys(i.SpSchema).forEach(r=>{i.SpSchema[r].Name===e&&(o=i.SpSchema[r].Id)}),o}getColIdFromSpannerColName(e,i,o){let r="";return Object.keys(o.SpSchema[i].ColDefs).forEach(a=>{o.SpSchema[i].ColDefs[a].Name===e&&(r=o.SpSchema[i].ColDefs[a].Id)}),r}getDeletedIndexes(e){let i={};return Object.keys(e.SpSchema).forEach(o=>{let r=e.SpSchema[o],a=e.SrcSchema[o],s=r&&r.Indexes?r.Indexes.map(u=>u.Id):[],c=a&&a.Indexes?a.Indexes?.filter(u=>!s.includes(u.Id)):null;r&&a&&c&&c.length>0&&(i[o]=c)}),i}static#e=this.\u0275fac=function(i){return new(i||t)(X(En))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hi=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.snackbar=i,this.clickEvent=o,this.tableUpdatePubSub=r,this.conversion=a,this.convSubject=new pt({}),this.conversionRateSub=new pt({}),this.typeMapSub=new pt({}),this.defaultTypeMapSub=new pt({}),this.autoGenMapSub=new pt({}),this.summarySub=new pt(new Map),this.ddlSub=new pt({}),this.seqDdlSub=new pt({}),this.tableInterleaveStatusSub=new pt({}),this.sessionsSub=new pt({}),this.configSub=new pt({}),this.currentSessionSub=new pt({}),this.isOfflineSub=new pt(!1),this.ruleMapSub=new pt([]),this.treeUpdatedSub=new qe,this.rule=this.ruleMapSub.asObservable(),this.conv=this.convSubject.asObservable().pipe(kt(s=>0!==Object.keys(s).length)),this.conversionRate=this.conversionRateSub.asObservable().pipe(kt(s=>0!==Object.keys(s).length)),this.typeMap=this.typeMapSub.asObservable().pipe(kt(s=>0!==Object.keys(s).length)),this.defaultTypeMap=this.defaultTypeMapSub.asObservable().pipe(kt(s=>0!==Object.keys(s).length)),this.autoGenMap=this.autoGenMapSub.asObservable().pipe(kt(s=>0!==Object.keys(s).length)),this.treeUpdate=this.treeUpdatedSub.asObservable(),this.summary=this.summarySub.asObservable(),this.ddl=this.ddlSub.asObservable().pipe(kt(s=>0!==Object.keys(s).length)),this.seqDdl=this.seqDdlSub.asObservable().pipe(kt(s=>0!==Object.keys(s).length)),this.tableInterleaveStatus=this.tableInterleaveStatusSub.asObservable(),this.sessions=this.sessionsSub.asObservable(),this.config=this.configSub.asObservable().pipe(kt(s=>0!==Object.keys(s).length)),this.isOffline=this.isOfflineSub.asObservable(),this.currentSession=this.currentSessionSub.asObservable().pipe(kt(s=>0!==Object.keys(s).length)),this.getLastSessionDetails(),this.getConfig(),this.updateIsOffline()}resetStore(){this.convSubject.next({}),this.conversionRateSub.next({}),this.typeMapSub.next({}),this.defaultTypeMapSub.next({}),this.autoGenMapSub.next({}),this.summarySub.next(new Map),this.ddlSub.next({}),this.tableInterleaveStatusSub.next({})}getDdl(){this.fetch.getDdl().subscribe(e=>{this.ddlSub.next(e)})}getSequenceDdl(){this.fetch.getSequenceDdl().subscribe(e=>{this.seqDdlSub.next(e)})}getAutoGenMap(){this.fetch.getAutoGenMap().subscribe(e=>{this.autoGenMapSub.next(e)})}notifyTreeUpdate(){this.treeUpdatedSub.next()}getSchemaConversionFromDb(){this.fetch.getSchemaConversionFromDirectConnect().subscribe({next:e=>{this.convSubject.next(e),this.ruleMapSub.next(e?.Rules)},error:e=>{this.clickEvent.closeDatabaseLoader(),this.snackbar.openSnackBar(e.error,"Close")}})}getAllSessions(){this.fetch.getSessions().subscribe({next:e=>{this.sessionsSub.next(e)},error:e=>{this.snackbar.openSnackBar("Unable to fetch sessions.","Close")}})}getLastSessionDetails(){this.fetch.getLastSessionDetails().subscribe({next:e=>{this.convSubject.next(e),this.ruleMapSub.next(e?.Rules)},error:e=>{this.snackbar.openSnackBar(e.error,"Close")}})}getSchemaConversionFromDump(e){return this.fetch.getSchemaConversionFromDump(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules)},error:i=>{this.clickEvent.closeDatabaseLoader(),this.snackbar.openSnackBar(i.error,"Close")}})}getSchemaConversionFromSession(e){return this.fetch.getSchemaConversionFromSessionFile(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules)},error:i=>{this.snackbar.openSnackBar(i.error,"Close"),this.clickEvent.closeDatabaseLoader()}})}getSchemaConversionFromResumeSession(e){this.fetch.resumeSession(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules)},error:i=>{this.snackbar.openSnackBar(i.error,"Close")}})}getConversionRate(){this.fetch.getConversionRate().subscribe(e=>{this.conversionRateSub.next(e)})}getRateTypemapAndSummary(){return x0({rates:this.fetch.getConversionRate(),typeMap:this.fetch.getTypeMap(),defaultTypeMap:this.fetch.getSpannerDefaultTypeMap(),summary:this.fetch.getSummary(),ddl:this.fetch.getDdl(),seqDdl:this.fetch.getSequenceDdl(),autoGenMap:this.fetch.getAutoGenMap()}).pipe(Li(e=>Ke(e))).subscribe(({rates:e,typeMap:i,defaultTypeMap:o,summary:r,ddl:a,seqDdl:s,autoGenMap:c})=>{this.conversionRateSub.next(e),this.typeMapSub.next(i),this.defaultTypeMapSub.next(o),this.summarySub.next(new Map(Object.entries(r))),this.ddlSub.next(a),this.seqDdlSub.next(s),this.autoGenMapSub.next(c)})}getSummary(){return this.fetch.getSummary().subscribe({next:e=>{this.summarySub.next(new Map(Object.entries(e)))}})}reviewTableUpdate(e,i){return this.fetch.reviewTableUpdate(e,i).pipe(Li(o=>Ke({error:o.error})),qt(console.log),nt(o=>{if(o.error)return o.error;{let r;return this.conversion.standardTypeToPGSQLTypeMap.subscribe(a=>{r=a}),this.conv.subscribe(a=>{o.Changes.forEach(s=>{s.InterleaveColumnChanges.forEach(c=>{if("postgresql"===a.SpDialect){let u=r.get(c.Type),p=r.get(c.UpdateType);c.Type=void 0===u?c.Type:u,c.UpdateType=void 0===p?c.UpdateType:p}In.DataTypes.indexOf(c.Type.toString())>-1&&(c.Type+=this.updateColumnSize(c.Size)),In.DataTypes.indexOf(c.UpdateType.toString())>-1&&(c.UpdateType+=this.updateColumnSize(c.UpdateSize))})})}),this.tableUpdatePubSub.setTableReviewChanges(o),""}}))}updateColumnSize(e){return e===In.StorageMaxLength?"(MAX)":"("+e+")"}updateTable(e,i){return this.fetch.updateTable(e,i).pipe(Li(o=>Ke({error:o.error})),qt(console.log),nt(o=>o.error?o.error:(this.convSubject.next(o),this.getDdl(),"")))}removeInterleave(e){return this.fetch.removeInterleave(e).pipe(Li(i=>Ke({error:i.error})),qt(console.log),nt(i=>(this.getDdl(),i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),""))))}restoreTables(e){return this.fetch.restoreTables(e).pipe(Li(i=>Ke({error:i.error})),qt(console.log),nt(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.snackbar.openSnackBar("Selected tables restored successfully","Close",5),"")))}restoreTable(e){return this.fetch.restoreTable(e).pipe(Li(i=>Ke({error:i.error})),qt(console.log),nt(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.snackbar.openSnackBar("Table restored successfully","Close",5),"")))}dropTable(e){return this.fetch.dropTable(e).pipe(Li(i=>Ke({error:i.error})),qt(console.log),nt(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.snackbar.openSnackBar("Table skipped successfully","Close",5),"")))}dropTables(e){return this.fetch.dropTables(e).pipe(Li(i=>Ke({error:i.error})),qt(console.log),nt(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.snackbar.openSnackBar("Selected tables skipped successfully","Close",5),"")))}updatePk(e){return this.fetch.updatePk(e).pipe(Li(i=>Ke({error:i.error})),qt(console.log),nt(i=>i.error?i.error:(this.convSubject.next(i),this.getDdl(),"")))}updateFkNames(e,i){return this.fetch.updateFk(e,i).pipe(Li(o=>Ke({error:o.error})),qt(console.log),nt(o=>o.error?o.error:(this.convSubject.next(o),this.getDdl(),"")))}dropFk(e,i){return this.fetch.removeFk(e,i).pipe(Li(o=>Ke({error:o.error})),qt(console.log),nt(o=>o.error?o.error:(this.convSubject.next(o),this.getDdl(),"")))}getConfig(){this.fetch.getSpannerConfig().subscribe(e=>{this.configSub.next(e)})}updateConfig(e){this.configSub.next(e)}updateIsOffline(){this.fetch.getIsOffline().subscribe(e=>{this.isOfflineSub.next(e)})}addColumn(e,i){this.fetch.addColumn(e,i).subscribe({next:o=>{this.convSubject.next(o),this.getDdl(),this.snackbar.openSnackBar("Added new column.","Close",5)},error:o=>{this.snackbar.openSnackBar(o.error,"Close")}})}addSequence(e){this.fetch.addSequence(e).subscribe({next:i=>{this.convSubject.next(i),this.getSequenceDdl(),this.getAutoGenMap(),this.notifyTreeUpdate(),this.snackbar.openSnackBar("Added new sequence.","Close",5)},error:i=>{this.snackbar.openSnackBar(i.error,"Close")}})}applyRule(e){this.fetch.applyRule(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules),this.getDdl(),this.snackbar.openSnackBar("Added new rule.","Close",5)},error:i=>{this.snackbar.openSnackBar(i.error,"Close")}})}updateIndex(e,i){return this.fetch.updateIndex(e,i).pipe(Li(o=>Ke({error:o.error})),qt(console.log),nt(o=>o.error?o.error:(this.convSubject.next(o),this.getDdl(),"")))}updateSequence(e){return this.fetch.updateSequence(e).pipe(Li(i=>Ke({error:i.error})),qt(console.log),nt(i=>i.error?i.error:(this.convSubject.next(i),this.getSequenceDdl(),this.notifyTreeUpdate(),"")))}dropIndex(e,i){return this.fetch.dropIndex(e,i).pipe(Li(o=>Ke({error:o.error})),qt(console.log),nt(o=>o.error?(this.snackbar.openSnackBar(o.error,"Close"),o.error):(this.convSubject.next(o),this.getDdl(),this.ruleMapSub.next(o?.Rules),this.snackbar.openSnackBar("Index skipped successfully","Close",5),"")))}dropSequence(e){return this.fetch.dropSequence(e).pipe(Li(i=>Ke({error:i.error})),qt(console.log),nt(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.getDdl(),this.getAutoGenMap(),this.notifyTreeUpdate(),this.snackbar.openSnackBar("Sequence Deleted successfully","Close",5),"")))}restoreIndex(e,i){return this.fetch.restoreIndex(e,i).pipe(Li(o=>Ke({error:o.error})),qt(console.log),nt(o=>o.error?(this.snackbar.openSnackBar(o.error,"Close"),o.error):(this.convSubject.next(o),this.snackbar.openSnackBar("Index restored successfully","Close",5),"")))}getInterleaveConversionForATable(e){this.fetch.getInterleaveStatus(e).subscribe(i=>{this.tableInterleaveStatusSub.next(i)})}setInterleave(e){this.fetch.setInterleave(e).subscribe(i=>{this.convSubject.next(i.sessionState),this.getDdl(),i.sessionState&&this.convSubject.next(i.sessionState)})}uploadFile(e){return this.fetch.uploadFile(e).pipe(Li(i=>Ke({error:i.error})),qt(console.log),nt(i=>i.error?(this.snackbar.openSnackBar("File upload failed","Close"),i.error):(this.snackbar.openSnackBar("File uploaded successfully","Close",5),"")))}dropRule(e){return this.fetch.dropRule(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules),this.getDdl(),this.snackbar.openSnackBar("Rule deleted successfully","Close",5)},error:i=>{this.snackbar.openSnackBar(i.error,"Close")}})}static#e=this.\u0275fac=function(i){return new(i||t)(X(En),X(nr),X(or),X(Cw),X(pc))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mg=(()=>{class t{constructor(){this.isLoadingSub=new pt(!1),this.isLoading=this.isLoadingSub.asObservable()}startLoader(){this.isLoadingSub.next(!0)}stopLoader(){this.isLoadingSub.next(!1)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ioe(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),xe(" ",e.displayName," ")}}function noe(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),xe(" ",e.displayName," ")}}function ooe(t,n){1&t&&(d(0,"b"),h(1,"Note: For sharded migrations, please enter below the details of the shard you want Spanner migration tool to read the schema from. The complete connection configuration of all the shards will be taken in later, during data migration."),l())}function roe(t,n){if(1&t&&(d(0,"div",19)(1,"div",20)(2,"mat-form-field",21)(3,"mat-label"),h(4,"Sharded Migration"),l(),d(5,"mat-select",22),y(6,noe,2,2,"mat-option",6),l()(),d(7,"mat-icon",23),h(8,"info"),l(),d(9,"mat-chip",24),h(10," Preview "),l()(),D(11,"br"),y(12,ooe,2,0,"b",25),l()),2&t){const e=C();m(6),f("ngForOf",e.shardedResponseList),m(3),f("removable",!1),m(3),f("ngIf",e.connectForm.value.isSharded)}}function aoe(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),xe(" ",e.displayName," ")}}function soe(t,n){1&t&&(d(0,"mat-icon",26),h(1," check_circle "),l())}let coe=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.fetch=i,this.data=o,this.loader=r,this.snackbarService=a,this.clickEvent=s,this.connectForm=new ti({dbEngine:new U("",[ee.required]),isSharded:new U(!1),hostName:new U("",[ee.required]),port:new U("",[ee.required,ee.pattern("^[0-9]+$")]),userName:new U("",[ee.required]),password:new U(""),dbName:new U("",[ee.required]),dialect:new U("",[ee.required])}),this.dbEngineList=[{value:"mysql",displayName:"MySQL"},{value:"sqlserver",displayName:"SQL Server"},{value:"oracle",displayName:"Oracle"},{value:"postgres",displayName:"PostgreSQL"}],this.isTestConnectionSuccessful=!1,this.connectRequest=null,this.getSchemaRequest=null,this.shardedResponseList=[{value:!1,displayName:"No"},{value:!0,displayName:"Yes"}],this.dialect=DN}ngOnInit(){null!=localStorage.getItem(Zr.DirectConnectForm)&&this.connectForm.setValue(JSON.parse(localStorage.getItem(Zr.DirectConnectForm))),null!=localStorage.getItem(Zr.IsConnectionSuccessful)&&(this.isTestConnectionSuccessful="true"===localStorage.getItem(Zr.IsConnectionSuccessful)),this.clickEvent.cancelDbLoad.subscribe({next:e=>{e&&this.connectRequest&&(this.connectRequest.unsubscribe(),this.getSchemaRequest&&this.getSchemaRequest.unsubscribe())}})}testConn(){this.clickEvent.openDatabaseLoader("test-connection",this.connectForm.value.dbName);const{dbEngine:e,isSharded:i,hostName:o,port:r,userName:a,password:s,dbName:c,dialect:u}=this.connectForm.value;localStorage.setItem(Zr.DirectConnectForm,JSON.stringify(this.connectForm.value)),this.connectRequest=this.fetch.connectTodb({dbEngine:e,isSharded:i,hostName:o,port:r,userName:a,password:s,dbName:c},u).subscribe({next:()=>{this.snackbarService.openSnackBar("SUCCESS! Spanner migration tool was able to successfully ping source database","Close",3),localStorage.setItem(Zr.IsConnectionSuccessful,"true"),this.clickEvent.closeDatabaseLoader()},error:g=>{this.isTestConnectionSuccessful=!1,this.snackbarService.openSnackBar(g.error,"Close"),localStorage.setItem(Zr.IsConnectionSuccessful,"false"),this.clickEvent.closeDatabaseLoader()}})}connectToDb(){this.clickEvent.openDatabaseLoader("direct",this.connectForm.value.dbName),window.scroll(0,0),this.data.resetStore(),localStorage.clear();const{dbEngine:e,isSharded:i,hostName:o,port:r,userName:a,password:s,dbName:c,dialect:u}=this.connectForm.value;localStorage.setItem(Zr.DirectConnectForm,JSON.stringify(this.connectForm.value)),this.connectRequest=this.fetch.connectTodb({dbEngine:e,isSharded:i,hostName:o,port:r,userName:a,password:s,dbName:c},u).subscribe({next:()=>{this.getSchemaRequest=this.data.getSchemaConversionFromDb(),this.data.conv.subscribe(g=>{localStorage.setItem(Wi.Config,JSON.stringify({dbEngine:e,hostName:o,port:r,userName:a,password:s,dbName:c})),localStorage.setItem(Wi.Type,Jn.DirectConnect),localStorage.setItem(Wi.SourceDbName,ad(e)),this.clickEvent.closeDatabaseLoader(),localStorage.removeItem(Zr.DirectConnectForm),this.router.navigate(["/workspace"])})},error:g=>{this.snackbarService.openSnackBar(g.error,"Close"),this.clickEvent.closeDatabaseLoader()}})}refreshDbSpecifcConnectionOptions(){this.connectForm.value.isSharded=!1}static#e=this.\u0275fac=function(i){return new(i||t)(_(Rn),_(En),_(Hi),_(Mg),_(nr),_(or))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-direct-connection"]],decls:54,vars:8,consts:[["id","direct-connection-component",1,"connect-load-database-container"],[1,"form-container"],[3,"formGroup"],[1,"primary-header"],["appearance","outline",1,"full-width"],["formControlName","dbEngine","id","dbengine-input",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["class","shardingConfig",4,"ngIf"],["matInput","","placeholder","127.0.0.1","name","hostName","type","text","formControlName","hostName","id","hostname-input"],["matInput","","placeholder","3306","name","port","type","text","formControlName","port","id","port-input"],["matInput","","placeholder","root","name","userName","type","text","formControlName","userName","id","username-input"],["matInput","","name","password","type","password","formControlName","password","id","password-input"],["matInput","","name","dbname","type","text","formControlName","dbName","id","dbname-input"],["matSelect","","name","dialect","formControlName","dialect","appearance","outline","id","spanner-dialect-input"],["class","success","matTooltip","Source Connection Successful","matTooltipPosition","above",4,"ngIf"],["mat-raised-button","","id","test-connect-btn","type","submit","color","accent",3,"disabled","click"],["mat-raised-button","","id","connect-btn","type","submit","color","primary",3,"disabled","click"],["mat-raised-button","",3,"routerLink"],[3,"value"],[1,"shardingConfig"],[1,"flex-container"],["appearance","outline",1,"flex-item"],["formControlName","isSharded"],["matTooltip","Configure multiple source database instances (shards) and consolidate them by migrating to a single Cloud Spanner instance to take advantage of Spanner's horizontal scalability and consistency semantics.",1,"flex-item","configure"],[1,"flex-item","rounded-chip",3,"removable"],[4,"ngIf"],["matTooltip","Source Connection Successful","matTooltipPosition","above",1,"success"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"form",2)(3,"h3",3),h(4,"Connect to Source Database"),l(),d(5,"mat-form-field",4)(6,"mat-label"),h(7,"Database Engine"),l(),d(8,"mat-select",5),A("selectionChange",function(){return o.refreshDbSpecifcConnectionOptions()}),y(9,ioe,2,2,"mat-option",6),l()(),y(10,roe,13,3,"div",7),D(11,"br"),d(12,"h3",3),h(13,"Connection Detail"),l(),d(14,"mat-form-field",4)(15,"mat-label"),h(16,"Hostname"),l(),D(17,"input",8),l(),d(18,"mat-form-field",4)(19,"mat-label"),h(20,"Port"),l(),D(21,"input",9),d(22,"mat-error"),h(23," Only numbers are allowed. "),l()(),D(24,"br"),d(25,"mat-form-field",4)(26,"mat-label"),h(27,"User name"),l(),D(28,"input",10),l(),d(29,"mat-form-field",4)(30,"mat-label"),h(31,"Password"),l(),D(32,"input",11),l(),D(33,"br"),d(34,"mat-form-field",4)(35,"mat-label"),h(36,"Database Name"),l(),D(37,"input",12),l(),D(38,"br"),d(39,"h3",3),h(40,"Spanner Dialect"),l(),d(41,"mat-form-field",4)(42,"mat-label"),h(43,"Spanner dialect"),l(),d(44,"mat-select",13),y(45,aoe,2,2,"mat-option",6),l()(),D(46,"br"),y(47,soe,2,0,"mat-icon",14),d(48,"button",15),A("click",function(){return o.testConn()}),h(49," Test Connection "),l(),d(50,"button",16),A("click",function(){return o.connectToDb()}),h(51," Connect "),l(),d(52,"button",17),h(53,"Cancel"),l()()()()),2&i&&(m(2),f("formGroup",o.connectForm),m(7),f("ngForOf",o.dbEngineList),m(),f("ngIf","mysql"===o.connectForm.value.dbEngine),m(35),f("ngForOf",o.dialect),m(2),f("ngIf",o.isTestConnectionSuccessful),m(),f("disabled",!o.connectForm.valid),m(2),f("disabled",!o.connectForm.valid||!o.isTestConnectionSuccessful),m(2),f("routerLink","/"))},dependencies:[rn,It,qr,Yt,Mi,Di,xi,iC,qi,Xn,Tn,_n,Ci,_i,Bi,wi,zi,uc,vn],styles:[".connect-load-database-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:0}.configure[_ngcontent-%COMP%]{color:#1967d2}.flex-container[_ngcontent-%COMP%]{display:flex;align-items:center}.flex-item[_ngcontent-%COMP%]{margin-right:8px;align-self:baseline}.rounded-chip[_ngcontent-%COMP%]{background-color:#fff!important;color:#0f33ab!important;border-radius:16px;padding:6px 12px;border:1px solid black;cursor:not-allowed;pointer-events:none}"]})}return t})();function loe(t,n){if(1&t){const e=_e();d(0,"button",7),A("click",function(){return ne(e),oe(C().onConfirm())}),h(1," Continue "),l()}}let Uo=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,void 0===i.title&&(i.title="Update can not be saved")}ngOnInit(){}onConfirm(){this.dialogRef.close(!0)}onDismiss(){this.dialogRef.close(!1)}getIconFromMessageType(){switch(this.data.type){case"warning":return"warning";case"error":return"error";case"success":return"check_circle";default:return"message"}}static#e=this.\u0275fac=function(i){return new(i||t)(_(bn),_(mo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-infodialog"]],decls:9,vars:3,consts:[[1,"dialog-container"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"dialog-message",3,"innerHtml"],["mat-dialog-actions","",1,"dialog-action"],["mat-button","","color","primary","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h1",1),h(2),l(),d(3,"div",2),D(4,"p",3),l(),d(5,"div",4)(6,"button",5),h(7,"CANCEL"),l(),y(8,loe,2,0,"button",6),l()()),2&i&&(m(2),Pe(o.data.title),m(2),f("innerHtml",o.data.message,M1),m(4),f("ngIf","error"!=o.data.type))},dependencies:[It,Yt,zn,tee,So,ko]})}return t})();function ON(t=0,n=Pu){return t<0&&(t=0),Pf(t,t,n)}let doe=(()=>{class t{constructor(e,i){this.fetch=e,this.dialog=i,this.healthCheckSubscription=new de,this.unHealthyCheckCount=0,this.MAX_UNHEALTHY_CHECK_ATTEMPTS=5}startHealthCheck(){this.healthCheckSubscription=ON(5e3).subscribe(()=>{this.checkBackendHealth()})}stopHealthCheck(){this.healthCheckSubscription&&this.healthCheckSubscription.unsubscribe()}checkBackendHealth(){this.checkHealth().subscribe(e=>{e?this.unHealthyCheckCount=0:(this.unHealthyCheckCount==this.MAX_UNHEALTHY_CHECK_ATTEMPTS&&this.openHealthDialog(),this.unHealthyCheckCount++)})}openHealthDialog(){let e=this.dialog.open(Uo,{width:"500px",data:{message:"Please check terminal logs for more details. In case of a crash please file a github issue with all the details.",type:"error",title:"Spanner migration tool unresponsive"}});this.stopHealthCheck(),e.afterClosed().subscribe(()=>{this.startHealthCheck()})}checkHealth(){return Xi(this.fetch.checkBackendHealth()).pipe(nt(()=>!0),Li(()=>Ke(!1)))}ngOnDestroy(){this.stopHealthCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(X(En),X(Hr))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function uoe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function hoe(t,n){1&t&&(d(0,"mat-icon"),h(1,"filter_list"),l())}function moe(t,n){if(1&t){const e=_e();d(0,"mat-form-field",24)(1,"mat-label"),h(2,"Filter"),l(),d(3,"input",25),un("ngModelChange",function(o){ne(e);const r=C(3);return kn(r.filterColumnsValue.sessionName,o)||(r.filterColumnsValue.sessionName=o),oe(o)}),A("keyup",function(o){return ne(e),oe(C(3).updateFilterValue(o,"sessionName"))}),l()()}if(2&t){const e=C(3);m(3),dn("ngModel",e.filterColumnsValue.sessionName)}}function poe(t,n){if(1&t){const e=_e();d(0,"th",19)(1,"div",20)(2,"span"),h(3,"Session Name"),l(),d(4,"button",21),A("click",function(){return ne(e),oe(C(2).toggleFilterDisplay("sessionName"))}),y(5,uoe,2,0,"mat-icon",22)(6,hoe,2,0,"mat-icon",22),l()(),y(7,moe,4,1,"mat-form-field",23),l()}if(2&t){const e=C(2);m(5),f("ngIf",e.displayFilter.sessionName),m(),f("ngIf",!e.displayFilter.sessionName),m(),f("ngIf",e.displayFilter.sessionName)}}function foe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit;m(),Pe(e.SessionName)}}function goe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function _oe(t,n){1&t&&(d(0,"mat-icon"),h(1,"filter_list"),l())}function boe(t,n){if(1&t){const e=_e();d(0,"mat-form-field",28)(1,"mat-label"),h(2,"Filter"),l(),d(3,"input",25),un("ngModelChange",function(o){ne(e);const r=C(3);return kn(r.filterColumnsValue.editorName,o)||(r.filterColumnsValue.editorName=o),oe(o)}),A("keyup",function(o){return ne(e),oe(C(3).updateFilterValue(o,"editorName"))}),l()()}if(2&t){const e=C(3);m(3),dn("ngModel",e.filterColumnsValue.editorName)}}function voe(t,n){if(1&t){const e=_e();d(0,"th",19)(1,"div",20)(2,"span"),h(3,"Editor"),l(),d(4,"button",21),A("click",function(){return ne(e),oe(C(2).toggleFilterDisplay("editorName"))}),y(5,goe,2,0,"mat-icon",22)(6,_oe,2,0,"mat-icon",22),l()(),y(7,boe,4,1,"mat-form-field",27),l()}if(2&t){const e=C(2);m(5),f("ngIf",e.displayFilter.editorName),m(),f("ngIf",!e.displayFilter.editorName),m(),f("ngIf",e.displayFilter.editorName)}}function yoe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit;m(),Pe(e.EditorName)}}function Coe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function woe(t,n){1&t&&(d(0,"mat-icon"),h(1,"filter_list"),l())}function xoe(t,n){if(1&t){const e=_e();d(0,"mat-form-field",28)(1,"mat-label"),h(2,"Filter"),l(),d(3,"input",25),un("ngModelChange",function(o){ne(e);const r=C(3);return kn(r.filterColumnsValue.databaseType,o)||(r.filterColumnsValue.databaseType=o),oe(o)}),A("keyup",function(o){return ne(e),oe(C(3).updateFilterValue(o,"databaseType"))}),l()()}if(2&t){const e=C(3);m(3),dn("ngModel",e.filterColumnsValue.databaseType)}}function Doe(t,n){if(1&t){const e=_e();d(0,"th",19)(1,"div",20)(2,"span"),h(3,"Database Type"),l(),d(4,"button",21),A("click",function(){return ne(e),oe(C(2).toggleFilterDisplay("databaseType"))}),y(5,Coe,2,0,"mat-icon",22)(6,woe,2,0,"mat-icon",22),l()(),y(7,xoe,4,1,"mat-form-field",27),l()}if(2&t){const e=C(2);m(5),f("ngIf",e.displayFilter.databaseType),m(),f("ngIf",!e.displayFilter.databaseType),m(),f("ngIf",e.displayFilter.databaseType)}}function Soe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit;m(),Pe(e.DatabaseType)}}function koe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function Moe(t,n){1&t&&(d(0,"mat-icon"),h(1,"filter_list"),l())}function Toe(t,n){if(1&t){const e=_e();d(0,"mat-form-field",28)(1,"mat-label"),h(2,"Filter"),l(),d(3,"input",25),un("ngModelChange",function(o){ne(e);const r=C(3);return kn(r.filterColumnsValue.databaseName,o)||(r.filterColumnsValue.databaseName=o),oe(o)}),A("keyup",function(o){return ne(e),oe(C(3).updateFilterValue(o,"databaseName"))}),l()()}if(2&t){const e=C(3);m(3),dn("ngModel",e.filterColumnsValue.databaseName)}}function Ioe(t,n){if(1&t){const e=_e();d(0,"th",19)(1,"div",20)(2,"span"),h(3,"Database Name"),l(),d(4,"button",21),A("click",function(){return ne(e),oe(C(2).toggleFilterDisplay("databaseName"))}),y(5,koe,2,0,"mat-icon",22)(6,Moe,2,0,"mat-icon",22),l()(),y(7,Toe,4,1,"mat-form-field",27),l()}if(2&t){const e=C(2);m(5),f("ngIf",e.displayFilter.databaseName),m(),f("ngIf",!e.displayFilter.databaseName),m(),f("ngIf",e.displayFilter.databaseName)}}function Eoe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit;m(),Pe(e.DatabaseName)}}function Ooe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function Aoe(t,n){1&t&&(d(0,"mat-icon"),h(1,"filter_list"),l())}function Poe(t,n){if(1&t){const e=_e();d(0,"mat-form-field",28)(1,"mat-label"),h(2,"Filter"),l(),d(3,"input",25),un("ngModelChange",function(o){ne(e);const r=C(3);return kn(r.filterColumnsValue.dialect,o)||(r.filterColumnsValue.dialect=o),oe(o)}),A("keyup",function(o){return ne(e),oe(C(3).updateFilterValue(o,"dialect"))}),l()()}if(2&t){const e=C(3);m(3),dn("ngModel",e.filterColumnsValue.dialect)}}function Roe(t,n){if(1&t){const e=_e();d(0,"th",19)(1,"div",20)(2,"span"),h(3,"Spanner Dialect"),l(),d(4,"button",21),A("click",function(){return ne(e),oe(C(2).toggleFilterDisplay("dialect"))}),y(5,Ooe,2,0,"mat-icon",22)(6,Aoe,2,0,"mat-icon",22),l()(),y(7,Poe,4,1,"mat-form-field",27),l()}if(2&t){const e=C(2);m(5),f("ngIf",e.displayFilter.dialect),m(),f("ngIf",!e.displayFilter.dialect),m(),f("ngIf",e.displayFilter.dialect)}}function Noe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit;m(),Pe(e.Dialect)}}function Foe(t,n){1&t&&(d(0,"th",19),h(1,"Notes"),l())}function Loe(t,n){if(1&t){const e=_e();d(0,"button",34),A("click",function(){ne(e);const o=C(2).index,r=C(2);return oe(r.notesToggle[o]=!r.notesToggle[o])}),h(1," ... "),l()}}function Boe(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=n.$implicit;m(),Pe(e)}}function Voe(t,n){if(1&t&&(d(0,"div"),y(1,Boe,2,1,"p",35),l()),2&t){const e=C(2).$implicit;m(),f("ngForOf",e.Notes)}}function joe(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=C(2).$implicit;m(),Pe(null==e.Notes||null==e.Notes[0]?null:e.Notes[0].substring(0,20))}}function zoe(t,n){if(1&t&&(d(0,"div",30),y(1,Loe,2,0,"button",31)(2,Voe,2,1,"div",32)(3,joe,2,1,"ng-template",null,33,br),l()),2&t){const e=Ft(4),i=C(),o=i.$implicit,r=i.index,a=C(2);m(),f("ngIf",(null==o.Notes?null:o.Notes.length)>1||(null==o.Notes[0]?null:o.Notes[0].length)>20),m(),f("ngIf",a.notesToggle[r])("ngIfElse",e)}}function Hoe(t,n){if(1&t&&(d(0,"td",26),y(1,zoe,5,3,"div",29),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.Notes)}}function Uoe(t,n){1&t&&(d(0,"th",19),h(1,"Created At"),l())}function $oe(t,n){if(1&t&&(d(0,"td",26),h(1),l()),2&t){const e=n.$implicit,i=C(2);m(),Pe(i.convertDateTime(e.CreateTimestamp))}}function Goe(t,n){1&t&&D(0,"th",19)}function qoe(t,n){if(1&t){const e=_e();d(0,"td",26)(1,"button",36),A("click",function(){const r=ne(e).$implicit;return oe(C(2).resumeFromSessionFile(r.VersionId))}),h(2," Resume "),l(),d(3,"button",36),A("click",function(){const r=ne(e).$implicit;return oe(C(2).downloadSessionFile(r.VersionId,r.SessionName,r.DatabaseType,r.DatabaseName))}),h(4," Download "),l()()}}function Woe(t,n){1&t&&D(0,"tr",37)}function Koe(t,n){1&t&&D(0,"tr",38)}function Zoe(t,n){if(1&t&&(d(0,"div",5)(1,"table",6),me(2,7),y(3,poe,8,3,"th",8)(4,foe,2,1,"td",9),pe(),me(5,10),y(6,voe,8,3,"th",8)(7,yoe,2,1,"td",9),pe(),me(8,11),y(9,Doe,8,3,"th",8)(10,Soe,2,1,"td",9),pe(),me(11,12),y(12,Ioe,8,3,"th",8)(13,Eoe,2,1,"td",9),pe(),me(14,13),y(15,Roe,8,3,"th",8)(16,Noe,2,1,"td",9),pe(),me(17,14),y(18,Foe,2,0,"th",8)(19,Hoe,2,1,"td",9),pe(),me(20,15),y(21,Uoe,2,0,"th",8)(22,$oe,2,1,"td",9),pe(),me(23,16),y(24,Goe,1,0,"th",8)(25,qoe,5,0,"td",9),pe(),y(26,Woe,1,0,"tr",17)(27,Koe,1,0,"tr",18),l()()),2&t){const e=C();m(),f("dataSource",e.filteredDataSource),m(25),f("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",!0),m(),f("matRowDefColumns",e.displayedColumns)}}function Yoe(t,n){if(1&t){const e=_e();d(0,"div",39),ei(),d(1,"svg",40),D(2,"rect",41)(3,"path",42),l(),pr(),d(4,"button",43),A("click",function(){return ne(e),oe(C().openSpannerConfigDialog())}),h(5," Configure Spanner Details "),l(),d(6,"span"),h(7,"Do not have any previous session to display. "),d(8,"u"),h(9," OR "),l(),D(10,"br"),h(11," Invalid Spanner configuration. "),l()()}}let Qoe=(()=>{class t{constructor(e,i,o,r){this.fetch=e,this.data=i,this.router=o,this.clickEvent=r,this.displayedColumns=["SessionName","EditorName","DatabaseType","DatabaseName","Dialect","Notes","CreateTimestamp","Action"],this.notesToggle=[],this.dataSource=[],this.filteredDataSource=[],this.filterColumnsValue={sessionName:"",editorName:"",databaseType:"",databaseName:"",dialect:""},this.displayFilter={sessionName:!1,editorName:!1,databaseType:!1,databaseName:!1,dialect:!1}}ngOnInit(){this.data.getAllSessions(),this.data.sessions.subscribe({next:e=>{null!=e?(this.filteredDataSource=e,this.dataSource=e):(this.filteredDataSource=[],this.dataSource=[])}})}toggleFilterDisplay(e){this.displayFilter[e]=!this.displayFilter[e]}updateFilterValue(e,i){e.stopPropagation(),this.filterColumnsValue[i]=e.target.value,this.applyFilter()}applyFilter(){this.filteredDataSource=this.dataSource.filter(e=>!!e.SessionName.toLowerCase().includes(this.filterColumnsValue.sessionName.toLowerCase())).filter(e=>!!e.EditorName.toLowerCase().includes(this.filterColumnsValue.editorName.toLowerCase())).filter(e=>!!e.DatabaseType.toLowerCase().includes(this.filterColumnsValue.databaseType.toLowerCase())).filter(e=>!!e.DatabaseName.toLowerCase().includes(this.filterColumnsValue.databaseName.toLowerCase())).filter(e=>!!e.Dialect.toLowerCase().includes(this.filterColumnsValue.dialect.toLowerCase()))}downloadSessionFile(e,i,o,r){this.fetch.getConvForSession(e).subscribe(a=>{var s=document.createElement("a");s.href=URL.createObjectURL(a),s.download=`${i}_${o}_${r}.json`,s.click()})}resumeFromSessionFile(e){this.data.resetStore(),this.data.getSchemaConversionFromResumeSession(e),this.data.conv.subscribe(i=>{localStorage.setItem(Wi.Config,e),localStorage.setItem(Wi.Type,Jn.ResumeSession),this.router.navigate(["/workspace"])})}openSpannerConfigDialog(){this.clickEvent.openSpannerConfig()}convertDateTime(e){return(e=(e=new Date(e).toString()).substring(e.indexOf(" ")+1)).substring(0,e.indexOf("("))}static#e=this.\u0275fac=function(i){return new(i||t)(_(En),_(Hi),_(Rn),_(or))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-session-listing"]],decls:8,vars:2,consts:[[1,"sessions-wrapper"],[1,"primary-header"],[1,"summary"],["class","session-container mat-elevation-z3",4,"ngIf"],["class","mat-elevation-z3 warning-container",4,"ngIf"],[1,"session-container","mat-elevation-z3"],["mat-table","",3,"dataSource"],["matColumnDef","SessionName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","EditorName"],["matColumnDef","DatabaseType"],["matColumnDef","DatabaseName"],["matColumnDef","Dialect"],["matColumnDef","Notes"],["matColumnDef","CreateTimestamp"],["matColumnDef","Action"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[1,"table-header-container"],["mat-icon-button","",3,"click"],[4,"ngIf"],["appearance","outline","class","full-width",4,"ngIf"],["appearance","outline",1,"full-width"],["matInput","","autocomplete","off",3,"ngModel","ngModelChange","keyup"],["mat-cell",""],["appearance","outline",4,"ngIf"],["appearance","outline"],["class","notes-wrapper",4,"ngIf"],[1,"notes-wrapper"],["class","notes-toggle-button",3,"click",4,"ngIf"],[4,"ngIf","ngIfElse"],["short",""],[1,"notes-toggle-button",3,"click"],[4,"ngFor","ngForOf"],["mat-button","","color","primary",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-elevation-z3","warning-container"],["width","49","height","48","viewBox","0 0 49 48","fill","none","xmlns","http://www.w3.org/2000/svg"],["x","0.907227","width","48","height","48","rx","4","fill","#E6ECFA"],["fill-rule","evenodd","clip-rule","evenodd","d","M17.9072 15C16.8027 15 15.9072 15.8954 15.9072 17V31C15.9072 32.1046 16.8027 33 17.9072 33H31.9072C33.0118 33 33.9072 32.1046 33.9072 31V17C33.9072 15.8954 33.0118 15 31.9072 15H17.9072ZM20.9072 18H18.9072V20H20.9072V18ZM21.9072 18H23.9072V20H21.9072V18ZM20.9072 23H18.9072V25H20.9072V23ZM21.9072 23H23.9072V25H21.9072V23ZM20.9072 28H18.9072V30H20.9072V28ZM21.9072 28H23.9072V30H21.9072V28ZM30.9072 18H24.9072V20H30.9072V18ZM24.9072 23H30.9072V25H24.9072V23ZM30.9072 28H24.9072V30H30.9072V28Z","fill","#3367D6"],["mat-button","","color","primary",1,"spanner-config-button",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h3",1),h(2,"Session history"),l(),d(3,"div",2),h(4," Choose a session to resume an existing migration session, or download the session file. "),l(),D(5,"br"),y(6,Zoe,28,4,"div",3)(7,Yoe,12,0,"div",4),l()),2&i&&(m(6),f("ngIf",o.dataSource.length>0),m(),f("ngIf",0===o.dataSource.length))},dependencies:[rn,It,Yt,ba,Mi,Di,xi,qi,Ci,_i,ps,ka,fs,Ma,Sa,gs,Ta,Ia,_s,bs,Nl],styles:[".session-container[_ngcontent-%COMP%]{max-height:500px;overflow:auto}.session-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:13px}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .table-header-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center}.sessions-wrapper[_ngcontent-%COMP%]{margin-top:20px}.sessions-wrapper[_ngcontent-%COMP%] .warning-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:57vh;text-align:center}.sessions-wrapper[_ngcontent-%COMP%] .warning-container[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-bottom:10px}.sessions-wrapper[_ngcontent-%COMP%] .warning-container[_ngcontent-%COMP%] .spanner-config-button[_ngcontent-%COMP%]{text-decoration:underline}.mat-mdc-column-Notes[_ngcontent-%COMP%]{max-width:200px;padding-right:10px}.notes-toggle-button[_ngcontent-%COMP%]{float:right;margin-right:32px;background-color:#f5f5f5;border:none;border-radius:2px;padding:0 5px 5px}.notes-toggle-button[_ngcontent-%COMP%]:hover{background-color:#ebe7e7;cursor:pointer}.notes-wrapper[_ngcontent-%COMP%]{margin-top:10px}.mat-mdc-column-SessionName[_ngcontent-%COMP%], .mat-mdc-column-EditorName[_ngcontent-%COMP%], .mat-mdc-column-DatabaseType[_ngcontent-%COMP%], .mat-mdc-column-DatabaseName[_ngcontent-%COMP%], .mat-mdc-column-Dialect[_ngcontent-%COMP%]{width:13vw;min-width:150px}.mat-mdc-column-Action[_ngcontent-%COMP%], .mat-mdc-column-Notes[_ngcontent-%COMP%], .mat-mdc-column-CreateTimestamp[_ngcontent-%COMP%]{width:15vw;min-width:150px}.mat-mdc-form-field[_ngcontent-%COMP%]{width:80%}"]})}return t})(),Xoe=(()=>{class t{constructor(e,i,o){this.dialog=e,this.router=i,this.healthCheckService=o}ngOnInit(){this.healthCheckService.startHealthCheck(),null!=localStorage.getItem(he.IsMigrationInProgress)&&"true"===localStorage.getItem(he.IsMigrationInProgress)&&(this.dialog.open(Uo,{data:{title:"Redirecting to prepare migration page",message:"Another migration already in progress",type:"error"},maxWidth:"500px"}),this.router.navigate(["/prepare-migration"]))}static#e=this.\u0275fac=function(i){return new(i||t)(_(Hr),_(Rn),_(doe))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-home"]],decls:21,vars:4,consts:[[1,"container"],[1,"primary-header"],[1,"summary","global-font-color","body-font-size"],["href","https://github.com/GoogleCloudPlatform/spanner-migration-tool#readme","target","_blank"],[1,"btn-source-select"],["mat-raised-button","","color","primary","id","connect-to-database-btn",1,"split-button-left",3,"routerLink"],["mat-raised-button","","color","primary",1,"split-button-right",3,"matMenuTriggerFor"],["aria-hidden","false","aria-label","More options"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"]],template:function(i,o){if(1&i&&(d(0,"div",0)(1,"h3",1),h(2,"Get started with Spanner migration tool"),l(),d(3,"div",2),h(4," Spanner migration tool (formerly known as HarbourBridge) is a stand-alone open source tool for Cloud Spanner evaluation and migration, using data from an existing PostgreSQL, MySQL, SQL Server, Oracle or DynamoDB database. "),d(5,"a",3),h(6,"Learn More"),l(),h(7,". "),l(),d(8,"div",4)(9,"button",5),h(10," Connect to database "),l(),d(11,"button",6)(12,"mat-icon",7),h(13,"expand_more"),l()(),d(14,"mat-menu",8,9)(16,"button",10),h(17,"Load database dump"),l(),d(18,"button",10),h(19,"Load session file"),l()()(),D(20,"app-session-listing"),l()),2&i){const r=Ft(15);m(9),f("routerLink","/source/direct-connection"),m(2),f("matMenuTriggerFor",r),m(5),f("routerLink","/source/load-dump"),m(2),f("routerLink","/source/load-session")}},dependencies:[qr,Yt,Mi,jl,wa,zl,Qoe],styles:[".container[_ngcontent-%COMP%]{padding:7px 27px}.container[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%]{width:500px;font-weight:lighter}.container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 5px}.container[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-color:#fff;margin-bottom:20px}.container[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%]{margin:20px 0;padding-bottom:5px}.container[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .split-button-left[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.container[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .split-button-right[_ngcontent-%COMP%]{width:30px!important;min-width:unset!important;padding:0 2px;border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid #fafafa}"]})}return t})(),eo=(()=>{class t{constructor(){this.sidenavOpenSub=new pt(!1),this.sidenavComponentSub=new pt(""),this.sidenavRuleTypeSub=new pt(""),this.sidenavAddIndexTableSub=new pt(""),this.setSidenavDatabaseNameSub=new pt(""),this.ruleDataSub=new pt({}),this.displayRuleFlagSub=new pt(!1),this.setMiddleColumn=new pt(!1),this.isSidenav=this.sidenavOpenSub.asObservable(),this.sidenavComponent=this.sidenavComponentSub.asObservable(),this.sidenavRuleType=this.sidenavRuleTypeSub.asObservable(),this.sidenavAddIndexTable=this.sidenavAddIndexTableSub.asObservable(),this.sidenavDatabaseName=this.setSidenavDatabaseNameSub.asObservable(),this.ruleData=this.ruleDataSub.asObservable(),this.displayRuleFlag=this.displayRuleFlagSub.asObservable(),this.setMiddleColumnComponent=this.setMiddleColumn.asObservable()}openSidenav(){this.sidenavOpenSub.next(!0)}closeSidenav(){this.sidenavOpenSub.next(!1)}setSidenavComponent(e){this.sidenavComponentSub.next(e)}setSidenavRuleType(e){this.sidenavRuleTypeSub.next(e)}setSidenavAddIndexTable(e){this.sidenavAddIndexTableSub.next(e)}setSidenavDatabaseName(e){this.setSidenavDatabaseNameSub.next(e)}setRuleData(e){this.ruleDataSub.next(e)}setDisplayRuleFlag(e){this.displayRuleFlagSub.next(e)}setMiddleColComponent(e){this.setMiddleColumn.next(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),AN=(()=>{class t{constructor(e){this.sidenav=e}ngOnInit(){}closeInstructionSidenav(){this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(eo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-instruction"]],decls:150,vars:0,consts:[[1,"instructions-div"],[1,"instruction-header-div"],["mat-icon-button","",3,"click"],["src","../../../assets/icons/google-spanner-logo.png",1,"instructions-icon"],[1,"textCenter"],[1,"instructions-main-heading"],[1,"instructions-sub-heading"],[1,"instructions-command"],["href","https://github.com/GoogleCloudPlatform/spanner-migration-tool",1,"instructionsLink"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"button",2),A("click",function(){return o.closeInstructionSidenav()}),d(3,"mat-icon"),h(4,"close"),l()()(),D(5,"img",3),d(6,"h1",4),h(7,"Spanner migration tool User Manual"),l(),D(8,"br")(9,"br"),d(10,"h3",5),h(11,"1 \xa0 \xa0 \xa0Introduction"),l(),d(12,"p"),h(13," Spanner migration tool (formerly known as HarbourBridge) is a stand-alone open source tool for Cloud Spanner evaluation, using data from an existing PostgreSQL or MySQL database. The tool ingests schema and data from either a pg_dump/mysqldump file or directly from the source database, automatically builds a Spanner schema, and creates a new Spanner database populated with data from the source database. "),D(14,"br")(15,"br")(16,"br"),h(17," Spanner migration tool is designed to simplify Spanner evaluation, and in particular to bootstrap the process by getting moderate-size PostgreSQL/MySQL datasets into Spanner (up to a few tens of GB). Many features of PostgreSQL/MySQL, especially those that don't map directly to Spanner features, are ignored, e.g. (non-primary) indexes, functions, and sequences. Types such as integers, floats, char/text, bools, timestamps, and (some) array types, map fairly directly to Spanner, but many other types do not and instead are mapped to Spanner's STRING(MAX). "),l(),D(18,"br"),d(19,"h4",6),h(20,"1.1 \xa0 \xa0 \xa0Spanner migration tool UI"),l(),d(21,"p"),h(22," Spanner migration tool UI is designed to focus on generating spanner schema from either a pg_dump/mysqldump file or directly from the source database and providing edit functionality to the spanner schema and thereby creating a new spanner database populated with new data. UI gives the provision to edit column name, edit data type, edit constraints, drop foreign key and drop secondary index of spanner schema. "),l(),D(23,"br"),d(24,"h3",5),h(25,"2 \xa0 \xa0 \xa0Key Features of UI"),l(),d(26,"ul")(27,"li"),h(28,"Connecting to a new database"),l(),d(29,"li"),h(30,"Load dump file"),l(),d(31,"li"),h(32,"Load session file"),l(),d(33,"li"),h(34,"Storing session for each conversion"),l(),d(35,"li"),h(36,"Edit data type globally for each table in schema"),l(),d(37,"li"),h(38,"Edit data type, column name, constraint for a particular table"),l(),d(39,"li"),h(40,"Edit foreign key and secondary index name"),l(),d(41,"li"),h(42,"Drop a column from a table"),l(),d(43,"li"),h(44,"Drop foreign key from a table"),l(),d(45,"li"),h(46,"Drop secondary index from a table"),l(),d(47,"li"),h(48,"Convert foreign key into interleave table"),l(),d(49,"li"),h(50,"Search a table"),l(),d(51,"li"),h(52,"Download schema, report and session files"),l()(),D(53,"br"),d(54,"h3",5),h(55,"3 \xa0 \xa0 \xa0UI Setup"),l(),d(56,"ul")(57,"li"),h(58,"Install go in local"),l(),d(59,"li"),h(60," Clone Spanner migration tool project and run following command in the terminal: "),D(61,"br"),d(62,"span",7),h(63,"go run main.go --web"),l()(),d(64,"li"),h(65,"Open "),d(66,"span",7),h(67,"http://localhost:8080"),l(),h(68,"in browser"),l()(),D(69,"br"),d(70,"h3",5),h(71," 4 \xa0 \xa0 \xa0Different modes to select source database "),l(),d(72,"h4",6),h(73,"4.1 \xa0 \xa0 \xa0Connect to Database"),l(),d(74,"ul")(75,"li"),h(76,"Enter database details in connect to database dialog box"),l(),d(77,"li"),h(78," Input Fields: database type, database host, database port, database user, database name, database password "),l()(),d(79,"h4",6),h(80,"4.2 \xa0 \xa0 \xa0Load Database Dump"),l(),d(81,"ul")(82,"li"),h(83,"Enter dump file path in load database dialog box"),l(),d(84,"li"),h(85,"Input Fields: database type, file path"),l()(),d(86,"h4",6),h(87,"4.3 \xa0 \xa0 \xa0Import Schema File"),l(),d(88,"ul")(89,"li"),h(90,"Enter session file path in load session dialog box"),l(),d(91,"li"),h(92,"Input Fields: database type, session file path"),l()(),d(93,"h3",5),h(94,"5 \xa0 \xa0 \xa0Session Table"),l(),d(95,"ul")(96,"li"),h(97,"Session table is used to store the previous sessions of schema conversion"),l()(),d(98,"h3",5),h(99,"6 \xa0 \xa0 \xa0Edit Global Data Type"),l(),d(100,"ul")(101,"li"),h(102,"Click on edit global data type button on the screen"),l(),d(103,"li"),h(104,"Select required spanner data type from the dropdown available for each source data type"),l(),d(105,"li"),h(106,"Click on next button after making all the changes"),l()(),d(107,"h3",5),h(108," 7 \xa0 \xa0 \xa0Edit Spanner Schema for a particular table "),l(),d(109,"ul")(110,"li"),h(111,"Expand any table"),l(),d(112,"li"),h(113,"Click on edit spanner schema button"),l(),d(114,"li"),h(115,"Edit column name/ data type/ constraint of spanner schema"),l(),d(116,"li"),h(117,"Edit name of secondary index or foreign key"),l(),d(118,"li"),h(119,"Select to convert foreign key to interleave or use as is (if option is available)"),l(),d(120,"li"),h(121,"Drop a column by unselecting any checkbox"),l(),d(122,"li"),h(123," Drop a foreign key or secondary index by expanding foreign keys or secondary indexes tab inside table "),l(),d(124,"li"),h(125,"Click on save changes button to save the changes"),l(),d(126,"li"),h(127," If current table is involved in foreign key/secondary indexes relationship with other table then user will be prompt to delete foreign key or secondary indexes and then proceed with save changes "),l()(),d(128,"p"),h(129,"- Warning before deleting secondary index from a table"),l(),d(130,"p"),h(131,"- Error on saving changes"),l(),d(132,"p"),h(133,"- Changes saved successfully after resolving all errors"),l(),d(134,"h3",5),h(135,"8 \xa0 \xa0 \xa0Download Session File"),l(),d(136,"ul")(137,"li"),h(138,"Save all the changes done in spanner schema table wise or globally"),l(),d(139,"li"),h(140,"Click on download session file button on the top right corner"),l(),d(141,"li"),h(142,"Save the generated session file with all the changes in local machine"),l()(),d(143,"h3",5),h(144,"9 \xa0 \xa0 \xa0How to use Session File"),l(),d(145,"p"),h(146," Please refer below link to get more information on how to use session file with Spanner migration tool "),l(),d(147,"a",8),h(148,"Refer this to use Session File"),l(),D(149,"br"),l())},dependencies:[ba,Mi],styles:[".instructions-div[_ngcontent-%COMP%]{padding:5px 20px 20px}.instructions-div[_ngcontent-%COMP%] .instruction-header-div[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.instructions-icon[_ngcontent-%COMP%]{height:200px;display:block;margin-left:auto;margin-right:auto}.textCenter[_ngcontent-%COMP%]{text-align:center}.instructions-main-heading[_ngcontent-%COMP%]{font-size:1.25rem;color:#4285f4;font-weight:700}.instructions-sub-heading[_ngcontent-%COMP%]{font-size:1rem;color:#4285f4;font-weight:700}.instructions-command[_ngcontent-%COMP%]{background-color:#8080806b;border-radius:5px;padding:0 5px}.instructions-img-width[_ngcontent-%COMP%]{width:800px}.instructionsLink[_ngcontent-%COMP%]{color:#4285f4;text-decoration:underline}"]})}return t})();const Joe=["determinateSpinner"];function ere(t,n){if(1&t&&(ei(),d(0,"svg",11),D(1,"circle",12),l()),2&t){const e=C();Xe("viewBox",e._viewBox()),m(),Sn("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),Xe("r",e._circleRadius())}}const tre=is(class{constructor(t){this._elementRef=t}},"primary"),ire=new se("mat-progress-spinner-default-options",{providedIn:"root",factory:function nre(){return{diameter:PN}}}),PN=100;let sd=(()=>{class t extends tre{constructor(e,i,o){super(e),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=PN,this._noopAnimations="NoopAnimations"===i&&!!o&&!o._forceAnimations,o&&(o.color&&(this.color=this.defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,yi(e)))}get diameter(){return this._diameter}set diameter(e){this._diameter=yi(e)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=yi(e)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const e=2*this._circleRadius()+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static#e=this.\u0275fac=function(i){return new(i||t)(_(Be),_(ui,8),_(ire))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,o){if(1&i&&vt(Joe,5),2&i){let r;Oe(r=Ae())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:16,hostBindings:function(i,o){2&i&&(Xe("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===o.mode?o.value:null)("mode",o.mode),Sn("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),et("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===o.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[ve],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(i,o){if(1&i&&(y(0,ere,2,8,"ng-template",null,0,br),d(2,"div",1,2),ei(),d(4,"svg",3),D(5,"circle",4),l()(),pr(),d(6,"div",5)(7,"div",6)(8,"div",7),ro(9,8),l(),d(10,"div",9),ro(11,8),l(),d(12,"div",10),ro(13,8),l()()()),2&i){const r=Ft(1);m(4),Xe("viewBox",o._viewBox()),m(),Sn("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),Xe("r",o._circleRadius()),m(4),f("ngTemplateOutlet",r),m(2),f("ngTemplateOutlet",r),m(2),f("ngTemplateOutlet",r)}},dependencies:[kp],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{--mdc-circular-progress-active-indicator-width:4px;--mdc-circular-progress-size:48px}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}return t})(),rre=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[Vn,Mt]})}return t})();function are(t,n){if(1&t&&(d(0,"mat-option",17),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),xe(" ",e.displayName," ")}}function sre(t,n){1&t&&D(0,"mat-spinner",18),2&t&&f("diameter",25)}function cre(t,n){1&t&&(d(0,"mat-icon",19),h(1,"check_circle"),l())}function lre(t,n){1&t&&(d(0,"mat-icon",20),h(1,"cancel"),l())}function dre(t,n){if(1&t&&(d(0,"mat-option",17),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),xe(" ",e.displayName," ")}}let ure=(()=>{class t{constructor(e,i,o){this.data=e,this.router=i,this.clickEvent=o,this.connectForm=new ti({dbEngine:new U("mysqldump",[ee.required]),filePath:new U("",[ee.required]),dialect:new U("",[ee.required])}),this.dbEngineList=[{value:"mysqldump",displayName:"MySQL"},{value:"pg_dump",displayName:"PostgreSQL"}],this.dialect=DN,this.fileToUpload=null,this.uploadStart=!1,this.uploadSuccess=!1,this.uploadFail=!1,this.getSchemaRequest=null}ngOnInit(){this.clickEvent.cancelDbLoad.subscribe({next:e=>{e&&this.getSchemaRequest&&this.getSchemaRequest.unsubscribe()}})}convertFromDump(){this.clickEvent.openDatabaseLoader("dump",""),this.data.resetStore(),localStorage.clear();const{dbEngine:e,filePath:i,dialect:o}=this.connectForm.value,s={Config:{Driver:e,Path:i},SpannerDetails:{Dialect:o}};this.getSchemaRequest=this.data.getSchemaConversionFromDump(s),this.data.conv.subscribe(c=>{localStorage.setItem(Wi.Config,JSON.stringify(s)),localStorage.setItem(Wi.Type,Jn.DumpFile),localStorage.setItem(Wi.SourceDbName,ad(e)),this.clickEvent.closeDatabaseLoader(),this.router.navigate(["/workspace"])})}handleFileInput(e){let i=e.target.files;i&&(this.fileToUpload=i.item(0),this.connectForm.patchValue({filePath:this.fileToUpload?.name}),this.fileToUpload&&this.uploadFile())}uploadFile(){if(this.fileToUpload){this.uploadStart=!0,this.uploadFail=!1,this.uploadSuccess=!1;const e=new FormData;e.append("myFile",this.fileToUpload,this.fileToUpload?.name),this.data.uploadFile(e).subscribe(i=>{""==i?this.uploadSuccess=!0:this.uploadFail=!0})}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Hi),_(Rn),_(or))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-load-dump"]],decls:36,vars:8,consts:[[1,"connect-load-database-container"],[1,"form-container"],[3,"formGroup","ngSubmit"],[1,"primary-header"],["appearance","outline",1,"full-width"],["matSelect","","name","dbEngine","formControlName","dbEngine","appearance","outline"],[3,"value",4,"ngFor","ngForOf"],["matInput","","placeholder","File path","name","filePath","type","text","formControlName","filePath","readonly","",3,"click"],["matSuffix","",3,"diameter",4,"ngIf"],["matSuffix","","class","success",4,"ngIf"],["matSuffix","","class","danger",4,"ngIf"],["mat-stroked-button","","type","button",3,"click"],["hidden","","type","file",3,"change"],["file",""],["matSelect","","name","dialect","formControlName","dialect","appearance","outline"],["mat-raised-button","","type","submit","color","primary",3,"disabled"],["mat-raised-button","",3,"routerLink"],[3,"value"],["matSuffix","",3,"diameter"],["matSuffix","",1,"success"],["matSuffix","",1,"danger"]],template:function(i,o){if(1&i){const r=_e();d(0,"div",0)(1,"div",1)(2,"form",2),A("ngSubmit",function(){return o.convertFromDump()}),d(3,"h3",3),h(4,"Load from database dump"),l(),d(5,"mat-form-field",4)(6,"mat-label"),h(7,"Database Engine"),l(),d(8,"mat-select",5),y(9,are,2,2,"mat-option",6),l()(),d(10,"h3",3),h(11,"Dump File"),l(),d(12,"mat-form-field",4)(13,"mat-label"),h(14,"File path"),l(),d(15,"input",7),A("click",function(){return ne(r),oe(Ft(22).click())}),l(),y(16,sre,1,1,"mat-spinner",8)(17,cre,2,0,"mat-icon",9)(18,lre,2,0,"mat-icon",10),l(),d(19,"button",11),A("click",function(){return ne(r),oe(Ft(22).click())}),h(20,"Upload File"),l(),d(21,"input",12,13),A("change",function(s){return o.handleFileInput(s)}),l(),D(23,"br"),d(24,"h3",3),h(25,"Spanner Dialect"),l(),d(26,"mat-form-field",4)(27,"mat-label"),h(28,"Select a spanner dialect"),l(),d(29,"mat-select",14),y(30,dre,2,2,"mat-option",6),l()(),D(31,"br"),d(32,"button",15),h(33," Convert "),l(),d(34,"button",16),h(35,"Cancel"),l()()()()}2&i&&(m(2),f("formGroup",o.connectForm),m(7),f("ngForOf",o.dbEngineList),m(7),f("ngIf",o.uploadStart&&!o.uploadSuccess&&!o.uploadFail),m(),f("ngIf",o.uploadStart&&o.uploadSuccess),m(),f("ngIf",o.uploadStart&&o.uploadFail),m(12),f("ngForOf",o.dialect),m(2),f("disabled",!o.connectForm.valid||!o.uploadSuccess),m(2),f("routerLink","/"))},dependencies:[rn,It,qr,Yt,Mi,Di,xi,nC,qi,Xn,Tn,_n,Ci,_i,Bi,wi,zi,sd]})}return t})();function hre(t,n){if(1&t&&(d(0,"mat-option",16),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),xe(" ",e.displayName," ")}}function mre(t,n){1&t&&D(0,"mat-spinner",17),2&t&&f("diameter",25)}function pre(t,n){1&t&&(d(0,"mat-icon",18),h(1,"check_circle"),l())}function fre(t,n){1&t&&(d(0,"mat-icon",19),h(1,"cancel"),l())}let gre=(()=>{class t{constructor(e,i,o){this.data=e,this.router=i,this.clickEvent=o,this.connectForm=new ti({dbEngine:new U("mysql",[ee.required]),filePath:new U("",[ee.required])}),this.dbEngineList=[{value:"mysql",displayName:"MySQL"},{value:"sqlserver",displayName:"SQL Server"},{value:"oracle",displayName:"Oracle"},{value:"postgres",displayName:"PostgreSQL"}],this.fileToUpload=null,this.uploadStart=!1,this.uploadSuccess=!1,this.uploadFail=!1,this.getSchemaRequest=null}ngOnInit(){this.clickEvent.cancelDbLoad.subscribe({next:e=>{e&&this.getSchemaRequest&&this.getSchemaRequest.unsubscribe()}})}convertFromSessionFile(){this.clickEvent.openDatabaseLoader("session",""),this.data.resetStore(),localStorage.clear();const{dbEngine:e,filePath:i}=this.connectForm.value,o={driver:e,filePath:i};this.getSchemaRequest=this.data.getSchemaConversionFromSession(o),this.data.conv.subscribe(r=>{localStorage.setItem(Wi.Config,JSON.stringify(o)),localStorage.setItem(Wi.Type,Jn.SessionFile),localStorage.setItem(Wi.SourceDbName,ad(e)),this.clickEvent.closeDatabaseLoader(),this.router.navigate(["/workspace"])})}handleFileInput(e){let i=e.target.files;i&&(this.fileToUpload=i.item(0),this.connectForm.patchValue({filePath:this.fileToUpload?.name}),this.fileToUpload&&this.uploadFile())}uploadFile(){if(this.fileToUpload){this.uploadStart=!0,this.uploadFail=!1,this.uploadSuccess=!1;const e=new FormData;e.append("myFile",this.fileToUpload,this.fileToUpload?.name),this.data.uploadFile(e).subscribe(i=>{""==i?this.uploadSuccess=!0:this.uploadFail=!0})}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Hi),_(Rn),_(or))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-load-session"]],decls:28,vars:7,consts:[[1,"connect-load-database-container"],[1,"form-container"],[3,"formGroup","ngSubmit"],[1,"primary-header"],["appearance","outline",1,"full-width"],["matSelect","","name","dbEngine","formControlName","dbEngine","appearance","outline"],[3,"value",4,"ngFor","ngForOf"],["matInput","","placeholder","File path","name","filePath","type","text","formControlName","filePath","readonly","",3,"click"],["matSuffix","",3,"diameter",4,"ngIf"],["matSuffix","","class","success",4,"ngIf"],["matSuffix","","class","danger",4,"ngIf"],["mat-stroked-button","","type","button",3,"click"],["hidden","","type","file",3,"change"],["file",""],["mat-raised-button","","type","submit","color","primary",3,"disabled"],["mat-raised-button","",3,"routerLink"],[3,"value"],["matSuffix","",3,"diameter"],["matSuffix","",1,"success"],["matSuffix","",1,"danger"]],template:function(i,o){if(1&i){const r=_e();d(0,"div",0)(1,"div",1)(2,"form",2),A("ngSubmit",function(){return o.convertFromSessionFile()}),d(3,"h3",3),h(4,"Load from session"),l(),d(5,"mat-form-field",4)(6,"mat-label"),h(7,"Database Engine"),l(),d(8,"mat-select",5),y(9,hre,2,2,"mat-option",6),l()(),d(10,"h3",3),h(11,"Session File"),l(),d(12,"mat-form-field",4)(13,"mat-label"),h(14,"File path"),l(),d(15,"input",7),A("click",function(){return ne(r),oe(Ft(22).click())}),l(),y(16,mre,1,1,"mat-spinner",8)(17,pre,2,0,"mat-icon",9)(18,fre,2,0,"mat-icon",10),l(),d(19,"button",11),A("click",function(){return ne(r),oe(Ft(22).click())}),h(20,"Upload File"),l(),d(21,"input",12,13),A("change",function(s){return o.handleFileInput(s)}),l(),D(23,"br"),d(24,"button",14),h(25," Convert "),l(),d(26,"button",15),h(27,"Cancel"),l()()()()}2&i&&(m(2),f("formGroup",o.connectForm),m(7),f("ngForOf",o.dbEngineList),m(7),f("ngIf",o.uploadStart&&!o.uploadSuccess&&!o.uploadFail),m(),f("ngIf",o.uploadStart&&o.uploadSuccess),m(),f("ngIf",o.uploadStart&&o.uploadFail),m(6),f("disabled",!o.connectForm.valid||!o.uploadSuccess),m(2),f("routerLink","/"))},dependencies:[rn,It,qr,Yt,Mi,Di,xi,nC,qi,Xn,Tn,_n,Ci,_i,Bi,wi,zi,sd]})}return t})();function _re(t,n){if(1&t&&(d(0,"h3"),h(1),l()),2&t){const e=C();m(),xe("Reading schema for ",e.databaseName," database. Please wait...")}}function bre(t,n){1&t&&(d(0,"h4"),h(1,"Tip: Spanner migration tool will read the information schema at source and automatically map it to Cloud Spanner"),l())}function vre(t,n){if(1&t&&(d(0,"h3"),h(1),l()),2&t){const e=C();m(),xe("Testing connection to ",e.databaseName," database...")}}function yre(t,n){1&t&&(d(0,"h4"),h(1,"Tip: Spanner migration tool is attempting to ping the source database, it will retry a couple of times before timing out."),l())}function Cre(t,n){1&t&&(d(0,"h3"),h(1,"Loading the dump file..."),l())}function wre(t,n){1&t&&(d(0,"h3"),h(1,"Loading the session file..."),l())}let xre=(()=>{class t{constructor(e,i){this.router=e,this.clickEvent=i,this.loaderType="",this.databaseName="",this.timeElapsed=0,this.timeElapsedInterval=setInterval(()=>{this.timeElapsed+=1},1e3)}ngOnInit(){this.timeElapsed=0}ngOnDestroy(){clearInterval(this.timeElapsedInterval)}cancelDbLoad(){this.clickEvent.cancelDbLoading(),this.clickEvent.closeDatabaseLoader(),this.router.navigate(["/"])}static#e=this.\u0275fac=function(i){return new(i||t)(_(Rn),_(or))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-database-loader"]],inputs:{loaderType:"loaderType",databaseName:"databaseName"},decls:12,vars:7,consts:[[1,"container","content-height"],["src","../../../assets/gifs/database-loader.gif","alt","database-loader-gif",1,"loader-gif"],[4,"ngIf"],["mat-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0),D(1,"img",1),y(2,_re,2,1,"h3",2)(3,bre,2,0,"h4",2)(4,vre,2,1,"h3",2)(5,yre,2,0,"h4",2)(6,Cre,2,0,"h3",2)(7,wre,2,0,"h3",2),d(8,"h5"),h(9),l(),d(10,"button",3),A("click",function(){return o.cancelDbLoad()}),h(11,"Cancel"),l()()),2&i&&(m(2),f("ngIf","direct"===o.loaderType),m(),f("ngIf","direct"===o.loaderType),m(),f("ngIf","test-connection"===o.loaderType),m(),f("ngIf","test-connection"===o.loaderType),m(),f("ngIf","dump"===o.loaderType),m(),f("ngIf","session"===o.loaderType),m(2),xe("",o.timeElapsed," seconds have elapsed"))},dependencies:[It,Yt],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.container[_ngcontent-%COMP%] .loader-gif[_ngcontent-%COMP%]{width:10rem;height:10rem}"]})}return t})();function Dre(t,n){1&t&&(d(0,"div"),D(1,"router-outlet"),l())}function Sre(t,n){if(1&t&&(d(0,"div"),D(1,"app-database-loader",1),l()),2&t){const e=C();m(),f("loaderType",e.loaderType)("databaseName",e.databaseName)}}let kre=(()=>{class t{constructor(e){this.clickevent=e,this.isDatabaseLoading=!1,this.loaderType="",this.databaseName=""}ngOnInit(){this.clickevent.databaseLoader.subscribe(e=>{this.loaderType=e.type,this.databaseName=e.databaseName,this.isDatabaseLoading=""!==this.loaderType})}static#e=this.\u0275fac=function(i){return new(i||t)(_(or))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-source-selection"]],decls:2,vars:2,consts:[[4,"ngIf"],[3,"loaderType","databaseName"]],template:function(i,o){1&i&&y(0,Dre,2,0,"div",0)(1,Sre,2,2,"div",0),2&i&&(f("ngIf",!o.isDatabaseLoading),m(),f("ngIf",o.isDatabaseLoading))},dependencies:[It,Cg,xre],styles:[".mat-card-class[_ngcontent-%COMP%]{padding:0 20px}"]})}return t})();var RN=Re(304);function Mre(t,n){if(1&t){const e=_e();d(0,"mat-chip-row",16),A("removed",function(){const r=ne(e).$implicit;return oe(C().removeFilter(r))}),h(1),d(2,"button",17)(3,"mat-icon"),h(4,"cancel"),l()()()}if(2&t){const e=n.$implicit;m(),xe(" ",e," ")}}function Tre(t,n){if(1&t){const e=_e();d(0,"mat-option",18),A("click",function(){const r=ne(e).$implicit;return oe(C().addFilter(r))}),h(1),l()}if(2&t){const e=n.$implicit;f("value",e),m(),xe(" ",e," ")}}function Ire(t,n){1&t&&(d(0,"mat-icon",31),h(1," error "),l())}function Ere(t,n){1&t&&(d(0,"mat-icon",32),h(1," warning "),l())}function Ore(t,n){1&t&&(d(0,"mat-icon",33),h(1," wb_incandescent "),l())}function Are(t,n){1&t&&(d(0,"mat-icon",34),h(1," check_circle "),l())}function Pre(t,n){if(1&t){const e=_e();d(0,"button",35),A("click",function(){ne(e);const o=C().$implicit;return oe(C(2).toggleRead(o))}),d(1,"span"),h(2,"Mark as read"),l()()}}function Rre(t,n){if(1&t){const e=_e();d(0,"button",35),A("click",function(){ne(e);const o=C().$implicit;return oe(C(2).toggleRead(o))}),d(1,"span"),h(2,"Mark as unread"),l()()}}function Nre(t,n){if(1&t&&(d(0,"section",21)(1,"div",2)(2,"div",3),y(3,Ire,2,0,"mat-icon",22)(4,Ere,2,0,"mat-icon",23)(5,Ore,2,0,"mat-icon",24)(6,Are,2,0,"mat-icon",25),l(),d(7,"div",26),h(8),l(),d(9,"div",6)(10,"mat-icon",27),h(11,"more_vert"),l(),d(12,"mat-menu",28,29),y(14,Pre,3,0,"button",30)(15,Rre,3,0,"button",30),l()()()()),2&t){const e=n.$implicit,i=Ft(13);m(3),f("ngIf","error"==e.type),m(),f("ngIf","warning"==e.type),m(),f("ngIf","suggestion"==e.type),m(),f("ngIf","note"==e.type),m(2),Pe(e.content),m(2),f("matMenuTriggerFor",i),m(4),f("ngIf",!e.isRead),m(),f("ngIf",e.isRead)}}function Fre(t,n){if(1&t&&(d(0,"div",19),y(1,Nre,16,8,"section",20),l()),2&t){const e=C();m(),f("ngForOf",e.filteredSummaryRows)}}function Lre(t,n){1&t&&(d(0,"div",36)(1,"div",37),ei(),d(2,"svg",38),D(3,"path",39),l()(),pr(),d(4,"div",40),h(5," Woohoo! No issues or suggestions"),D(6,"br"),h(7,"found. "),l()())}let Bre=(()=>{class t{constructor(e,i){this.data=e,this.clickEvent=i,this.changeIssuesLabel=new Ne,this.summaryRows=[],this.summary=new Map,this.filteredSummaryRows=[],this.separatorKeysCodes=[],this.summaryCount=0,this.totalNoteCount=0,this.totalWarningCount=0,this.totalSuggestionCount=0,this.totalErrorCount=0,this.filterInput=new U,this.options=["read","unread","warning","suggestion","note","error"],this.obsFilteredOptions=new li,this.searchFilters=["unread","warning","note","suggestion","error"],this.currentObject=null}ngOnInit(){this.data.summary.subscribe({next:e=>{if(this.summary=e,this.currentObject){let i=this.currentObject.id;"indexName"==this.currentObject.type&&(i=this.currentObject.parentId);let o=this.summary.get(i);o?(this.summaryRows=[],this.initiateSummaryCollection(o),this.applyFilters(),this.summaryCount=o.NotesCount+o.WarningsCount+o.ErrorsCount+o.SuggestionsCount,this.changeIssuesLabel.emit(o.NotesCount+o.WarningsCount+o.ErrorsCount+o.SuggestionsCount)):(this.summaryCount=0,this.changeIssuesLabel.emit(0))}else this.initialiseSummaryCollectionForAllTables(this.summary),this.summaryCount=this.totalNoteCount+this.totalErrorCount+this.totalSuggestionCount+this.totalWarningCount,this.changeIssuesLabel.emit(this.summaryCount)}}),this.registerAutoCompleteChange()}initialiseSummaryCollectionForAllTables(e){this.summaryRows=[],this.totalErrorCount=0,this.totalNoteCount=0,this.totalSuggestionCount=0,this.totalWarningCount=0;for(const i of e.values())this.initiateSummaryCollection(i);this.applyFilters()}ngOnChanges(e){if(this.currentObject=e?.currentObject?.currentValue||this.currentObject,this.summaryRows=[],this.currentObject){let i=this.currentObject.id;"indexName"==this.currentObject.type&&(i=this.currentObject.parentId);let o=this.summary.get(i);o?(this.summaryRows=[],this.initiateSummaryCollection(o),this.applyFilters(),this.summaryCount=o.NotesCount+o.WarningsCount+o.ErrorsCount+o.SuggestionsCount,this.changeIssuesLabel.emit(o.NotesCount+o.WarningsCount+o.ErrorsCount+o.SuggestionsCount)):(this.summaryCount=0,this.changeIssuesLabel.emit(0))}else this.summaryCount=0,this.changeIssuesLabel.emit(0)}initiateSummaryCollection(e){this.totalErrorCount+=e.ErrorsCount,this.totalNoteCount+=e.NotesCount,this.totalWarningCount+=e.WarningsCount,this.totalSuggestionCount+=e.SuggestionsCount,e.Errors.forEach(i=>{this.summaryRows.push({type:"error",content:i.description,isRead:!1})}),e.Warnings.forEach(i=>{this.summaryRows.push({type:"warning",content:i.description,isRead:!1})}),e.Suggestions.forEach(i=>{this.summaryRows.push({type:"suggestion",content:i.description,isRead:!1})}),e.Notes.forEach(i=>{this.summaryRows.push({type:"note",content:i.description,isRead:!1})})}applyFilters(){let e=[],i=[];this.searchFilters.includes("read")&&i.push(o=>o.isRead),this.searchFilters.includes("unread")&&i.push(o=>!o.isRead),this.searchFilters.includes("warning")&&e.push(o=>"warning"==o.type),this.searchFilters.includes("note")&&e.push(o=>"note"==o.type),this.searchFilters.includes("suggestion")&&e.push(o=>"suggestion"==o.type),this.searchFilters.includes("error")&&e.push(o=>"error"==o.type),this.filteredSummaryRows=this.summaryRows.filter(o=>(!i.length||i.some(r=>r(o)))&&(!e.length||e.some(r=>r(o))))}addFilter(e){e&&!this.searchFilters.includes(e)&&this.searchFilters.push(e),this.applyFilters(),this.registerAutoCompleteChange()}removeFilter(e){const i=this.searchFilters.indexOf(e);i>=0&&this.searchFilters.splice(i,1),this.applyFilters()}toggleRead(e){e.isRead=!e.isRead,this.applyFilters()}registerAutoCompleteChange(){this.obsFilteredOptions=this.filterInput.valueChanges.pipe(an(""),nt(e=>this.autoCompleteOnChangeFilter(e)))}autoCompleteOnChangeFilter(e){return this.options.filter(i=>i.toLowerCase().includes(e))}spannerTab(){this.clickEvent.setTabToSpanner()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Hi),_(or))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-summary"]],inputs:{currentObject:"currentObject"},outputs:{changeIssuesLabel:"changeIssuesLabel"},features:[fi],decls:29,vars:11,consts:[[1,"container"],[1,"filter"],[1,"columns"],[1,"left"],[1,"material-icons","filter-icon"],[1,"filter-text"],[1,"right"],[1,"chip-list"],["chipGrid",""],["class","primary",3,"removed",4,"ngFor","ngForOf"],["placeholder","New Filter...",3,"formControl","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matAutocomplete"],["auto","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[1,"header"],["class","content",4,"ngIf"],["class","no-issue-container",4,"ngIf"],[1,"primary",3,"removed"],["matChipRemove",""],[3,"value","click"],[1,"content"],["class","summary-row",4,"ngFor","ngForOf"],[1,"summary-row"],["matTooltip","Error: Please resolve them to proceed with the migration","matTooltipPosition","above","class","danger",4,"ngIf"],["matTooltip","Warning : Changes made because of differences in source and spanner capabilities.","matTooltipPosition","above","class","warning",4,"ngIf"],["matTooltip","Suggestion : We highly recommend you make these changes or else it will impact your DB performance.","matTooltipPosition","above","class","suggestion",4,"ngIf"],["matTooltip","Note : This is informational and you dont need to do anything.","matTooltipPosition","above","class","success",4,"ngIf"],[1,"middle"],[3,"matMenuTriggerFor"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["matTooltip","Error: Please resolve them to proceed with the migration","matTooltipPosition","above",1,"danger"],["matTooltip","Warning : Changes made because of differences in source and spanner capabilities.","matTooltipPosition","above",1,"warning"],["matTooltip","Suggestion : We highly recommend you make these changes or else it will impact your DB performance.","matTooltipPosition","above",1,"suggestion"],["matTooltip","Note : This is informational and you dont need to do anything.","matTooltipPosition","above",1,"success"],["mat-menu-item","",3,"click"],[1,"no-issue-container"],[1,"no-issue-icon-container"],["width","36","height","36","viewBox","0 0 24 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.8332 0.69873C16.0051 7.45842 16.2492 9.44782 10.4672 10.2012C16.1511 11.1242 16.2329 13.2059 16.8332 19.7037C17.6237 13.1681 17.4697 11.2106 23.1986 10.2012C17.4247 9.45963 17.6194 7.4505 16.8332 0.69873ZM4.23739 0.872955C3.79064 4.52078 3.92238 5.59467 0.802246 6.00069C3.86944 6.49885 3.91349 7.62218 4.23739 11.1284C4.66397 7.60153 4.581 6.54497 7.67271 6.00069C4.55696 5.60052 4.66178 4.51623 4.23739 0.872955ZM7.36426 11.1105C7.05096 13.6683 7.14331 14.4212 4.95554 14.7061C7.10612 15.0553 7.13705 15.8431 7.36426 18.3017C7.66333 15.8288 7.60521 15.088 9.77298 14.7061C7.58818 14.4255 7.66177 13.6653 7.36426 11.1105Z","fill","#3367D6"],[1,"no-issue-message"]],template:function(i,o){if(1&i&&(d(0,"div",0)(1,"div")(2,"div",1)(3,"div",2)(4,"div",3)(5,"span",4),h(6,"filter_list"),l(),d(7,"span",5),h(8,"Filter"),l()(),d(9,"div",6)(10,"mat-form-field",7)(11,"mat-chip-grid",null,8),y(13,Mre,5,1,"mat-chip-row",9),l(),D(14,"input",10),d(15,"mat-autocomplete",null,11),y(17,Tre,2,2,"mat-option",12),lu(18,"async"),l()()()()(),d(19,"div",13)(20,"div",2)(21,"div",3)(22,"span"),h(23," Status "),l()(),d(24,"div",6)(25,"span"),h(26," Summary "),l()()()(),y(27,Fre,2,1,"div",14)(28,Lre,8,0,"div",15),l()()),2&i){const r=Ft(12),a=Ft(16);m(13),f("ngForOf",o.searchFilters),m(),f("formControl",o.filterInput)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!1)("matAutocomplete",a),m(3),f("ngForOf",du(18,9,o.obsFilteredOptions)),m(10),f("ngIf",0!==o.summaryCount),m(),f("ngIf",0===o.summaryCount)}},dependencies:[rn,It,Mi,Di,Tn,Ci,_i,Fl,jl,wa,zl,MP,TP,DP,IC,vn,Kee,_R,x2],styles:[".container[_ngcontent-%COMP%]{height:calc(100vh - 271px);position:relative;overflow-y:auto;background-color:#fff}.container[_ngcontent-%COMP%] .no-object-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.container[_ngcontent-%COMP%] .no-object-container[_ngcontent-%COMP%] .no-object-icon-container[_ngcontent-%COMP%]{padding:10px;background-color:#3367d61f;border-radius:3px;margin:20px}.container[_ngcontent-%COMP%] .no-object-container[_ngcontent-%COMP%] .no-object-message[_ngcontent-%COMP%]{width:80%;max-width:500px;text-align:center}.container[_ngcontent-%COMP%] .no-issue-container[_ngcontent-%COMP%]{width:100%;position:absolute;top:50%;display:flex;flex-direction:column;justify-content:center;align-items:center}.container[_ngcontent-%COMP%] .no-issue-container[_ngcontent-%COMP%] .no-issue-icon-container[_ngcontent-%COMP%]{padding:10px;background-color:#3367d61f;border-radius:3px;margin:20px}.container[_ngcontent-%COMP%] .no-issue-container[_ngcontent-%COMP%] .no-issue-message[_ngcontent-%COMP%]{width:80%;max-width:500px;text-align:center}h3[_ngcontent-%COMP%]{margin-bottom:0;padding-left:15px}.filter[_ngcontent-%COMP%]{display:flex;flex:1;min-height:65px;padding:0 15px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{display:flex;flex:1}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{order:1;position:relative;padding-top:20px;width:100px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .filter-icon[_ngcontent-%COMP%]{position:absolute;font-size:20px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .filter-text[_ngcontent-%COMP%]{position:absolute;margin-left:30px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{order:2;width:100%}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%;min-height:22px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .mat-mdc-chip-input[_ngcontent-%COMP%]{height:24px;flex:0}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .primary[_ngcontent-%COMP%]{background-color:#3f51b5;color:#fff}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .primary[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#fff;opacity:.4}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-underline{display:none}.filter[_ngcontent-%COMP%] .mat-mdc-chip[_ngcontent-%COMP%]{min-height:24px;font-weight:lighter}.header[_ngcontent-%COMP%]{display:flex;flex:1;padding:5px 0;background-color:#f5f5f5;text-align:center}.header[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{display:flex;flex:1}.header[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:60px;order:1}.header[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{flex:1;order:2}.summary-row[_ngcontent-%COMP%]{display:flex;flex:1;padding:10px 0;border-bottom:1px solid #ccc}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{display:flex;flex:1}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:60px;order:1;text-align:center;padding-top:5px}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .middle[_ngcontent-%COMP%]{flex:1;order:2}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:30px;order:3;cursor:pointer}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:18px}.chip-list[_ngcontent-%COMP%]{width:100%}.mat-mdc-standard-chip[_ngcontent-%COMP%]{--mdc-chip-label-text-color: #fff}"]})}return t})();function Vre(t,n){if(1&t&&(d(0,"h2"),h(1),l()),2&t){const e=C();m(),xe("Skip ",e.eligibleTables.length," table(s)?")}}function jre(t,n){if(1&t&&(d(0,"h2"),h(1),l()),2&t){const e=C();m(),xe("Restore ",e.eligibleTables.length," table(s) and all associated indexes?")}}function zre(t,n){1&t&&(d(0,"span",9),h(1," Confirm skip by typing the following below: "),d(2,"b"),h(3,"SKIP"),l(),D(4,"br"),l())}function Hre(t,n){1&t&&(d(0,"span",9),h(1," Confirm restoration by typing the following below: "),d(2,"b"),h(3,"RESTORE"),l(),D(4,"br"),l())}function Ure(t,n){if(1&t&&(d(0,"div")(1,"b"),h(2,"Note:"),l(),h(3),D(4,"br"),d(5,"b"),h(6,"Already skipped tables:"),l(),h(7),l()),2&t){const e=C();m(3),_l(" You selected ",e.data.tables.length," tables. ",e.ineligibleTables.length," table(s) will not be skipped since they are already skipped."),m(4),xe(" ",e.ineligibleTables," ")}}function $re(t,n){if(1&t&&(d(0,"div")(1,"b"),h(2,"Note:"),l(),h(3),D(4,"br"),d(5,"b"),h(6,"Already active tables:"),l(),h(7),l()),2&t){const e=C();m(3),_l(" You selected ",e.data.tables.length," tables. ",e.ineligibleTables.length," table(s) will not be restored since they are already active."),m(4),xe(" ",e.ineligibleTables," ")}}let NN=(()=>{class t{constructor(e,i){this.data=e,this.dialogRef=i,this.eligibleTables=[],this.ineligibleTables=[];let o="";"SKIP"==this.data.operation?(o="SKIP",this.data.tables.forEach(r=>{r.isDeleted?this.ineligibleTables.push(r.TableName):this.eligibleTables.push(r.TableName)})):(o="RESTORE",this.data.tables.forEach(r=>{r.isDeleted?this.eligibleTables.push(r.TableName):this.ineligibleTables.push(r.TableName)})),this.confirmationInput=new U("",[ee.required,ee.pattern(o)]),i.disableClose=!0}confirm(){this.dialogRef.close(this.data.operation)}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(mo),_(bn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-bulk-drop-restore-table-dialog"]],decls:19,vars:8,consts:[["mat-dialog-content",""],[4,"ngIf"],[1,"form-container"],["class","form-custom-label",4,"ngIf"],["appearance","outline"],["matInput","","type","text",3,"formControl"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[1,"form-custom-label"]],template:function(i,o){1&i&&(d(0,"div",0),y(1,Vre,2,1,"h2",1)(2,jre,2,1,"h2",1),d(3,"mat-dialog-content")(4,"div",2)(5,"form"),y(6,zre,5,0,"span",3)(7,Hre,5,0,"span",3),d(8,"mat-form-field",4)(9,"mat-label"),h(10,"Confirm"),l(),D(11,"input",5),l(),y(12,Ure,8,3,"div",1)(13,$re,8,3,"div",1),l()()(),d(14,"div",6)(15,"button",7),h(16,"Cancel"),l(),d(17,"button",8),A("click",function(){return o.confirm()}),h(18," Confirm "),l()()()),2&i&&(m(),f("ngIf","SKIP"==o.data.operation),m(),f("ngIf","RESTORE"==o.data.operation),m(4),f("ngIf","SKIP"==o.data.operation),m(),f("ngIf","RESTORE"==o.data.operation),m(4),f("formControl",o.confirmationInput),m(),f("ngIf","SKIP"==o.data.operation&&0!=o.ineligibleTables.length),m(),f("ngIf","RESTORE"==o.data.operation&&0!=o.ineligibleTables.length),m(4),f("disabled",!o.confirmationInput.valid))},dependencies:[It,Yt,Di,xi,qi,_n,Ci,_i,Bi,Fl,zn,So,ko,hs],styles:[".alert-container[_ngcontent-%COMP%]{padding:.5rem;display:flex;align-items:center;margin-bottom:1rem;background-color:#f8f4f4}.alert-container[_ngcontent-%COMP%] mat-mdc-icon[_ngcontent-%COMP%]{color:#f3b300;margin-right:20px}.form-container[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.buttons-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end}"]})}return t})();function Gre(t,n){if(1&t&&(d(0,"mat-option",13),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Pe(e)}}let FN=(()=>{class t{constructor(e,i,o,r){this.formBuilder=e,this.dataService=i,this.fetchSerice=o,this.dialogRef=r,this.selectedSequenceKind="",this.sequenceKinds=[],this.addNewSequenceForm=this.formBuilder.group({name:["",[ee.required,ee.minLength(1),ee.maxLength(128),ee.pattern("^[a-zA-Z][a-zA-Z0-9_]*$")]],sequenceKind:["",ee.required],skipRangeMin:["",ee.pattern("^[0-9]+$")],skipRangeMax:["",ee.pattern("^[0-9]+$")],startWithCounter:["",ee.pattern("^[0-9]+$")]},{validator:EN("skipRangeMin","skipRangeMax")}),this.fetchSerice.getSequenceKind().subscribe(a=>{this.sequenceKinds=a})}ngOnInit(){}addNewSequence(){let e=this.addNewSequenceForm.value;this.dataService.addSequence({Name:e.name,SequenceKind:this.selectedSequenceKind,SkipRangeMin:e.skipRangeMin,SkipRangeMax:e.skipRangeMax,StartWithCounter:e.startWithCounter}),this.dialogRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Dr),_(Hi),_(En),_(bn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-add-new-sequence"]],decls:35,vars:4,consts:[["mat-dialog-content",""],[1,"add-new-sequence-form",3,"formGroup"],["appearance","outline",1,"full-width"],["matInput","","placeholder","Sequence Name","type","text","formControlName","name"],["appearance","outline"],["formControlName","sequenceKind","required","true",1,"input-field",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","placeholder","Skip Range Min","type","text","formControlName","skipRangeMin"],["matInput","","placeholder","Skip Range Max","type","text","formControlName","skipRangeMax"],["matInput","","placeholder","Start With Counter","type","text","formControlName","startWithCounter"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[3,"value"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Sequence Details"),l(),d(4,"mat-form-field",2)(5,"mat-label"),h(6,"Name"),l(),D(7,"input",3),l(),D(8,"br"),d(9,"mat-form-field",4)(10,"mat-label"),h(11,"Sequence Type"),l(),d(12,"mat-select",5),un("ngModelChange",function(a){return kn(o.selectedSequenceKind,a)||(o.selectedSequenceKind=a),a}),y(13,Gre,2,2,"mat-option",6),l()(),D(14,"br"),d(15,"mat-form-field",2)(16,"mat-label"),h(17,"Skip Range Minimum"),l(),D(18,"input",7),l(),D(19,"br"),d(20,"mat-form-field",2)(21,"mat-label"),h(22,"Skip Range Maximum"),l(),D(23,"input",8),l(),D(24,"br"),d(25,"mat-form-field",2)(26,"mat-label"),h(27,"Start With Counter"),l(),D(28,"input",9),l(),D(29,"br"),l(),d(30,"div",10)(31,"button",11),h(32,"CANCEL"),l(),d(33,"button",12),A("click",function(){return o.addNewSequence()}),h(34," ADD "),l()()()),2&i&&(m(),f("formGroup",o.addNewSequenceForm),m(11),dn("ngModel",o.selectedSequenceKind),m(),f("ngForOf",o.sequenceKinds),m(20),f("disabled",!o.addNewSequenceForm.valid))},dependencies:[rn,Yt,Di,xi,qi,Xn,Tn,_n,Ci,_i,Bi,Do,wi,zi,zn,So,ko]})}return t})();const LN=t=>({"blue-font-color":t});function qre(t,n){if(1&t&&(d(0,"span",25),h(1),l()),2&t){const e=C();f("ngClass",hi(2,LN,"source"===e.selectedTab)),m(),xe(" ",e.srcDbName.toUpperCase()," ")}}function Wre(t,n){1&t&&(d(0,"th",26),h(1,"Status"),l())}function Kre(t,n){1&t&&(ei(),d(0,"svg",31),D(1,"path",32),l())}function Zre(t,n){1&t&&(d(0,"mat-icon",33),h(1," work "),l())}function Yre(t,n){1&t&&(d(0,"mat-icon",34),h(1," work_history "),l())}function Qre(t,n){if(1&t&&(d(0,"td",27),y(1,Kre,2,0,"svg",28)(2,Zre,2,0,"mat-icon",29)(3,Yre,2,0,"mat-icon",30),l()),2&t){const e=n.$implicit;m(),f("ngIf","EXCELLENT"===e.status||"NONE"===e.status),m(),f("ngIf","OK"===e.status||"GOOD"===e.status),m(),f("ngIf","POOR"===e.status)}}function Xre(t,n){1&t&&(d(0,"mat-icon",38),h(1,"arrow_upward"),l())}function Jre(t,n){1&t&&(d(0,"mat-icon",39),h(1,"arrow_upward"),l())}function eae(t,n){1&t&&(d(0,"mat-icon",39),h(1,"arrow_downward"),l())}function tae(t,n){if(1&t){const e=_e();d(0,"th",35),A("click",function(){return ne(e),oe(C().srcTableSort())}),d(1,"div")(2,"span"),h(3," Object Name "),l(),y(4,Xre,2,0,"mat-icon",36)(5,Jre,2,0,"mat-icon",37)(6,eae,2,0,"mat-icon",37),l()()}if(2&t){const e=C();m(4),f("ngIf",""===e.srcSortOrder),m(),f("ngIf","asc"===e.srcSortOrder),m(),f("ngIf","desc"===e.srcSortOrder)}}function iae(t,n){1&t&&(ei(),d(0,"svg",48),D(1,"path",49),l())}function nae(t,n){1&t&&(ei(),d(0,"svg",50),D(1,"path",51),l())}function oae(t,n){1&t&&(ei(),d(0,"svg",52),D(1,"path",53),l())}function rae(t,n){1&t&&(ei(),d(0,"svg",54),D(1,"path",55),l())}function aae(t,n){if(1&t&&(d(0,"span",56)(1,"mat-icon",57),h(2,"more_vert"),l(),d(3,"mat-menu",null,58)(5,"button",59)(6,"span"),h(7,"Add Index"),l()()()()),2&t){const e=Ft(4);m(),f("matMenuTriggerFor",e)}}function sae(t,n){if(1&t){const e=_e();d(0,"td",40)(1,"button",41),A("click",function(){const r=ne(e).$implicit;return oe(C().srcTreeControl.toggle(r))}),y(2,iae,2,0,"svg",42)(3,nae,2,0,"ng-template",null,43,br),l(),d(5,"span",44),A("click",function(){const r=ne(e).$implicit;return oe(C().objectSelected(r))}),d(6,"span"),y(7,oae,2,0,"svg",45)(8,rae,2,0,"svg",46),d(9,"span"),h(10),l()(),y(11,aae,8,1,"span",47),l()()}if(2&t){const e=n.$implicit,i=Ft(4),o=C();m(),Sn("visibility",e.expandable?"":"hidden")("margin-left",10*e.level,"px"),m(),f("ngIf",o.srcTreeControl.isExpanded(e))("ngIfElse",i),m(5),f("ngIf",o.isTableNode(e.type)),m(),f("ngIf",o.isIndexNode(e.type)),m(2),Pe(e.name),m(),f("ngIf",o.isIndexNode(e.type)&&e.isSpannerNode)}}function cae(t,n){1&t&&D(0,"tr",60)}const BN=t=>({"selected-row":t});function lae(t,n){if(1&t&&D(0,"tr",61),2&t){const e=n.$implicit,i=C();f("ngClass",hi(1,BN,i.shouldHighlight(e)))}}function dae(t,n){if(1&t&&(d(0,"span",25),h(1," SPANNER DRAFT "),l()),2&t){const e=C();f("ngClass",hi(1,LN,"spanner"===e.selectedTab))}}function uae(t,n){1&t&&(d(0,"th",26),h(1,"Status"),l())}function hae(t,n){1&t&&(ei(),d(0,"svg",31),D(1,"path",32),l())}function mae(t,n){1&t&&(d(0,"mat-icon",33),h(1," work "),l())}function pae(t,n){1&t&&(d(0,"mat-icon",34),h(1," work_history "),l())}function fae(t,n){1&t&&(d(0,"mat-icon",63),h(1," delete "),l())}function gae(t,n){if(1&t&&(d(0,"td",27),y(1,hae,2,0,"svg",28)(2,mae,2,0,"mat-icon",29)(3,pae,2,0,"mat-icon",30)(4,fae,2,0,"mat-icon",62),l()),2&t){const e=n.$implicit;m(),f("ngIf","EXCELLENT"===e.status||"NONE"===e.status),m(),f("ngIf","OK"===e.status||"GOOD"===e.status),m(),f("ngIf","POOR"===e.status),m(),f("ngIf","DARK"===e.status||1==e.isDeleted)}}function _ae(t,n){1&t&&(d(0,"mat-icon",65),h(1,"arrow_upward"),l())}function bae(t,n){1&t&&(d(0,"mat-icon",39),h(1,"arrow_upward"),l())}function vae(t,n){1&t&&(d(0,"mat-icon",39),h(1,"arrow_downward"),l())}function yae(t,n){if(1&t){const e=_e();d(0,"th",35),A("click",function(){return ne(e),oe(C().spannerTableSort())}),d(1,"div")(2,"span"),h(3," Object Name "),l(),y(4,_ae,2,0,"mat-icon",64)(5,bae,2,0,"mat-icon",37)(6,vae,2,0,"mat-icon",37),l()()}if(2&t){const e=C();m(4),f("ngIf",""===e.spannerSortOrder),m(),f("ngIf","asc"===e.spannerSortOrder),m(),f("ngIf","desc"===e.spannerSortOrder)}}function Cae(t,n){if(1&t){const e=_e();d(0,"mat-checkbox",70),A("change",function(){ne(e);const o=C().$implicit;return oe(C().selectionToggle(o))}),l()}if(2&t){const e=C().$implicit;f("checked",C().checklistSelection.isSelected(e))}}function wae(t,n){1&t&&(ei(),d(0,"svg",48),D(1,"path",49),l())}function xae(t,n){1&t&&(ei(),d(0,"svg",50),D(1,"path",51),l())}function Dae(t,n){1&t&&(ei(),d(0,"svg",52),D(1,"path",53),l())}function Sae(t,n){1&t&&(ei(),d(0,"svg",54),D(1,"path",55),l())}function kae(t,n){if(1&t){const e=_e();d(0,"span",56)(1,"mat-icon",71),h(2,"more_vert"),l(),d(3,"mat-menu",72,58)(5,"button",73),A("click",function(){ne(e);const o=C().$implicit;return oe(C().openAddIndexForm(o.parent))}),d(6,"span"),h(7,"Add Index"),l()()()()}if(2&t){const e=Ft(4);m(),f("matMenuTriggerFor",e)}}function Mae(t,n){if(1&t){const e=_e();d(0,"span",56)(1,"mat-icon",74),h(2,"more_vert"),l(),d(3,"mat-menu",72,58)(5,"button",73),A("click",function(){return ne(e),oe(C(2).openAddSequenceForm())}),d(6,"span"),h(7,"Add Sequence"),l()()()()}if(2&t){const e=Ft(4);m(),f("matMenuTriggerFor",e)}}const Tae=()=>({sidebar_link:!0}),Iae=t=>({"gray-out":t});function Eae(t,n){if(1&t){const e=_e();d(0,"td",66),y(1,Cae,1,1,"mat-checkbox",67),d(2,"button",41),A("click",function(){const r=ne(e).$implicit;return oe(C().treeControl.toggle(r))}),y(3,wae,2,0,"svg",42)(4,xae,2,0,"ng-template",null,43,br),l(),d(6,"span",68),A("click",function(){const r=ne(e).$implicit;return oe(C().objectSelected(r))}),d(7,"span"),y(8,Dae,2,0,"svg",45)(9,Sae,2,0,"svg",46),d(10,"span",69),h(11),l()(),y(12,kae,8,1,"span",47)(13,Mae,8,1,"span",47),l()()}if(2&t){const e=n.$implicit,i=Ft(5),o=C();f("ngClass",No(14,Tae)),m(),f("ngIf",o.isTableLikeNode(e)),m(),Sn("visibility",e.expandable?"":"hidden")("margin-left",10*e.level,"px"),m(),f("ngIf",o.treeControl.isExpanded(e))("ngIfElse",i),m(3),f("ngClass",hi(15,Iae,e.isDeleted)),m(2),f("ngIf",o.isTableNode(e.type)),m(),f("ngIf",o.isIndexNode(e.type)),m(2),Pe(e.name),m(),f("ngIf",o.isIndexNode(e.type)),m(),f("ngIf",o.isSequenceNode(e.type))}}function Oae(t,n){1&t&&D(0,"tr",60)}function Aae(t,n){if(1&t&&D(0,"tr",61),2&t){const e=n.$implicit,i=C();f("ngClass",hi(1,BN,i.shouldHighlight(e)))}}const ww=t=>[t];let Pae=(()=>{class t{constructor(e,i,o,r,a){this.conversion=e,this.dialog=i,this.data=o,this.sidenav=r,this.clickEvent=a,this.isLeftColumnCollapse=!1,this.currentSelectedObject=null,this.srcSortOrder="",this.spannerSortOrder="",this.srcSearchText="",this.spannerSearchText="",this.selectedTab="spanner",this.selectedDatabase=new Ne,this.selectObject=new Ne,this.updateSpannerTable=new Ne,this.updateSrcTable=new Ne,this.leftCollaspe=new Ne,this.updateSidebar=new Ne,this.spannerTree=[],this.srcTree=[],this.srcDbName="",this.selectedIndex=1,this.transformer=(s,c)=>({expandable:!!s.children&&s.children.length>0,name:s.name,status:s.status,type:s.type,parent:s.parent,parentId:s.parentId,pos:s.pos,isSpannerNode:s.isSpannerNode,level:c,isDeleted:!!s.isDeleted,id:s.id}),this.treeControl=new EP(s=>s.level,s=>s.expandable),this.srcTreeControl=new EP(s=>s.level,s=>s.expandable),this.treeFlattener=new LX(this.transformer,s=>s.level,s=>s.expandable,s=>s.children),this.dataSource=new AP(this.treeControl,this.treeFlattener),this.srcDataSource=new AP(this.srcTreeControl,this.treeFlattener),this.checklistSelection=new qu(!0,[]),this.displayedColumns=["status","name"]}ngOnInit(){this.clickEvent.tabToSpanner.subscribe({next:e=>{this.setSpannerTab()}})}ngOnChanges(e){let i=e?.spannerTree?.currentValue,o=e?.srcTree?.currentValue;o&&(this.srcDataSource.data=o,this.srcTreeControl.expand(this.srcTreeControl.dataNodes[0]),this.srcTreeControl.expand(this.srcTreeControl.dataNodes[1])),i&&(this.dataSource.data=i,this.treeControl.expand(this.treeControl.dataNodes[0]),this.treeControl.expand(this.treeControl.dataNodes[1]))}filterSpannerTable(){this.updateSpannerTable.emit({text:this.spannerSearchText,order:this.spannerSortOrder})}filterSrcTable(){this.updateSrcTable.emit({text:this.srcSearchText,order:this.srcSortOrder})}srcTableSort(){this.srcSortOrder=""===this.srcSortOrder?"asc":"asc"===this.srcSortOrder?"desc":"",this.updateSrcTable.emit({text:this.srcSearchText,order:this.srcSortOrder})}spannerTableSort(){this.spannerSortOrder=""===this.spannerSortOrder?"asc":"asc"===this.spannerSortOrder?"desc":"",this.updateSpannerTable.emit({text:this.spannerSearchText,order:this.spannerSortOrder})}objectSelected(e){this.currentSelectedObject=e,(e.type===jt.Index||e.type===jt.Table||e.type===jt.Sequence)&&this.selectObject.emit(e)}leftColumnToggle(){this.isLeftColumnCollapse=!this.isLeftColumnCollapse,this.leftCollaspe.emit()}isTableNode(e){return new RegExp("^tables").test(e)}isIndexNode(e){return new RegExp("^indexes").test(e)}isSequenceNode(e){return new RegExp("^sequences").test(e)}isIndexLikeNode(e){return e.type==jt.Index||e.type==jt.Indexes}isTableLikeNode(e){return e.type==jt.Table||e.type==jt.Tables}isSequenceLikeNode(e){return e.type==jt.Sequence||e.type==jt.Sequences}openAddIndexForm(e){this.sidenav.setSidenavAddIndexTable(e),this.sidenav.setSidenavRuleType("addIndex"),this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("rule"),this.sidenav.setRuleData([]),this.sidenav.setDisplayRuleFlag(!1)}openAddSequenceForm(){this.dialog.open(FN,MN)}shouldHighlight(e){return e.name===this.currentSelectedObject?.name&&(e.type===jt.Table||e.type===jt.Index)}onTabChanged(){"spanner"==this.selectedTab?(this.selectedTab="source",this.selectedIndex=0):(this.selectedTab="spanner",this.selectedIndex=1),this.selectedDatabase.emit(this.selectedTab),this.currentSelectedObject=null,this.selectObject.emit(void 0)}setSpannerTab(){this.selectedIndex=1}checkDropSelection(){return 0!=this.countSelectionByCategory().eligibleForDrop}checkRestoreSelection(){return 0!=this.countSelectionByCategory().eligibleForRestore}countSelectionByCategory(){let i=0,o=0;return this.checklistSelection.selected.forEach(r=>{r.isDeleted?o+=1:i+=1}),{eligibleForDrop:i,eligibleForRestore:o}}dropSelected(){var i=[];this.checklistSelection.selected.forEach(a=>{""!=a.id&&a.type==jt.Table&&i.push({TableId:a.id,TableName:a.name,isDeleted:a.isDeleted})});let o=this.dialog.open(NN,{width:"35vw",minWidth:"450px",maxWidth:"600px",maxHeight:"90vh",data:{tables:i,operation:"SKIP"}});var r={TableList:[]};i.forEach(a=>{r.TableList.push(a.TableId)}),o.afterClosed().subscribe(a=>{"SKIP"==a&&(this.data.dropTables(r).pipe(Pt(1)).subscribe(s=>{""===s&&(this.data.getConversionRate(),this.updateSidebar.emit(!0))}),this.checklistSelection.clear())})}restoreSelected(){var i=[];this.checklistSelection.selected.forEach(a=>{""!=a.id&&a.type==jt.Table&&i.push({TableId:a.id,TableName:a.name,isDeleted:a.isDeleted})});let o=this.dialog.open(NN,{width:"35vw",minWidth:"450px",maxWidth:"600px",data:{tables:i,operation:"RESTORE"}});var r={TableList:[]};i.forEach(a=>{r.TableList.push(a.TableId)}),o.afterClosed().subscribe(a=>{"RESTORE"==a&&(this.data.restoreTables(r).pipe(Pt(1)).subscribe(s=>{this.data.getConversionRate(),this.data.getDdl()}),this.checklistSelection.clear())})}selectionToggle(e){this.checklistSelection.toggle(e);const i=this.treeControl.getDescendants(e);this.checklistSelection.isSelected(e)?this.checklistSelection.select(...i):this.checklistSelection.deselect(...i)}static#e=this.\u0275fac=function(i){return new(i||t)(_(pc),_(Hr),_(Hi),_(eo),_(or))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-object-explorer"]],inputs:{spannerTree:"spannerTree",srcTree:"srcTree",srcDbName:"srcDbName"},outputs:{selectedDatabase:"selectedDatabase",selectObject:"selectObject",updateSpannerTable:"updateSpannerTable",updateSrcTable:"updateSrcTable",leftCollaspe:"leftCollaspe",updateSidebar:"updateSidebar"},features:[fi],decls:59,vars:20,consts:[[1,"container"],[3,"ngClass","selectedIndex","selectedTabChange"],["mat-tab-label",""],[1,"filter-wrapper"],[1,"left"],[1,"material-icons","filter-icon"],[1,"filter-text"],[1,"right"],["placeholder","Filter by table name",3,"ngModel","ngModelChange"],[1,"explorer-table"],["mat-table","",3,"dataSource"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","class","mat-header-cell-name cursor-pointer",3,"click",4,"matHeaderCellDef"],["mat-cell","","class","sidebar_link",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["clas","delete-selected-btn"],["mat-button","","color","primary",1,"icon","drop",3,"disabled","click"],["clas","restore-selected-btn"],["mat-table","","id","schema-object-list",3,"dataSource"],["mat-cell","",3,"ngClass",4,"matCellDef"],["id","left-column-toggle-button",3,"click"],[3,"ngClass"],["mat-header-cell",""],["mat-cell",""],["class","icon success","matTooltip","Can be converted automatically","matTooltipPosition","above","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","black",4,"ngIf"],["class","work","matTooltip","Requires minimal conversion changes","matTooltipPosition","above",4,"ngIf"],["class","work_history","matTooltip","Requires high complexity conversion changes","matTooltipPosition","above",4,"ngIf"],["matTooltip","Can be converted automatically","matTooltipPosition","above","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","black",1,"icon","success"],["d","m10.4 17.6-2-4.4-4.4-2 4.4-2 2-4.4 2 4.4 4.4 2-4.4 2Zm6.4 1.6-1-2.2-2.2-1 2.2-1 1-2.2 1 2.2 2.2 1-2.2 1Z"],["matTooltip","Requires minimal conversion changes","matTooltipPosition","above",1,"work"],["matTooltip","Requires high complexity conversion changes","matTooltipPosition","above",1,"work_history"],["mat-header-cell","",1,"mat-header-cell-name","cursor-pointer",3,"click"],["class","src-unsorted-icon sort-icon",4,"ngIf"],["class","sort-icon",4,"ngIf"],[1,"src-unsorted-icon","sort-icon"],[1,"sort-icon"],["mat-cell","",1,"sidebar_link"],["mat-icon-button","",3,"click"],["width","12","height","6","viewBox","0 0 12 6","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf","ngIfElse"],["collaps",""],[1,"sidebar_link",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],["width","12","height","14","viewBox","0 0 12 14","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],["class","actions",4,"ngIf"],["width","12","height","6","viewBox","0 0 12 6","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 0L0 0L6 6L12 0Z","fill","black","fill-opacity","0.54"],["width","6","height","12","viewBox","0 0 6 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M-5.24537e-07 2.62268e-07L0 12L6 6L-5.24537e-07 2.62268e-07Z","fill","black","fill-opacity","0.54"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M0 0V18H18V0H0ZM16 2V6H2V2H16ZM7.33 11V8H10.66V11H7.33ZM10.67 13V16H7.34V13H10.67ZM5.33 11H2V8H5.33V11ZM12.67 8H16V11H12.67V8ZM2 13H5.33V16H2V13ZM12.67 16V13H16V16H12.67Z","fill","black","fill-opacity","0.54"],["width","12","height","14","viewBox","0 0 12 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.005 14C11.555 14 12 13.554 12 13.002V5L10 3V12H2V14H11.005ZM0 0.996C0 0.446 0.438 0 1.003 0H7L9 2.004V10.004C9 10.554 8.554 11 8.002 11H0.998C0.867035 11.0003 0.737304 10.9747 0.616233 10.9248C0.495162 10.8748 0.385128 10.8015 0.292428 10.709C0.199729 10.6165 0.126186 10.5066 0.0760069 10.3856C0.0258282 10.2646 -2.64036e-07 10.135 0 10.004V0.996ZM6 1L5 5.5H2L6 1ZM3 10L4 5.5H7L3 10Z","fill","black","fill-opacity","0.54"],[1,"actions"],[3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item",""],["mat-header-row",""],["mat-row","",3,"ngClass"],["class","icon dark","matTooltip","Deleted","matTooltipPosition","above",4,"ngIf"],["matTooltip","Deleted","matTooltipPosition","above",1,"icon","dark"],["class","spanner-unsorted-icon sort-icon",4,"ngIf"],[1,"spanner-unsorted-icon","sort-icon"],["mat-cell","",3,"ngClass"],["class","checklist-node",3,"checked","change",4,"ngIf"],[1,"sidebar_link",3,"ngClass","click"],[1,"object-name"],[1,"checklist-node",3,"checked","change"],[1,"add-index-icon",3,"matMenuTriggerFor"],["xPosition","before"],["mat-menu-item","",3,"click"],[1,"add-sequence-icon",3,"matMenuTriggerFor"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-tab-group",1),A("selectedTabChange",function(){return o.onTabChanged()}),d(2,"mat-tab"),y(3,qre,2,4,"ng-template",2),d(4,"div",3)(5,"div",4)(6,"span",5),h(7,"filter_list"),l(),d(8,"span",6),h(9,"Filter"),l()(),d(10,"div",7)(11,"input",8),un("ngModelChange",function(a){return kn(o.srcSearchText,a)||(o.srcSearchText=a),a}),A("ngModelChange",function(){return o.filterSrcTable()}),l()()(),d(12,"div",9)(13,"table",10),me(14,11),y(15,Wre,2,0,"th",12)(16,Qre,4,3,"td",13),pe(),me(17,14),y(18,tae,7,3,"th",15)(19,sae,12,10,"td",16),pe(),y(20,cae,1,0,"tr",17)(21,lae,1,3,"tr",18),l()()(),d(22,"mat-tab"),y(23,dae,2,3,"ng-template",2),d(24,"div",3)(25,"div",4)(26,"span",5),h(27,"filter_list"),l(),d(28,"span",6),h(29,"Filter"),l()(),d(30,"div",7)(31,"input",8),un("ngModelChange",function(a){return kn(o.spannerSearchText,a)||(o.spannerSearchText=a),a}),A("ngModelChange",function(){return o.filterSpannerTable()}),l()(),d(32,"div",19)(33,"button",20),A("click",function(){return o.dropSelected()}),d(34,"mat-icon"),h(35,"delete"),l(),d(36,"span"),h(37,"SKIP"),l()()(),d(38,"div",21)(39,"button",20),A("click",function(){return o.restoreSelected()}),d(40,"mat-icon"),h(41,"undo"),l(),d(42,"span"),h(43,"RESTORE"),l()()()(),d(44,"div",9)(45,"table",22),me(46,11),y(47,uae,2,0,"th",12)(48,gae,5,4,"td",13),pe(),me(49,14),y(50,yae,7,3,"th",15)(51,Eae,14,17,"td",23),pe(),y(52,Oae,1,0,"tr",17)(53,Aae,1,3,"tr",18),l()()()(),d(54,"button",24),A("click",function(){return o.leftColumnToggle()}),d(55,"mat-icon",25),h(56,"first_page"),l(),d(57,"mat-icon",25),h(58,"last_page"),l()()()),2&i&&(m(),f("ngClass",hi(14,ww,o.isLeftColumnCollapse?"hidden":"display"))("selectedIndex",o.selectedIndex),m(10),dn("ngModel",o.srcSearchText),m(2),f("dataSource",o.srcDataSource),m(7),f("matHeaderRowDef",o.displayedColumns),m(),f("matRowDefColumns",o.displayedColumns),m(10),dn("ngModel",o.spannerSearchText),m(2),f("disabled",!o.checkDropSelection()),m(6),f("disabled",!o.checkRestoreSelection()),m(6),f("dataSource",o.dataSource),m(7),f("matHeaderRowDef",o.displayedColumns),m(),f("matRowDefColumns",o.displayedColumns),m(2),f("ngClass",hi(16,ww,o.isLeftColumnCollapse?"hidden":"display")),m(2),f("ngClass",hi(18,ww,o.isLeftColumnCollapse?"display":"hidden")))},dependencies:[yr,It,Yt,ba,Mi,Ci,_i,jl,wa,zl,ps,ka,fs,Ma,Sa,gs,Ta,Ia,_s,bs,FC,eg,BC,vn,og,Nl],styles:[".container[_ngcontent-%COMP%]{position:relative;background-color:#fff}.container[_ngcontent-%COMP%] .filter-wrapper[_ngcontent-%COMP%]{padding:0 10px}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%]{height:35px}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%] .spanner-unsorted-icon[_ngcontent-%COMP%]{visibility:hidden}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%]:hover .spanner-unsorted-icon[_ngcontent-%COMP%]{visibility:visible;opacity:.7}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%] .src-unsorted-icon[_ngcontent-%COMP%]{visibility:hidden}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%]:hover .src-unsorted-icon[_ngcontent-%COMP%]{visibility:visible;opacity:.7}.container[_ngcontent-%COMP%] .sort-icon[_ngcontent-%COMP%]{font-size:1.1rem;vertical-align:middle}.selected-row[_ngcontent-%COMP%]{background-color:#61b3ff4a}.explorer-table[_ngcontent-%COMP%]{height:calc(100vh - 320px);width:100%;overflow:auto}.mdc-data-table__cell[_ngcontent-%COMP%], .mdc-data-table__header-cell[_ngcontent-%COMP%]{padding:0 0 0 16px}.mat-mdc-table[_ngcontent-%COMP%]{width:100%;border:inset}.mat-mdc-table[_ngcontent-%COMP%] .sidebar_link[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:space-between;align-items:center;width:100%;height:40px}.mat-mdc-table[_ngcontent-%COMP%] .sidebar_link[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:10px}.mat-mdc-table[_ngcontent-%COMP%] .sidebar_link[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{height:40px;margin-left:14px}.mat-mdc-table[_ngcontent-%COMP%] .sidebar_link[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .add-index-icon[_ngcontent-%COMP%]{margin-top:7px}.mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%], .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%]{height:29px}.mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-header-cell[_ngcontent-%COMP%]{font-family:Roboto;font-size:13px;font-style:normal;font-weight:500;line-height:18px;background:#f5f5f5}.mat-mdc-table[_ngcontent-%COMP%] .mat-column-status[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:medium}.mat-mdc-table[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-right:20px}.filter-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;height:48px}.filter-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:30%;display:flex;align-items:center}.filter-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:5px}.filter-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:70%}.filter-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:70%;border:none;outline:none;background-color:transparent}#left-column-toggle-button[_ngcontent-%COMP%]{z-index:100;position:absolute;right:4px;top:10px;border:none;background-color:inherit}#left-column-toggle-button[_ngcontent-%COMP%]:hover{cursor:pointer}.mat-mdc-column-status[_ngcontent-%COMP%]{width:80px} .column-left .mat-mdc-tab-label-container{margin-right:40px} .column-left .mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-label-container{margin-right:0} .column-left .mat-mdc-tab-header-pagination-after{margin-right:40px}"]})}return t})();function Rae(t,n){1&t&&(d(0,"div",9)(1,"mat-icon"),h(2,"warning"),l(),d(3,"span"),h(4,"This operation cannot be undone"),l()())}let xw=(()=>{class t{constructor(e,i){this.data=e,this.dialogRef=i,this.ObjectDetailNodeType=ys,this.confirmationInput=new U("",[ee.required,ee.pattern(`^${e.name}$`)]),i.disableClose=!0}delete(){this.dialogRef.close(this.data.type)}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(mo),_(bn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-drop-index-dialog"]],decls:19,vars:7,consts:[["mat-dialog-content",""],["class","alert-container",4,"ngIf"],[1,"form-container"],[1,"form-custom-label"],["appearance","outline"],["matInput","","type","text",3,"formControl"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[1,"alert-container"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h2"),h(2),l(),y(3,Rae,5,0,"div",1),d(4,"div",2)(5,"form")(6,"span",3),h(7," Confirm deletion by typing the following below: "),d(8,"b"),h(9),l()(),d(10,"mat-form-field",4)(11,"mat-label"),h(12),l(),D(13,"input",5),l()()()(),d(14,"div",6)(15,"button",7),h(16,"Cancel"),l(),d(17,"button",8),A("click",function(){return o.delete()}),h(18," Confirm "),l()()),2&i&&(m(2),_l("Skip ",o.data.type," (",o.data.name,")?"),m(),f("ngIf","Index"===o.data.type),m(6),Pe(o.data.name),m(3),xe("",o.data.type==o.ObjectDetailNodeType.Table?"Table":"Index"," Name"),m(),f("formControl",o.confirmationInput),m(4),f("disabled",!o.confirmationInput.valid))},dependencies:[It,Yt,Mi,Di,xi,qi,_n,Ci,_i,Bi,Fl,zn,So,ko,hs],styles:[".alert-container[_ngcontent-%COMP%]{padding:.5rem;display:flex;align-items:center;margin-bottom:1rem;background-color:#f8f4f4}.alert-container[_ngcontent-%COMP%] mat-mdc-icon[_ngcontent-%COMP%]{color:#f3b300;margin-right:20px}.form-container[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.buttons-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end}"]})}return t})();function Nae(t,n){if(1&t&&(d(0,"mat-option",12),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Pe(e)}}function Fae(t,n){1&t&&(d(0,"div")(1,"mat-form-field",2)(2,"mat-label"),h(3,"Length"),l(),D(4,"input",13),l(),D(5,"br"),l())}function Lae(t,n){if(1&t&&(d(0,"mat-option",12),h(1),l()),2&t){const e=C().$implicit;f("value",e),m(),xe(" ",""!==e.Name?e.Name:"None"," ")}}function Bae(t,n){if(1&t&&(me(0),y(1,Lae,2,2,"mat-option",16),pe()),2&t){const e=n.$implicit;m(),f("ngIf",""===e.GenerationType)}}function Vae(t,n){if(1&t&&(d(0,"mat-option",12),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),xe(" ",e.Name," ")}}function jae(t,n){if(1&t&&(d(0,"mat-optgroup",18),y(1,Vae,2,2,"mat-option",6),l()),2&t){const e=C().$implicit;f("label",e.key),m(),f("ngForOf",e.value)}}function zae(t,n){if(1&t&&(me(0),y(1,jae,2,2,"mat-optgroup",17),pe()),2&t){const e=n.$implicit;m(),f("ngIf",""!==e.key)}}function Hae(t,n){if(1&t&&(me(0),y(1,zae,2,1,"ng-container",15),lu(2,"keyvalue"),pe()),2&t){const e=n.ngIf;m(),f("ngForOf",du(2,1,e))}}function Uae(t,n){if(1&t){const e=_e();d(0,"div")(1,"mat-form-field",2)(2,"mat-label"),h(3,"Auto Generated"),l(),d(4,"mat-select",14),un("ngModelChange",function(o){ne(e);const r=C();return kn(r.selectedAutoGen,o)||(r.selectedAutoGen=o),oe(o)}),y(5,Bae,2,1,"ng-container",15)(6,Hae,3,3,"ng-container",7),l()(),D(7,"br"),l()}if(2&t){const e=C();m(4),dn("ngModel",e.selectedAutoGen),m(),f("ngForOf",e.autoGenMap[e.selectedDatatype]),m(),f("ngIf",e.processedAutoGenMap[e.selectedDatatype])}}function $ae(t,n){if(1&t&&(d(0,"mat-option",12),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),xe(" ",e.displayName," ")}}let Gae=(()=>{class t{constructor(e,i,o,r,a){this.formBuilder=e,this.dataService=i,this.fetchSerice=o,this.dialogRef=r,this.data=a,this.dialect="",this.datatypes=[],this.selectedDatatype="",this.tableId="",this.selectedNull=!0,this.dataTypesWithColLen=In.DataTypes,this.autoGenMap={},this.selectedAutoGen={Name:"",GenerationType:""},this.processedAutoGenMap={},this.srcDbName=localStorage.getItem(Wi.SourceDbName),this.autoGenSupportedDbs=["MySQL"],this.autGenSupported=!1,this.isColumnNullable=[{value:!1,displayName:"No"},{value:!0,displayName:"Yes"}],this.dialect=a.dialect,this.tableId=a.tableId,this.addNewColumnForm=this.formBuilder.group({name:["",[ee.required,ee.minLength(1),ee.maxLength(128),ee.pattern("^[a-zA-Z][a-zA-Z0-9_]*$")]],datatype:["",ee.required],length:["",ee.pattern("^[0-9]+$")],isNullable:[],autoGen:[{Name:"",GenerationType:""}]}),this.fetchSerice.getAutoGenMap().subscribe(s=>{this.autoGenMap=s,this.processedAutoGenMap=IN(this.autoGenMap)}),this.autGenSupported=this.autoGenSupportedDbs.includes(this.srcDbName)}ngOnInit(){this.datatypes="google_standard_sql"==this.dialect?SN_GoogleStandardSQL:SN_PostgreSQL}changeValidator(){this.addNewColumnForm.controls.length.clearValidators(),"BYTES"===this.selectedDatatype?this.addNewColumnForm.get("length")?.addValidators([ee.required,ee.max(In.ByteMaxLength)]):("VARCHAR"===this.selectedDatatype||"STRING"===this.selectedDatatype)&&this.addNewColumnForm.get("length")?.addValidators([ee.required,ee.max(In.StringMaxLength)]),this.addNewColumnForm.controls.length.updateValueAndValidity()}addNewColumn(){let e=this.addNewColumnForm.value,i={Name:e.name,Datatype:this.selectedDatatype,Length:parseInt(e.length),IsNullable:this.selectedNull,AutoGen:this.selectedAutoGen};this.dataService.addColumn(this.tableId,i),this.dialogRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Dr),_(Hi),_(En),_(bn),_(mo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-add-new-column"]],decls:27,vars:8,consts:[["mat-dialog-content",""],[1,"add-new-column-form",3,"formGroup"],["appearance","outline",1,"full-width"],["matInput","","placeholder","Column Name","type","text","formControlName","name"],["appearance","outline"],["formControlName","datatype","required","true",1,"input-field",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["formControlName","isNullable","required","true",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[3,"value"],["matInput","","placeholder","Length","type","text","formControlName","length"],["formControlName","autoGen",1,"input-field",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"],[3,"label",4,"ngIf"],[3,"label"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Column Details"),l(),d(4,"mat-form-field",2)(5,"mat-label"),h(6,"Name"),l(),D(7,"input",3),l(),D(8,"br"),d(9,"mat-form-field",4)(10,"mat-label"),h(11,"Datatype"),l(),d(12,"mat-select",5),un("ngModelChange",function(a){return kn(o.selectedDatatype,a)||(o.selectedDatatype=a),a}),A("selectionChange",function(){return o.changeValidator()}),y(13,Nae,2,2,"mat-option",6),l()(),D(14,"br"),y(15,Fae,6,0,"div",7)(16,Uae,8,3,"div",7),d(17,"mat-form-field",4)(18,"mat-label"),h(19,"IsNullable"),l(),d(20,"mat-select",8),un("ngModelChange",function(a){return kn(o.selectedNull,a)||(o.selectedNull=a),a}),y(21,$ae,2,2,"mat-option",6),l()()(),d(22,"div",9)(23,"button",10),h(24,"CANCEL"),l(),d(25,"button",11),A("click",function(){return o.addNewColumn()}),h(26," ADD "),l()()()),2&i&&(m(),f("formGroup",o.addNewColumnForm),m(11),dn("ngModel",o.selectedDatatype),m(),f("ngForOf",o.datatypes),m(2),f("ngIf",o.dataTypesWithColLen.indexOf(o.selectedDatatype)>-1),m(),f("ngIf",""!=o.selectedDatatype&&o.autoGenMap[o.selectedDatatype].length>1&&o.autGenSupported),m(4),dn("ngModel",o.selectedNull),m(),f("ngForOf",o.isColumnNullable),m(4),f("disabled",!o.addNewColumnForm.valid))},dependencies:[rn,It,Yt,Di,xi,qi,Xn,Tn,TE,_n,Ci,_i,Bi,Do,wi,zi,zn,So,ko,ay]})}return t})();function qae(t,n){1&t&&(d(0,"span"),h(1," To view and modify an object details, click on the object name on the Spanner draft panel. "),l())}function Wae(t,n){if(1&t&&(d(0,"span"),h(1),l()),2&t){const e=C(2);m(),xe(" To view an object details, click on the object name on the ",e.srcDbName," panel. ")}}const Tg=t=>[t];function Kae(t,n){if(1&t){const e=_e();d(0,"div",2)(1,"div",3)(2,"h3",4),h(3,"OBJECT VIEWER"),l(),d(4,"button",5),A("click",function(){return ne(e),oe(C().middleColumnToggle())}),d(5,"mat-icon",6),h(6,"first_page"),l(),d(7,"mat-icon",6),h(8,"last_page"),l()()(),D(9,"mat-divider"),d(10,"div",7)(11,"div",8),ei(),d(12,"svg",9),D(13,"path",10),l()(),pr(),d(14,"div",11),y(15,qae,2,0,"span",12)(16,Wae,2,1,"span",12),l()()()}if(2&t){const e=C();m(5),f("ngClass",hi(4,Tg,e.isMiddleColumnCollapse?"display":"hidden")),m(2),f("ngClass",hi(6,Tg,e.isMiddleColumnCollapse?"hidden":"display")),m(8),f("ngIf","spanner"==e.currentDatabase),m(),f("ngIf","source"==e.currentDatabase)}}function Zae(t,n){1&t&&(d(0,"mat-icon",24),h(1," table_chart"),l())}function Yae(t,n){1&t&&(ei(),d(0,"svg",25),D(1,"path",26),l())}function Qae(t,n){if(1&t&&(d(0,"span"),h(1),lu(2,"uppercase"),l()),2&t){const e=C(2);m(),xe("( TABLE: ",du(2,1,e.currentObject.parent)," ) ")}}function Xae(t,n){if(1&t){const e=_e();d(0,"button",27),A("click",function(){return ne(e),oe(C(2).dropIndex())}),d(1,"mat-icon"),h(2,"delete"),l(),d(3,"span"),h(4,"SKIP INDEX"),l()()}}function Jae(t,n){if(1&t){const e=_e();d(0,"button",27),A("click",function(){return ne(e),oe(C(2).dropSequence())}),d(1,"mat-icon"),h(2,"delete"),l(),d(3,"span"),h(4,"DELETE SEQUENCE"),l()()}}function ese(t,n){if(1&t){const e=_e();d(0,"button",27),A("click",function(){return ne(e),oe(C(2).restoreIndex())}),d(1,"mat-icon"),h(2,"undo"),l(),d(3,"span"),h(4," RESTORE INDEX"),l()()}}function tse(t,n){if(1&t){const e=_e();d(0,"button",27),A("click",function(){return ne(e),oe(C(2).dropTable())}),d(1,"mat-icon"),h(2,"delete"),l(),d(3,"span"),h(4,"SKIP TABLE"),l()()}}function ise(t,n){if(1&t){const e=_e();d(0,"button",27),A("click",function(){return ne(e),oe(C(2).restoreSpannerTable())}),d(1,"mat-icon"),h(2,"undo"),l(),d(3,"span"),h(4," RESTORE TABLE"),l()()}}function nse(t,n){if(1&t&&(d(0,"div",28),h(1," Interleaved: "),d(2,"div",29),h(3),l()()),2&t){const e=C(2);m(3),xe(" ",e.interleaveParentName," ")}}function ose(t,n){1&t&&(d(0,"span"),h(1,"COLUMNS "),l())}function rse(t,n){if(1&t&&(d(0,"th",82),h(1),l()),2&t){const e=C(3);m(),Pe(e.srcDbName)}}function ase(t,n){1&t&&(d(0,"th",83),h(1,"S No."),l())}function sse(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcOrder").value," ")}}function cse(t,n){1&t&&(d(0,"th",83),h(1,"Name"),l())}function lse(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcColName").value," ")}}function dse(t,n){1&t&&(d(0,"th",83),h(1,"Type"),l())}function use(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcDataType").value," ")}}function hse(t,n){1&t&&(d(0,"th",83),h(1,"Max Length"),l())}function mse(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcColMaxLength").value," ")}}function pse(t,n){1&t&&(d(0,"th",83),h(1,"Auto-Generated"),l())}function fse(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",""!==e.get("srcAutoGen").value.GenerationType?e.get("srcAutoGen").value.GenerationType:"None"," ")}}function gse(t,n){1&t&&(me(0,85),y(1,pse,2,0,"th",42)(2,fse,2,1,"td",39),pe())}function _se(t,n){1&t&&(d(0,"th",83),h(1,"Pk"),l())}function bse(t,n){1&t&&(d(0,"div"),ei(),d(1,"svg",86),D(2,"path",87),l()())}function vse(t,n){if(1&t&&(d(0,"td",84),y(1,bse,3,0,"div",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("srcIsPk").value)}}function yse(t,n){1&t&&(d(0,"th",83),h(1,"Nullable"),l())}function Cse(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcIsNotNull").value?"Not Null":""," ")}}function wse(t,n){1&t&&D(0,"tr",88)}function xse(t,n){1&t&&D(0,"tr",88)}const Dse=t=>({"scr-column-data-edit-mode":t});function Sse(t,n){if(1&t&&D(0,"tr",89),2&t){const e=C(3);f("ngClass",hi(1,Dse,e.isEditMode))}}function kse(t,n){if(1&t){const e=_e();d(0,"button",93),A("click",function(){return ne(e),oe(C(5).toggleEdit())}),d(1,"mat-icon",94),h(2,"edit"),l(),h(3," EDIT "),l()}}function Mse(t,n){if(1&t&&(d(0,"div"),y(1,kse,4,0,"button",92),l()),2&t){const e=C(4);m(),f("ngIf",e.currentObject.isSpannerNode)}}function Tse(t,n){if(1&t){const e=_e();d(0,"button",93),A("click",function(){return ne(e),oe(C(5).addNewColumn())}),d(1,"mat-icon",94),h(2,"edit"),l(),h(3," ADD COLUMN "),l()}}function Ise(t,n){if(1&t&&(d(0,"div"),y(1,Tse,4,0,"button",92),l()),2&t){const e=C(4);m(),f("ngIf",e.currentObject.isSpannerNode)}}function Ese(t,n){if(1&t){const e=_e();d(0,"button",93),A("click",function(){return ne(e),oe(C(5).addNewSequence())}),d(1,"mat-icon",94),h(2,"edit"),l(),h(3," ADD SEQUENCE "),l()}}function Ose(t,n){if(1&t&&(d(0,"div"),y(1,Ese,4,0,"button",92),l()),2&t){const e=C(4);m(),f("ngIf",e.currentObject.isSpannerNode)}}function Ase(t,n){if(1&t&&(d(0,"th",90)(1,"div",91)(2,"span"),h(3,"Spanner"),l(),y(4,Mse,2,1,"div",12)(5,Ise,2,1,"div",12)(6,Ose,2,1,"div",12),l()()),2&t){const e=C(3);m(4),f("ngIf",!e.isEditMode&&!e.currentObject.isDeleted),m(),f("ngIf",!e.isEditMode&&!e.currentObject.isDeleted),m(),f("ngIf",!e.isEditMode&&!e.currentObject.isDeleted&&e.autoGenSupported)}}function Pse(t,n){1&t&&(d(0,"th",83),h(1,"Name"),l())}function Rse(t,n){if(1&t&&(d(0,"div"),D(1,"input",95),l()),2&t){const e=C().$implicit;let i;m(),f("formControl",e.get("spColName"))("matTooltipDisabled",!(null!=(i=e.get("spColName"))&&i.hasError("pattern")))}}function Nse(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=C().$implicit;m(),Pe(e.get("spColName").value)}}function Fse(t,n){if(1&t&&(d(0,"td",84),y(1,Rse,2,2,"div",12)(2,Nse,2,1,"p",12),l()),2&t){const e=n.$implicit,i=C(3);m(),f("ngIf",i.isEditMode&&""!==e.get("spDataType").value&&""!==e.get("srcId").value),m(),f("ngIf",!i.isEditMode||""===e.get("srcId").value)}}function Lse(t,n){1&t&&(d(0,"th",83),h(1,"Type"),l())}function Bse(t,n){if(1&t&&(d(0,"span",99),h(1,"warning"),l()),2&t){const e=C().index;f("matTooltip",C(3).spTableSuggestion[e])}}function Vse(t,n){if(1&t&&(d(0,"mat-option",106),h(1),l()),2&t){const e=n.$implicit;f("value",e.DisplayT),m(),xe(" ",e.DisplayT," ")}}function jse(t,n){1&t&&(d(0,"mat-option",107),h(1," STRING "),l())}function zse(t,n){1&t&&(d(0,"mat-option",108),h(1," VARCHAR "),l())}function Hse(t,n){if(1&t){const e=_e();d(0,"mat-form-field",100)(1,"mat-select",101,102),A("selectionChange",function(){ne(e);const o=Ft(2),r=C().index;return oe(C(3).spTableEditSuggestionHandler(r,o.value))}),y(3,Vse,2,2,"mat-option",103)(4,jse,2,0,"mat-option",104)(5,zse,2,0,"mat-option",105),l()()}if(2&t){const e=C().$implicit,i=C(3);m(),f("formControl",e.get("spDataType")),m(2),f("ngForOf",i.typeMap[e.get("srcDataType").value]),m(),f("ngIf",""==e.get("srcDataType").value&&!i.isPostgreSQLDialect),m(),f("ngIf",""==e.get("srcDataType").value&&i.isPostgreSQLDialect)}}function Use(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=C().$implicit;m(),Pe(e.get("spDataType").value)}}function $se(t,n){if(1&t&&(d(0,"td",84)(1,"div",96),y(2,Bse,2,1,"span",97)(3,Hse,6,4,"mat-form-field",98)(4,Use,2,1,"p",12),l()()),2&t){const e=n.$implicit,i=n.index,o=C(3);m(2),f("ngIf",o.isSpTableSuggesstionDisplay[i]&&""!==e.get("spDataType").value),m(),f("ngIf",o.isEditMode&&""!==e.get("spDataType").value&&""!==e.get("srcId").value),m(),f("ngIf",!o.isEditMode||""===e.get("srcId").value)}}function Gse(t,n){1&t&&(d(0,"th",83),h(1,"Auto-Generated"),l())}function qse(t,n){if(1&t&&(d(0,"mat-option",106),h(1),l()),2&t){const e=C().$implicit;f("value",e),m(),xe(" ",""!==e.Name?e.Name:"None"," ")}}function Wse(t,n){if(1&t&&(me(0),y(1,qse,2,2,"mat-option",114),pe()),2&t){const e=n.$implicit;m(),f("ngIf",""===e.GenerationType)}}function Kse(t,n){if(1&t&&(d(0,"mat-option",106),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),xe(" ",e.Name," ")}}function Zse(t,n){if(1&t&&(d(0,"mat-optgroup",116),y(1,Kse,2,2,"mat-option",103),l()),2&t){const e=C().$implicit;f("label",e.key),m(),f("ngForOf",e.value)}}function Yse(t,n){if(1&t&&(me(0),y(1,Zse,2,2,"mat-optgroup",115),pe()),2&t){const e=n.$implicit;m(),f("ngIf",""!==e.key)}}function Qse(t,n){if(1&t&&(me(0),y(1,Yse,2,1,"ng-container",113),lu(2,"keyvalue"),pe()),2&t){const e=n.ngIf,i=C(6);m(),f("ngForOf",du(2,1,i.processedAutoGenMap[e]))}}function Xse(t,n){if(1&t&&(me(0),d(1,"mat-form-field",100)(2,"mat-select",111,112),y(4,Wse,2,1,"ng-container",113)(5,Qse,3,3,"ng-container",12),l()(),pe()),2&t){const e=C().$implicit,i=C(4);m(2),f("formControl",e.get("spAutoGen"))("compareWith",i.compareAutoGen),m(2),f("ngForOf",i.autoGenMap[e.get("spDataType").value]),m(),f("ngIf",e.get("spDataType").value)}}function Jse(t,n){if(1&t&&(me(0),d(1,"p"),h(2),l(),pe()),2&t){const e=C().$implicit;m(2),Pe(""!==e.get("spAutoGen").value.Name?e.get("spAutoGen").value.Name:"None")}}function ece(t,n){if(1&t&&(d(0,"td",84)(1,"div",110),y(2,Xse,6,4,"ng-container",12)(3,Jse,3,1,"ng-container",12),l()()),2&t){const e=n.$implicit,i=C(4);m(2),f("ngIf",i.isEditMode&&""!==e.get("srcId").value),m(),f("ngIf",!i.isEditMode)}}function tce(t,n){1&t&&(me(0,109),y(1,Gse,2,0,"th",42)(2,ece,4,2,"td",39),pe())}function ice(t,n){1&t&&(d(0,"th",83),h(1,"Max Length"),l())}function nce(t,n){if(1&t&&(d(0,"div"),D(1,"input",117),l()),2&t){const e=C(2).$implicit;m(),f("formControl",e.get("spColMaxLength"))}}function oce(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=C(2).$implicit;m(),xe(" ",e.get("spColMaxLength").value," ")}}function rce(t,n){if(1&t&&(d(0,"div"),y(1,nce,2,1,"div",12)(2,oce,2,1,"p",12),l()),2&t){const e=C().$implicit,i=C(3);m(),f("ngIf",i.isEditMode&&""!=e.get("srcDataType").value&&e.get("spId").value!==i.shardIdCol),m(),f("ngIf",!i.isEditMode||e.get("spId").value===i.shardIdCol)}}function ace(t,n){if(1&t&&(d(0,"td",84),y(1,rce,3,2,"div",12),l()),2&t){const e=n.$implicit,i=C(3);m(),f("ngIf",i.dataTypesWithColLen.indexOf(e.get("spDataType").value)>-1)}}function sce(t,n){1&t&&(d(0,"th",83),h(1,"Pk"),l())}function cce(t,n){1&t&&(d(0,"div"),ei(),d(1,"svg",86),D(2,"path",87),l()())}function lce(t,n){if(1&t&&(d(0,"td",84),y(1,cce,3,0,"div",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("spIsPk").value)}}function dce(t,n){1&t&&(d(0,"span"),h(1,"Not Null"),l())}function uce(t,n){1&t&&(d(0,"span"),h(1,"Nullable"),l())}function hce(t,n){if(1&t&&(d(0,"th",83),y(1,dce,2,0,"span",12)(2,uce,2,0,"span",12),l()),2&t){const e=C(3);m(),f("ngIf",e.isEditMode),m(),f("ngIf",!e.isEditMode)}}function mce(t,n){if(1&t&&(d(0,"div"),D(1,"mat-checkbox",119),l()),2&t){const e=C().$implicit;m(),f("formControl",e.get("spIsNotNull"))}}function pce(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=C().$implicit;m(),xe(" ",e.get("spIsNotNull").value?"Not Null":""," ")}}function fce(t,n){if(1&t&&(d(0,"td",84)(1,"div",118),y(2,mce,2,1,"div",12)(3,pce,2,1,"p",12),l()()),2&t){const e=n.$implicit,i=C(3);m(2),f("ngIf",i.isEditMode&&""!==e.get("spDataType").value&&e.get("spId").value!==i.shardIdCol),m(),f("ngIf",!i.isEditMode||e.get("spId").value===i.shardIdCol)}}function gce(t,n){1&t&&D(0,"th",83)}function _ce(t,n){if(1&t){const e=_e();d(0,"div",122)(1,"mat-icon",123),h(2,"more_vert"),l(),d(3,"mat-menu",124,125)(5,"button",126),A("click",function(){ne(e);const o=C().$implicit;return oe(C(3).dropColumn(o))}),d(6,"span"),h(7,"Drop Column"),l()()()()}if(2&t){const e=Ft(4);m(),f("matMenuTriggerFor",e)}}const Ig=t=>({"drop-button-left-border":t});function bce(t,n){if(1&t&&(d(0,"td",120),y(1,_ce,8,1,"div",121),l()),2&t){const e=n.$implicit,i=C(3);f("ngClass",hi(2,Ig,i.isEditMode)),m(),f("ngIf",i.isEditMode&&i.currentObject.isSpannerNode&&""!==e.get("spDataType").value&&e.get("spId").value!==i.shardIdCol)}}function vce(t,n){1&t&&D(0,"tr",88)}function yce(t,n){1&t&&D(0,"tr",88)}function Cce(t,n){1&t&&D(0,"tr",127)}function wce(t,n){if(1&t&&(d(0,"mat-option",106),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Pe(e)}}function xce(t,n){if(1&t){const e=_e();d(0,"div",128)(1,"mat-form-field",129)(2,"mat-label"),h(3,"Column Name"),l(),d(4,"mat-select",130),A("selectionChange",function(o){return ne(e),oe(C(3).setColumn(o.value))}),y(5,wce,2,2,"mat-option",103),l()(),d(6,"button",131),A("click",function(){return ne(e),oe(C(3).restoreColumn())}),d(7,"mat-icon"),h(8,"add"),l(),h(9," RESTORE COLUMN "),l()()}if(2&t){const e=C(3);f("formGroup",e.addColumnForm),m(5),f("ngForOf",e.droppedSourceColumns)}}function Dce(t,n){1&t&&(d(0,"span"),h(1,"PRIMARY KEY "),l())}function Sce(t,n){if(1&t&&(d(0,"th",132),h(1),l()),2&t){const e=C(3);m(),Pe(e.srcDbName)}}function kce(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",93),A("click",function(){return ne(e),oe(C(4).togglePkEdit())}),d(2,"mat-icon",94),h(3,"edit"),l(),h(4," EDIT "),l()()}}function Mce(t,n){if(1&t&&(d(0,"th",133)(1,"div",91)(2,"span"),h(3,"Spanner"),l(),y(4,kce,5,0,"div",12),l()()),2&t){const e=C(3);m(4),f("ngIf",!e.isPkEditMode&&e.pkDataSource.length>0&&e.currentObject.isSpannerNode&&!e.currentObject.isDeleted)}}function Tce(t,n){1&t&&(d(0,"th",83),h(1,"Order"),l())}function Ice(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcOrder").value," ")}}function Ece(t,n){1&t&&(d(0,"th",83),h(1,"Name"),l())}function Oce(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcColName").value," ")}}function Ace(t,n){1&t&&(d(0,"th",83),h(1,"Type"),l())}function Pce(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcDataType").value," ")}}function Rce(t,n){1&t&&(d(0,"th",83),h(1,"PK"),l())}function Nce(t,n){1&t&&(d(0,"div"),ei(),d(1,"svg",86),D(2,"path",87),l()())}function Fce(t,n){if(1&t&&(d(0,"td",84),y(1,Nce,3,0,"div",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("srcIsPk").value)}}function Lce(t,n){1&t&&(d(0,"th",83),h(1,"Nullable"),l())}function Bce(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcIsNotNull").value?"Not Null":""," ")}}function Vce(t,n){1&t&&(d(0,"th",83),h(1,"Auto-Generated"),l())}function jce(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",""!==e.get("srcAutoGen").value.GenerationType?e.get("srcAutoGen").value.GenerationType:"None"," ")}}function zce(t,n){1&t&&(me(0,85),y(1,Vce,2,0,"th",42)(2,jce,2,1,"td",39),pe())}function Hce(t,n){1&t&&(d(0,"th",83),h(1,"Order"),l())}function Uce(t,n){if(1&t&&(d(0,"div"),D(1,"input",134),l()),2&t){const e=C().$implicit;let i;m(),f("formControl",e.get("spOrder"))("matTooltipDisabled",!(null!=(i=e.get("spOrder"))&&i.hasError("pattern")))}}function $ce(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=C().$implicit;m(),Pe(e.get("spOrder").value)}}function Gce(t,n){if(1&t&&(d(0,"td",84),y(1,Uce,2,2,"div",12)(2,$ce,2,1,"p",12),l()),2&t){const e=n.$implicit,i=C(3);m(),f("ngIf",i.isPkEditMode&&""!==e.get("spColName").value),m(),f("ngIf",!i.isPkEditMode)}}function qce(t,n){1&t&&(d(0,"th",83),h(1,"Name"),l())}function Wce(t,n){if(1&t&&(d(0,"td",84)(1,"p"),h(2),l()()),2&t){const e=n.$implicit;m(2),Pe(e.get("spColName").value)}}function Kce(t,n){1&t&&(d(0,"th",83),h(1,"Type"),l())}function Zce(t,n){if(1&t&&(d(0,"span",99),h(1,"warning"),l()),2&t){const e=C().index;f("matTooltip",C(3).spTableSuggestion[e])}}function Yce(t,n){if(1&t&&(d(0,"td",84)(1,"div",96),y(2,Zce,2,1,"span",97),d(3,"p"),h(4),l()()()),2&t){const e=n.$implicit,i=n.index,o=C(3);m(2),f("ngIf",o.isSpTableSuggesstionDisplay[i]&&""!==e.get("spColName").value),m(2),Pe(e.get("spDataType").value)}}function Qce(t,n){1&t&&(d(0,"th",83),h(1,"Auto-Generated"),l())}function Xce(t,n){if(1&t&&(d(0,"td",84)(1,"p"),h(2),l()()),2&t){const e=n.$implicit;m(2),Pe(""!==e.get("spAutoGen").value.Name?e.get("spAutoGen").value.Name:"None")}}function Jce(t,n){1&t&&(me(0,109),y(1,Qce,2,0,"th",42)(2,Xce,3,1,"td",39),pe())}function ele(t,n){1&t&&(d(0,"th",83),h(1,"Pk"),l())}function tle(t,n){1&t&&(d(0,"div"),ei(),d(1,"svg",86),D(2,"path",87),l()())}function ile(t,n){if(1&t&&(d(0,"td",84),y(1,tle,3,0,"div",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("spIsPk").value)}}function nle(t,n){1&t&&(d(0,"th",83),h(1,"Nullable"),l())}function ole(t,n){if(1&t&&(d(0,"td",84)(1,"div",118)(2,"p"),h(3),l()()()),2&t){const e=n.$implicit;m(3),xe(" ",e.get("spIsNotNull").value?"Not Null":""," ")}}function rle(t,n){1&t&&D(0,"th",83)}function ale(t,n){if(1&t){const e=_e();d(0,"div",122)(1,"mat-icon",123),h(2,"more_vert"),l(),d(3,"mat-menu",124,125)(5,"button",135),A("click",function(){ne(e);const o=C().$implicit;return oe(C(3).dropPk(o))}),d(6,"span"),h(7,"Remove primary key"),l()()()()}if(2&t){const e=Ft(4),i=C(4);m(),f("matMenuTriggerFor",e),m(4),f("disabled",!i.isPkEditMode)}}function sle(t,n){if(1&t&&(d(0,"td",120),y(1,ale,8,2,"div",121),l()),2&t){const e=n.$implicit,i=C(3);f("ngClass",hi(2,Ig,i.isPkEditMode)),m(),f("ngIf",i.isPkEditMode&&i.currentObject.isSpannerNode&&""!==e.get("spColName").value)}}function cle(t,n){1&t&&D(0,"tr",88)}function lle(t,n){1&t&&D(0,"tr",88)}function dle(t,n){1&t&&D(0,"tr",127)}function ule(t,n){if(1&t&&(d(0,"mat-option",106),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Pe(e)}}function hle(t,n){if(1&t){const e=_e();d(0,"div",136)(1,"mat-form-field",129)(2,"mat-label"),h(3,"Column Name"),l(),d(4,"mat-select",130),A("selectionChange",function(o){return ne(e),oe(C(3).setPkColumn(o.value))}),y(5,ule,2,2,"mat-option",103),l()(),d(6,"button",131),A("click",function(){return ne(e),oe(C(3).addPkColumn())}),d(7,"mat-icon"),h(8,"add"),l(),h(9," ADD COLUMN "),l()()}if(2&t){const e=C(3);f("formGroup",e.addPkColumnForm),m(5),f("ngForOf",e.pkColumnNames)}}function mle(t,n){1&t&&(d(0,"span"),h(1,"FOREIGN KEY"),l())}function ple(t,n){if(1&t&&(d(0,"th",137),h(1),l()),2&t){const e=C(3);Xe("colspan",e.foreignKeyActionsSupported?6:4),m(),Pe(e.srcDbName)}}function fle(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",93),A("click",function(){return ne(e),oe(C(4).toggleFkEdit())}),d(2,"mat-icon",94),h(3,"edit"),l(),h(4," EDIT "),l()()}}function gle(t,n){if(1&t&&(d(0,"th",137)(1,"div",91)(2,"span"),h(3,"Spanner"),l(),y(4,fle,5,0,"div",12),l()()),2&t){const e=C(3);Xe("colspan",e.foreignKeyActionsSupported?7:5),m(4),f("ngIf",!e.isFkEditMode&&e.fkDataSource.length>0&&e.currentObject.isSpannerNode&&!e.currentObject.isDeleted)}}function _le(t,n){1&t&&(d(0,"th",83),h(1,"Name"),l())}function ble(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcName").value," ")}}function vle(t,n){1&t&&(d(0,"th",83),h(1,"Columns"),l())}function yle(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcColumns").value," ")}}function Cle(t,n){1&t&&(d(0,"th",83),h(1,"Refer Table"),l())}function wle(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcReferTable").value," ")}}function xle(t,n){1&t&&(d(0,"th",83),h(1,"Refer Columns"),l())}function Dle(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcReferColumns").value," ")}}function Sle(t,n){1&t&&(d(0,"th",83),h(1,"On Delete"),l())}function kle(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcOnDelete").value," ")}}function Mle(t,n){1&t&&(me(0,138),y(1,Sle,2,0,"th",38)(2,kle,2,1,"td",39),pe())}function Tle(t,n){1&t&&(d(0,"th",83),h(1,"On Update"),l())}function Ile(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcOnUpdate").value," ")}}function Ele(t,n){1&t&&(me(0,139),y(1,Tle,2,0,"th",38)(2,Ile,2,1,"td",39),pe())}function Ole(t,n){1&t&&(d(0,"th",83),h(1,"Name"),l())}function Ale(t,n){if(1&t&&(d(0,"div"),D(1,"input",95),l()),2&t){const e=C().$implicit;let i;m(),f("formControl",e.get("spName"))("matTooltipDisabled",!(null!=(i=e.get("spName"))&&i.hasError("pattern")))}}function Ple(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=C().$implicit;m(),Pe(e.get("spName").value)}}function Rle(t,n){if(1&t&&(d(0,"td",84),y(1,Ale,2,2,"div",12)(2,Ple,2,1,"p",12),l()),2&t){const e=n.$implicit,i=C(3);m(),f("ngIf",i.isFkEditMode&&""!==e.get("spReferTable").value),m(),f("ngIf",!i.isFkEditMode)}}function Nle(t,n){1&t&&(d(0,"th",83),h(1,"Columns"),l())}function Fle(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("spColumns").value," ")}}function Lle(t,n){1&t&&(d(0,"th",83),h(1,"Refer Table"),l())}function Ble(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("spReferTable").value," ")}}function Vle(t,n){1&t&&(d(0,"th",83),h(1,"Refer Columns"),l())}function jle(t,n){if(1&t&&(d(0,"td",84)(1,"div",140),h(2),l()()),2&t){const e=n.$implicit;m(2),xe(" ",e.get("spReferColumns").value," ")}}function zle(t,n){1&t&&(d(0,"th",83),h(1,"On Delete"),l())}function Hle(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("spOnDelete").value," ")}}function Ule(t,n){1&t&&(me(0,141),y(1,zle,2,0,"th",38)(2,Hle,2,1,"td",39),pe())}function $le(t,n){1&t&&(d(0,"th",83),h(1,"On Update"),l())}function Gle(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("spOnUpdate").value," ")}}function qle(t,n){1&t&&(me(0,142),y(1,$le,2,0,"th",38)(2,Gle,2,1,"td",39),pe())}function Wle(t,n){1&t&&D(0,"th",83)}function Kle(t,n){if(1&t){const e=_e();d(0,"button",135),A("click",function(){return ne(e),oe(C(5).setInterleave())}),d(1,"span"),h(2,"Convert to interleave"),l()()}2&t&&f("disabled",""===C(2).$implicit.get("spName").value)}function Zle(t,n){if(1&t){const e=_e();d(0,"div",122)(1,"mat-icon",123),h(2,"more_vert"),l(),d(3,"mat-menu",124,125)(5,"button",135),A("click",function(){ne(e);const o=C().$implicit;return oe(C(3).dropFk(o))}),d(6,"span"),h(7,"Drop Foreign Key"),l()(),y(8,Kle,3,1,"button",143),l()()}if(2&t){const e=Ft(4),i=C().$implicit,o=C(3);m(),f("matMenuTriggerFor",e),m(4),f("disabled",""===i.get("spName").value),m(3),f("ngIf",o.interleaveStatus.tableInterleaveStatus&&o.interleaveStatus.tableInterleaveStatus.Possible)}}function Yle(t,n){if(1&t&&(d(0,"td",120),y(1,Zle,9,3,"div",121),l()),2&t){const e=n.$implicit,i=C(3);f("ngClass",hi(2,Ig,i.isFkEditMode)),m(),f("ngIf",i.isFkEditMode&&i.currentObject.isSpannerNode&&""!==e.get("spReferTable").value)}}function Qle(t,n){1&t&&D(0,"tr",88)}function Xle(t,n){1&t&&D(0,"tr",88)}function Jle(t,n){1&t&&D(0,"tr",127)}function ede(t,n){if(1&t){const e=_e();d(0,"button",147),A("click",function(){return ne(e),oe(C(4).setInterleave())}),h(1," Convert to Interleave "),l()}}function tde(t,n){if(1&t){const e=_e();d(0,"button",147),A("click",function(){return ne(e),oe(C(4).removeInterleave())}),h(1," Convert Back to Foreign Key "),l()}}function ide(t,n){if(1&t&&(d(0,"div"),h(1," This table is interleaved with "),d(2,"span",148),h(3),l(),h(4,". Click on the above button to convert back to foreign key. "),l()),2&t){const e=C(4);m(3),Pe(e.interleaveParentName)}}function nde(t,n){if(1&t&&(d(0,"mat-tab",144)(1,"div",145),y(2,ede,2,0,"button",146)(3,tde,2,0,"button",146),D(4,"br"),y(5,ide,5,1,"div",12),l()()),2&t){const e=C(3);m(2),f("ngIf",e.interleaveStatus.tableInterleaveStatus&&e.interleaveStatus.tableInterleaveStatus.Possible&&null===e.interleaveParentName),m(),f("ngIf",e.interleaveStatus.tableInterleaveStatus&&!e.interleaveStatus.tableInterleaveStatus.Possible||null!==e.interleaveParentName),m(2),f("ngIf",e.interleaveStatus.tableInterleaveStatus&&!e.interleaveStatus.tableInterleaveStatus.Possible||null!==e.interleaveParentName)}}function ode(t,n){1&t&&(d(0,"span"),h(1,"SQL"),l())}function rde(t,n){if(1&t&&(d(0,"mat-tab"),y(1,ode,2,0,"ng-template",31),d(2,"div",149)(3,"pre")(4,"code"),h(5),l()()()()),2&t){const e=C(3);m(5),Pe(e.ddlStmts[e.currentObject.id])}}const ade=t=>({"height-on-edit":t}),sde=()=>["srcDatabase"],VN=()=>["spDatabase"],Dw=()=>["srcDatabase","spDatabase"];function cde(t,n){if(1&t){const e=_e();d(0,"mat-tab-group",30),A("selectedTabChange",function(o){return ne(e),oe(C(2).tabChanged(o))}),d(1,"mat-tab"),y(2,ose,2,0,"ng-template",31),d(3,"div",32)(4,"div",33)(5,"table",34),me(6,35),y(7,rse,2,1,"th",36),pe(),me(8,37),y(9,ase,2,0,"th",38)(10,sse,2,1,"td",39),pe(),me(11,40),y(12,cse,2,0,"th",38)(13,lse,2,1,"td",39),pe(),me(14,41),y(15,dse,2,0,"th",42)(16,use,2,1,"td",39),pe(),me(17,43),y(18,hse,2,0,"th",42)(19,mse,2,1,"td",39),pe(),y(20,gse,3,0,"ng-container",44),me(21,45),y(22,_se,2,0,"th",38)(23,vse,2,1,"td",39),pe(),me(24,46),y(25,yse,2,0,"th",42)(26,Cse,2,1,"td",39),pe(),y(27,wse,1,0,"tr",47)(28,xse,1,0,"tr",47)(29,Sse,1,3,"tr",48),l(),d(30,"table",34),me(31,49),y(32,Ase,7,3,"th",50),pe(),me(33,51),y(34,Pse,2,0,"th",42)(35,Fse,3,2,"td",39),pe(),me(36,52),y(37,Lse,2,0,"th",42)(38,$se,5,3,"td",39),pe(),y(39,tce,3,0,"ng-container",53),me(40,54),y(41,ice,2,0,"th",42)(42,ace,2,1,"td",39),pe(),me(43,55),y(44,sce,2,0,"th",38)(45,lce,2,1,"td",39),pe(),me(46,56),y(47,hce,3,2,"th",42)(48,fce,4,2,"td",39),pe(),me(49,57),y(50,gce,1,0,"th",42)(51,bce,2,4,"td",58),pe(),y(52,vce,1,0,"tr",47)(53,yce,1,0,"tr",47)(54,Cce,1,0,"tr",59),l()(),y(55,xce,10,2,"div",60),l()(),d(56,"mat-tab"),y(57,Dce,2,0,"ng-template",31),d(58,"div",61)(59,"table",34),me(60,35),y(61,Sce,2,1,"th",62),pe(),me(62,49),y(63,Mce,5,1,"th",63),pe(),me(64,37),y(65,Tce,2,0,"th",38)(66,Ice,2,1,"td",39),pe(),me(67,40),y(68,Ece,2,0,"th",38)(69,Oce,2,1,"td",39),pe(),me(70,41),y(71,Ace,2,0,"th",42)(72,Pce,2,1,"td",39),pe(),me(73,45),y(74,Rce,2,0,"th",38)(75,Fce,2,1,"td",39),pe(),me(76,46),y(77,Lce,2,0,"th",42)(78,Bce,2,1,"td",39),pe(),y(79,zce,3,0,"ng-container",44),me(80,64),y(81,Hce,2,0,"th",38)(82,Gce,3,2,"td",39),pe(),me(83,51),y(84,qce,2,0,"th",42)(85,Wce,3,1,"td",39),pe(),me(86,52),y(87,Kce,2,0,"th",42)(88,Yce,5,2,"td",39),pe(),y(89,Jce,3,0,"ng-container",53),me(90,55),y(91,ele,2,0,"th",38)(92,ile,2,1,"td",39),pe(),me(93,56),y(94,nle,2,0,"th",42)(95,ole,4,1,"td",39),pe(),me(96,57),y(97,rle,1,0,"th",42)(98,sle,2,4,"td",58),pe(),y(99,cle,1,0,"tr",47)(100,lle,1,0,"tr",47)(101,dle,1,0,"tr",59),l(),y(102,hle,10,2,"div",65),l()(),d(103,"mat-tab"),y(104,mle,2,0,"ng-template",31),d(105,"div",66)(106,"table",34),me(107,35),y(108,ple,2,2,"th",67),pe(),me(109,49),y(110,gle,5,2,"th",67),pe(),me(111,68),y(112,_le,2,0,"th",38)(113,ble,2,1,"td",39),pe(),me(114,69),y(115,vle,2,0,"th",38)(116,yle,2,1,"td",39),pe(),me(117,70),y(118,Cle,2,0,"th",38)(119,wle,2,1,"td",39),pe(),me(120,71),y(121,xle,2,0,"th",38)(122,Dle,2,1,"td",39),pe(),y(123,Mle,3,0,"ng-container",72)(124,Ele,3,0,"ng-container",73),me(125,74),y(126,Ole,2,0,"th",42)(127,Rle,3,2,"td",39),pe(),me(128,75),y(129,Nle,2,0,"th",38)(130,Fle,2,1,"td",39),pe(),me(131,76),y(132,Lle,2,0,"th",38)(133,Ble,2,1,"td",39),pe(),me(134,77),y(135,Vle,2,0,"th",38)(136,jle,3,1,"td",39),pe(),y(137,Ule,3,0,"ng-container",78)(138,qle,3,0,"ng-container",79),me(139,80),y(140,Wle,1,0,"th",42)(141,Yle,2,4,"td",58),pe(),y(142,Qle,1,0,"tr",47)(143,Xle,1,0,"tr",47)(144,Jle,1,0,"tr",59),l()()(),y(145,nde,6,3,"mat-tab",81)(146,rde,6,1,"mat-tab",12),l()}if(2&t){const e=C(2);f("ngClass",hi(29,ade,e.isEditMode||e.isPkEditMode||e.isFkEditMode)),m(5),f("dataSource",e.srcDataSource),m(15),f("ngIf",e.autoGenSupported),m(7),f("matHeaderRowDef",No(31,sde)),m(),f("matHeaderRowDef",e.srcDisplayedColumns),m(),f("matRowDefColumns",e.srcDisplayedColumns),m(),f("dataSource",e.spDataSource),m(9),f("ngIf",e.autoGenSupported),m(13),f("matHeaderRowDef",No(32,VN)),m(),f("matHeaderRowDef",e.spDisplayedColumns),m(),f("matRowDefColumns",e.spDisplayedColumns),m(),f("ngIf",e.isEditMode&&0!=e.droppedSourceColumns.length),m(4),f("dataSource",e.pkDataSource),m(20),f("ngIf",e.autoGenSupported),m(10),f("ngIf",e.autoGenSupported),m(10),f("matHeaderRowDef",No(33,Dw)),m(),f("matHeaderRowDef",e.displayedPkColumns),m(),f("matRowDefColumns",e.displayedPkColumns),m(),f("ngIf",e.isPkEditMode),m(4),f("dataSource",e.fkDataSource),m(17),f("ngIf",e.foreignKeyActionsSupported),m(),f("ngIf",e.foreignKeyActionsSupported),m(13),f("ngIf",e.foreignKeyActionsSupported),m(),f("ngIf",e.foreignKeyActionsSupported),m(4),f("matHeaderRowDef",No(34,Dw)),m(),f("matHeaderRowDef",e.displayedFkColumns),m(),f("matRowDefColumns",e.displayedFkColumns),m(),f("ngIf",(e.interleaveStatus.tableInterleaveStatus&&e.interleaveStatus.tableInterleaveStatus.Possible||null!==e.interleaveParentName)&&e.currentObject.isSpannerNode),m(),f("ngIf",e.currentObject.isSpannerNode&&!e.currentObject.isDeleted)}}function lde(t,n){if(1&t&&(d(0,"th",161),h(1),l()),2&t){const e=C(3);m(),Pe(e.srcDbName)}}function dde(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",93),A("click",function(){return ne(e),oe(C(4).toggleIndexEdit())}),d(2,"mat-icon",94),h(3,"edit"),l(),h(4," EDIT "),l()()}}function ude(t,n){if(1&t&&(d(0,"th",162)(1,"div",91)(2,"span"),h(3,"Spanner"),l(),y(4,dde,5,0,"div",12),l()()),2&t){const e=C(3);m(4),f("ngIf",!e.isIndexEditMode&&!e.currentObject.isDeleted&&e.currentObject.isSpannerNode)}}function hde(t,n){1&t&&(d(0,"th",83),h(1,"Column"),l())}function mde(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcColName").value," ")}}function pde(t,n){1&t&&(d(0,"th",83),h(1,"Sort By"),l())}function fde(t,n){1&t&&(d(0,"p"),h(1,"Desc"),l())}function gde(t,n){1&t&&(d(0,"p"),h(1,"Asc"),l())}function _de(t,n){if(1&t&&(d(0,"td",84),y(1,fde,2,0,"p",12)(2,gde,2,0,"p",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("srcDesc").value),m(),f("ngIf",!1===e.get("srcDesc").value)}}function bde(t,n){1&t&&(d(0,"th",83),h(1,"Column Order"),l())}function vde(t,n){if(1&t&&(d(0,"td",84),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.get("srcOrder").value," ")}}function yde(t,n){1&t&&(d(0,"th",83),h(1,"Column"),l())}function Cde(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=C().$implicit;m(),Pe(e.get("spColName").value)}}function wde(t,n){if(1&t&&(d(0,"td",84),y(1,Cde,2,1,"p",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("spColName").value)}}function xde(t,n){1&t&&(d(0,"th",83),h(1,"Sort By"),l())}function Dde(t,n){1&t&&(d(0,"p"),h(1,"Desc"),l())}function Sde(t,n){1&t&&(d(0,"p"),h(1,"Asc"),l())}function kde(t,n){if(1&t&&(d(0,"td",84),y(1,Dde,2,0,"p",12)(2,Sde,2,0,"p",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("spDesc").value),m(),f("ngIf",!1===e.get("spDesc").value)}}function Mde(t,n){1&t&&(d(0,"th",83),h(1,"Column Order"),l())}function Tde(t,n){if(1&t&&(d(0,"div"),D(1,"input",163),l()),2&t){const e=C().$implicit;m(),f("formControl",e.get("spOrder"))}}function Ide(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=C().$implicit;m(),Pe(e.get("spOrder").value)}}function Ede(t,n){if(1&t&&(d(0,"td",84),y(1,Tde,2,1,"div",12)(2,Ide,2,1,"p",12),l()),2&t){const e=n.$implicit,i=C(3);m(),f("ngIf",i.isIndexEditMode&&e.get("spColName").value),m(),f("ngIf",!i.isIndexEditMode)}}function Ode(t,n){1&t&&D(0,"th",83)}function Ade(t,n){if(1&t){const e=_e();d(0,"div")(1,"mat-icon",123),h(2,"more_vert"),l(),d(3,"mat-menu",124,125)(5,"button",126),A("click",function(){ne(e);const o=C().index;return oe(C(3).dropIndexKey(o))}),d(6,"span"),h(7,"Drop Index Key"),l()()()()}if(2&t){const e=Ft(4);m(),f("matMenuTriggerFor",e)}}function Pde(t,n){if(1&t&&(d(0,"td",120),y(1,Ade,8,1,"div",12),l()),2&t){const e=n.$implicit,i=C(3);f("ngClass",hi(2,Ig,i.isIndexEditMode)),m(),f("ngIf",i.isIndexEditMode&&e.get("spColName").value)}}function Rde(t,n){1&t&&D(0,"tr",88)}function Nde(t,n){1&t&&D(0,"tr",88)}function Fde(t,n){1&t&&D(0,"tr",164)}function Lde(t,n){if(1&t&&(d(0,"mat-option",106),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Pe(e)}}function Bde(t,n){if(1&t){const e=_e();d(0,"div",165)(1,"mat-form-field",166)(2,"mat-label"),h(3,"Column Name"),l(),d(4,"mat-select",167),y(5,Lde,2,2,"mat-option",103),l()(),d(6,"mat-form-field",168)(7,"mat-label"),h(8,"Sort By"),l(),d(9,"mat-select",169)(10,"mat-option",170),h(11,"Ascending"),l(),d(12,"mat-option",171),h(13,"Descending"),l()()(),d(14,"button",172),A("click",function(){return ne(e),oe(C(3).addIndexKey())}),d(15,"mat-icon"),h(16,"add"),l(),d(17,"span"),h(18," ADD COLUMN"),l()()()}if(2&t){const e=C(3);f("formGroup",e.addIndexKeyForm),m(5),f("ngForOf",e.indexColumnNames),m(9),f("disabled",!e.addIndexKeyForm.valid)}}function Vde(t,n){if(1&t&&(d(0,"div",150)(1,"table",34),me(2,35),y(3,lde,2,1,"th",151),pe(),me(4,49),y(5,ude,5,1,"th",152),pe(),me(6,153),y(7,hde,2,0,"th",38)(8,mde,2,1,"td",39),pe(),me(9,154),y(10,pde,2,0,"th",42)(11,_de,3,2,"td",39),pe(),me(12,155),y(13,bde,2,0,"th",38)(14,vde,2,1,"td",39),pe(),me(15,156),y(16,yde,2,0,"th",42)(17,wde,2,1,"td",39),pe(),me(18,157),y(19,xde,2,0,"th",42)(20,kde,3,2,"td",39),pe(),me(21,158),y(22,Mde,2,0,"th",38)(23,Ede,3,2,"td",39),pe(),me(24,57),y(25,Ode,1,0,"th",42)(26,Pde,2,4,"td",58),pe(),y(27,Rde,1,0,"tr",47)(28,Nde,1,0,"tr",47)(29,Fde,1,0,"tr",159),l(),y(30,Bde,19,3,"div",160),l()),2&t){const e=C(2);m(),f("dataSource",e.spDataSource),m(26),f("matHeaderRowDef",No(5,Dw)),m(),f("matHeaderRowDef",e.indexDisplayedColumns),m(),f("matRowDefColumns",e.indexDisplayedColumns),m(),f("ngIf",e.isIndexEditMode&&e.indexColumnNames.length>0)}}function jde(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",93),A("click",function(){return ne(e),oe(C(4).toggleSequenceEdit())}),d(2,"mat-icon",94),h(3,"edit"),l(),h(4," EDIT "),l()()}}function zde(t,n){if(1&t&&(d(0,"th",132)(1,"div",91)(2,"span"),h(3,"Spanner"),l(),y(4,jde,5,0,"div",12),l()()),2&t){const e=C(3);m(4),f("ngIf",!e.isSequenceEditMode&&!e.currentObject.isDeleted&&e.currentObject.isSpannerNode)}}function Hde(t,n){1&t&&(d(0,"th",83),h(1,"Name"),l())}function Ude(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=C().$implicit;m(),Pe(e.get("spSeqName").value)}}function $de(t,n){if(1&t&&(d(0,"td",84),y(1,Ude,2,1,"p",12),l()),2&t){const e=n.$implicit;m(),f("ngIf",e.get("spSeqName").value)}}function Gde(t,n){1&t&&(d(0,"th",83),h(1,"Sequence Type"),l())}function qde(t,n){if(1&t&&(me(0),d(1,"mat-option",106),h(2),l(),pe()),2&t){const e=n.$implicit;m(),f("value",e),m(),xe(" ",e," ")}}function Wde(t,n){if(1&t&&(me(0),d(1,"mat-form-field",181)(2,"mat-select",182,183),y(4,qde,3,2,"ng-container",113),l()(),pe()),2&t){const e=C().$implicit,i=C(3);m(2),f("formControl",e.get("spSequenceKind")),m(2),f("ngForOf",i.sequenceKinds)}}function Kde(t,n){if(1&t&&(me(0),d(1,"p"),h(2),l(),pe()),2&t){const e=C().$implicit;m(2),Pe(e.get("spSequenceKind").value)}}function Zde(t,n){if(1&t&&(d(0,"td",84)(1,"div",180),y(2,Wde,5,2,"ng-container",12)(3,Kde,3,1,"ng-container",12),l()()),2&t){const e=n.$implicit,i=C(3);m(2),f("ngIf",i.isSequenceEditMode&&""!==e.get("spSequenceKind").value),m(),f("ngIf",!i.isSequenceEditMode)}}function Yde(t,n){1&t&&(d(0,"th",83),h(1,"Skip Range Min"),l())}function Qde(t,n){if(1&t&&(d(0,"div"),D(1,"input",184),l()),2&t){const e=C().$implicit;let i;m(),f("formControl",e.get("spSkipRangeMin"))("matTooltipDisabled",!(null!=(i=e.get("spSkipRangeMin"))&&i.hasError("pattern")))}}function Xde(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=C().$implicit;m(),Pe(e.get("spSkipRangeMin").value)}}function Jde(t,n){if(1&t&&(d(0,"td",84),y(1,Qde,2,2,"div",12)(2,Xde,2,1,"p",12),l()),2&t){const e=n.$implicit,i=C(3);m(),f("ngIf",i.isSequenceEditMode),m(),f("ngIf",!i.isSequenceEditMode&&e.get("spSkipRangeMin").value)}}function eue(t,n){1&t&&(d(0,"th",83),h(1,"Skip Range Max"),l())}function tue(t,n){if(1&t&&(d(0,"div"),D(1,"input",184),l()),2&t){const e=C().$implicit;let i;m(),f("formControl",e.get("spSkipRangeMax"))("matTooltipDisabled",!(null!=(i=e.get("spSkipRangeMax"))&&i.hasError("pattern")))}}function iue(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=C().$implicit;m(),Pe(e.get("spSkipRangeMax").value)}}function nue(t,n){if(1&t&&(d(0,"td",84),y(1,tue,2,2,"div",12)(2,iue,2,1,"p",12),l()),2&t){const e=n.$implicit,i=C(3);m(),f("ngIf",i.isSequenceEditMode),m(),f("ngIf",!i.isSequenceEditMode&&e.get("spSkipRangeMax").value)}}function oue(t,n){1&t&&(d(0,"th",83),h(1,"Start With Counter"),l())}function rue(t,n){if(1&t&&(d(0,"div"),D(1,"input",185),l()),2&t){const e=C().$implicit;let i;m(),f("formControl",e.get("spStartWithCounter"))("matTooltipDisabled",!(null!=(i=e.get("spStartWithCounter"))&&i.hasError("pattern")))}}function aue(t,n){if(1&t&&(d(0,"p"),h(1),l()),2&t){const e=C().$implicit;m(),Pe(e.get("spStartWithCounter").value)}}function sue(t,n){if(1&t&&(d(0,"td",84),y(1,rue,2,2,"div",12)(2,aue,2,1,"p",12),l()),2&t){const e=n.$implicit,i=C(3);m(),f("ngIf",i.isSequenceEditMode),m(),f("ngIf",!i.isSequenceEditMode&&e.get("spStartWithCounter").value)}}function cue(t,n){1&t&&D(0,"tr",88)}function lue(t,n){1&t&&D(0,"tr",88)}function due(t,n){1&t&&D(0,"tr",186)}function uue(t,n){if(1&t&&(d(0,"div",173)(1,"table",34),me(2,49),y(3,zde,5,1,"th",62),pe(),me(4,174),y(5,Hde,2,0,"th",42)(6,$de,2,1,"td",39),pe(),me(7,175),y(8,Gde,2,0,"th",42)(9,Zde,4,2,"td",39),pe(),me(10,176),y(11,Yde,2,0,"th",42)(12,Jde,3,2,"td",39),pe(),me(13,177),y(14,eue,2,0,"th",42)(15,nue,3,2,"td",39),pe(),me(16,178),y(17,oue,2,0,"th",42)(18,sue,3,2,"td",39),pe(),y(19,cue,1,0,"tr",47)(20,lue,1,0,"tr",47)(21,due,1,0,"tr",179),l()()),2&t){const e=C(2);m(),f("dataSource",e.spDataSource),m(18),f("matHeaderRowDef",No(4,VN)),m(),f("matHeaderRowDef",e.sequenceDisplayedColumns),m(),f("matRowDefColumns",e.sequenceDisplayedColumns)}}function hue(t,n){1&t&&D(0,"mat-divider")}function mue(t,n){if(1&t){const e=_e();d(0,"button",190),A("click",function(){return ne(e),oe(C(3).toggleEdit())}),h(1," CANCEL "),l()}}function pue(t,n){if(1&t){const e=_e();d(0,"div",187)(1,"button",188),A("click",function(){return ne(e),oe(C(2).saveColumnTable())}),h(2," SAVE & CONVERT "),l(),y(3,mue,2,0,"button",189),l()}if(2&t){const e=C(2);m(),f("disabled",!e.spRowArray.valid),m(2),f("ngIf",e.currentObject.isSpannerNode)}}function fue(t,n){if(1&t){const e=_e();d(0,"button",190),A("click",function(){return ne(e),oe(C(3).togglePkEdit())}),h(1," CANCEL "),l()}}function gue(t,n){if(1&t){const e=_e();d(0,"div",187)(1,"button",188),A("click",function(){return ne(e),oe(C(2).savePk())}),h(2," SAVE & CONVERT "),l(),y(3,fue,2,0,"button",189),l()}if(2&t){const e=C(2);m(),f("disabled",!e.pkArray.valid),m(2),f("ngIf",e.currentObject.isSpannerNode)}}function _ue(t,n){if(1&t){const e=_e();d(0,"button",190),A("click",function(){return ne(e),oe(C(3).toggleFkEdit())}),h(1," CANCEL "),l()}}function bue(t,n){if(1&t){const e=_e();d(0,"div",187)(1,"button",147),A("click",function(){return ne(e),oe(C(2).saveFk())}),h(2,"SAVE & CONVERT"),l(),y(3,_ue,2,0,"button",189),l()}if(2&t){const e=C(2);m(3),f("ngIf",e.currentObject.isSpannerNode)}}function vue(t,n){if(1&t){const e=_e();d(0,"button",190),A("click",function(){return ne(e),oe(C(3).toggleIndexEdit())}),h(1," CANCEL "),l()}}function yue(t,n){if(1&t){const e=_e();d(0,"div",187)(1,"button",147),A("click",function(){return ne(e),oe(C(2).saveIndex())}),h(2,"SAVE & CONVERT"),l(),y(3,vue,2,0,"button",189),l()}if(2&t){const e=C(2);m(3),f("ngIf",e.currentObject.isSpannerNode)}}function Cue(t,n){if(1&t){const e=_e();d(0,"button",190),A("click",function(){return ne(e),oe(C(3).toggleSequenceEdit())}),h(1," CANCEL "),l()}}function wue(t,n){if(1&t){const e=_e();d(0,"div",187)(1,"button",188),A("click",function(){return ne(e),oe(C(2).saveSequence())}),h(2," SAVE & CONVERT "),l(),y(3,Cue,2,0,"button",189),l()}if(2&t){const e=C(2);m(),f("disabled",!e.spRowArray.valid),m(2),f("ngIf",e.currentObject.isSpannerNode)}}function xue(t,n){if(1&t){const e=_e();d(0,"div",13)(1,"div",3)(2,"span")(3,"h3",4),y(4,Zae,2,0,"mat-icon",14)(5,Yae,2,0,"svg",15),d(6,"span",16),h(7),l(),y(8,Qae,3,3,"span",12)(9,Xae,5,0,"button",17)(10,Jae,5,0,"button",17)(11,ese,5,0,"button",17)(12,tse,5,0,"button",17)(13,ise,5,0,"button",17),l(),y(14,nse,4,1,"div",18),l(),d(15,"button",5),A("click",function(){return ne(e),oe(C().middleColumnToggle())}),d(16,"mat-icon",6),h(17,"first_page"),l(),d(18,"mat-icon",6),h(19,"last_page"),l()()(),y(20,cde,147,35,"mat-tab-group",19)(21,Vde,31,6,"div",20)(22,uue,22,5,"div",21),d(23,"div",22),y(24,hue,1,0,"mat-divider",12)(25,pue,4,2,"div",23)(26,gue,4,2,"div",23)(27,bue,4,1,"div",23)(28,yue,4,1,"div",23)(29,wue,4,2,"div",23),l()()}if(2&t){const e=C();m(4),f("ngIf",e.currentObject.type===e.ObjectExplorerNodeType.Table),m(),f("ngIf",e.currentObject.type===e.ObjectExplorerNodeType.Index||e.currentObject.type===e.ObjectExplorerNodeType.Sequence),m(2),Pe(" "+e.currentObject.name+" "),m(),f("ngIf",""!=e.currentObject.parent),m(),f("ngIf",e.currentObject.isSpannerNode&&!e.currentObject.isDeleted&&"indexName"===e.currentObject.type),m(),f("ngIf",e.currentObject.isSpannerNode&&!e.currentObject.isDeleted&&"sequenceName"===e.currentObject.type),m(),f("ngIf",e.currentObject.isSpannerNode&&e.currentObject.isDeleted&&e.currentObject.type==e.ObjectExplorerNodeType.Index),m(),f("ngIf",e.currentObject.isSpannerNode&&"indexName"!==e.currentObject.type&&"sequenceName"!==e.currentObject.type&&!e.currentObject.isDeleted),m(),f("ngIf",e.currentObject.isSpannerNode&&e.currentObject.isDeleted&&e.currentObject.type==e.ObjectExplorerNodeType.Table),m(),f("ngIf",e.interleaveParentName&&e.currentObject.isSpannerNode),m(2),f("ngClass",hi(21,Tg,e.isMiddleColumnCollapse?"display":"hidden")),m(2),f("ngClass",hi(23,Tg,e.isMiddleColumnCollapse?"hidden":"display")),m(2),f("ngIf","tableName"===e.currentObject.type),m(),f("ngIf","indexName"===e.currentObject.type),m(),f("ngIf","sequenceName"===e.currentObject.type&&e.autoGenSupported),m(2),f("ngIf",e.isEditMode||e.isPkEditMode||e.isFkEditMode),m(),f("ngIf",e.isEditMode&&0===e.currentTabIndex),m(),f("ngIf",e.isPkEditMode&&1===e.currentTabIndex),m(),f("ngIf",e.isFkEditMode&&2===e.currentTabIndex),m(),f("ngIf",e.isIndexEditMode&&-1===e.currentTabIndex),m(),f("ngIf",e.isSequenceEditMode&&-1===e.currentTabIndex)}}let Due=(()=>{class t{constructor(e,i,o,r,a,s,c,u){this.data=e,this.dialog=i,this.snackbar=o,this.conversion=r,this.sidenav=a,this.tableUpdatePubSub=s,this.fb=c,this.fetchSerice=u,this.currentObject=null,this.typeMap={},this.defaultTypeMap={},this.autoGenMap={},this.ddlStmts={},this.fkData=[],this.tableData=[],this.currentDatabase="spanner",this.indexData=[],this.sequenceData={},this.srcDbName=localStorage.getItem(Wi.SourceDbName),this.updateSidebar=new Ne,this.ObjectExplorerNodeType=jt,this.conv={},this.interleaveParentName=null,this.localTableData=[],this.localIndexData=[],this.localSequenceData={},this.isMiddleColumnCollapse=!1,this.isPostgreSQLDialect=!1,this.processedAutoGenMap={},this.sequenceKinds=[],this.autoGenSupported=!1,this.foreignKeyActionsSupported=!1,this.srcDisplayedColumns=["srcOrder","srcColName","srcDataType","srcColMaxLength","srcIsPk","srcIsNotNull"],this.spDisplayedColumns=["spColName","spDataType","spColMaxLength","spIsPk","spIsNotNull","dropButton"],this.displayedFkColumns=["srcName","srcColumns","srcReferTable","srcReferColumns","spName","spColumns","spReferTable","spReferColumns","dropButton"],this.displayedPkColumns=["srcOrder","srcColName","srcDataType","srcIsPk","srcIsNotNull","spOrder","spColName","spDataType","spIsPk","spIsNotNull","dropButton"],this.indexDisplayedColumns=["srcIndexColName","srcSortBy","srcIndexOrder","spIndexColName","spSortBy","spIndexOrder","dropButton"],this.sequenceDisplayedColumns=["spSeqName","spSequenceKind","spSkipRangeMin","spSkipRangeMax","spStartWithCounter"],this.spDataSource=[],this.srcDataSource=[],this.fkDataSource=[],this.pkDataSource=[],this.pkData=[],this.isPkEditMode=!1,this.isEditMode=!1,this.isFkEditMode=!1,this.isIndexEditMode=!1,this.isSequenceEditMode=!1,this.isObjectSelected=!1,this.srcRowArray=this.fb.array([]),this.spRowArray=this.fb.array([]),this.pkArray=this.fb.array([]),this.fkArray=this.fb.array([]),this.isSpTableSuggesstionDisplay=[],this.spTableSuggestion=[],this.currentTabIndex=0,this.addedColumnName="",this.droppedColumns=[],this.droppedSourceColumns=[],this.pkColumnNames=[],this.indexColumnNames=[],this.shardIdCol="",this.addColumnForm=new ti({columnName:new U("",[ee.required])}),this.addIndexKeyForm=new ti({columnName:new U("",[ee.required]),ascOrDesc:new U("",[ee.required])}),this.addedPkColumnName="",this.addPkColumnForm=new ti({columnName:new U("",[ee.required])}),this.pkObj={},this.dataTypesWithColLen=In.DataTypes,this.spColspan=6,this.srcColspan=6}ngOnInit(){this.data.conv.subscribe({next:e=>{this.conv=e,this.isPostgreSQLDialect="postgresql"===this.conv.SpDialect}}),this.conv.DatabaseType&&(this.srcDbName=ad(this.conv.DatabaseType)),this.autoGenSupported=kN.includes(this.srcDbName),(this.srcDbName==ir.MySQL||this.srcDbName==ir.Postgres)&&(this.foreignKeyActionsSupported=!0)}ngOnChanges(e){this.fkData=e.fkData?.currentValue||this.fkData,this.currentObject=e.currentObject?.currentValue||this.currentObject,this.tableData=e.tableData?.currentValue||this.tableData,this.indexData=e.indexData?.currentValue||this.indexData,this.sequenceData=e.sequenceData?.currentValue||this.sequenceData,this.currentDatabase=e.currentDatabase?.currentValue||this.currentDatabase,this.currentTabIndex=this.currentObject?.type===jt.Index||this.currentObject?.type===jt.Sequence?-1:0,this.isObjectSelected=!!this.currentObject,this.pkData=this.conversion.getPkMapping(this.tableData),this.interleaveParentName=this.getInterleaveParentFromConv(),this.isEditMode=!1,this.isFkEditMode=!1,this.isIndexEditMode=!1,this.isSequenceEditMode=!1,this.isPkEditMode=!1,this.srcRowArray=this.fb.array([]),this.spRowArray=this.fb.array([]),this.droppedColumns=[],this.droppedSourceColumns=[],this.pkColumnNames=[],this.interleaveParentName=this.getInterleaveParentFromConv(),this.localTableData=JSON.parse(JSON.stringify(this.tableData)),this.localIndexData=JSON.parse(JSON.stringify(this.indexData)),this.localSequenceData=JSON.parse(JSON.stringify(this.sequenceData)),this.srcDbName==ir.MySQL&&!this.spDisplayedColumns.includes("spAutoGen")&&(this.spDisplayedColumns.splice(2,0,"spAutoGen"),this.displayedPkColumns.splice(8,0,"spAutoGen"),this.srcDisplayedColumns.splice(2,0,"srcAutoGen"),this.displayedPkColumns.splice(2,0,"srcAutoGen"),this.spColspan++,this.srcColspan++),this.foreignKeyActionsSupported&&!this.displayedFkColumns.includes("srcOnDelete")&&(this.displayedFkColumns.splice(4,0,"srcOnDelete","srcOnUpdate"),this.displayedFkColumns.splice(10,0,"spOnDelete","spOnUpdate")),this.currentObject?.type===jt.Table?(this.checkIsInterleave(),this.interleaveObj=this.data.tableInterleaveStatus.subscribe(i=>{this.interleaveStatus=i}),this.setSrcTableRows(),this.setSpTableRows(),this.setColumnsToAdd(),this.setAddPkColumnList(),this.setPkOrder(),this.setPkRows(),this.setFkRows(),this.updateSpTableSuggestion(),this.setShardIdColumn(),this.processedAutoGenMap=IN(this.autoGenMap)):this.currentObject?.type===jt.Index?(this.indexOrderValidation(),this.setIndexRows()):this.currentObject?.type===jt.Sequence&&(this.setSequence(),this.fetchSerice.getSequenceKind().subscribe(i=>{this.sequenceKinds=i})),this.data.getSummary()}setSpTableRows(){this.spRowArray=this.fb.array([]),this.localTableData.forEach(e=>{if(e.spOrder){let i=new ti({srcOrder:new U(e.srcOrder),srcColName:new U(e.srcColName),srcDataType:new U(e.srcDataType),srcIsPk:new U(e.srcIsPk),srcIsNotNull:new U(e.srcIsNotNull),srcColMaxLength:new U(e.srcColMaxLength),srcAutoGen:new U(e.srcAutoGen),spOrder:new U(e.srcOrder),spColName:new U(e.spColName,[ee.required,ee.pattern("^[a-zA-Z]([a-zA-Z0-9/_]*[a-zA-Z0-9])?")]),spDataType:new U(e.spDataType),spIsPk:new U(e.spIsPk),spIsNotNull:new U(e.spIsNotNull),spId:new U(e.spId),srcId:new U(e.srcId),spColMaxLength:new U(e.spColMaxLength,[ee.required]),spAutoGen:new U(e.spAutoGen)});this.dataTypesWithColLen.indexOf(e.spDataType.toString())>-1?(i.get("spColMaxLength")?.setValidators([ee.required,ee.pattern("([1-9][0-9]*|MAX)")]),(void 0===e.spColMaxLength||"MAX"!==e.spColMaxLength&&(("STRING"===e.spDataType||"VARCHAR"===e.spDataType)&&"number"==typeof e.spColMaxLength&&e.spColMaxLength>In.StringMaxLength||"BYTES"===e.spDataType&&"number"==typeof e.spColMaxLength&&e.spColMaxLength>In.ByteMaxLength))&&i.get("spColMaxLength")?.setValue("MAX")):i.controls.spColMaxLength.clearValidators(),i.controls.spColMaxLength.updateValueAndValidity(),this.spRowArray.push(i)}}),this.spDataSource=this.spRowArray.controls}setSrcTableRows(){this.srcRowArray=this.fb.array([]),this.localTableData.forEach(e=>{if(""!=e.spColName)this.srcRowArray.push(new ti({srcOrder:new U(e.srcOrder),srcColName:new U(e.srcColName),srcDataType:new U(e.srcDataType),srcIsPk:new U(e.srcIsPk),srcIsNotNull:new U(e.srcIsNotNull),srcColMaxLength:new U(e.srcColMaxLength),srcAutoGen:new U(e.srcAutoGen),spOrder:new U(e.spOrder),spColName:new U(e.spColName),spDataType:new U(e.spDataType),spIsPk:new U(e.spIsPk),spIsNotNull:new U(e.spIsNotNull),spId:new U(e.spId),srcId:new U(e.srcId),spColMaxLength:new U(e.spColMaxLength),spAutoGen:new U(e.spAutoGen)}));else{let i="",o=e.srcColMaxLength;void 0===this.defaultTypeMap[e.srcDataType]?(i="STRING",o="MAX"):i=this.defaultTypeMap[e.srcDataType].Name,""==o&&("STRING"==i||"BYTES"==i)&&(o="MAX"),this.srcRowArray.push(new ti({srcOrder:new U(e.srcOrder),srcColName:new U(e.srcColName),srcDataType:new U(e.srcDataType),srcIsPk:new U(e.srcIsPk),srcIsNotNull:new U(e.srcIsNotNull),srcColMaxLength:new U(e.srcColMaxLength),srcAutoGen:new U(e.srcAutoGen),spOrder:new U(e.srcOrder),spColName:new U(e.srcColName),spDataType:new U(i),spIsPk:new U(e.srcIsPk),spIsNotNull:new U(e.srcIsNotNull),spColMaxLength:new U(o),spAutoGen:new U(e.spAutoGen)}))}}),this.srcDataSource=this.srcRowArray.controls}setColumnsToAdd(){this.localTableData.forEach(e=>{e.spColName||this.srcRowArray.value.forEach(i=>{e.srcColName==i.srcColName&&""!=i.srcColName&&(this.droppedColumns.push(i),this.droppedSourceColumns.push(i.srcColName))})})}toggleEdit(){this.currentTabIndex=0,this.isEditMode?(this.localTableData=JSON.parse(JSON.stringify(this.tableData)),this.setSpTableRows(),this.isEditMode=!1):this.isEditMode=!0}saveColumnTable(){this.isEditMode=!1;let i,e={UpdateCols:{}};this.conversion.pgSQLToStandardTypeTypeMap.subscribe(o=>{i=o}),this.spRowArray.value.forEach((o,r)=>{for(let a=0;aIn.StringMaxLength||"BYTES"===o.spDataType&&"number"==typeof o.spColMaxLength&&o.spColMaxLength>In.ByteMaxLength)&&(o.spColMaxLength="MAX"),"number"==typeof o.spColMaxLength&&(o.spColMaxLength=o.spColMaxLength.toString()),"STRING"!=o.spDataType&&"BYTES"!=o.spDataType&&"VARCHAR"!=o.spDataType&&(o.spColMaxLength=""),o.srcId==this.tableData[a].srcId&&""!=this.tableData[a].srcId){e.UpdateCols[this.tableData[a].srcId]={Add:""==this.tableData[a].spId,Rename:s.spColName!==o.spColName?o.spColName:"",NotNull:o.spIsNotNull?"ADDED":"REMOVED",Removed:!1,ToType:"postgresql"===this.conv.SpDialect?void 0===c?o.spDataType:c:o.spDataType,MaxColLength:o.spColMaxLength,AutoGen:o.spAutoGen};break}o.spId==this.tableData[a].spId&&(e.UpdateCols[this.tableData[a].spId]={Add:""==this.tableData[a].spId,Rename:s.spColName!==o.spColName?o.spColName:"",NotNull:o.spIsNotNull?"ADDED":"REMOVED",Removed:!1,ToType:"postgresql"===this.conv.SpDialect?void 0===c?o.spDataType:c:o.spDataType,MaxColLength:o.spColMaxLength,AutoGen:o.spAutoGen})}}),this.droppedColumns.forEach(o=>{e.UpdateCols[o.spId]={Add:!1,Rename:"",NotNull:"",Removed:!0,ToType:"",MaxColLength:"",AutoGen:{Name:"",GenerationType:""}}}),this.data.reviewTableUpdate(this.currentObject.id,e).subscribe({next:o=>{""==o?(this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("reviewChanges"),this.tableUpdatePubSub.setTableUpdateDetail({tableName:this.currentObject.name,tableId:this.currentObject.id,updateDetail:e}),this.isEditMode=!0):(this.dialog.open(Uo,{data:{message:o,type:"error"},maxWidth:"500px"}),this.isEditMode=!0)}})}addNewColumn(){this.dialog.open(Gae,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:{dialect:this.conv.SpDialect,tableId:this.currentObject?.id}})}addNewSequence(){this.dialog.open(FN,MN),this.updateSidebar.emit(!0)}setColumn(e){this.addedColumnName=e}restoreColumn(){let e=this.tableData.map(r=>r.srcColName).indexOf(this.addedColumnName),i=this.droppedColumns.map(r=>r.srcColName).indexOf(this.addedColumnName);this.localTableData[e].spColName=this.droppedColumns[i].spColName,this.localTableData[e].spDataType=this.droppedColumns[i].spDataType,this.localTableData[e].spOrder=-1,this.localTableData[e].spIsPk=this.droppedColumns[i].spIsPk,this.localTableData[e].spIsNotNull=this.droppedColumns[i].spIsNotNull,this.localTableData[e].spColMaxLength=this.droppedColumns[i].spColMaxLength,this.localTableData[e].spAutoGen=this.droppedColumns[i].spAutoGen;let o=this.droppedColumns.map(r=>r.spColName).indexOf(this.addedColumnName);o>-1&&(this.droppedColumns.splice(o,1),this.droppedSourceColumns.indexOf(this.addedColumnName)>-1&&this.droppedSourceColumns.splice(this.droppedSourceColumns.indexOf(this.addedColumnName),1)),this.setSpTableRows()}dropColumn(e){let i=e.get("srcColName").value,o=e.get("srcId").value,r=e.get("spId").value,a=""!=o?o:r,s=e.get("spColName").value,c=this.getAssociatedIndexs(a);if(this.checkIfPkColumn(a)||0!=c.length){let u="",p="",g="";this.checkIfPkColumn(a)&&(u=" Primary key"),0!=c.length&&(p=` Index ${c}`),""!=u&&""!=p&&(g=" and"),this.dialog.open(Uo,{data:{message:`Column ${s} is a part of${u}${g}${p}. Remove the dependencies from respective tabs before dropping the Column. `,type:"error"},maxWidth:"500px"})}else this.spRowArray.value.forEach((u,p)=>{u.spId===r&&this.droppedColumns.push(u)}),this.dropColumnFromUI(r),""!==i&&this.droppedSourceColumns.push(i)}checkIfPkColumn(e){let i=!1;return null!=this.conv.SpSchema[this.currentObject.id].PrimaryKeys&&this.conv.SpSchema[this.currentObject.id].PrimaryKeys.map(o=>o.ColId).includes(e)&&(i=!0),i}setShardIdColumn(){void 0!==this.conv.SpSchema[this.currentObject.id]&&(this.shardIdCol=this.conv.SpSchema[this.currentObject.id].ShardIdColumn)}getAssociatedIndexs(e){let i=[];return null!=this.conv.SpSchema[this.currentObject.id].Indexes&&this.conv.SpSchema[this.currentObject.id].Indexes.forEach(o=>{o.Keys.map(r=>r.ColId).includes(e)&&i.push(o.Name)}),i}dropColumnFromUI(e){this.localTableData.forEach((i,o)=>{i.spId==e&&(i.spColName="",i.spDataType="",i.spIsNotNull=!1,i.spIsPk=!1,i.spOrder="",i.spColMaxLength="",i.spAutoGen={Name:"",GenerationType:""})}),this.setSpTableRows()}updateSpTableSuggestion(){this.isSpTableSuggesstionDisplay=[],this.spTableSuggestion=[],this.localTableData.forEach(e=>{const i=e.srcDataType,o=e.spDataType;let r="";this.typeMap[i]?.forEach(a=>{o==a.DiplayT&&(r=a.Brief)}),this.isSpTableSuggesstionDisplay.push(""!==r),this.spTableSuggestion.push(r)})}spTableEditSuggestionHandler(e,i){let r="";this.typeMap[this.localTableData[e].srcDataType].forEach(a=>{i==a.T&&(r=a.Brief)}),this.isSpTableSuggesstionDisplay[e]=""!==r,this.spTableSuggestion[e]=r}compareAutoGen(e,i){return e&&i?e.Name===i.Name&&e.GenerationType===i.GenerationType:e===i}setPkRows(){this.pkArray=this.fb.array([]),this.pkOrderValidation();var e=new Array,i=new Array;this.pkData.forEach(o=>{o.srcIsPk&&e.push({srcColName:o.srcColName,srcDataType:o.srcDataType,srcIsNotNull:o.srcIsNotNull,srcIsPk:o.srcIsPk,srcOrder:o.srcOrder,srcId:o.srcId,srcAutoGen:o.srcAutoGen}),o.spIsPk&&i.push({spColName:o.spColName,spDataType:o.spDataType,spIsNotNull:o.spIsNotNull,spIsPk:o.spIsPk,spOrder:o.spOrder,spId:o.spId,spAutoGen:o.spAutoGen})}),i.sort((o,r)=>o.spOrder-r.spOrder);for(let o=0;oMath.min(e.length,i.length))for(let o=Math.min(e.length,i.length);oMath.min(e.length,i.length))for(let o=Math.min(e.length,i.length);or.spColName).indexOf(this.addedPkColumnName),i=this.localTableData[e],o=1;this.localTableData[e].spIsPk=!0,this.pkData=[],this.pkData=this.conversion.getPkMapping(this.localTableData),e=this.pkData.findIndex(r=>r.srcId===i.srcId||r.spId==i.spId),this.pkArray.value.forEach(r=>{r.spIsPk&&(o+=1);for(let a=0;a{i.spIsPk&&e.push(i.spColName)});for(let i=0;i{if(this.pkData[i].spId===this.conv.SpSchema[this.currentObject.id].PrimaryKeys[i].ColId)this.pkData[i].spOrder=this.conv.SpSchema[this.currentObject.id].PrimaryKeys[i].Order;else{let o=this.conv.SpSchema[this.currentObject.id].PrimaryKeys.map(r=>r.ColId).indexOf(e.spId);e.spOrder=this.conv.SpSchema[this.currentObject.id].PrimaryKeys[o]?.Order}}:(e,i)=>{let o=this.conv.SpSchema[this.currentObject.id]?.PrimaryKeys.map(r=>r.ColId).indexOf(e.spId);-1!==o&&(e.spOrder=this.conv.SpSchema[this.currentObject.id]?.PrimaryKeys[o].Order)})}pkOrderValidation(){let e=this.pkData.filter(i=>i.spIsPk).map(i=>Number(i.spOrder));if(e.sort((i,o)=>i-o),e[e.length-1]>e.length&&e.forEach((i,o)=>{this.pkData.forEach(r=>{r.spOrder==i&&(r.spOrder=o+1)})}),0==e[0]&&e[e.length-1]<=e.length){let i;for(let o=0;o{"number"==typeof o.spOrder&&o.spOrder{o.spIsPk&&i.push({ColId:o.spId,Desc:typeof this.conv.SpSchema[this.currentObject.id].PrimaryKeys.find(({ColId:r})=>r===o.spId)<"u"&&this.conv.SpSchema[this.currentObject.id].PrimaryKeys.find(({ColId:r})=>r===o.spId).Desc,Order:parseInt(o.spOrder)})}),this.pkObj.TableId=e,this.pkObj.Columns=i}togglePkEdit(){this.currentTabIndex=1,this.isPkEditMode?(this.localTableData=JSON.parse(JSON.stringify(this.tableData)),this.pkData=this.conversion.getPkMapping(this.tableData),this.setAddPkColumnList(),this.setPkOrder(),this.setPkRows(),this.isPkEditMode=!1):this.isPkEditMode=!0}savePk(){if(this.pkArray.value.forEach(e=>{for(let i=0;i{o&&this.data.removeInterleave(""!=this.conv.SpSchema[this.currentObject.id].ParentTable.Id?this.currentObject.id:this.conv.SpSchema[e].Id).pipe(Pt(1)).subscribe(a=>{this.updatePk()})}):this.updatePk()}}updatePk(){this.isPkEditMode=!1,this.data.updatePk(this.pkObj).subscribe({next:e=>{""==e?this.isEditMode=!1:(this.dialog.open(Uo,{data:{message:e,type:"error"},maxWidth:"500px"}),this.isPkEditMode=!0)}})}dropPk(e){let i=this.localTableData.map(a=>a.spColName).indexOf(e.value.spColName);this.localTableData[i].spId==(this.conv.SyntheticPKeys[this.currentObject.id]?this.conv.SyntheticPKeys[this.currentObject.id].ColId:"")?this.dialog.open(Uo,{data:{message:"Removing this synthetic id column from primary key will drop the column from the table",title:"Confirm removal of synthetic id",type:"warning"},maxWidth:"500px"}).afterClosed().subscribe(s=>{s&&this.dropPkHelper(i,e.value.spOrder)}):this.dropPkHelper(i,e.value.spOrder)}dropPkHelper(e,i){this.localTableData[e].spIsPk=!1,this.pkData=[],this.pkData=this.conversion.getPkMapping(this.localTableData),this.pkArray.value.forEach(o=>{for(let r=0;r{"number"==typeof o.spOrder&&o.spOrder>i&&(o.spOrder=Number(o.spOrder)-1)}),this.setAddPkColumnList(),this.setPkRows()}setFkRows(){this.fkArray=this.fb.array([]);var e=new Array,i=new Array;this.fkData.forEach(o=>{e.push({srcName:o.srcName,srcColumns:o.srcColumns,srcRefTable:o.srcReferTable,srcRefColumns:o.srcReferColumns,srcOnDelete:o.srcOnDelete,srcOnUpdate:o.srcOnUpdate,Id:o.srcFkId}),""!=o.spName&&i.push({spName:o.spName,spColumns:o.spColumns,spRefTable:o.spReferTable,spRefColumns:o.spReferColumns,spOnDelete:o.spOnDelete,spOnUpdate:o.spOnUpdate,Id:o.spFkId,spColIds:o.spColIds,spReferColumnIds:o.spReferColumnIds,spReferTableId:o.spReferTableId})});for(let o=0;oMath.min(e.length,i.length))for(let o=Math.min(e.length,i.length);o{e.push({Name:i.spName,ColIds:i.spColIds,ReferTableId:i.spReferTableId,ReferColumnIds:i.spReferColumnIds,OnDelete:i.spOnDelete,OnUpdate:i.spOnUpdate,Id:i.spFkId})}),this.data.updateFkNames(this.currentObject.id,e).subscribe({next:i=>{""==i?this.isFkEditMode=!1:this.dialog.open(Uo,{data:{message:i,type:"error"},maxWidth:"500px"})}})}dropFk(e){this.fkData.forEach(i=>{i.spName==e.get("spName").value&&(i.spName="",i.spColumns=[],i.spReferTable="",i.spReferColumns=[],i.spColIds=[],i.spReferColumnIds=[],i.spReferTableId="",i.spOnDelete="",i.spOnUpdate="")}),this.setFkRows()}getRemovedFkIndex(e){let i=-1;return this.fkArray.value.forEach((o,r)=>{o.spName===e.get("spName").value&&(i=r)}),i}removeInterleave(){this.data.removeInterleave(this.currentObject.id).pipe(Pt(1)).subscribe(i=>{""===i&&this.snackbar.openSnackBar("Interleave removed and foreign key restored successfully","Close",5)})}checkIsInterleave(){this.currentObject&&!this.currentObject?.isDeleted&&this.currentObject?.isSpannerNode&&this.data.getInterleaveConversionForATable(this.currentObject.id)}setInterleave(){this.data.setInterleave(this.currentObject.id)}getInterleaveParentFromConv(){return this.currentObject?.type===jt.Table&&this.currentObject.isSpannerNode&&!this.currentObject.isDeleted&&""!=this.conv.SpSchema[this.currentObject.id].ParentTable.Id?this.conv.SpSchema[this.conv.SpSchema[this.currentObject.id].ParentTable.Id]?.Name:null}setIndexRows(){this.spRowArray=this.fb.array([]);const e=this.localIndexData.map(i=>i.spColName?i.spColName:"").filter(i=>""!=i);this.indexColumnNames=this.conv.SpSchema[this.currentObject.parentId]?.ColIds?.filter(i=>!e.includes(this.conv.SpSchema[this.currentObject.parentId]?.ColDefs[i]?.Name)).map(i=>this.conv.SpSchema[this.currentObject.parentId]?.ColDefs[i]?.Name),this.localIndexData.forEach(i=>{this.spRowArray.push(new ti({srcOrder:new U(i.srcOrder),srcColName:new U(i.srcColName),srcDesc:new U(i.srcDesc),spOrder:new U(i.spOrder),spColName:new U(i.spColName,[ee.required,ee.pattern("^[a-zA-Z]([a-zA-Z0-9/_]*[a-zA-Z0-9])?")]),spDesc:new U(i.spDesc)}))}),this.spDataSource=this.spRowArray.controls}setIndexOrder(){this.spRowArray.value.forEach(e=>{for(let i=0;i""!=i.spColName).map(i=>Number(i.spOrder));if(e.sort((i,o)=>i-o),e[e.length-1]>e.length&&e.forEach((i,o)=>{this.localIndexData.forEach(r=>{""!=r.spColName&&r.spOrder==i&&(r.spOrder=o+1)})}),0==e[0]&&e[e.length-1]<=e.length){let i;for(let o=0;o{o.spOrder!!i.spColId).map(i=>({ColId:i.spColId,Desc:i.spDesc,Order:i.spOrder})),Id:this.currentObject.id}),0==e[0].Keys.length?this.dropIndex():(this.data.updateIndex(this.currentObject?.parentId,e).subscribe({next:i=>{""==i?this.isEditMode=!1:(this.dialog.open(Uo,{data:{message:i,type:"error"},maxWidth:"500px"}),this.isIndexEditMode=!0)}}),this.addIndexKeyForm.controls.columnName.setValue(""),this.addIndexKeyForm.controls.ascOrDesc.setValue(""),this.addIndexKeyForm.markAsUntouched(),this.data.getSummary(),this.isIndexEditMode=!1)}saveSequence(){this.spRowArray.value.forEach(e=>{this.data.updateSequence({Name:e.spSeqName?e.spSeqName:"",Id:this.currentObject.id,SequenceKind:e.spSequenceKind?e.spSequenceKind:"",SkipRangeMax:e.spSkipRangeMax?e.spSkipRangeMax:"",SkipRangeMin:e.spSkipRangeMin?e.spSkipRangeMin:"",StartWithCounter:e.spStartWithCounter?e.spStartWithCounter:""}).pipe(Pt(1)).subscribe(()=>{})}),this.isSequenceEditMode=!1}dropIndex(){this.dialog.open(xw,{width:"35vw",minWidth:"450px",maxWidth:"600px",data:{name:this.currentObject?.name,type:ys.Index}}).afterClosed().subscribe(i=>{i===ys.Index&&(this.data.dropIndex(this.currentObject.parentId,this.currentObject.id).pipe(Pt(1)).subscribe(o=>{""===o&&(this.isObjectSelected=!1,this.updateSidebar.emit(!0))}),this.currentObject=null)})}dropSequence(){let e=Jne;e.data={name:this.currentObject?.name,type:ys.Sequence},this.dialog.open(xw,e).afterClosed().subscribe(o=>{o===ys.Sequence&&(this.data.dropSequence(this.currentObject.id).pipe(Pt(1)).subscribe(r=>{""===r&&(this.isObjectSelected=!1,this.updateSidebar.emit(!0))}),this.currentObject=null)})}restoreIndex(){this.data.restoreIndex(this.currentObject.parentId,this.currentObject.id).pipe(Pt(1)).subscribe(o=>{""===o&&(this.isObjectSelected=!1)}),this.currentObject=null}dropIndexKey(e){this.localIndexData[e].srcColName?(this.localIndexData[e].spColName="",this.localIndexData[e].spColId="",this.localIndexData[e].spDesc="",this.localIndexData[e].spOrder=""):this.localIndexData.splice(e,1),this.setIndexRows()}addIndexKey(){let e=0;this.localIndexData.forEach(i=>{i.spColName&&(e+=1)}),this.localIndexData.push({spColName:this.addIndexKeyForm.value.columnName,spDesc:"desc"===this.addIndexKeyForm.value.ascOrDesc,spOrder:e+1,srcColName:"",srcDesc:void 0,srcOrder:"",srcColId:void 0,spColId:this.currentObject?this.conversion.getColIdFromSpannerColName(this.addIndexKeyForm.value.columnName,this.currentObject.parentId,this.conv):""}),this.setIndexRows()}restoreSpannerTable(){this.data.restoreTable(this.currentObject.id).pipe(Pt(1)).subscribe(e=>{""===e&&(this.isObjectSelected=!1),this.data.getConversionRate(),this.data.getDdl()}),this.currentObject=null}dropTable(){this.dialog.open(xw,{width:"35vw",minWidth:"450px",maxWidth:"600px",data:{name:this.currentObject?.name,type:ys.Table}}).afterClosed().subscribe(i=>{i===ys.Table&&(this.data.dropTable(this.currentObject.id).pipe(Pt(1)).subscribe(r=>{""===r&&(this.isObjectSelected=!1,this.data.getConversionRate(),this.updateSidebar.emit(!0))}),this.currentObject=null)})}tabChanged(e){this.currentTabIndex=e.index}middleColumnToggle(){this.isMiddleColumnCollapse=!this.isMiddleColumnCollapse,this.sidenav.setMiddleColComponent(this.isMiddleColumnCollapse)}tableInterleaveWith(e){if(""!=this.conv.SpSchema[e].ParentTable.Id)return this.conv.SpSchema[e].ParentTable.Id;let i="";return Object.keys(this.conv.SpSchema).forEach(o=>{""!=this.conv.SpSchema[o].ParentTable.Id&&this.conv.SpSchema[o].ParentTable.Id==e&&(i=o)}),i}isPKPrefixModified(e,i){let o,r;this.conv.SpSchema[e].ParentTable.Id!=i?(o=this.pkObj.Columns,r=this.conv.SpSchema[i].PrimaryKeys):(r=this.pkObj.Columns,o=this.conv.SpSchema[i].PrimaryKeys);for(let a=0;a{class t{constructor(e,i){this.sidenavService=e,this.data=i,this.dataSource=[],this.currentDataSource=[],this.displayedColumns=["order","name","type","objectType","associatedObject","enabled","view"],this.currentObject=null,this.lengthOfRules=new Ne}ngOnInit(){this.dataSource=[],this.data.rule.subscribe({next:e=>{this.currentDataSource=e,this.updateRules()}})}ngOnChanges(){this.updateRules()}updateRules(){if(this.currentDataSource){let e=[],i=[];e=this.currentDataSource.filter(o=>"global_datatype_change"===o?.Type||"add_shard_id_primary_key"===o?.Type||"edit_column_max_length"===o?.Type&&"All table"===o?.AssociatedObjects),this.currentObject&&("tableName"===this.currentObject?.type||"indexName"===this.currentObject?.type)&&(i=this.currentDataSource.filter(o=>o?.AssociatedObjects===this.currentObject?.id||o?.AssociatedObjects===this.currentObject?.parentId||o?.AssociatedObjects===this.currentObject?.name||o?.AssociatedObjects===this.currentObject?.parent).map(o=>{let r="";return"tableName"===this.currentObject?.type?r=this.currentObject.name:"indexName"===this.currentObject?.type&&(r=this.currentObject.parent),o.AssociatedObjects=r,o})),this.dataSource=[...e,...i],this.lengthOfRules.emit(this.dataSource.length)}else this.dataSource=[],this.lengthOfRules.emit(0)}openSidenav(){this.sidenavService.openSidenav(),this.sidenavService.setSidenavComponent("rule"),this.sidenavService.setSidenavRuleType(""),this.sidenavService.setRuleData({}),this.sidenavService.setDisplayRuleFlag(!1)}viewSidenavRule(e){let i=[];for(let o=0;o[t],Kue=(t,n,e,i,o)=>({"middle-column-expand":t,"middle-column-collapse":n,"middle-column-full":e,display:i,hidden:o}),Zue=(t,n,e,i,o,r)=>({"right-column-half-expand":t,"right-column-full-expand":n,"right-column-collapse":e,"middle-column-hide":i,display:o,hidden:r}),jN=t=>({"blue-font-color":t});let Yue=(()=>{class t{constructor(e,i,o,r,a,s,c){this.data=e,this.conversion=i,this.dialog=o,this.sidenav=r,this.router=a,this.clickEvent=s,this.fetch=c,this.fkData=[],this.tableData=[],this.indexData=[],this.sequenceData={},this.typeMap=!1,this.defaultTypeMap=!1,this.conversionRates={},this.autoGenMap=!1,this.isLeftColumnCollapse=!1,this.isRightColumnCollapse=!0,this.isMiddleColumnCollapse=!0,this.isOfflineStatus=!1,this.spannerTree=[],this.srcTree=[],this.issuesAndSuggestionsLabel="ISSUES AND SUGGESTIONS",this.rulesLabel="RULES (0)",this.objectExplorerInitiallyRender=!1,this.srcDbName=localStorage.getItem(Wi.SourceDbName),this.conversionRateCount={good:0,ok:0,bad:0},this.conversionRatePercentages={good:0,ok:0,bad:0},this.currentDatabase="spanner",this.dialect="",this.currentObject=null}ngOnInit(){this.conversion.getStandardTypeToPGSQLTypemap(),this.conversion.getPGSQLToStandardTypeTypemap(),this.ddlsumconvObj=this.data.getRateTypemapAndSummary(),this.typemapObj=this.data.typeMap.subscribe(e=>{this.typeMap=e}),this.defaultTypemapObj=this.data.defaultTypeMap.subscribe(e=>{this.defaultTypeMap=e}),this.ddlObj=this.data.ddl.subscribe(e=>{this.ddlStmts=e}),this.sidenav.setMiddleColumnComponent.subscribe(e=>{this.isMiddleColumnCollapse=!e}),this.data.autoGenMap&&(this.autoGenMapObj=this.data.autoGenMap.subscribe(e=>{this.autoGenMap=e})),this.data.treeUpdate&&(this.rerenderObj=this.data.treeUpdate.subscribe(()=>{this.reRenderObjectExplorerSpanner()})),this.convObj=this.data.conv.subscribe(e=>{Object.keys(e.SrcSchema).length<=0&&this.router.navigate(["/"]);const i=this.isIndexAddedOrRemoved(e);e&&this.conv&&Object.keys(e?.SpSchema).length!=Object.keys(this.conv?.SpSchema).length&&(this.conv=e,this.reRenderObjectExplorerSpanner(),this.reRenderObjectExplorerSrc()),this.conv=e,this.conv.DatabaseType&&(this.srcDbName=ad(this.conv.DatabaseType)),i&&this.conversionRates&&this.reRenderObjectExplorerSpanner(),!this.objectExplorerInitiallyRender&&this.conversionRates&&(this.reRenderObjectExplorerSpanner(),this.reRenderObjectExplorerSrc(),this.objectExplorerInitiallyRender=!0),this.currentObject&&this.currentObject.type===jt.Table&&(this.fkData=this.currentObject?this.conversion.getFkMapping(this.currentObject.id,e):[],this.tableData=this.currentObject?this.conversion.getColumnMapping(this.currentObject.id,e):[]),this.currentObject&&this.currentObject?.type===jt.Index&&!i&&(this.indexData=this.conversion.getIndexMapping(this.currentObject.parentId,this.conv,this.currentObject.id)),this.dialect="postgresql"===this.conv.SpDialect?"PostgreSQL":"Google Standard SQL"}),this.converObj=this.data.conversionRate.subscribe(e=>{this.conversionRates=e,this.updateConversionRatePercentages(),this.conv?(this.reRenderObjectExplorerSpanner(),this.reRenderObjectExplorerSrc(),this.objectExplorerInitiallyRender=!0):this.objectExplorerInitiallyRender=!1}),this.data.isOffline.subscribe({next:e=>{this.isOfflineStatus=e}})}ngOnDestroy(){this.typemapObj.unsubscribe(),this.convObj.unsubscribe(),this.ddlObj.unsubscribe(),this.ddlsumconvObj.unsubscribe(),this.autoGenMapObj&&this.autoGenMapObj.unsubscribe(),this.rerenderObj&&this.rerenderObj.unsubscribe()}updateConversionRatePercentages(){let e=Object.keys(this.conversionRates).length;this.conversionRateCount={good:0,ok:0,bad:0},this.conversionRatePercentages={good:0,ok:0,bad:0};for(const i in this.conversionRates)"NONE"===this.conversionRates[i]||"EXCELLENT"===this.conversionRates[i]?this.conversionRateCount.good+=1:"GOOD"===this.conversionRates[i]||"OK"===this.conversionRates[i]?this.conversionRateCount.ok+=1:this.conversionRateCount.bad+=1;if(e>0)for(let i in this.conversionRatePercentages)this.conversionRatePercentages[i]=Number((this.conversionRateCount[i]/e*100).toFixed(2))}reRenderObjectExplorerSpanner(){this.spannerTree=this.conversion.createTreeNode(this.conv,this.conversionRates)}reRenderObjectExplorerSrc(){this.srcTree=this.conversion.createTreeNodeForSource(this.conv,this.conversionRates)}changeCurrentObject(e){e.type===jt.Table?(this.currentObject=e,this.tableData=this.conversion.getColumnMapping(this.currentObject.id,this.conv),this.fkData=[],this.fkData=this.conversion.getFkMapping(this.currentObject.id,this.conv)):e.type===jt.Index?(this.currentObject=e,this.indexData=this.conversion.getIndexMapping(e.parentId,this.conv,e.id)):e.type===jt.Sequence?(this.currentObject=e,this.sequenceData=this.conversion.getSequenceMapping(e.id,this.conv)):this.currentObject=null}changeCurrentDatabase(e){this.currentDatabase=e}updateIssuesLabel(e){setTimeout(()=>{this.issuesAndSuggestionsLabel=`ISSUES AND SUGGESTIONS (${e})`})}updateRulesLabel(e){setTimeout(()=>{this.rulesLabel=`RULES (${e})`})}leftColumnToggle(){this.isLeftColumnCollapse=!this.isLeftColumnCollapse}middleColumnToggle(){this.isMiddleColumnCollapse=!this.isMiddleColumnCollapse}rightColumnToggle(){this.isRightColumnCollapse=!this.isRightColumnCollapse}openAssessment(){this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("assessment");let e="";if(localStorage.getItem(Wi.Type)==Jn.DirectConnect){let r=JSON.parse(localStorage.getItem(Wi.Config));e=r?.hostName+" : "+r?.port}else e=this.conv.DatabaseName;this.clickEvent.setViewAssesmentData({srcDbType:this.srcDbName,connectionDetail:e,conversionRates:this.conversionRateCount})}openSaveSessionSidenav(){this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("saveSession"),this.sidenav.setSidenavDatabaseName(this.conv.DatabaseName)}downloadSession(){TN(this.conv)}downloadArtifacts(){let e=new RN,i=`${this.conv.DatabaseName}`;this.fetch.getDStructuredReport().subscribe({next:o=>{let r=JSON.stringify(o).replace(/9223372036854776000/g,"9223372036854775807");e.file(i+"_migration_structuredReport.json",r),this.fetch.getDTextReport().subscribe({next:s=>{e.file(i+"_migration_textReport.txt",s),this.fetch.getDSpannerDDL().subscribe({next:c=>{e.file(i+"_spannerDDL.txt",c);let u=JSON.stringify(this.conv).replace(/9223372036854776000/g,"9223372036854775807");e.file(`${this.conv.SessionName}_${this.conv.DatabaseType}_${i}.json`,u),e.generateAsync({type:"blob"}).then(g=>{var b=document.createElement("a");b.href=URL.createObjectURL(g),b.download=`${i}_artifacts`,b.click()})}})}})}})}downloadStructuredReport(){var e=document.createElement("a");this.fetch.getDStructuredReport().subscribe({next:i=>{let o=JSON.stringify(i).replace(/9223372036854776000/g,"9223372036854775807");e.href="data:text/json;charset=utf-8,"+encodeURIComponent(o),e.download=`${this.conv.DatabaseName}_migration_structuredReport.json`,e.click()}})}downloadTextReport(){var e=document.createElement("a");this.fetch.getDTextReport().subscribe({next:i=>{e.href="data:text;charset=utf-8,"+encodeURIComponent(i),e.download=`${this.conv.DatabaseName}_migration_textReport.txt`,e.click()}})}downloadDDL(){var e=document.createElement("a");this.fetch.getDSpannerDDL().subscribe({next:i=>{e.href="data:text;charset=utf-8,"+encodeURIComponent(i),e.download=`${this.conv.DatabaseName}_spannerDDL.txt`,e.click()}})}updateSpannerTable(e){this.spannerTree=this.conversion.createTreeNode(this.conv,this.conversionRates,e.text,e.order)}updateSrcTable(e){this.srcTree=this.conversion.createTreeNodeForSource(this.conv,this.conversionRates,e.text,e.order)}isIndexAddedOrRemoved(e){if(this.conv){let i=0,o=0;return Object.entries(this.conv.SpSchema).forEach(r=>{i+=r[1].Indexes?r[1].Indexes.length:0}),Object.entries(e.SpSchema).forEach(r=>{o+=r[1].Indexes?r[1].Indexes.length:0}),i!==o}return!1}prepareMigration(){this.fetch.getTableWithErrors().subscribe({next:e=>{if(null!=e&&0!=e.length){let i="Please fix the errors for the following tables to move ahead: "+e.map(o=>o.Name).join(", ");this.dialog.open(Uo,{data:{message:i,type:"error",title:"Error in Spanner Draft"},maxWidth:"500px"})}else this.isOfflineStatus?this.dialog.open(Uo,{data:{message:"Please configure spanner project id and instance id to proceed",type:"error",title:"Configure Spanner"},maxWidth:"500px"}):0==Object.keys(this.conv.SpSchema).length?this.dialog.open(Uo,{data:{message:"Please restore some table(s) to proceed with the migration",type:"error",title:"All tables skipped"},maxWidth:"500px"}):this.router.navigate(["/prepare-migration"])}})}spannerTab(){this.clickEvent.setTabToSpanner()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Hi),_(pc),_(Hr),_(eo),_(Rn),_(or),_(En))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-workspace"]],decls:57,vars:61,consts:[[1,"header"],[1,"breadcrumb","vertical-center"],["mat-button","",1,"breadcrumb_source",3,"routerLink"],["mat-button","",1,"breadcrumb_workspace",3,"routerLink"],[1,"header_action"],["matTooltip","Connect to a spanner instance to run migration",3,"matTooltipDisabled"],["mat-button","",3,"click"],["mat-button","",3,"click",4,"ngIf"],[1,"artifactsButtons"],["mat-raised-button","","color","primary",1,"split-button-left",3,"click"],["mat-raised-button","","color","primary",1,"split-button-right",3,"matMenuTriggerFor"],["aria-hidden","false","aria-label","More options"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"click"],[1,"container"],[1,"summary"],[1,"spanner-tab-link",3,"click"],[1,"columns"],[1,"column-left",3,"ngClass"],[3,"spannerTree","srcTree","srcDbName","selectedDatabase","selectObject","updateSpannerTable","updateSrcTable","leftCollaspe","middleCollapse"],[1,"column-middle",3,"ngClass"],[3,"currentObject","tableData","indexData","sequenceData","typeMap","autoGenMap","ddlStmts","fkData","currentDatabase","defaultTypeMap","updateSidebar"],[1,"column-right",3,"ngClass"],[3,"ngClass","label"],[3,"currentObject","changeIssuesLabel"],[3,"currentObject","lengthOfRules"],["id","right-column-toggle-button",3,"click"],[3,"ngClass"]],template:function(i,o){if(1&i&&(d(0,"div")(1,"div",0)(2,"div",1)(3,"a",2),h(4,"Select Source"),l(),d(5,"span"),h(6,">"),l(),d(7,"a",3)(8,"b"),h(9),l()()(),d(10,"div",4)(11,"span",5)(12,"button",6),A("click",function(){return o.prepareMigration()}),h(13," PREPARE MIGRATION "),l()(),d(14,"button",6),A("click",function(){return o.openAssessment()}),h(15,"VIEW ASSESSMENT"),l(),y(16,Wue,2,0,"button",7),d(17,"span",8)(18,"button",9),A("click",function(){return o.downloadArtifacts()}),h(19," DOWNLOAD ARTIFACTS "),l(),d(20,"button",10)(21,"mat-icon",11),h(22,"expand_more"),l()(),d(23,"mat-menu",12,13)(25,"button",14),A("click",function(){return o.downloadTextReport()}),h(26,"Download Text Report"),l(),d(27,"button",14),A("click",function(){return o.downloadStructuredReport()}),h(28,"Download Structured Report"),l(),d(29,"button",14),A("click",function(){return o.downloadSession()}),h(30,"Download Session File"),l(),d(31,"button",14),A("click",function(){return o.downloadDDL()}),h(32,"Download Spanner DDL"),l()()()()(),d(33,"div",15)(34,"div",16),h(35),D(36,"br"),h(37," To make schema changes go to "),d(38,"a",17),A("click",function(){return o.spannerTab()}),h(39,"Spanner Draft"),l(),h(40," pane. "),l()(),d(41,"div",18)(42,"div",19)(43,"app-object-explorer",20),A("selectedDatabase",function(a){return o.changeCurrentDatabase(a)})("selectObject",function(a){return o.changeCurrentObject(a)})("updateSpannerTable",function(a){return o.updateSpannerTable(a)})("updateSrcTable",function(a){return o.updateSrcTable(a)})("leftCollaspe",function(){return o.leftColumnToggle()})("middleCollapse",function(){return o.middleColumnToggle()}),l()(),d(44,"div",21)(45,"app-object-detail",22),A("updateSidebar",function(){return o.reRenderObjectExplorerSpanner()}),l()(),d(46,"div",23)(47,"mat-tab-group")(48,"mat-tab",24)(49,"app-summary",25),A("changeIssuesLabel",function(a){return o.updateIssuesLabel(a)}),l()(),d(50,"mat-tab",24)(51,"app-rule",26),A("lengthOfRules",function(a){return o.updateRulesLabel(a)}),l()()(),d(52,"button",27),A("click",function(){return o.rightColumnToggle()}),d(53,"mat-icon",28),h(54,"first_page"),l(),d(55,"mat-icon",28),h(56,"last_page"),l()()()()()),2&i){const r=Ft(24);m(3),f("routerLink","/"),m(4),f("routerLink","/workspace"),m(2),xe("Configure Schema (",o.dialect," Dialect)"),m(2),f("matTooltipDisabled",!o.isOfflineStatus),m(5),f("ngIf",!o.isOfflineStatus),m(4),f("matMenuTriggerFor",r),m(15),wv(" Estimation for ",o.srcDbName.toUpperCase()," to Spanner conversion: ",o.conversionRatePercentages.good,"% of tables can be converted automatically, ",o.conversionRatePercentages.ok,"% requires minimal conversion changes and ",o.conversionRatePercentages.bad,"% requires high complexity conversion changes. "),m(7),f("ngClass",hi(34,Dh,o.isLeftColumnCollapse?"left-column-collapse":"left-column-expand")),m(),f("spannerTree",o.spannerTree)("srcTree",o.srcTree)("srcDbName",o.srcDbName),m(),f("ngClass",function UM(t,n,e,i,o,r,a,s){const c=no()+t,u=be(),p=Wo(u,c,e,i,o,r);return tn(u,c+4,a)||p?Nr(u,c+5,s?n.call(s,e,i,o,r,a):n(e,i,o,r,a)):Xd(u,c+5)}(36,Kue,o.isLeftColumnCollapse,!o.isLeftColumnCollapse,!o.isMiddleColumnCollapse,o.isRightColumnCollapse,!o.isRightColumnCollapse)),m(),f("currentObject",o.currentObject)("tableData",o.tableData)("indexData",o.indexData)("sequenceData",o.sequenceData)("typeMap",o.typeMap)("autoGenMap",o.autoGenMap)("ddlStmts",o.ddlStmts)("fkData",o.fkData)("currentDatabase",o.currentDatabase)("defaultTypeMap",o.defaultTypeMap),m(),f("ngClass",function $M(t,n,e,i,o,r,a,s,c){const u=no()+t,p=be(),g=Wo(p,u,e,i,o,r);return js(p,u+4,a,s)||g?Nr(p,u+6,c?n.call(c,e,i,o,r,a,s):n(e,i,o,r,a,s)):Xd(p,u+6)}(42,Zue,!o.isRightColumnCollapse&&!o.isLeftColumnCollapse,!o.isRightColumnCollapse&&o.isLeftColumnCollapse,o.isRightColumnCollapse,!o.isMiddleColumnCollapse,o.isMiddleColumnCollapse,!o.isMiddleColumnCollapse)),m(2),f("ngClass",hi(51,jN,hi(49,Dh,o.updateIssuesLabel)))("label",o.issuesAndSuggestionsLabel),m(),f("currentObject",o.currentObject),m(),f("ngClass",hi(55,jN,hi(53,Dh,o.updateRulesLabel)))("label",o.rulesLabel),m(),f("currentObject",o.currentObject),m(2),f("ngClass",hi(57,Dh,o.isRightColumnCollapse?"display":"hidden")),m(2),f("ngClass",hi(59,Dh,o.isRightColumnCollapse?"hidden":"display"))}},dependencies:[yr,It,qr,zE,Yt,Mi,jl,wa,zl,eg,BC,vn,Bre,Pae,Due,que],styles:["app-object-detail[_ngcontent-%COMP%]{height:100%}.vertical-center[_ngcontent-%COMP%]{display:flex;align-items:center}.columns[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%;border-top:1px solid #d3d3d3;border-bottom:1px solid #d3d3d3;height:calc(100vh - 222px)}.artifactsButtons[_ngcontent-%COMP%]{white-space:nowrap}.container[_ngcontent-%COMP%]{padding:7px 20px;margin-bottom:20px}.container[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%]{font-weight:lighter}.container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 5px}.column-left[_ngcontent-%COMP%]{overflow:auto}.column-middle[_ngcontent-%COMP%]{width:48%;border-left:1px solid #d3d3d3;border-right:1px solid #d3d3d3;overflow:auto}.column-right[_ngcontent-%COMP%]{width:26%;position:relative;overflow:auto}.left-column-collapse[_ngcontent-%COMP%]{width:3%}.left-column-expand[_ngcontent-%COMP%]{width:26%}.middle-column-collapse[_ngcontent-%COMP%]{width:48%}.middle-column-expand[_ngcontent-%COMP%]{width:71%}.right-column-half-expand[_ngcontent-%COMP%]{width:80%}.right-column-collapse[_ngcontent-%COMP%]{width:26%}.right-column-full-expand[_ngcontent-%COMP%]{width:97%}.middle-column-hide[_ngcontent-%COMP%]{width:0%}.middle-column-full[_ngcontent-%COMP%]{width:100%}#right-column-toggle-button[_ngcontent-%COMP%]{border:none;background-color:inherit;position:absolute;top:10px;right:7px;z-index:100}#right-column-toggle-button[_ngcontent-%COMP%]:hover{cursor:pointer} .column-right .mat-mdc-tab-label .mat-mdc-tab-label-content{font-size:.8rem} .column-right .mat-mdc-tab-label{min-width:25px!important;padding:10px} .column-right .mat-mdc-tab-label.mat-mdc-tab-label-active{min-width:25px!important;padding:7px} .column-right .mat-mdc-tab-label-container{margin-right:40px} .column-right .mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-label-container{margin-right:0} .column-right .mat-mdc-tab-header-pagination-after{margin-right:40px}.split-button-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:none;padding-right:1px}.split-button-right[_ngcontent-%COMP%]{box-shadow:none;width:30px!important;min-width:unset!important;padding:0 2px;border-top-left-radius:0;border-bottom-left-radius:0;margin-right:7px}"]})}return t})(),Que=(()=>{class t{constructor(e,i,o){this.formBuilder=e,this.dialogRef=i,this.data=o,this.region="",this.spannerInstance="",this.dialect="",this.region=o.Region,this.spannerInstance=o.Instance,this.dialect=o.Dialect,this.targetDetailsForm=this.formBuilder.group({targetDb:["",[ee.required,ee.pattern("^[a-z][a-z0-9-_]{0,28}[a-z0-9]$")]]}),this.targetDetailsForm.setValue({targetDb:localStorage.getItem(yt.TargetDB)})}ngOnInit(){}updateTargetDetails(){let e=this.targetDetailsForm.value;localStorage.setItem(yt.TargetDB,e.targetDb),localStorage.setItem(yt.Dialect,e.dialect),localStorage.setItem(he.IsTargetDetailSet,"true"),this.dialogRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Dr),_(bn),_(mo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-target-details-form"]],decls:35,vars:5,consts:[["mat-dialog-content",""],[1,"target-detail-form",3,"formGroup"],["matTooltip","Schema & Schema and data migration: Specify new database name or existing database with empty schema. Data migration: Specify existing database with tables already created",1,"configure"],["appearance","outline",1,"full-width"],["matInput","","placeholder","Target Database","type","text","formControlName","targetDb","ng-value","targetDetails.TargetDB"],[1,"container",2,"display","inline"],["href","https://cloud.google.com/spanner/docs/reference/standard-sql/data-definition-language#naming_conventions"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Spanner Database Details"),d(4,"mat-icon",2),h(5," info"),l()(),d(6,"mat-form-field",3)(7,"mat-label"),h(8,"Spanner Database"),l(),D(9,"input",4),d(10,"mat-hint")(11,"div",5),h(12," Min. 2 characters and Max. 30 characters. "),d(13,"a",6),h(14,"More Details"),l()()()(),D(15,"br")(16,"br"),d(17,"b"),h(18,"Region:"),l(),h(19),D(20,"br")(21,"br"),d(22,"b"),h(23,"Spanner Instance:"),l(),h(24),D(25,"br")(26,"br"),d(27,"b"),h(28,"Dialect:"),l(),h(29),l(),d(30,"div",7)(31,"button",8),h(32,"Cancel"),l(),d(33,"button",9),A("click",function(){return o.updateTargetDetails()}),h(34," Save "),l()()()),2&i&&(m(),f("formGroup",o.targetDetailsForm),m(18),xe(" ",o.region," "),m(5),xe(" ",o.spannerInstance," "),m(5),xe(" ",o.dialect," "),m(4),f("disabled",!o.targetDetailsForm.valid))},dependencies:[Yt,Mi,Di,xi,sc,qi,_n,Ci,_i,Bi,wi,zi,zn,So,ko,vn],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{white-space:nowrap;overflow:auto;text-overflow:ellipsis}"]})}return t})();function Xue(t,n){if(1&t){const e=_e();d(0,"mat-radio-button",10),A("change",function(){const r=ne(e).$implicit;return oe(C().onItemChange(r.value))}),h(1),l()}if(2&t){const e=n.$implicit;f("value",e.value),m(),xe(" ",e.display,"")}}function Jue(t,n){if(1&t&&(d(0,"mat-option",14),h(1),l()),2&t){const e=n.$implicit;f("value",e.DisplayName),m(),xe(" ",e.DisplayName," ")}}function ehe(t,n){if(1&t&&(d(0,"div")(1,"mat-form-field",11)(2,"mat-label"),h(3,"Select connection profile"),l(),d(4,"mat-select",12),y(5,Jue,2,2,"mat-option",13),l()()()),2&t){const e=C();m(5),f("ngForOf",e.profileList)}}function the(t,n){1&t&&(d(0,"div")(1,"mat-form-field",15)(2,"mat-label"),h(3,"Connection profile name"),l(),D(4,"input",16),l()())}function ihe(t,n){1&t&&(d(0,"div")(1,"mat-form-field",11)(2,"mat-label"),h(3,"Replication slot"),l(),D(4,"input",17),l(),D(5,"br"),d(6,"mat-form-field",11)(7,"mat-label"),h(8,"Publication name"),l(),D(9,"input",18),l()())}function nhe(t,n){if(1&t&&(d(0,"li",24)(1,"span",25),h(2),l(),d(3,"span")(4,"mat-icon",26),h(5,"file_copy"),l()()()),2&t){const e=n.$implicit;m(2),Pe(e),m(2),f("cdkCopyToClipboard",e)}}function ohe(t,n){if(1&t&&(d(0,"div",27)(1,"span",25),h(2,"Test connection failed"),l(),d(3,"mat-icon",28),h(4," error "),l()()),2&t){const e=C(3);m(3),f("matTooltip",e.errorMsg)}}function rhe(t,n){1&t&&(d(0,"mat-icon",29),h(1," check_circle "),l())}function ahe(t,n){if(1&t){const e=_e();d(0,"div")(1,"div")(2,"b"),h(3,"Copy the public IPs below, and use them to configure the network firewall to accept connections from them."),l(),d(4,"a",19),h(5,"Learn More"),l()(),D(6,"br"),y(7,nhe,6,2,"li",20)(8,ohe,5,1,"div",21),D(9,"br"),d(10,"button",22),A("click",function(){return ne(e),oe(C(2).testConnection())}),h(11,"Test Connection"),l(),y(12,rhe,2,0,"mat-icon",23),l()}if(2&t){const e=C(2);m(7),f("ngForOf",e.ipList),m(),f("ngIf",!e.testSuccess&&""!=e.errorMsg),m(2),f("disabled",!e.connectionProfileForm.valid),m(2),f("ngIf",e.testSuccess)}}function she(t,n){if(1&t&&(d(0,"div"),y(1,ahe,13,4,"div",6),l()),2&t){const e=C();m(),f("ngIf",e.isSource)}}let che=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.snack=i,this.formBuilder=o,this.dialogRef=r,this.data=a,this.selectedProfile="",this.profileType="Source",this.profileList=[],this.ipList=[],this.selectedOption="new",this.profileOptions=[{value:"new",display:"Create a new connection profile"},{value:"existing",display:"Choose an existing connection profile"}],this.profileName="",this.errorMsg="",this.isSource=!1,this.sourceDatabaseType="",this.testSuccess=!1,this.testingSourceConnection=!1,this.isSource=a.IsSource,this.sourceDatabaseType=a.SourceDatabaseType,this.isSource||(this.profileType="Target"),this.connectionProfileForm=this.formBuilder.group({profileOption:["",ee.required],newProfile:["",[ee.pattern("^[a-z][a-z0-9-]{0,59}$")]],existingProfile:[],replicationSlot:[],publication:[]}),"postgres"==this.sourceDatabaseType&&this.isSource&&(this.connectionProfileForm.get("replicationSlot")?.addValidators([ee.required]),this.connectionProfileForm.controls.replicationSlot.updateValueAndValidity(),this.connectionProfileForm.get("publication")?.addValidators([ee.required]),this.connectionProfileForm.controls.publication.updateValueAndValidity()),this.getConnectionProfilesAndIps()}onItemChange(e){this.selectedOption=e,"new"==this.selectedOption?(this.connectionProfileForm.get("newProfile")?.setValidators([ee.required]),this.connectionProfileForm.controls.existingProfile.clearValidators(),this.connectionProfileForm.controls.newProfile.updateValueAndValidity(),this.connectionProfileForm.controls.existingProfile.updateValueAndValidity()):(this.connectionProfileForm.controls.newProfile.clearValidators(),this.connectionProfileForm.get("existingProfile")?.addValidators([ee.required]),this.connectionProfileForm.controls.newProfile.updateValueAndValidity(),this.connectionProfileForm.controls.existingProfile.updateValueAndValidity())}testConnection(){this.testingSourceConnection=!0,this.fetch.createConnectionProfile({Id:this.connectionProfileForm.value.newProfile,IsSource:this.isSource,ValidateOnly:!0}).subscribe({next:()=>{this.testingSourceConnection=!1,this.testSuccess=!0},error:o=>{this.testingSourceConnection=!1,this.testSuccess=!1,this.errorMsg=o.error}})}createConnectionProfile(){let e=this.connectionProfileForm.value;this.isSource&&(localStorage.setItem(yt.ReplicationSlot,e.replicationSlot),localStorage.setItem(yt.Publication,e.publication)),"new"===this.selectedOption?this.fetch.createConnectionProfile({Id:e.newProfile,IsSource:this.isSource,ValidateOnly:!1}).subscribe({next:()=>{this.isSource?(localStorage.setItem(he.IsSourceConnectionProfileSet,"true"),localStorage.setItem(yt.SourceConnProfile,e.newProfile)):(localStorage.setItem(he.IsTargetConnectionProfileSet,"true"),localStorage.setItem(yt.TargetConnProfile,e.newProfile)),this.dialogRef.close()},error:o=>{this.snack.openSnackBar(o.error,"Close"),this.dialogRef.close()}}):(this.isSource?(localStorage.setItem(he.IsSourceConnectionProfileSet,"true"),localStorage.setItem(yt.SourceConnProfile,e.existingProfile)):(localStorage.setItem(he.IsTargetConnectionProfileSet,"true"),localStorage.setItem(yt.TargetConnProfile,e.existingProfile)),this.dialogRef.close())}ngOnInit(){}getConnectionProfilesAndIps(){this.fetch.getConnectionProfiles(this.isSource).subscribe({next:e=>{this.profileList=e},error:e=>{this.snack.openSnackBar(e.error,"Close")}}),this.isSource&&this.fetch.getStaticIps().subscribe({next:e=>{this.ipList=e},error:e=>{this.snack.openSnackBar(e.error,"Close")}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(En),_(nr),_(Dr),_(bn),_(mo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-connection-profile-form"]],decls:19,vars:9,consts:[["mat-dialog-content",""],[1,"conn-profile-form",3,"formGroup"],[1,"mat-h3","header-title"],[1,"radio-button-container"],["formControlName","profileOption",3,"ngModel","ngModelChange"],[3,"value","change",4,"ngFor","ngForOf"],[4,"ngIf"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[3,"value","change"],["appearance","outline"],["formControlName","existingProfile","required","true","ng-value","selectedProfile",1,"input-field"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["appearance","outline","hintLabel","Name can include lower case letters, numbers and hyphens. Must start with a letter.",1,"new-connection-profile-input"],["matInput","","placeholder","Connection profile name","type","text","formControlName","newProfile","required","true"],["matInput","","placeholder","Replication slot","type","text","formControlName","replicationSlot","required","true"],["matInput","","placeholder","Publication name","type","text","formControlName","publication","required","true"],["href","https://cloud.google.com/datastream/docs/network-connectivity-options#ipallowlists"],["class","connection-form-container",4,"ngFor","ngForOf"],["class","failure",4,"ngIf"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"],["class","success","matTooltip","Test connection successful","matTooltipPosition","above",4,"ngIf"],[1,"connection-form-container"],[1,"left-text"],["matTooltip","Copy",1,"icon","copy",3,"cdkCopyToClipboard"],[1,"failure"],["matTooltipPosition","above",1,"icon","error",3,"matTooltip"],["matTooltip","Test connection successful","matTooltipPosition","above",1,"success"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"span",2),h(3),l(),D(4,"br"),d(5,"div",3)(6,"mat-radio-group",4),un("ngModelChange",function(a){return kn(o.selectedOption,a)||(o.selectedOption=a),a}),y(7,Xue,2,2,"mat-radio-button",5),l()(),D(8,"br"),y(9,ehe,6,1,"div",6)(10,the,5,0,"div",6),D(11,"br"),y(12,ihe,10,0,"div",6)(13,she,2,1,"div",6),d(14,"div",7)(15,"button",8),h(16,"Cancel"),l(),d(17,"button",9),A("click",function(){return o.createConnectionProfile()}),h(18," Save "),l()()()()),2&i&&(m(),f("formGroup",o.connectionProfileForm),m(2),xe("",o.profileType," Connection Profile"),m(3),dn("ngModel",o.selectedOption),m(),f("ngForOf",o.profileOptions),m(2),f("ngIf","existing"===o.selectedOption),m(),f("ngIf","new"===o.selectedOption),m(2),f("ngIf",o.isSource&&"postgres"==o.sourceDatabaseType),m(),f("ngIf","new"===o.selectedOption),m(4),f("disabled",!o.connectionProfileForm.valid||!o.testSuccess&&"new"===o.selectedOption&&o.isSource))},dependencies:[rn,It,Yt,Mi,Di,xi,qi,Xn,Tn,_n,Ci,_i,Bi,Do,wi,zi,zn,So,ko,vn,cg,lg,KC],styles:[".icon[_ngcontent-%COMP%]{font-size:15px}.connection-form-container[_ngcontent-%COMP%]{display:block}.left-text[_ngcontent-%COMP%]{width:40%;display:inline-block}"]})}return t})();function lhe(t,n){if(1&t){const e=_e();d(0,"mat-radio-button",6),A("change",function(){const r=ne(e).$implicit;return oe(C().onItemChange(r.value))}),h(1),l()}if(2&t){const e=n.$implicit;f("value",e.value),m(),xe(" ",e.display,"")}}function dhe(t,n){1&t&&D(0,"mat-spinner",19),2&t&&f("diameter",25)}function uhe(t,n){1&t&&(d(0,"mat-icon",20),h(1,"check_circle"),l())}function hhe(t,n){1&t&&(d(0,"mat-icon",21),h(1,"cancel"),l())}function mhe(t,n){if(1&t&&(d(0,"div",22)(1,"span",23),h(2,"Source database connection failed"),l(),d(3,"mat-icon",24),h(4," error "),l()()),2&t){const e=C(2);m(3),f("matTooltip",e.errorMsg)}}function phe(t,n){if(1&t){const e=_e();d(0,"div")(1,"form",7),A("ngSubmit",function(){return ne(e),oe(C().setSourceDBDetailsForDump())}),d(2,"h4",8),h(3,"Load from database dump"),l(),h(4," Dump File "),d(5,"mat-form-field",9)(6,"mat-label"),h(7,"File path"),l(),d(8,"input",10),A("click",function(){return ne(e),oe(Ft(13).click())}),l(),y(9,dhe,1,1,"mat-spinner",11)(10,uhe,2,0,"mat-icon",12)(11,hhe,2,0,"mat-icon",13),l(),d(12,"input",14,15),A("change",function(o){return ne(e),oe(C().handleFileInput(o))}),l(),D(14,"br"),d(15,"button",16),h(16,"CANCEL"),l(),d(17,"button",17),h(18," SAVE "),l(),y(19,mhe,5,1,"div",18),l()()}if(2&t){const e=C();m(),f("formGroup",e.dumpFileForm),m(8),f("ngIf",e.uploadStart&&!e.uploadSuccess&&!e.uploadFail),m(),f("ngIf",e.uploadStart&&e.uploadSuccess),m(),f("ngIf",e.uploadStart&&e.uploadFail),m(6),f("disabled",!e.dumpFileForm.valid||!e.uploadSuccess),m(2),f("ngIf",""!=e.errorMsg)}}function fhe(t,n){if(1&t&&(d(0,"div",22)(1,"span",23),h(2,"Source database connection failed"),l(),d(3,"mat-icon",24),h(4," error "),l()()),2&t){const e=C(2);m(3),f("matTooltip",e.errorMsg)}}function ghe(t,n){if(1&t){const e=_e();d(0,"div")(1,"form",7),A("ngSubmit",function(){return ne(e),oe(C().setSourceDBDetailsForDirectConnect())}),d(2,"h4",8),h(3,"Connect to Source Database"),l(),h(4," Connection Detail "),d(5,"mat-form-field",25)(6,"mat-label"),h(7,"Hostname"),l(),D(8,"input",26),l(),d(9,"mat-form-field",25)(10,"mat-label"),h(11,"Port"),l(),D(12,"input",27),d(13,"mat-error"),h(14," Only numbers are allowed. "),l()(),D(15,"br"),d(16,"mat-form-field",25)(17,"mat-label"),h(18,"User name"),l(),D(19,"input",28),l(),d(20,"mat-form-field",25)(21,"mat-label"),h(22,"Password"),l(),D(23,"input",29),l(),D(24,"br"),d(25,"mat-form-field",25)(26,"mat-label"),h(27,"Database Name"),l(),D(28,"input",30),l(),D(29,"br"),d(30,"button",16),h(31,"CANCEL"),l(),d(32,"button",17),h(33," SAVE "),l(),y(34,fhe,5,1,"div",18),l()()}if(2&t){const e=C();m(),f("formGroup",e.directConnectForm),m(31),f("disabled",!e.directConnectForm.valid),m(2),f("ngIf",""!=e.errorMsg)}}let _he=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.dataService=i,this.snack=o,this.dialogRef=r,this.data=a,this.inputOptions=[{value:Jn.DumpFile,display:"Connect via dump file"},{value:Jn.DirectConnect,display:"Connect via direct connection"}],this.selectedOption=Jn.DirectConnect,this.sourceDatabaseEngine="",this.errorMsg="",this.fileToUpload=null,this.uploadStart=!1,this.uploadSuccess=!1,this.uploadFail=!1,this.dumpFileForm=new ti({filePath:new U("",[ee.required])}),this.directConnectForm=new ti({hostName:new U("",[ee.required]),port:new U("",[ee.required]),userName:new U("",[ee.required]),dbName:new U("",[ee.required]),password:new U("")}),this.sourceDatabaseEngine=a}ngOnInit(){}setSourceDBDetailsForDump(){const{filePath:e}=this.dumpFileForm.value;this.fetch.setSourceDBDetailsForDump({Driver:this.sourceDatabaseEngine,Path:e}).subscribe({next:()=>{localStorage.setItem(he.IsSourceDetailsSet,"true"),this.dialogRef.close()},error:o=>{this.errorMsg=o.error}})}setSourceDBDetailsForDirectConnect(){const{hostName:e,port:i,userName:o,password:r,dbName:a}=this.directConnectForm.value;this.fetch.setSourceDBDetailsForDirectConnect({dbEngine:this.sourceDatabaseEngine,isSharded:!1,hostName:e,port:i,userName:o,password:r,dbName:a}).subscribe({next:()=>{localStorage.setItem(he.IsSourceDetailsSet,"true"),this.dialogRef.close()},error:c=>{this.errorMsg=c.error}})}handleFileInput(e){let i=e.target.files;i&&(this.fileToUpload=i.item(0),this.dumpFileForm.patchValue({filePath:this.fileToUpload?.name}),this.fileToUpload&&this.uploadFile())}uploadFile(){if(this.fileToUpload){this.uploadStart=!0,this.uploadFail=!1,this.uploadSuccess=!1;const e=new FormData;e.append("myFile",this.fileToUpload,this.fileToUpload?.name),this.dataService.uploadFile(e).subscribe(i=>{""==i?this.uploadSuccess=!0:this.uploadFail=!0})}}onItemChange(e){this.selectedOption=e,this.errorMsg=""}static#e=this.\u0275fac=function(i){return new(i||t)(_(En),_(Hi),_(nr),_(bn),_(mo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-source-details-form"]],decls:7,vars:4,consts:[[1,"radio-button-container"],[1,"radio-button-group",3,"ngModel","ngModelChange"],[3,"value","change",4,"ngFor","ngForOf"],[1,"connect-load-database-container"],[1,"form-container"],[4,"ngIf"],[3,"value","change"],[3,"formGroup","ngSubmit"],[1,"primary-header"],["appearance","outline"],["matInput","","placeholder","File path","name","filePath","type","text","formControlName","filePath","readonly","",3,"click"],["matSuffix","",3,"diameter",4,"ngIf"],["matSuffix","","class","success",4,"ngIf"],["matSuffix","","class","danger",4,"ngIf"],["hidden","","type","file",3,"change"],["file",""],["mat-button","","color","primary","mat-dialog-close",""],["mat-raised-button","","type","submit","color","primary",3,"disabled"],["class","failure",4,"ngIf"],["matSuffix","",3,"diameter"],["matSuffix","",1,"success"],["matSuffix","",1,"danger"],[1,"failure"],[1,"left-text"],["matTooltipPosition","above",1,"icon","error",3,"matTooltip"],["appearance","outline",1,"full-width"],["matInput","","placeholder","127.0.0.1","name","hostName","type","text","formControlName","hostName"],["matInput","","placeholder","3306","name","port","type","text","formControlName","port"],["matInput","","placeholder","root","name","userName","type","text","formControlName","userName"],["matInput","","name","password","type","password","formControlName","password"],["matInput","","name","dbname","type","text","formControlName","dbName"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-radio-group",1),un("ngModelChange",function(a){return kn(o.selectedOption,a)||(o.selectedOption=a),a}),y(2,lhe,2,2,"mat-radio-button",2),l()(),d(3,"div",3)(4,"div",4),y(5,phe,20,6,"div",5)(6,ghe,35,3,"div",5),l()()),2&i&&(m(),dn("ngModel",o.selectedOption),m(),f("ngForOf",o.inputOptions),m(3),f("ngIf","dumpFile"===o.selectedOption),m(),f("ngIf","directConnect"===o.selectedOption))},dependencies:[rn,It,Yt,Mi,Di,xi,iC,nC,qi,_n,Ci,_i,Bi,wi,zi,zn,vn,Nl,cg,lg,sd]})}return t})();function bhe(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",7),D(3,"mat-spinner",8),l(),d(4,"span",9),h(5,"Cleaning up resources"),l(),D(6,"br"),l()),2&t&&(m(3),f("diameter",20))}let vhe=(()=>{class t{constructor(e,i,o,r){this.data=e,this.fetch=i,this.snack=o,this.dialogRef=r,this.sourceAndTargetDetails={SpannerDatabaseName:"",SpannerDatabaseUrl:"",SourceDatabaseName:"",SourceDatabaseType:""},this.cleaningUp=!1,this.sourceAndTargetDetails={SourceDatabaseName:e.SourceDatabaseName,SourceDatabaseType:e.SourceDatabaseType,SpannerDatabaseName:e.SpannerDatabaseName,SpannerDatabaseUrl:e.SpannerDatabaseUrl}}ngOnInit(){}cleanUpJobs(){this.cleaningUp=!0,this.fetch.cleanUpStreamingJobs().subscribe({next:()=>{this.cleaningUp=!1,this.snack.openSnackBar("Dataflow and datastream jobs will be cleaned up","Close"),this.dialogRef.close()},error:e=>{this.cleaningUp=!1,this.snack.openSnackBar(e.error,"Close")}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(mo),_(En),_(nr),_(bn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-end-migration"]],decls:46,vars:7,consts:[[1,"end-migration-dialog"],["target","_blank",3,"href"],["href","https://github.com/GoogleCloudPlatform/professional-services-data-validator","target","_blank"],[4,"ngIf"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close","",3,"disabled"],["mat-raised-button","","color","primary",3,"disabled","click"],[1,"spinner"],[3,"diameter"],[1,"spinner-small-text"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h2"),h(2,"End Migration"),l(),d(3,"div")(4,"b"),h(5,"Source database:"),l(),h(6),D(7,"br"),d(8,"b"),h(9,"Spanner database:"),l(),d(10,"a",1),h(11),l()(),D(12,"br"),d(13,"div")(14,"b"),h(15,"Please follow these steps to complete the migration:"),l(),d(16,"ol")(17,"li"),h(18,"Validate that the schema has been created on Spanner as per the configuration"),l(),d(19,"li"),h(20,"Validate the data has been copied from the Source to Spanner. You can use the "),d(21,"a",2),h(22,"Data Validation Tool"),l(),h(23," to help with this process."),l(),d(24,"li"),h(25,"Stop the writes to the source database. "),d(26,"b"),h(27,"This will initiate a period of downtime."),l()(),d(28,"li"),h(29,"Wait for any incremental writes on source since the validation started on Spanner to catch up with the source. This can be done by periodically checking the Spanner Database for the most recent updates on source."),l(),d(30,"li"),h(31,"Once the Source and Spanner are in sync, start the application with Spanner as the Database."),l(),d(32,"li"),h(33,"Perform smoke tests on your application to ensure it is working properly on Spanner"),l(),d(34,"li"),h(35,"Cutover the traffic to the application with Spanner as the Database. "),d(36,"b"),h(37,"This marks the end of the period of downtime"),l()(),d(38,"li"),h(39,"Cleanup the migration jobs by clicking the button below."),l()()(),y(40,bhe,7,1,"div",3),d(41,"div",4)(42,"button",5),h(43,"Cancel"),l(),d(44,"button",6),A("click",function(){return o.cleanUpJobs()}),h(45,"Clean Up"),l()()()),2&i&&(m(6),_l(" ",o.sourceAndTargetDetails.SourceDatabaseName,"(",o.sourceAndTargetDetails.SourceDatabaseType,") "),m(4),f("href",o.sourceAndTargetDetails.SpannerDatabaseUrl,qo),m(),Pe(o.sourceAndTargetDetails.SpannerDatabaseName),m(29),f("ngIf",o.cleaningUp),m(2),f("disabled",o.cleaningUp),m(2),f("disabled",o.cleaningUp))},dependencies:[It,Yt,zn,ko,sd]})}return t})(),yhe=(()=>{class t{constructor(e,i){this.data=e,this.dialofRef=i,this.disablePresetFlags=!0,this.tunableFlagsForm=new ti({vpcHostProjectId:new U(e.GCPProjectID,ee.required),network:new U(""),subnetwork:new U(""),maxWorkers:new U("50",[ee.required,ee.pattern("^[1-9][0-9]*$")]),numWorkers:new U("1",[ee.required,ee.pattern("^[1-9][0-9]*$")]),machineType:new U("n1-standard-2",[ee.required]),serviceAccountEmail:new U(""),additionalUserLabels:new U("",[ee.pattern('^{("([0-9a-zA-Z_-]+)":"([0-9a-zA-Z_-]+)",?)+}$')]),kmsKeyName:new U("",[ee.pattern("^projects\\/[^\\n\\r]+\\/locations\\/[^\\n\\r]+\\/keyRings\\/[^\\n\\r]+\\/cryptoKeys\\/[^\\n\\r]+$")]),customJarPath:new U("",[ee.pattern("^gs:\\/\\/[^\\n\\r]+$")]),customClassName:new U(""),customParameter:new U("")}),this.presetFlagsForm=new ti({dataflowProjectId:new U(e.GCPProjectID),dataflowLocation:new U(""),gcsTemplatePath:new U("",[ee.pattern("^gs:\\/\\/[^\\n\\r]+$")])}),this.presetFlagsForm.disable()}ngOnInit(){}updateDataflowDetails(){let e=this.tunableFlagsForm.value;localStorage.setItem("network",e.network),localStorage.setItem("subnetwork",e.subnetwork),localStorage.setItem("vpcHostProjectId",e.vpcHostProjectId),localStorage.setItem("maxWorkers",e.maxWorkers),localStorage.setItem("numWorkers",e.numWorkers),localStorage.setItem("serviceAccountEmail",e.serviceAccountEmail),localStorage.setItem("machineType",e.machineType),localStorage.setItem("additionalUserLabels",e.additionalUserLabels),localStorage.setItem("kmsKeyName",e.kmsKeyName),localStorage.setItem("dataflowProjectId",this.presetFlagsForm.value.dataflowProjectId),localStorage.setItem("dataflowLocation",this.presetFlagsForm.value.dataflowLocation),localStorage.setItem("gcsTemplatePath",this.presetFlagsForm.value.gcsTemplatePath),localStorage.setItem("isDataflowConfigSet","true"),localStorage.setItem("customClassName",e.customClassName),localStorage.setItem("customJarPath",e.customJarPath),localStorage.setItem("customParameter",e.customParameter),this.dialofRef.close()}enablePresetFlags(){this.disablePresetFlags=!1,this.presetFlagsForm.enable()}static#e=this.\u0275fac=function(i){return new(i||t)(_(mo),_(bn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-dataflow-form"]],decls:129,vars:19,consts:[["mat-dialog-content",""],[1,"dataflow-form",3,"formGroup"],["matTooltip","Edit to run custom transformations",1,"mat-row"],["appearance","outline","matTooltip","Specify the GCS path for custom jar",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Custom JAR GCS Path","type","text","formControlName","customJarPath"],["appearance","outline","matTooltip","Specify the fully classified class name",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Fully Classified Class Name","type","text","formControlName","customClassName"],["appearance","outline","matTooltip","Specify the custom parameter required by the JAR",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Custom Parameters","type","text","formControlName","customParameter"],["matTooltip","Edit to run Dataflow in a VPC",1,"mat-row"],["appearance","outline","matTooltip","Specify the host project Id of the VPC network. For shared VPC, this needs to be edited to the correct host project id.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","VPC Host ProjectID","type","text","formControlName","vpcHostProjectId"],["href","https://cloud.google.com/vpc/docs/create-modify-vpc-networks#create-auto-network","target","_blank"],["appearance","outline","matTooltip","Specify the network name for the VPC",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","VPC Network Name","type","text","formControlName","network"],["appearance","outline","matTooltip","Specify the subnetwork name for the VPC. Provide only the subnetwork name and NOT the full URL for subnetwork.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","VPC Subnetwork Name","type","text","formControlName","subnetwork"],["matTooltip","Set performance parameters of the Dataflow job(s)",1,"mat-row"],["appearance","outline","matTooltip","Set maximum workers for the dataflow job(s). Default value: 50",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","50","type","text","formControlName","maxWorkers"],["appearance","outline","matTooltip","Set initial number of workers for the dataflow job(s). Default value: 1",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","1","type","text","formControlName","numWorkers"],["appearance","outline","matTooltip","The machine type to use for the job. Default machine type: n1-standard-2.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Machine Type","type","text","formControlName","machineType"],["href","https://cloud.google.com/compute/docs/machine-resource","target","_blank"],["appearance","outline","matTooltip","Set the service account to run the dataflow job(s) as",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Service Account Email","type","text","formControlName","serviceAccountEmail"],["appearance","outline","matTooltip",'Additional user labels to be specified for the job. Enter a json of "key": "value" pairs. Example: {"name": "wrench", "mass": "1kg", "count": "3" }.',1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Additional User Labels","type","text","formControlName","additionalUserLabels"],["appearance","outline","matTooltip","Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings //cryptoKeys/. Omit this field to use Google Managed Encryption Keys.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","KMS Key Name","type","text","formControlName","kmsKeyName"],["mat-button","",1,"edit-button",3,"disabled","click"],["appearance","outline","matTooltip","Specify the project to run the dataflow job in.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Dataflow Project Id","type","text","formControlName","dataflowProjectId"],["appearance","outline","matTooltip","Specify the region to run the dataflow job in. It is recommended to keep the region same as Spanner region for performance. Example: us-central1",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Dataflow Location","type","text","formControlName","dataflowLocation"],["appearance","outline","matTooltip","Cloud Storage path to the template spec. Use this to run launch dataflow with custom templates. Example: gs://my-bucket/path/to/template",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","GCS Template Path","type","text","formControlName","gcsTemplatePath"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Tune Dataflow (Optional)"),l(),d(4,"h5"),h(5,"This form is optional and should only be edited to tune runtime environment for Dataflow."),l(),d(6,"mat-expansion-panel")(7,"mat-expansion-panel-header",2)(8,"span"),h(9,"Custom Transformations"),l()(),d(10,"div")(11,"mat-form-field",3)(12,"mat-label"),h(13,"Custom JAR GCS Path"),l(),D(14,"input",4),l(),D(15,"br"),d(16,"mat-form-field",5)(17,"mat-label"),h(18,"Custom Class Name"),l(),D(19,"input",6),l(),D(20,"br"),d(21,"mat-form-field",7)(22,"mat-label"),h(23,"Custom Parameter"),l(),D(24,"input",8),l()()(),D(25,"br"),d(26,"mat-expansion-panel")(27,"mat-expansion-panel-header",9)(28,"span"),h(29,"Networking"),l()(),d(30,"div")(31,"mat-form-field",10)(32,"mat-label"),h(33,"VPC Host ProjectID"),l(),D(34,"input",11),l(),D(35,"br"),d(36,"h5"),h(37," - Provide "),d(38,"b"),h(39,"ONLY"),l(),h(40," the VPC subnetwork if unsure about what VPC network to use. Dataflow chooses the network for you. "),D(41,"br"),h(42," - If you are using an "),d(43,"a",12),h(44,"auto mode network"),l(),h(45,", provide ONLY the network name and skip the VPC subnetwork. "),l(),d(46,"mat-form-field",13)(47,"mat-label"),h(48,"VPC Network"),l(),D(49,"input",14),l(),D(50,"br"),d(51,"mat-form-field",15)(52,"mat-label"),h(53,"VPC Subnetwork"),l(),D(54,"input",16),l()()(),D(55,"br"),d(56,"mat-expansion-panel")(57,"mat-expansion-panel-header",17)(58,"span"),h(59,"Performance"),l()(),d(60,"div")(61,"mat-form-field",18)(62,"mat-label"),h(63,"Max Workers"),l(),D(64,"input",19),l(),D(65,"br"),d(66,"mat-form-field",20)(67,"mat-label"),h(68,"Initial Number of Workers"),l(),D(69,"input",21),l(),D(70,"br"),d(71,"mat-form-field",22)(72,"mat-label"),h(73,"Machine Type"),l(),D(74,"input",23),l(),d(75,"h5"),h(76,"Find the list of all machine types "),d(77,"a",24),h(78,"here"),l(),h(79,"."),l()()(),D(80,"br"),d(81,"mat-form-field",25)(82,"mat-label"),h(83,"Service Account Email"),l(),D(84,"input",26),l(),D(85,"br"),d(86,"mat-form-field",27)(87,"mat-label"),h(88,"Additional User Labels"),l(),D(89,"input",28),l(),D(90,"br"),d(91,"mat-form-field",29)(92,"mat-label"),h(93,"KMS Key Name"),l(),D(94,"input",30),l()(),D(95,"hr"),d(96,"form",1)(97,"h2"),h(98," Preset Flags "),d(99,"span")(100,"button",31),A("click",function(){return o.enablePresetFlags()}),d(101,"mat-icon"),h(102,"edit"),l(),h(103," EDIT "),l()()(),d(104,"h5"),h(105,"These flags are set by SMT by default and "),d(106,"b"),h(107,"SHOULD NOT BE"),l(),h(108," modified unless running Dataflow in a non-standard configuration. To edit these parameters, click the edit button above."),l(),D(109,"br"),d(110,"mat-form-field",32)(111,"mat-label"),h(112,"Dataflow Project Id"),l(),D(113,"input",33),l(),D(114,"br"),d(115,"mat-form-field",34)(116,"mat-label"),h(117,"Dataflow Location"),l(),D(118,"input",35),l(),D(119,"br"),d(120,"mat-form-field",36)(121,"mat-label"),h(122,"GCS Template Path"),l(),D(123,"input",37),l()(),d(124,"div",38)(125,"button",39),h(126,"Cancel"),l(),d(127,"button",40),A("click",function(){return o.updateDataflowDetails()}),h(128," Save "),l()()()),2&i&&(m(),f("formGroup",o.tunableFlagsForm),m(10),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(10),f("matTooltipPosition","right"),m(15),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(10),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(10),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(5),f("formGroup",o.presetFlagsForm),m(4),f("disabled",!o.disablePresetFlags),m(10),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(5),f("matTooltipPosition","right"),m(7),f("disabled",o.tunableFlagsForm.invalid||o.presetFlagsForm.invalid))},dependencies:[Yt,Mi,Di,xi,qi,_n,Ci,_i,Bi,wi,zi,DC,bP,zn,So,ko,vn],styles:[".edit-button[_ngcontent-%COMP%]{color:#3367d6}"]})}return t})();function Che(t,n){1&t&&(d(0,"mat-form-field",8)(1,"mat-label"),h(2,"Max Concurrent CDC Tasks"),l(),D(3,"input",9),l()),2&t&&f("matTooltipPosition","right")}let whe=(()=>{class t{constructor(e,i){this.data=e,this.dialofRef=i,this.isCdcTuningSupported=!0,this.datastreamForm=new ti({maxConcurrentBackfillTasks:new U("50",[ee.required,ee.pattern("^[1-9][0-9]*$"),ee.min(1),ee.max(50)]),maxConcurrentCdcTasks:new U("5",[ee.required,ee.pattern("^[1-9][0-9]*$"),ee.min(1),ee.max(50)])}),this.isCdcTuningSupported=e.sourceType!=ir.Postgres.toLowerCase()}ngOnInit(){}updateDatastreamDetails(){let e=this.datastreamForm.value;localStorage.setItem("maxConcurrentBackfillTasks",e.maxConcurrentBackfillTasks),localStorage.setItem("maxConcurrentCdcTasks",e.maxConcurrentCdcTasks),localStorage.setItem("isDatastreamConfigSet","true"),this.dialofRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(mo),_(bn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-tune-datastream-form"]],decls:17,vars:4,consts:[["mat-dialog-content",""],[1,"dataflow-form",3,"formGroup"],["appearance","outline","matTooltip","Set the max number of concurrent workers for Datastream backfill. Default: 50",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Max Concurrent Backfill Tasks","type","text","formControlName","maxConcurrentBackfillTasks"],["class","full-width","appearance","outline","matTooltip","Set the max number of concurrent workers for Datastream CDC. Default: 5",3,"matTooltipPosition",4,"ngIf"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],["appearance","outline","matTooltip","Set the max number of concurrent workers for Datastream CDC. Default: 5",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Max Concurrent CDC Tasks","type","text","formControlName","maxConcurrentCdcTasks"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Tune Datastream (Optional)"),l(),d(4,"h5"),h(5,"This form is optional and should only be edited to tune runtime environment for Datastream."),l(),d(6,"mat-form-field",2)(7,"mat-label"),h(8,"Max Concurrent Backfill Tasks"),l(),D(9,"input",3),l(),D(10,"br"),y(11,Che,4,1,"mat-form-field",4),l(),d(12,"div",5)(13,"button",6),h(14,"Cancel"),l(),d(15,"button",7),A("click",function(){return o.updateDatastreamDetails()}),h(16," Save "),l()()()),2&i&&(m(),f("formGroup",o.datastreamForm),m(5),f("matTooltipPosition","right"),m(5),f("ngIf",o.isCdcTuningSupported),m(4),f("disabled",!o.datastreamForm.valid))},dependencies:[It,Yt,Di,xi,qi,_n,Ci,_i,Bi,wi,zi,zn,So,ko,vn]})}return t})();function xhe(t,n){1&t&&(d(0,"mat-form-field",7)(1,"mat-label"),h(2,"TTL in days"),l(),D(3,"input",8),l()),2&t&&f("matTooltipPosition","right")}let Dhe=(()=>{class t{constructor(e){this.dialofRef=e,this.ttlInDaysSet=!1,this.gcsForm=new ti({ttlInDays:new U("",[ee.required,ee.pattern("^([1-9][0-9]*$)"),ee.min(1),ee.max(1e8)])})}ngOnInit(){}updateGcsDetails(){this.ttlInDaysSet?(localStorage.setItem("ttlInDays",this.gcsForm.value.ttlInDays),localStorage.setItem("ttlInDaysSet","true")):(localStorage.setItem("ttlInDays","0"),localStorage.setItem("ttlInDaysSet","false")),localStorage.setItem("isGcsConfigSet","true"),this.dialofRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(bn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-tune-gcs-form"]],decls:15,vars:5,consts:[["mat-dialog-content",""],[1,"dataflow-form",3,"formGroup"],["color","primary","matTooltip","Set the TTL (in days) for GCS data written by Datastream. This sets the GCS lifecycle to delete the objects after specified number of days.",3,"matTooltipPosition","checked","change"],["class","ttl-input","appearance","outline","matTooltip","Set the TTL in days",3,"matTooltipPosition",4,"ngIf"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],["appearance","outline","matTooltip","Set the TTL in days",1,"ttl-input",3,"matTooltipPosition"],["matInput","","type","text","formControlName","ttlInDays"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Tune Google Cloud Storage (Optional)"),l(),d(4,"h5"),h(5,"This form is optional and should only be edited to tune the Cloud Storage bucket used by Datastream to store Change Records, specified by the destination connection profile"),l(),d(6,"mat-checkbox",2),A("change",function(){return o.ttlInDaysSet=!o.ttlInDaysSet}),h(7," Set TTL for data "),l(),D(8,"br"),y(9,xhe,4,1,"mat-form-field",3),l(),d(10,"div",4)(11,"button",5),h(12,"Cancel"),l(),d(13,"button",6),A("click",function(){return o.updateGcsDetails()}),h(14," Save "),l()()()),2&i&&(m(),f("formGroup",o.gcsForm),m(5),f("matTooltipPosition","right")("checked",o.ttlInDaysSet),m(3),f("ngIf",o.ttlInDaysSet),m(4),f("disabled",o.ttlInDaysSet&&o.gcsForm.invalid))},dependencies:[It,Yt,Di,xi,qi,_n,Ci,_i,Bi,wi,zi,zn,So,ko,vn,og],styles:[".ttl-input[_ngcontent-%COMP%]{padding-left:10%}"]})}return t})(),She=(()=>{class t{constructor(e,i){this.data=e,this.dialofRef=i,this.gcloudCmd=e}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(mo),_(bn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-equivalent-gcloud-command"]],decls:12,vars:2,consts:[["mat-dialog-content",""],["matTooltip","This is the gcloud command to launch the dataflow job with the same parameters. Can be used to re-run a dataflow job manually in case of failure.",1,"configure"],[1,"left-text"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","color","primary",3,"cdkCopyToClipboard"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h2"),h(2,"Equivalent gcloud command line"),d(3,"mat-icon",1),h(4," info"),l()(),d(5,"span",2),h(6),l(),d(7,"div",3)(8,"button",4),h(9,"Close"),l(),d(10,"button",5),h(11,"Copy"),l()()()),2&i&&(m(6),Pe(o.gcloudCmd),m(4),f("cdkCopyToClipboard",o.gcloudCmd))},dependencies:[Yt,Mi,zn,So,ko,vn,KC]})}return t})();function khe(t,n){if(1&t&&(d(0,"mat-option",14),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),xe(" ",e.displayName," ")}}function Mhe(t,n){1&t&&(d(0,"div",15)(1,"mat-form-field",4)(2,"mat-label"),h(3,"Paste JSON Configuration"),l(),D(4,"textarea",16,17),l()())}function The(t,n){1&t&&(d(0,"div",18)(1,"mat-form-field",19)(2,"mat-label"),h(3,"Hostname"),l(),D(4,"input",20),l(),d(5,"mat-form-field",19)(6,"mat-label"),h(7,"Port"),l(),D(8,"input",21),d(9,"mat-error"),h(10," Only numbers are allowed. "),l()(),D(11,"br"),d(12,"mat-form-field",19)(13,"mat-label"),h(14,"User name"),l(),D(15,"input",22),l(),d(16,"mat-form-field",19)(17,"mat-label"),h(18,"Password"),l(),D(19,"input",23),l(),D(20,"br"),d(21,"mat-form-field",19)(22,"mat-label"),h(23,"Database Name"),l(),D(24,"input",24),l(),D(25,"br"),d(26,"mat-form-field",19)(27,"mat-label"),h(28,"Shard ID"),l(),D(29,"input",25),l(),D(30,"br"),l())}function Ihe(t,n){if(1&t){const e=_e();d(0,"button",26),A("click",function(){return ne(e),oe(C().saveDetailsAndReset())}),h(1," ADD MORE SHARDS "),l()}2&t&&f("disabled",C().directConnectForm.invalid)}function Ehe(t,n){if(1&t&&(d(0,"div",27)(1,"span",28),h(2),l(),d(3,"mat-icon",29),h(4," error "),l()()),2&t){const e=C();m(2),Pe(e.errorMsg),m(),f("matTooltip",e.errorMsg)}}let Ohe=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.snack=i,this.dataService=o,this.dialogRef=r,this.data=a,this.errorMsg="",this.shardConnDetailsList=[],this.sourceConnDetails={dbConfigs:[],isRestoredSession:""},this.shardSessionDetails={sourceDatabaseEngine:"",isRestoredSession:""},this.inputOptionsList=[{value:"text",displayName:"Text"},{value:"form",displayName:"Form"}],this.shardSessionDetails={sourceDatabaseEngine:a.sourceDatabaseEngine,isRestoredSession:a.isRestoredSession};let s={dbEngine:"",isSharded:!1,hostName:"",port:"",userName:"",password:"",dbName:""};localStorage.getItem(Wi.Type)==Jn.DirectConnect&&null!=localStorage.getItem(Wi.Config)&&(s=JSON.parse(localStorage.getItem(Wi.Config))),this.directConnectForm=new ti({inputType:new U("form",[ee.required]),textInput:new U(""),hostName:new U(s.hostName,[ee.required]),port:new U(s.port,[ee.required]),userName:new U(s.userName,[ee.required]),dbName:new U(s.dbName,[ee.required]),password:new U(s.password),shardId:new U("",[ee.required])})}ngOnInit(){this.initFromLocalStorage()}initFromLocalStorage(){}setValidators(e){if("text"==e){for(const i in this.directConnectForm.controls)this.directConnectForm.get(i)?.clearValidators(),this.directConnectForm.get(i)?.updateValueAndValidity();this.directConnectForm.get("textInput")?.setValidators([ee.required]),this.directConnectForm.controls.textInput.updateValueAndValidity()}else this.directConnectForm.get("hostName")?.setValidators([ee.required]),this.directConnectForm.controls.hostName.updateValueAndValidity(),this.directConnectForm.get("port")?.setValidators([ee.required]),this.directConnectForm.controls.port.updateValueAndValidity(),this.directConnectForm.get("userName")?.setValidators([ee.required]),this.directConnectForm.controls.userName.updateValueAndValidity(),this.directConnectForm.get("dbName")?.setValidators([ee.required]),this.directConnectForm.controls.dbName.updateValueAndValidity(),this.directConnectForm.get("password")?.setValidators([ee.required]),this.directConnectForm.controls.password.updateValueAndValidity(),this.directConnectForm.get("shardId")?.setValidators([ee.required]),this.directConnectForm.controls.shardId.updateValueAndValidity(),this.directConnectForm.controls.textInput.clearValidators(),this.directConnectForm.controls.textInput.updateValueAndValidity()}determineFormValidity(){return this.shardConnDetailsList.length>0||!!this.directConnectForm.valid}saveDetailsAndReset(){const{hostName:e,port:i,userName:o,password:r,dbName:a,shardId:s}=this.directConnectForm.value;this.shardConnDetailsList.push({dbEngine:this.shardSessionDetails.sourceDatabaseEngine,isSharded:!1,hostName:e,port:i,userName:o,password:r,dbName:a,shardId:s}),this.directConnectForm=new ti({inputType:new U("form",ee.required),textInput:new U(""),hostName:new U(""),port:new U(""),userName:new U(""),dbName:new U(""),password:new U(""),shardId:new U("")}),this.setValidators("form"),this.snack.openSnackBar("Shard configured successfully, please configure the next","Close",5)}finalizeConnDetails(){if("form"===this.directConnectForm.value.inputType){const{hostName:i,port:o,userName:r,password:a,dbName:s,shardId:c}=this.directConnectForm.value;this.shardConnDetailsList.push({dbEngine:this.shardSessionDetails.sourceDatabaseEngine,isSharded:!1,hostName:i,port:o,userName:r,password:a,dbName:s,shardId:c}),this.sourceConnDetails.dbConfigs=this.shardConnDetailsList}else{try{this.sourceConnDetails.dbConfigs=JSON.parse(this.directConnectForm.value.textInput)}catch{throw this.errorMsg="Unable to parse JSON",new Error(this.errorMsg)}this.sourceConnDetails.dbConfigs.forEach(i=>{i.dbEngine=this.shardSessionDetails.sourceDatabaseEngine})}this.sourceConnDetails.isRestoredSession=this.shardSessionDetails.isRestoredSession,this.fetch.setShardsSourceDBDetailsForBulk(this.sourceConnDetails).subscribe({next:()=>{localStorage.setItem(he.NumberOfShards,this.sourceConnDetails.dbConfigs.length.toString()),localStorage.setItem(he.NumberOfInstances,this.sourceConnDetails.dbConfigs.length.toString()),localStorage.setItem(he.IsSourceDetailsSet,"true"),this.dialogRef.close()},error:i=>{this.errorMsg=i.error}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(En),_(nr),_(Hi),_(bn),_(mo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sharded-bulk-source-details-form"]],decls:23,vars:7,consts:[[1,"connect-load-database-container"],[1,"form-container"],[1,"shard-bulk-form",3,"formGroup"],[1,"primary-header"],["appearance","outline"],["formControlName","inputType",3,"selectionChange"],["inputType",""],[3,"value",4,"ngFor","ngForOf"],["class","textInput",4,"ngIf"],["class","formInput",4,"ngIf"],["mat-button","","color","primary","mat-dialog-close",""],["mat-raised-button","","type","submit","color","accent",3,"disabled","click",4,"ngIf"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"],["class","failure",4,"ngIf"],[3,"value"],[1,"textInput"],["name","textInput","formControlName","textInput","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","5","cdkAutosizeMaxRows","20"],["autosize","cdkTextareaAutosize"],[1,"formInput"],["appearance","outline",1,"full-width"],["matInput","","placeholder","127.0.0.1","name","hostName","type","text","formControlName","hostName"],["matInput","","placeholder","3306","name","port","type","text","formControlName","port"],["matInput","","placeholder","root","name","userName","type","text","formControlName","userName"],["matInput","","name","password","type","password","formControlName","password"],["matInput","","name","dbname","type","text","formControlName","dbName"],["matInput","","name","shardId","type","text","formControlName","shardId"],["mat-raised-button","","type","submit","color","accent",3,"disabled","click"],[1,"failure"],[1,"left-text"],["matTooltipPosition","above",1,"icon","error",3,"matTooltip"]],template:function(i,o){if(1&i){const r=_e();d(0,"div",0)(1,"div",1)(2,"form",2)(3,"h4",3),h(4,"Add Data Shard Connection Details"),l(),d(5,"b"),h(6,"Note: Please configure the schema source used for schema conversion if you want Spanner migration tool to migrate data from it as well."),l(),D(7,"br")(8,"br"),d(9,"mat-form-field",4)(10,"mat-label"),h(11,"Input Type"),l(),d(12,"mat-select",5,6),A("selectionChange",function(){ne(r);const s=Ft(13);return oe(o.setValidators(s.value))}),y(14,khe,2,2,"mat-option",7),l()(),y(15,Mhe,6,0,"div",8)(16,The,31,0,"div",9),d(17,"button",10),h(18,"CANCEL"),l(),y(19,Ihe,2,1,"button",11),d(20,"button",12),A("click",function(){return o.finalizeConnDetails()}),h(21," FINISH "),l(),y(22,Ehe,5,2,"div",13),l()()()}2&i&&(m(2),f("formGroup",o.directConnectForm),m(12),f("ngForOf",o.inputOptionsList),m(),f("ngIf","text"===o.directConnectForm.value.inputType),m(),f("ngIf","form"===o.directConnectForm.value.inputType),m(3),f("ngIf","form"===o.directConnectForm.value.inputType),m(),f("disabled",!o.determineFormValidity()),m(2),f("ngIf",""!=o.errorMsg))},dependencies:[rn,It,Yt,Mi,Di,xi,iC,qi,VA,Xn,Tn,_n,Ci,_i,Bi,wi,zi,zn,vn]})}return t})();function Ahe(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),xe(" ",e.displayName," ")}}function Phe(t,n){if(1&t&&(d(0,"div",19)(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),h(4,"Total Configured Shards"),l(),d(5,"mat-card-subtitle"),h(6),l(),d(7,"mat-card-subtitle"),h(8),l()()()()),2&t){const e=C();m(6),xe("",e.physicalShards," physical instances configured."),m(2),xe("",e.logicalShards," logical shards configured.")}}function Rhe(t,n){1&t&&(d(0,"div",20)(1,"mat-form-field",21)(2,"mat-label"),h(3,"Paste JSON Configuration"),l(),D(4,"textarea",22,23),l()())}function Nhe(t,n){if(1&t&&(d(0,"li",26)(1,"span",27),h(2),l(),d(3,"span")(4,"mat-icon",28),h(5,"file_copy"),l()()()),2&t){const e=n.$implicit;m(2),Pe(e),m(2),f("cdkCopyToClipboard",e)}}function Fhe(t,n){if(1&t&&(d(0,"div",20)(1,"div")(2,"b"),h(3,"Copy the public IPs below, and use them to configure the network firewall to accept connections from them."),l(),d(4,"a",24),h(5,"Learn More"),l()(),D(6,"br"),y(7,Nhe,6,2,"li",25),l()),2&t){const e=C();m(7),f("ngForOf",e.ipList)}}function Lhe(t,n){if(1&t&&(d(0,"div",29)(1,"span",27),h(2,"JSON Verification failed"),l(),d(3,"mat-icon",30),h(4," error "),l()()),2&t){const e=C();m(3),f("matTooltip",e.errorVerMsg)}}function Bhe(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",31),D(3,"mat-spinner",32),l(),d(4,"span",33),h(5,"Validating Resources"),l(),D(6,"br"),l()),2&t&&(m(3),f("diameter",20))}function Vhe(t,n){1&t&&(d(0,"mat-icon",34),h(1," check_circle "),l())}function jhe(t,n){if(1&t){const e=_e();d(0,"div",20)(1,"button",35),A("click",function(){return ne(e),oe(C().verifyTextJson())}),h(2,"VERIFY JSON"),l()()}if(2&t){const e=C();m(),f("disabled",!e.migrationProfileForm.valid||e.verifyingJson)}}function zhe(t,n){if(1&t){const e=_e();d(0,"mat-radio-button",48),A("change",function(){const r=ne(e).$implicit;return oe(C(2).onItemChange(r.value,"source"))}),h(1),l()}if(2&t){const e=n.$implicit;f("value",e.value),m(),xe(" ",e.display,"")}}function Hhe(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.DisplayName),m(),xe(" ",e.DisplayName," ")}}function Uhe(t,n){if(1&t&&(d(0,"div")(1,"mat-form-field",5)(2,"mat-label"),h(3,"Select source connection profile"),l(),d(4,"mat-select",49),y(5,Hhe,2,2,"mat-option",8),l()(),d(6,"mat-form-field",5)(7,"mat-label"),h(8,"Data Shard Id"),l(),D(9,"input",50),l()()),2&t){const e=C(2);m(5),f("ngForOf",e.sourceProfileList),m(4),f("value",e.inputValue)}}function $he(t,n){if(1&t&&(d(0,"div")(1,"mat-form-field",5)(2,"mat-label"),h(3,"Host"),l(),D(4,"input",51),l(),d(5,"mat-form-field",5)(6,"mat-label"),h(7,"User"),l(),D(8,"input",52),l(),d(9,"mat-form-field",5)(10,"mat-label"),h(11,"Port"),l(),D(12,"input",53),l(),d(13,"mat-form-field",5)(14,"mat-label"),h(15,"Password"),l(),D(16,"input",54),l(),d(17,"mat-form-field",55)(18,"mat-label"),h(19,"Connection profile name"),l(),D(20,"input",56),l(),d(21,"mat-form-field",5)(22,"mat-label"),h(23,"Data Shard Id"),l(),D(24,"input",50),l()()),2&t){const e=C(2);m(24),f("value",e.inputValue)}}function Ghe(t,n){if(1&t&&(d(0,"li",26)(1,"span",27),h(2),l(),d(3,"span")(4,"mat-icon",28),h(5,"file_copy"),l()()()),2&t){const e=n.$implicit;m(2),Pe(e),m(2),f("cdkCopyToClipboard",e)}}function qhe(t,n){if(1&t&&(d(0,"div",29)(1,"span",27),h(2,"Test connection failed"),l(),d(3,"mat-icon",30),h(4," error "),l()()),2&t){const e=C(3);m(3),f("matTooltip",e.errorSrcMsg)}}function Whe(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",31),D(3,"mat-spinner",32),l(),d(4,"span",33),h(5,"Testing Connection"),l(),D(6,"br"),l()),2&t&&(m(3),f("diameter",20))}function Khe(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",31),D(3,"mat-spinner",32),l(),d(4,"span",33),h(5,"Creating source connection profile"),l(),D(6,"br"),l()),2&t&&(m(3),f("diameter",20))}function Zhe(t,n){1&t&&(d(0,"mat-icon",60),h(1," check_circle "),l())}function Yhe(t,n){1&t&&(d(0,"mat-icon",61),h(1," check_circle "),l())}function Qhe(t,n){if(1&t){const e=_e();d(0,"div")(1,"div")(2,"b"),h(3,"Copy the public IPs below, and use them to configure the network firewall to accept connections from them."),l(),d(4,"a",24),h(5,"Learn More"),l()(),D(6,"br"),y(7,Ghe,6,2,"li",25)(8,qhe,5,1,"div",11),D(9,"br"),y(10,Whe,7,1,"div",12)(11,Khe,7,1,"div",12)(12,Zhe,2,0,"mat-icon",57),d(13,"button",35),A("click",function(){return ne(e),oe(C(2).createOrTestConnection(!0,!0))}),h(14,"TEST CONNECTION"),l(),y(15,Yhe,2,0,"mat-icon",58),d(16,"button",59),A("click",function(){return ne(e),oe(C(2).createOrTestConnection(!0,!1))}),h(17,"CREATE PROFILE"),l()()}if(2&t){const e=C(2);m(7),f("ngForOf",e.ipList),m(),f("ngIf",!e.testSuccess&&""!=e.errorSrcMsg),m(2),f("ngIf",e.testingSourceConnection),m(),f("ngIf",e.creatingSourceConnection),m(),f("ngIf",e.testSuccess),m(),f("disabled",!e.determineConnectionProfileInfoValidity()||e.testingSourceConnection),m(2),f("ngIf",e.createSrcConnSuccess),m(),f("disabled",!e.testSuccess||e.creatingSourceConnection)}}function Xhe(t,n){if(1&t){const e=_e();me(0),d(1,"div",62)(2,"mat-form-field",5)(3,"mat-label"),h(4,"Logical Shard ID"),l(),D(5,"input",63),l(),d(6,"mat-form-field",5)(7,"mat-label"),h(8,"Source Database Name"),l(),D(9,"input",64),l(),d(10,"mat-icon",65),A("click",function(){const r=ne(e).index;return oe(C(2).deleteRow(r))}),h(11," delete_forever"),l()(),pe()}if(2&t){const e=n.index;m(),f("formGroupName",e)}}function Jhe(t,n){if(1&t){const e=_e();d(0,"mat-radio-button",48),A("change",function(){const r=ne(e).$implicit;return oe(C(2).onItemChange(r.value,"target"))}),h(1),l()}if(2&t){const e=n.$implicit;f("value",e.value),m(),xe(" ",e.display,"")}}function eme(t,n){if(1&t&&(d(0,"mat-option",18),h(1),l()),2&t){const e=n.$implicit;f("value",e.DisplayName),m(),xe(" ",e.DisplayName," ")}}function tme(t,n){if(1&t&&(d(0,"div")(1,"mat-form-field",5)(2,"mat-label"),h(3,"Select target connection profile"),l(),d(4,"mat-select",66),y(5,eme,2,2,"mat-option",8),l()()()),2&t){const e=C(2);m(5),f("ngForOf",e.targetProfileList)}}function ime(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",31),D(3,"mat-spinner",32),l(),d(4,"span",33),h(5,"Creating target connection profile"),l(),D(6,"br"),l()),2&t&&(m(3),f("diameter",20))}function nme(t,n){1&t&&(d(0,"mat-icon",61),h(1," check_circle "),l())}function ome(t,n){if(1&t&&(d(0,"div",29)(1,"span",27),h(2),l()()),2&t){const e=C(3);m(2),Pe(e.errorTgtMsg)}}function rme(t,n){if(1&t){const e=_e();d(0,"div")(1,"mat-form-field",55)(2,"mat-label"),h(3,"Connection profile name"),l(),D(4,"input",67),l(),y(5,ime,7,1,"div",12)(6,nme,2,0,"mat-icon",58),d(7,"button",59),A("click",function(){return ne(e),oe(C(2).createOrTestConnection(!1,!1))}),h(8,"CREATE PROFILE"),l(),y(9,ome,3,1,"div",11),l()}if(2&t){const e=C(2);m(5),f("ngIf",e.creatingTargetConnection),m(),f("ngIf",e.createTgtConnSuccess),m(),f("disabled",e.creatingTargetConnection),m(2),f("ngIf",""!=e.errorTgtMsg)}}function ame(t,n){if(1&t){const e=_e();d(0,"div",20)(1,"span",36),h(2,"Configure Source Profile"),l(),d(3,"div",37)(4,"mat-radio-group",38),un("ngModelChange",function(o){ne(e);const r=C();return kn(r.selectedSourceProfileOption,o)||(r.selectedSourceProfileOption=o),oe(o)}),y(5,zhe,2,2,"mat-radio-button",39),l()(),D(6,"br"),y(7,Uhe,10,2,"div",12)(8,$he,25,1,"div",12),D(9,"br"),y(10,Qhe,18,8,"div",12),D(11,"hr"),d(12,"span",36),h(13,"Configure ShardId and Database Names"),l(),d(14,"mat-icon",40),h(15,"info"),l(),D(16,"br")(17,"br"),d(18,"span",41),me(19,42),y(20,Xhe,12,1,"ng-container",43),pe(),l(),d(21,"div",44)(22,"button",45),A("click",function(){return ne(e),oe(C().addRow())}),h(23,"ADD ROW"),l()(),D(24,"br")(25,"hr"),d(26,"span",36),h(27,"Configure Target Profile"),l(),d(28,"div",46)(29,"mat-radio-group",47),un("ngModelChange",function(o){ne(e);const r=C();return kn(r.selectedTargetProfileOption,o)||(r.selectedTargetProfileOption=o),oe(o)}),y(30,Jhe,2,2,"mat-radio-button",39),l()(),D(31,"br"),y(32,tme,6,1,"div",12)(33,rme,10,4,"div",12),D(34,"hr"),l()}if(2&t){const e=C();m(4),dn("ngModel",e.selectedSourceProfileOption),m(),f("ngForOf",e.profileOptions),m(2),f("ngIf","existing"===e.selectedSourceProfileOption),m(),f("ngIf","new"===e.selectedSourceProfileOption),m(2),f("ngIf","new"===e.selectedSourceProfileOption),m(10),f("ngForOf",e.shardMappingTable.controls),m(9),dn("ngModel",e.selectedTargetProfileOption),m(),f("ngForOf",e.profileOptions),m(2),f("ngIf","existing"===e.selectedTargetProfileOption),m(),f("ngIf","new"===e.selectedTargetProfileOption)}}function sme(t,n){if(1&t){const e=_e();d(0,"button",68),A("click",function(){return ne(e),oe(C().saveDetailsAndReset())}),h(1," ADD MORE SHARDS "),l()}2&t&&f("disabled",!C().determineFormValidity())}function cme(t,n){if(1&t&&(d(0,"div",29)(1,"span",27),h(2),l(),d(3,"mat-icon",30),h(4," error "),l()()),2&t){const e=C();m(2),Pe(e.errorMsg),m(),f("matTooltip",e.errorMsg)}}let lme=(()=>{class t{constructor(e,i,o,r,a,s){this.fetch=e,this.snack=i,this.dataService=o,this.formBuilder=r,this.dialogRef=a,this.data=s,this.selectedProfile="",this.profileType="",this.sourceProfileList=[],this.targetProfileList=[],this.definedSrcConnProfileList=[],this.definedTgtConnProfileList=[],this.shardIdToDBMappingTable=[],this.dataShardIdList=[],this.ipList=[],this.selectedSourceProfileOption="existing",this.selectedTargetProfileOption="existing",this.profileOptions=[{value:"existing",display:"Choose an existing connection profile"},{value:"new",display:"Create a new connection profile"}],this.profileName="",this.errorMsg="",this.errorSrcMsg="",this.errorTgtMsg="",this.errorVerMsg="",this.sourceDatabaseType="",this.inputValue="",this.testSuccess=!1,this.verifyJson=!1,this.createSrcConnSuccess=!1,this.createTgtConnSuccess=!1,this.physicalShards=0,this.logicalShards=0,this.testingSourceConnection=!1,this.creatingSourceConnection=!1,this.creatingTargetConnection=!1,this.verifyingJson=!1,this.prefix="smt-datashard",this.inputOptionsList=[{value:"text",displayName:"Text"},{value:"form",displayName:"Form"}],this.region=s.Region,this.sourceDatabaseType=s.SourceDatabaseType,localStorage.getItem(Wi.Type)==Jn.DirectConnect&&(this.schemaSourceConfig=JSON.parse(localStorage.getItem(Wi.Config)));let u=this.formBuilder.group({logicalShardId:["",ee.required],dbName:["",ee.required]});this.inputValue=this.prefix+"-"+this.randomString(4)+"-"+this.randomString(4),this.migrationProfileForm=this.formBuilder.group({inputType:["form",ee.required],textInput:[""],sourceProfileOption:["new",ee.required],targetProfileOption:["new",ee.required],newSourceProfile:["",[ee.pattern("^[a-z][a-z0-9-]{0,59}$")]],existingSourceProfile:[],newTargetProfile:["",ee.pattern("^[a-z][a-z0-9-]{0,59}$")],existingTargetProfile:[],host:[this.schemaSourceConfig?.hostName],user:[this.schemaSourceConfig?.userName],port:[this.schemaSourceConfig?.port],password:[this.schemaSourceConfig?.password],dataShardId:[this.inputValue,ee.required],shardMappingTable:this.formBuilder.array([u])}),this.migrationProfile={configType:"dataflow",shardConfigurationDataflow:{schemaSource:{host:this.schemaSourceConfig?.hostName,user:this.schemaSourceConfig?.userName,password:this.schemaSourceConfig?.password,port:this.schemaSourceConfig?.port,dbName:this.schemaSourceConfig?.dbName},dataShards:[]}}}ngOnInit(){this.getConnectionProfiles(!0),this.getConnectionProfiles(!1),this.getDatastreamIPs(),this.initFromLocalStorage()}initFromLocalStorage(){}get shardMappingTable(){return this.migrationProfileForm.controls.shardMappingTable}addRow(){let e=this.formBuilder.group({logicalShardId:["",ee.required],dbName:["",ee.required]});this.shardMappingTable.push(e)}deleteRow(e){this.shardMappingTable.removeAt(e)}getDatastreamIPs(){this.fetch.getStaticIps().subscribe({next:e=>{this.ipList=e},error:e=>{this.snack.openSnackBar(e.error,"Close")}})}getConnectionProfiles(e){this.fetch.getConnectionProfiles(e).subscribe({next:i=>{e?this.sourceProfileList=i.sort((o,r)=>o.DisplayName.localeCompare(r.DisplayName)):this.targetProfileList=i.sort((o,r)=>o.DisplayName.localeCompare(r.DisplayName))},error:i=>{this.snack.openSnackBar(i.error,"Close")}})}onItemChange(e,i){this.profileType=i,"source"===this.profileType?(this.selectedSourceProfileOption=e,"new"==this.selectedSourceProfileOption?(this.migrationProfileForm.get("newSourceProfile")?.setValidators([ee.required]),this.migrationProfileForm.controls.existingSourceProfile.clearValidators(),this.migrationProfileForm.controls.newSourceProfile.updateValueAndValidity(),this.migrationProfileForm.controls.existingSourceProfile.updateValueAndValidity(),this.migrationProfileForm.get("host")?.setValidators([ee.required]),this.migrationProfileForm.controls.host.updateValueAndValidity(),this.migrationProfileForm.get("user")?.setValidators([ee.required]),this.migrationProfileForm.controls.user.updateValueAndValidity(),this.migrationProfileForm.get("port")?.setValidators([ee.required]),this.migrationProfileForm.controls.port.updateValueAndValidity(),this.migrationProfileForm.get("password")?.setValidators([ee.required]),this.migrationProfileForm.controls.password.updateValueAndValidity()):(this.migrationProfileForm.controls.newSourceProfile.clearValidators(),this.migrationProfileForm.get("existingSourceProfile")?.addValidators([ee.required]),this.migrationProfileForm.controls.newSourceProfile.updateValueAndValidity(),this.migrationProfileForm.controls.existingSourceProfile.updateValueAndValidity(),this.migrationProfileForm.controls.host.clearValidators(),this.migrationProfileForm.controls.host.updateValueAndValidity(),this.migrationProfileForm.controls.user.clearValidators(),this.migrationProfileForm.controls.user.updateValueAndValidity(),this.migrationProfileForm.controls.port.clearValidators(),this.migrationProfileForm.controls.port.updateValueAndValidity(),this.migrationProfileForm.controls.password.clearValidators(),this.migrationProfileForm.controls.password.updateValueAndValidity())):(this.selectedTargetProfileOption=e,"new"==this.selectedTargetProfileOption?(this.migrationProfileForm.get("newTargetProfile")?.setValidators([ee.required]),this.migrationProfileForm.controls.existingTargetProfile.clearValidators(),this.migrationProfileForm.controls.newTargetProfile.updateValueAndValidity(),this.migrationProfileForm.controls.existingTargetProfile.updateValueAndValidity()):(this.migrationProfileForm.controls.newTargetProfile.clearValidators(),this.migrationProfileForm.get("existingTargetProfile")?.addValidators([ee.required]),this.migrationProfileForm.controls.newTargetProfile.updateValueAndValidity(),this.migrationProfileForm.controls.existingTargetProfile.updateValueAndValidity()))}setValidators(e){if("text"===e){for(const o in this.migrationProfileForm.controls)this.migrationProfileForm.controls[o].clearValidators(),this.migrationProfileForm.controls[o].updateValueAndValidity();this.migrationProfileForm.get("shardMappingTable").controls.forEach(o=>{const r=o,a=r.get("logicalShardId"),s=r.get("dbName");a?.clearValidators(),a?.updateValueAndValidity(),s?.clearValidators(),s?.updateValueAndValidity()}),this.migrationProfileForm.controls.textInput.setValidators([ee.required]),this.migrationProfileForm.controls.textInput.updateValueAndValidity()}else this.onItemChange("new","source"),this.onItemChange("new","target"),this.migrationProfileForm.controls.textInput.clearValidators(),this.migrationProfileForm.controls.textInput.updateValueAndValidity()}saveDetailsAndReset(){this.handleConnConfigsFromForm();let e=this.formBuilder.group({logicalShardId:["",ee.required],dbName:["",ee.required]});this.inputValue=this.prefix+"-"+this.randomString(4)+"-"+this.randomString(4),this.migrationProfileForm=this.formBuilder.group({inputType:["form",ee.required],textInput:[],sourceProfileOption:[this.selectedSourceProfileOption],targetProfileOption:[this.selectedTargetProfileOption],newSourceProfile:["",[ee.pattern("^[a-z][a-z0-9-]{0,59}$")]],existingSourceProfile:[],newTargetProfile:["",ee.pattern("^[a-z][a-z0-9-]{0,59}$")],existingTargetProfile:[],host:[],user:[],port:[],password:[],dataShardId:[this.inputValue],shardMappingTable:this.formBuilder.array([e])}),this.testSuccess=!1,this.verifyJson=!1,this.createSrcConnSuccess=!1,this.createTgtConnSuccess=!1,this.snack.openSnackBar("Shard configured successfully, please configure the next","Close",5)}randomString(e){for(var o="",r=0;r{localStorage.setItem(he.IsSourceConnectionProfileSet,"true"),localStorage.setItem(he.IsTargetConnectionProfileSet,"true"),localStorage.setItem(he.NumberOfShards,this.determineTotalLogicalShardsConfigured().toString()),localStorage.setItem(he.NumberOfInstances,this.migrationProfile.shardConfigurationDataflow.dataShards.length.toString()),this.dialogRef.close()},error:o=>{this.errorMsg=o.error}})}determineTotalLogicalShardsConfigured(){let e=0;return this.migrationProfile.shardConfigurationDataflow.dataShards.forEach(i=>{e+=i.databases.length}),e}handleConnConfigsFromForm(){let e=this.migrationProfileForm.value;this.dataShardIdList.push(e.dataShardId),this.definedSrcConnProfileList.push("new"===this.selectedSourceProfileOption?{name:e.newSourceProfile,location:this.region}:{name:e.existingSourceProfile,location:this.region}),this.definedTgtConnProfileList.push("new"===this.selectedTargetProfileOption?{name:e.newTargetProfile,location:this.region}:{name:e.existingTargetProfile,location:this.region});let i=[];for(let o of this.shardMappingTable.controls)if(o instanceof ti){const r=o.value;i.push({dbName:r.dbName,databaseId:r.logicalShardId,refDataShardId:e.dataShardId})}this.shardIdToDBMappingTable.push(i),this.physicalShards++,this.logicalShards=this.logicalShards+i.length}determineFormValidity(){return!(!this.migrationProfileForm.valid||"new"===this.selectedSourceProfileOption&&!this.createSrcConnSuccess||"new"===this.selectedTargetProfileOption&&!this.createTgtConnSuccess||"text"===this.migrationProfileForm.value.inputType!==this.verifyJson)}determineFinishValidity(){return this.definedSrcConnProfileList.length>0||this.determineFormValidity()}determineConnectionProfileInfoValidity(){let e=this.migrationProfileForm.value;return null!=e.host&&null!=e.port&&null!=e.user&&null!=e.password&&null!=e.newSourceProfile}verifyTextJson(){this.verifyingJson=!0;let i,e=this.migrationProfileForm.value;try{i=JSON.parse(e.textInput)}catch(o){return o instanceof SyntaxError?(this.errorVerMsg=o.message,this.verifyJson=!1,void(this.verifyingJson=!1)):(this.errorVerMsg=`Unexpected error parsing json ${o}`,this.verifyJson=!1,void(this.verifyingJson=!1))}this.fetch.verifyJsonConfiguration(i).subscribe({next:()=>{this.verifyJson=!0,this.verifyingJson=!1},error:o=>{this.verifyJson=!1,this.verifyingJson=!1,this.errorVerMsg=o.message}})}createOrTestConnection(e,i){i?this.testingSourceConnection=!0:e?this.creatingSourceConnection=!0:this.creatingTargetConnection=!0;let r,o=this.migrationProfileForm.value;r=e?{Id:o.newSourceProfile,IsSource:!0,ValidateOnly:i,Host:o.host,Port:o.port,User:o.user,Password:o.password}:{Id:o.newTargetProfile,IsSource:!1,ValidateOnly:i},this.fetch.createConnectionProfile(r).subscribe({next:()=>{i?(this.testingSourceConnection=!1,this.testSuccess=!0):e?(this.createSrcConnSuccess=!0,this.errorSrcMsg="",this.creatingSourceConnection=!1):(this.createTgtConnSuccess=!0,this.errorTgtMsg="",this.creatingTargetConnection=!1)},error:a=>{i?(this.testingSourceConnection=!1,this.testSuccess=!1,this.errorSrcMsg=a.error):e?(this.createSrcConnSuccess=!1,this.errorSrcMsg=a.error,this.creatingSourceConnection=!1):(this.createTgtConnSuccess=!1,this.errorTgtMsg=a.error,this.creatingTargetConnection=!1)}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(En),_(nr),_(Hi),_(Dr),_(bn),_(mo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sharded-dataflow-migration-details-form"]],viewQuery:function(i,o){if(1&i&&vt(WC,5),2&i){let r;Oe(r=Ae())&&(o.paginator=r.first)}},decls:31,vars:13,consts:[["mat-dialog-content","",1,"connect-load-database-container"],[1,"conn-profile-form",3,"formGroup"],[1,"mat-h2","header-title"],[1,"top"],[1,"top-1"],["appearance","outline"],["formControlName","inputType",3,"selectionChange"],["inputType",""],[3,"value",4,"ngFor","ngForOf"],["class","top-2",4,"ngIf"],["class","textInput",4,"ngIf"],["class","failure",4,"ngIf"],[4,"ngIf"],["class","success","matTooltip","JSON Verification successful","matTooltipPosition","above",4,"ngIf"],[1,"last-btns"],["mat-button","","color","primary","mat-dialog-close",""],["mat-raised-button","","type","submit","color","accent",3,"disabled","click",4,"ngIf"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"],[3,"value"],[1,"top-2"],[1,"textInput"],["appearance","outline",1,"json-input"],["name","textInput","formControlName","textInput","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","5","cdkAutosizeMaxRows","20"],["autosize","cdkTextareaAutosize"],["href","https://cloud.google.com/datastream/docs/network-connectivity-options#ipallowlists","target","_blank"],["class","connection-form-container",4,"ngFor","ngForOf"],[1,"connection-form-container"],[1,"left-text"],["matTooltip","Copy",1,"icon","copy",3,"cdkCopyToClipboard"],[1,"failure"],["matTooltipPosition","above",1,"icon","error",3,"matTooltip"],[1,"spinner"],[3,"diameter"],[1,"spinner-small-text"],["matTooltip","JSON Verification successful","matTooltipPosition","above",1,"success"],["mat-raised-button","","type","button","color","primary",3,"disabled","click"],[1,"mat-h4","header-title"],[1,"source-radio-button-container"],["formControlName","sourceProfileOption",1,"radio-button-container",3,"ngModel","ngModelChange"],["class","radio-button",3,"value","change",4,"ngFor","ngForOf"],["matTooltip","Logical Shard ID value will be used to populate the migration_shard_id column added as part of sharded database migration",1,"configure"],[1,"border"],["formArrayName","shardMappingTable"],[4,"ngFor","ngForOf"],[1,"table-buttons"],["mat-raised-button","","color","primary","type","button",3,"click"],[1,"target-radio-button-container"],["formControlName","targetProfileOption",1,"radio-button-container",3,"ngModel","ngModelChange"],[1,"radio-button",3,"value","change"],["formControlName","existingSourceProfile","required","true","ng-value","selectedProfile",1,"input-field"],["matInput","","type","text","formControlName","dataShardId","required","true","readonly","",3,"value"],["matInput","","placeholder","Host","type","text","formControlName","host","required","true"],["matInput","","placeholder","User","type","text","formControlName","user","required","true"],["matInput","","placeholder","Port","type","text","formControlName","port","required","true"],["matInput","","placeholder","Password","type","password","formControlName","password","required","true"],["appearance","outline","hintLabel","Name can include lower case letters, numbers and hyphens. Must start with a letter."],["matInput","","placeholder","Connection profile name","type","text","formControlName","newSourceProfile","required","true"],["class","success","matTooltip","Test connection successful","matTooltipPosition","above",4,"ngIf"],["class","success","matTooltip","Profile creation successful","matTooltipPosition","above",4,"ngIf"],["mat-raised-button","","type","button","color","warn",3,"disabled","click"],["matTooltip","Test connection successful","matTooltipPosition","above",1,"success"],["matTooltip","Profile creation successful","matTooltipPosition","above",1,"success"],[1,"shard-mapping-form-row",3,"formGroupName"],["matInput","","formControlName","logicalShardId","placeholder","Enter Logical ShardID"],["matInput","","formControlName","dbName","placeholder","Enter Database Name"],[1,"delete-btn",3,"click"],["formControlName","existingTargetProfile","required","true","ng-value","selectedProfile",1,"input-field"],["matInput","","placeholder","Connection profile name","type","text","formControlName","newTargetProfile","required","true"],["mat-raised-button","","type","submit","color","accent",3,"disabled","click"]],template:function(i,o){if(1&i){const r=_e();d(0,"div",0)(1,"form",1)(2,"span",2),h(3,"Datastream Details"),l(),D(4,"br"),d(5,"b"),h(6,"Note: Please configure the database used for schema conversion, if you want Spanner migration tool to migrate data from it as well."),l(),d(7,"div",3),h(8,"` "),d(9,"div",4)(10,"mat-form-field",5)(11,"mat-label"),h(12,"Input Type"),l(),d(13,"mat-select",6,7),A("selectionChange",function(){ne(r);const s=Ft(14);return oe(o.setValidators(s.value))}),y(15,Ahe,2,2,"mat-option",8),l()()(),y(16,Phe,9,2,"div",9),l(),y(17,Rhe,6,0,"div",10)(18,Fhe,8,1,"div",10)(19,Lhe,5,1,"div",11)(20,Bhe,7,1,"div",12)(21,Vhe,2,0,"mat-icon",13)(22,jhe,3,1,"div",10)(23,ame,35,10,"div",10),d(24,"div",14)(25,"button",15),h(26,"CANCEL"),l(),y(27,sme,2,1,"button",16),d(28,"button",17),A("click",function(){return o.finalizeConnDetails()}),h(29," FINISH "),l(),y(30,cme,5,2,"div",11),l()()()}2&i&&(m(),f("formGroup",o.migrationProfileForm),m(14),f("ngForOf",o.inputOptionsList),m(),f("ngIf","form"===o.migrationProfileForm.value.inputType),m(),f("ngIf","text"===o.migrationProfileForm.value.inputType),m(),f("ngIf","text"===o.migrationProfileForm.value.inputType),m(),f("ngIf",!o.verifyJson&&""!=o.errorVerMsg),m(),f("ngIf",o.verifyingJson),m(),f("ngIf",o.verifyJson),m(),f("ngIf","text"===o.migrationProfileForm.value.inputType),m(),f("ngIf","form"===o.migrationProfileForm.value.inputType),m(4),f("ngIf","form"===o.migrationProfileForm.value.inputType),m(),f("disabled",!o.determineFinishValidity()),m(2),f("ngIf",""!=o.errorMsg))},dependencies:[rn,It,Yt,Mi,Gu,_O,O0,E0,Di,xi,qi,VA,Xn,Tn,_n,Ci,_i,Bi,Do,wi,zi,Ju,eh,zn,So,vn,cg,lg,KC,sd],styles:[".icon[_ngcontent-%COMP%]{font-size:15px}.connection-form-container[_ngcontent-%COMP%]{display:block}.left-text[_ngcontent-%COMP%]{width:40%;display:inline-block}.shard-mapping-form-row[_ngcontent-%COMP%]{width:80%;margin-left:auto;margin-right:auto}.table-header[_ngcontent-%COMP%]{width:80%;margin:auto auto 10px;text-align:right;display:flex;align-items:center;justify-content:space-between}form[_ngcontent-%COMP%], .table-body[_ngcontent-%COMP%]{flex:auto;overflow-y:auto}.table-buttons[_ngcontent-%COMP%]{margin-left:70%}.radio-button-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:15px 0;align-items:flex-start}.radio-button[_ngcontent-%COMP%]{margin:5px}.json-input[_ngcontent-%COMP%]{width:100%}.top[_ngcontent-%COMP%]{border:3px solid #fff;padding:20px}.top-1[_ngcontent-%COMP%]{width:60%;float:left}.top-2[_ngcontent-%COMP%]{width:40%;float:right;flex:auto}.last-btns[_ngcontent-%COMP%]{padding:20px;width:100%;float:left}"]})}return t})(),dme=(()=>{class t{constructor(e,i){this.formBuilder=e,this.dialogRef=i,this.gcsMetadataDetailsForm=this.formBuilder.group({gcsName:["",[ee.required,ee.pattern("^(?!.$)(?!..$)(?!.*[\r\n])[^\r\n]{1,1024}$")]],gcsRootPath:[""]}),this.gcsMetadataDetailsForm.setValue({gcsName:localStorage.getItem(yt.GcsMetadataName)||"",gcsRootPath:localStorage.getItem(yt.GcsMetadataRootPath)||""})}ngOnInit(){}updateGcsPathMetadataDetails(){let e=this.gcsMetadataDetailsForm.value;localStorage.setItem(yt.GcsMetadataName,e.gcsName||""),localStorage.setItem(yt.GcsMetadataRootPath,e.gcsRootPath||""),localStorage.setItem(he.IsGcsMetadataPathSet,"true"),this.dialogRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Dr),_(bn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-gcs-metadata-details-form"]],decls:21,vars:2,consts:[["mat-dialog-content",""],[1,"gcs-metadata-detail-form",3,"formGroup"],["matTooltip","Specify existing or new GCS path to store metadata for migration",1,"configure"],["appearance","outline",1,"full-width"],["matInput","","placeholder","GCS Bucket Name","type","text","formControlName","gcsName","ng-value","TargetDetails.GcsMetadataName"],["matInput","","placeholder","Path Prefix","type","text","formControlName","gcsRootPath","ng-value","TargetDetails.GcsMetadataRootPath"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"GCS Metadata Storage"),d(4,"mat-icon",2),h(5," info"),l()(),d(6,"mat-form-field",3)(7,"mat-label"),h(8,"GCS Bucket Name"),l(),D(9,"input",4),l(),D(10,"br"),d(11,"mat-form-field",3)(12,"mat-label"),h(13,"Path Prefix"),l(),D(14,"input",5),l(),D(15,"br"),l(),d(16,"div",6)(17,"button",7),h(18,"Cancel"),l(),d(19,"button",8),A("click",function(){return o.updateGcsPathMetadataDetails()}),h(20," Save "),l()()()),2&i&&(m(),f("formGroup",o.gcsMetadataDetailsForm),m(18),f("disabled",!o.gcsMetadataDetailsForm.valid))},dependencies:[Yt,Mi,Di,xi,qi,_n,Ci,_i,Bi,wi,zi,zn,So,ko,vn]})}return t})();function ume(t,n){1&t&&(d(0,"h2"),h(1,"Source and Target Database definitions"),l())}function hme(t,n){1&t&&(d(0,"h2"),h(1,"Source and Target Database definitions (per shard)"),l())}function mme(t,n){1&t&&(d(0,"th",38),h(1,"Title"),l())}function pme(t,n){if(1&t&&(d(0,"td",39)(1,"b"),h(2),l()()),2&t){const e=n.$implicit;m(2),Pe(e.title)}}function fme(t,n){1&t&&(d(0,"th",38),h(1,"Source"),l())}function gme(t,n){if(1&t&&(d(0,"td",39),h(1),l()),2&t){const e=n.$implicit;m(),Pe(e.source)}}function _me(t,n){1&t&&(d(0,"th",38),h(1,"Destination"),l())}function bme(t,n){if(1&t&&(d(0,"td",39),h(1),l()),2&t){const e=n.$implicit;m(),Pe(e.target)}}function vme(t,n){1&t&&D(0,"tr",40)}function yme(t,n){1&t&&D(0,"tr",41)}function Cme(t,n){if(1&t&&(d(0,"mat-option",42),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),xe(" ",e," ")}}function wme(t,n){if(1&t&&(d(0,"mat-option",42),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),xe(" ",e.name," ")}}function xme(t,n){if(1&t){const e=_e();d(0,"div")(1,"mat-form-field",20)(2,"mat-label"),h(3,"Migration Type:"),l(),d(4,"mat-select",21),un("ngModelChange",function(o){ne(e);const r=C();return kn(r.selectedMigrationType,o)||(r.selectedMigrationType=o),oe(o)}),A("selectionChange",function(){return ne(e),oe(C().refreshPrerequisites())}),y(5,wme,2,2,"mat-option",22),l()(),d(6,"mat-icon",23),h(7,"info"),l(),D(8,"br"),l()}if(2&t){const e=C();m(4),dn("ngModel",e.selectedMigrationType),m(),f("ngForOf",e.migrationTypes),m(),f("matTooltip",e.migrationTypesHelpText.get(e.selectedMigrationType))}}function Dme(t,n){if(1&t&&(d(0,"mat-option",42),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),xe(" ",e.displayName," ")}}function Sme(t,n){if(1&t){const e=_e();d(0,"div")(1,"mat-form-field",20)(2,"mat-label"),h(3,"Skip Foreign Key Creation:"),l(),d(4,"mat-select",43),un("ngModelChange",function(o){ne(e);const r=C();return kn(r.isForeignKeySkipped,o)||(r.isForeignKeySkipped=o),oe(o)}),y(5,Dme,2,2,"mat-option",22),l()()()}if(2&t){const e=C();m(4),dn("ngModel",e.isForeignKeySkipped),m(),f("ngForOf",e.skipForeignKeyResponseList)}}function kme(t,n){1&t&&(d(0,"div",44)(1,"p",26)(2,"span",27),h(3,"1"),l(),d(4,"span"),h(5,"Please ensure that the application default credentials deployed on this machine have permissions to write to Spanner."),l()()())}function Mme(t,n){1&t&&(d(0,"div",44)(1,"p",26)(2,"span",27),h(3,"1"),l(),d(4,"span"),h(5,"Please ensure that the source is "),d(6,"a",45),h(7,"configured"),l(),h(8," for Datastream change data capture."),l()(),d(9,"p",26)(10,"span",27),h(11,"2"),l(),d(12,"span"),h(13,"Please ensure that Dataflow "),d(14,"a",46),h(15,"permissions"),l(),h(16," and "),d(17,"a",47),h(18,"networking"),l(),h(19," are correctly setup."),l()()())}function Tme(t,n){1&t&&(d(0,"mat-icon",49),h(1," check_circle "),l())}function Ime(t,n){if(1&t){const e=_e();d(0,"div")(1,"h3"),h(2,"Source database details:"),l(),d(3,"p",26)(4,"span",27),h(5,"1"),l(),d(6,"span"),h(7,"Setup Source database details"),l(),d(8,"span")(9,"button",29),A("click",function(){return ne(e),oe(C().openSourceDetailsForm())}),h(10," Configure "),d(11,"mat-icon",30),h(12,"edit"),l(),y(13,Tme,2,0,"mat-icon",48),l()()()()}if(2&t){const e=C();m(9),f("disabled",e.isMigrationInProgress),m(4),f("ngIf",e.isSourceDetailsSet)}}function Eme(t,n){1&t&&(d(0,"mat-icon",49),h(1," check_circle "),l())}function Ome(t,n){if(1&t){const e=_e();d(0,"div")(1,"mat-card-title"),h(2,"Source databases details:"),l(),d(3,"p",26)(4,"span",27),h(5,"1"),l(),d(6,"span"),h(7,"Setup Source Connection details "),d(8,"mat-icon",50),h(9," info"),l()(),d(10,"span")(11,"button",29),A("click",function(){return ne(e),oe(C().openShardedBulkSourceDetailsForm())}),h(12," Configure "),d(13,"mat-icon",30),h(14,"edit"),l(),y(15,Eme,2,0,"mat-icon",48),l()()()()}if(2&t){const e=C();m(11),f("disabled",e.isMigrationInProgress),m(4),f("ngIf",e.isSourceDetailsSet)}}function Ame(t,n){1&t&&(d(0,"mat-icon",51),h(1," check_circle "),l())}function Pme(t,n){1&t&&(d(0,"mat-icon",54),h(1," check_circle "),l())}function Rme(t,n){if(1&t){const e=_e();d(0,"p",26)(1,"span",27),h(2,"2"),l(),d(3,"span"),h(4,"Configure Datastream "),d(5,"mat-icon",52),h(6," info"),l()(),d(7,"span")(8,"button",29),A("click",function(){return ne(e),oe(C().openMigrationProfileForm())}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,Pme,2,0,"mat-icon",53),l()()()}if(2&t){const e=C();m(8),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isSourceConnectionProfileSet)}}function Nme(t,n){1&t&&(d(0,"mat-icon",54),h(1," check_circle "),l())}function Fme(t,n){if(1&t){const e=_e();d(0,"p",26)(1,"span",27),h(2,"2"),l(),d(3,"span"),h(4,"Setup source connection profile "),d(5,"mat-icon",55),h(6," info"),l()(),d(7,"span")(8,"button",29),A("click",function(){return ne(e),oe(C().openConnectionProfileForm(!0))}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,Nme,2,0,"mat-icon",53),l()()()}if(2&t){const e=C();m(8),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isSourceConnectionProfileSet)}}function Lme(t,n){1&t&&(d(0,"mat-icon",58),h(1," check_circle "),l())}function Bme(t,n){if(1&t){const e=_e();d(0,"p",26)(1,"span",27),h(2,"3"),l(),d(3,"span"),h(4,"Setup target connection profile "),d(5,"mat-icon",56),h(6," info"),l()(),d(7,"span")(8,"button",29),A("click",function(){return ne(e),oe(C().openConnectionProfileForm(!1))}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,Lme,2,0,"mat-icon",57),l()()()}if(2&t){const e=C();m(8),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isTargetConnectionProfileSet)}}function Vme(t,n){1&t&&(d(0,"span",27),h(1,"3"),l())}function jme(t,n){1&t&&(d(0,"span",27),h(1,"4"),l())}function zme(t,n){1&t&&(d(0,"mat-icon",62),h(1," check_circle "),l())}function Hme(t,n){if(1&t){const e=_e();d(0,"p",26),y(1,Vme,2,0,"span",59)(2,jme,2,0,"span",59),d(3,"span"),h(4,"Tune Datastream (Optional) "),d(5,"mat-icon",60),h(6," info"),l()(),d(7,"span")(8,"button",29),A("click",function(){return ne(e),oe(C().openTuneDatastreamForm())}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,zme,2,0,"mat-icon",61),l()()()}if(2&t){const e=C();m(),f("ngIf",e.isSharded),m(),f("ngIf",!e.isSharded),m(6),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isDatastreamConfigurationSet)}}function Ume(t,n){1&t&&(d(0,"span",27),h(1,"4"),l())}function $me(t,n){1&t&&(d(0,"span",27),h(1,"5"),l())}function Gme(t,n){1&t&&(d(0,"mat-icon",65),h(1," check_circle "),l())}function qme(t,n){if(1&t){const e=_e();d(0,"p",26),y(1,Ume,2,0,"span",59)(2,$me,2,0,"span",59),d(3,"span"),h(4,"Tune Cloud Storage (Optional) "),d(5,"mat-icon",63),h(6," info"),l()(),d(7,"span")(8,"button",29),A("click",function(){return ne(e),oe(C().openTuneGcsForm())}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,Gme,2,0,"mat-icon",64),l()()()}if(2&t){const e=C();m(),f("ngIf",e.isSharded),m(),f("ngIf",!e.isSharded),m(6),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isGcsConfigurationSet)}}function Wme(t,n){1&t&&(d(0,"span",27),h(1,"5"),l())}function Kme(t,n){1&t&&(d(0,"span",27),h(1,"6"),l())}function Zme(t,n){1&t&&(d(0,"mat-icon",68),h(1," check_circle "),l())}function Yme(t,n){if(1&t){const e=_e();d(0,"p",26),y(1,Wme,2,0,"span",59)(2,Kme,2,0,"span",59),d(3,"span"),h(4,"Tune Dataflow (Optional) "),d(5,"mat-icon",66),h(6," info"),l()(),d(7,"span")(8,"button",29),A("click",function(){return ne(e),oe(C().openDataflowForm())}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,Zme,2,0,"mat-icon",67),l()()()}if(2&t){const e=C();m(),f("ngIf",e.isSharded),m(),f("ngIf",!e.isSharded),m(6),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isDataflowConfigurationSet)}}function Qme(t,n){1&t&&(d(0,"span",27),h(1,"2"),l())}function Xme(t,n){1&t&&(d(0,"span",27),h(1,"6"),l())}function Jme(t,n){1&t&&(d(0,"mat-icon",71),h(1," check_circle "),l())}function epe(t,n){if(1&t){const e=_e();d(0,"p",26),y(1,Qme,2,0,"span",59)(2,Xme,2,0,"span",59),d(3,"span"),h(4,"GCS Metadata Path (Optional) "),d(5,"mat-icon",69),h(6," info"),l()(),d(7,"span")(8,"button",29),A("click",function(){return ne(e),oe(C().openGcsMetadataDetailsForm())}),h(9," Configure "),d(10,"mat-icon",30),h(11,"edit"),l(),y(12,Jme,2,0,"mat-icon",70),l()()()}if(2&t){const e=C();m(),f("ngIf","Schema"===e.selectedMigrationMode),m(),f("ngIf","Schema"!==e.selectedMigrationMode),m(6),f("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),f("ngIf",e.isGcsMetadataDetailSet)}}function tpe(t,n){1&t&&(d(0,"span",27),h(1,"5"),l())}function ipe(t,n){if(1&t){const e=_e();d(0,"p",26),y(1,tpe,2,0,"span",59),d(2,"span"),h(3,"Download configuration as JSON "),d(4,"mat-icon",72),h(5,"info "),l()(),d(6,"span")(7,"button",29),A("click",function(){return ne(e),oe(C().downloadConfiguration())}),h(8," Download "),d(9,"mat-icon",73),h(10," download"),l()()()()}if(2&t){const e=C();m(),f("ngIf",e.isSharded),m(6),f("disabled",!e.isTargetDetailSet||!e.isTargetConnectionProfileSet)}}function npe(t,n){if(1&t&&(d(0,"div",24)(1,"mat-card")(2,"mat-card-title"),h(3,"Configured Source Details"),l(),d(4,"p",26)(5,"span",27),h(6,"1"),l(),d(7,"span")(8,"b"),h(9,"Source Database: "),l(),h(10),l()(),d(11,"p",26)(12,"span",27),h(13,"2"),l(),d(14,"span")(15,"b"),h(16,"Number of physical instances configured: "),l(),h(17),l()(),d(18,"p",26)(19,"span",27),h(20,"3"),l(),d(21,"span")(22,"b"),h(23,"Number of logical shards configured: "),l(),h(24),l()()()()),2&t){const e=C();m(10),Pe(e.sourceDatabaseType),m(7),xe(" ",e.numberOfInstances,""),m(7),xe(" ",e.numberOfShards,"")}}function ope(t,n){if(1&t&&(d(0,"div",24)(1,"mat-card")(2,"mat-card-title"),h(3,"Configured Target Details"),l(),d(4,"p",26)(5,"span",27),h(6,"1"),l(),d(7,"span")(8,"b"),h(9,"Spanner Database: "),l(),h(10),l()(),d(11,"p",26)(12,"span",27),h(13,"2"),l(),d(14,"span")(15,"b"),h(16,"Spanner Dialect: "),l(),h(17),l()(),d(18,"p",26)(19,"span",27),h(20,"3"),l(),d(21,"span")(22,"b"),h(23,"Region: "),l(),h(24),l()(),d(25,"p",26)(26,"span",27),h(27,"4"),l(),d(28,"span")(29,"b"),h(30,"Spanner Instance: "),l(),h(31),l()()()()),2&t){const e=C();m(10),Pe(e.targetDetails.TargetDB),m(7),Pe(e.dialect),m(7),Pe(e.region),m(7),Cv("",e.instance," (Nodes: ",e.nodeCount,", Processing Units: ",e.processingUnits,")")}}function rpe(t,n){if(1&t&&(d(0,"div",74),D(1,"br")(2,"mat-progress-bar",75),d(3,"span"),h(4),l()()),2&t){const e=C();m(2),f("value",e.schemaMigrationProgress),m(2),xe(" ",e.schemaProgressMessage,"")}}function ape(t,n){if(1&t&&(d(0,"div",74),D(1,"br")(2,"mat-progress-bar",75),d(3,"span"),h(4),l()()),2&t){const e=C();m(2),f("value",e.dataMigrationProgress),m(2),xe(" ",e.dataProgressMessage,"")}}function spe(t,n){if(1&t&&(d(0,"div",74),D(1,"br")(2,"mat-progress-bar",75),d(3,"span"),h(4),l()()),2&t){const e=C();m(2),f("value",e.foreignKeyUpdateProgress),m(2),xe(" ",e.foreignKeyProgressMessage,"")}}function cpe(t,n){1&t&&(d(0,"div"),D(1,"br"),d(2,"span",76),D(3,"mat-spinner",77),l(),d(4,"span",78),h(5,"Generating Resources"),l(),D(6,"br"),h(7," Note: Spanner migration tool is creating datastream and dataflow resources. Please look at the terminal logs to check the progress of resource creation. All created resources will be displayed here once they are generated. "),l()),2&t&&(m(3),f("diameter",20))}function lpe(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),h(3,"3"),l(),d(4,"span")(5,"b"),h(6,"Aggregated Monitoring Dashboard: "),l(),d(7,"a",79),h(8),l()()()()),2&t){const e=C(2);m(7),f("href",e.resourcesGenerated.AggMonitoringDashboardUrl,qo),m(),Pe(e.resourcesGenerated.AggMonitoringDashboardName)}}function dpe(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),h(3,"3"),l(),d(4,"span")(5,"b"),h(6,"Monitoring Dashboard: "),l(),d(7,"a",79),h(8),l()()()()),2&t){const e=C(2);m(7),f("href",e.resourcesGenerated.MonitoringDashboardUrl,qo),m(),Pe(e.resourcesGenerated.MonitoringDashboardName)}}function upe(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),h(3,"4"),l(),d(4,"span")(5,"b"),h(6,"Datastream job: "),l(),d(7,"a",79),h(8),l()()()()),2&t){const e=C(2);m(7),f("href",e.resourcesGenerated.DataStreamJobUrl,qo),m(),Pe(e.resourcesGenerated.DataStreamJobName)}}function hpe(t,n){if(1&t){const e=_e();d(0,"span")(1,"p",26)(2,"span",27),h(3,"5"),l(),d(4,"span")(5,"b"),h(6,"Dataflow job: "),l(),d(7,"a",79),h(8),l()(),d(9,"span")(10,"button",80),A("click",function(){ne(e);const o=C(2);return oe(o.openGcloudPopup(o.resourcesGenerated.DataflowGcloudCmd))}),d(11,"mat-icon",81),h(12," code"),l()()()()()}if(2&t){const e=C(2);m(7),f("href",e.resourcesGenerated.DataflowJobUrl,qo),m(),Pe(e.resourcesGenerated.DataflowJobName)}}function mpe(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),h(3,"6"),l(),d(4,"span")(5,"b"),h(6,"Pubsub topic: "),l(),d(7,"a",79),h(8),l()()()()),2&t){const e=C(2);m(7),f("href",e.resourcesGenerated.PubsubTopicUrl,qo),m(),Pe(e.resourcesGenerated.PubsubTopicName)}}function ppe(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),h(3,"7"),l(),d(4,"span")(5,"b"),h(6,"Pubsub subscription: "),l(),d(7,"a",79),h(8),l()()()()),2&t){const e=C(2);m(7),f("href",e.resourcesGenerated.PubsubSubscriptionUrl,qo),m(),Pe(e.resourcesGenerated.PubsubSubscriptionName)}}function fpe(t,n){1&t&&(d(0,"th",38),h(1," Shard ID "),l())}function gpe(t,n){if(1&t&&(d(0,"td",39),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.DataShardId," ")}}function _pe(t,n){1&t&&(d(0,"th",38),h(1," Resource Type "),l())}function bpe(t,n){if(1&t&&(d(0,"td",39),h(1),l()),2&t){const e=n.$implicit,i=C(3);m(),xe(" ",i.resourceTypeToDisplayTest.get(e.ResourceType)," ")}}function vpe(t,n){1&t&&(d(0,"th",38),h(1," Resource Name "),l())}function ype(t,n){if(1&t&&(d(0,"td",39),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.ResourceName," ")}}function Cpe(t,n){1&t&&(d(0,"th",38),h(1," Resource Link "),l())}function wpe(t,n){if(1&t){const e=_e();d(0,"span")(1,"button",80),A("click",function(){ne(e);const o=C().$implicit;return oe(C(3).openGcloudPopup(o.GcloudCmd))}),d(2,"mat-icon",81),h(3," code"),l()()()}}function xpe(t,n){if(1&t&&(d(0,"td",39)(1,"a",79),h(2),l(),y(3,wpe,4,0,"span",10),l()),2&t){const e=n.$implicit;m(),f("href",e.ResourceUrl,qo),m(),Pe(e.ResourceName),m(),f("ngIf","dataflow"==e.ResourceType)}}function Dpe(t,n){1&t&&D(0,"tr",40)}function Spe(t,n){1&t&&D(0,"tr",41)}function kpe(t,n){if(1&t&&(d(0,"span")(1,"h2"),h(2,"Shard Level Resources: "),l(),d(3,"div",82)(4,"table",83),me(5,84),y(6,fpe,2,0,"th",14)(7,gpe,2,1,"td",15),pe(),me(8,85),y(9,_pe,2,0,"th",14)(10,bpe,2,1,"td",15),pe(),me(11,86),y(12,vpe,2,0,"th",14)(13,ype,2,1,"td",15),pe(),me(14,87),y(15,Cpe,2,0,"th",14)(16,xpe,4,3,"td",15),pe(),y(17,Dpe,1,0,"tr",18)(18,Spe,1,0,"tr",19),l()()()),2&t){const e=C(2);m(4),f("dataSource",e.displayedResourcesDataSource),m(13),f("matHeaderRowDef",e.generatedResourcesColumns),m(),f("matRowDefColumns",e.generatedResourcesColumns)}}function Mpe(t,n){if(1&t&&(d(0,"div")(1,"h2"),h(2),l(),h(3,' Note: This resources displayed below can be looked upto at a later point in time in the "spannermigrationtool_metadata" database in your spanner instance using the migration jobId listed above. '),d(4,"div",24)(5,"mat-card")(6,"mat-card-title"),h(7,"Job Level Resources:"),l(),d(8,"p",26)(9,"span",27),h(10,"1"),l(),d(11,"span")(12,"b"),h(13,"Spanner Database: "),l(),d(14,"a",79),h(15),l()()(),d(16,"p",26)(17,"span",27),h(18,"2"),l(),d(19,"span")(20,"b"),h(21,"GCS bucket: "),l(),d(22,"a",79),h(23),l()()(),y(24,lpe,9,2,"span",10)(25,dpe,9,2,"span",10)(26,upe,9,2,"span",10)(27,hpe,13,2,"span",10)(28,mpe,9,2,"span",10)(29,ppe,9,2,"span",10),l()(),y(30,kpe,19,3,"span",10),l()),2&t){const e=C();m(2),xe("Migration resources generated for migration jobId: ",e.resourcesGenerated.MigrationJobId,""),m(12),f("href",e.resourcesGenerated.DatabaseUrl,qo),m(),Pe(e.resourcesGenerated.DatabaseName),m(7),f("href",e.resourcesGenerated.BucketUrl,qo),m(),Pe(e.resourcesGenerated.BucketName),m(),f("ngIf",""!==e.resourcesGenerated.AggMonitoringDashboardName&&"lowdt"===e.selectedMigrationType&&e.isSharded),m(),f("ngIf",""!==e.resourcesGenerated.MonitoringDashboardName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(),f("ngIf",""!==e.resourcesGenerated.DataStreamJobName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(),f("ngIf",""!==e.resourcesGenerated.DataflowJobName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(),f("ngIf",""!==e.resourcesGenerated.PubsubTopicName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(),f("ngIf",""!==e.resourcesGenerated.PubsubSubscriptionName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(),f("ngIf","lowdt"===e.selectedMigrationType&&e.isSharded)}}function Tpe(t,n){1&t&&(d(0,"div")(1,"b"),h(2,"Note: "),l(),h(3,"Spanner migration tool has orchestrated the migration successfully. For minimal downtime migrations, it is safe to close Spanner migration tool now without affecting the progress of the migration. The resources listed on this page can be viewed in the \"SMT_JOB\" table in the 'spannermigrationtool_metadata' database created in your Spanner instance after you close the Spanner migration tool. "),l())}function Ipe(t,n){if(1&t){const e=_e();d(0,"span")(1,"button",88),A("click",function(){return ne(e),oe(C().migrate())}),h(2,"Migrate"),l()()}if(2&t){const e=C();m(),f("disabled",!(e.isTargetDetailSet&&"lowdt"===e.selectedMigrationType&&e.isSourceConnectionProfileSet&&e.isTargetConnectionProfileSet||e.isTargetDetailSet&&"bulk"===e.selectedMigrationType)||e.isMigrationInProgress)}}function Epe(t,n){if(1&t){const e=_e();d(0,"span")(1,"button",89),A("click",function(){return ne(e),oe(C().endMigration())}),h(2,"End Migration"),l()()}}const Ope=()=>[5,10,20],Ape=[{path:"",component:Xoe},{path:"source",component:kre,children:[{path:"",redirectTo:"/direct-connection",pathMatch:"full"},{path:"direct-connection",component:coe},{path:"load-dump",component:ure},{path:"load-session",component:gre}]},{path:"workspace",component:Yue},{path:"instruction",component:AN},{path:"prepare-migration",component:(()=>{class t{constructor(e,i,o,r,a){this.dialog=e,this.fetch=i,this.snack=o,this.data=r,this.sidenav=a,this.displayedColumns=["Title","Source","Destination"],this.dataSource=[],this.migrationModes=[],this.migrationTypes=[],this.isSourceConnectionProfileSet=!1,this.isTargetConnectionProfileSet=!1,this.isDatastreamConfigurationSet=!1,this.isGcsConfigurationSet=!1,this.isDataflowConfigurationSet=!1,this.isSourceDetailsSet=!1,this.isTargetDetailSet=!1,this.isForeignKeySkipped=!1,this.isMigrationDetailSet=!1,this.isStreamingSupported=!1,this.isGcsMetadataDetailSet=!1,this.hasDataMigrationStarted=!1,this.hasSchemaMigrationStarted=!1,this.hasForeignKeyUpdateStarted=!1,this.selectedMigrationMode=Kr.schemaAndData,this.connectionType=Jn.DirectConnect,this.selectedMigrationType=Hn.lowDowntimeMigration,this.isMigrationInProgress=!1,this.isLowDtMigrationRunning=!1,this.isResourceGenerated=!1,this.generatingResources=!1,this.errorMessage="",this.schemaProgressMessage="Schema migration in progress...",this.dataProgressMessage="Data migration in progress...",this.foreignKeyProgressMessage="Foreign key update in progress...",this.dataMigrationProgress=0,this.schemaMigrationProgress=0,this.foreignKeyUpdateProgress=0,this.sourceDatabaseName="",this.sourceDatabaseType="",this.resourcesGenerated={MigrationJobId:"",DatabaseName:"",DatabaseUrl:"",BucketName:"",BucketUrl:"",DataStreamJobName:"",DataStreamJobUrl:"",DataflowJobName:"",DataflowJobUrl:"",PubsubTopicName:"",PubsubTopicUrl:"",PubsubSubscriptionName:"",PubsubSubscriptionUrl:"",MonitoringDashboardName:"",MonitoringDashboardUrl:"",AggMonitoringDashboardName:"",AggMonitoringDashboardUrl:"",DataflowGcloudCmd:"",ShardToShardResourcesMap:new Map},this.generatedResourcesColumns=["shardId","resourceType","resourceName","resourceUrl"],this.displayedResources=[],this.displayedResourcesDataSource=new uP(this.displayedResources),this.region="",this.instance="",this.dialect="",this.isSharded=!1,this.numberOfShards="0",this.numberOfInstances="0",this.nodeCount=0,this.processingUnits=0,this.targetDetails={TargetDB:localStorage.getItem(yt.TargetDB),SourceConnProfile:localStorage.getItem(yt.SourceConnProfile),TargetConnProfile:localStorage.getItem(yt.TargetConnProfile),ReplicationSlot:localStorage.getItem(yt.ReplicationSlot),Publication:localStorage.getItem(yt.Publication),GcsMetadataPath:{GcsBucketName:localStorage.getItem(yt.GcsMetadataName),GcsBucketRootPath:localStorage.getItem(yt.GcsMetadataRootPath)||""}},this.datastreamConfig={maxConcurrentBackfillTasks:localStorage.getItem("maxConcurrentBackfillTasks"),maxConcurrentCdcTasks:localStorage.getItem("maxConcurrentCdcTasks")},this.gcsConfig={ttlInDays:localStorage.getItem("ttlInDays"),ttlInDaysSet:"true"===localStorage.getItem("ttlInDaysSet")},this.dataflowConfig={network:localStorage.getItem("network"),subnetwork:localStorage.getItem("subnetwork"),hostProjectId:localStorage.getItem("vpcHostProjectId"),maxWorkers:localStorage.getItem("maxWorkers"),numWorkers:localStorage.getItem("numWorkers"),serviceAccountEmail:localStorage.getItem("serviceAccountEmail"),machineType:localStorage.getItem("machineType"),additionalUserLabels:localStorage.getItem("additionalUserLabels"),kmsKeyName:localStorage.getItem("kmsKeyName"),projectId:localStorage.getItem("dataflowProjectId"),location:localStorage.getItem("dataflowLocation"),gcsTemplatePath:localStorage.getItem("gcsTemplatePath"),customJarPath:localStorage.getItem("customJarPath"),customClassName:localStorage.getItem("customClassName"),customParameter:localStorage.getItem("customParameter")},this.spannerConfig={GCPProjectID:"",SpannerInstanceID:"",IsMetadataDbCreated:!1,IsConfigValid:!1},this.skipForeignKeyResponseList=[{value:!1,displayName:"No"},{value:!0,displayName:"Yes"}],this.migrationModesHelpText=new Map([["Schema","Migrates only the schema of the source database to the configured Spanner instance."],["Data","Migrates the data from the source database to the configured Spanner database. The configured database should already contain the schema."],["Schema And Data","Migrates both the schema and the data from the source database to Spanner."]]),this.migrationTypesHelpText=new Map([["bulk","Use the POC migration option when you want to migrate a sample of your data (<100GB) to do a Proof of Concept. It uses this machine's resources to copy data from the source database to Spanner"],["lowdt","Uses change data capture via Datastream to setup a continuous data replication pipeline from source to Spanner, using Dataflow jobs to perform the actual data migration."]]),this.resourceTypeToDisplayTest=new Map([["gcs","Cloud Storage Bucket"],["pubsub_sub","Pub/Sub subscription"],["pubsub_topic","Pub/Sub topic"],["datastream","Datastream Stream"],["dataflow","Dataflow Job"],["monitoring","Monitoring Dashboard"]])}refreshMigrationMode(){this.selectedMigrationMode!==Kr.schemaOnly&&this.isStreamingSupported&&this.connectionType!==Jn.DumpFile?this.migrationTypes=[{name:"POC Migration",value:Hn.bulkMigration},{name:"Minimal downtime Migration",value:Hn.lowDowntimeMigration}]:(this.selectedMigrationType=Hn.bulkMigration,this.migrationTypes=[{name:"POC Migration",value:Hn.bulkMigration}])}refreshPrerequisites(){this.isSourceConnectionProfileSet=!1,this.isTargetConnectionProfileSet=!1,this.isTargetDetailSet=!1,this.isDatastreamConfigurationSet=!1,this.isGcsConfigurationSet=!1,this.isDataflowConfigurationSet=!1,this.isGcsMetadataDetailSet=!1,this.refreshMigrationMode()}ngOnInit(){this.initializeFromLocalStorage(),this.data.config.subscribe(e=>{this.spannerConfig=e}),this.convObj=this.data.conv.subscribe(e=>{this.conv=e}),localStorage.setItem("vpcHostProjectId",this.spannerConfig.GCPProjectID),this.fetch.getSourceDestinationSummary().subscribe({next:e=>{this.connectionType=e.ConnectionType,this.dataSource=[{title:"Database Type",source:e.DatabaseType,target:"Spanner"},{title:"Number of tables",source:e.SourceTableCount,target:e.SpannerTableCount},{title:"Number of indexes",source:e.SourceIndexCount,target:e.SpannerIndexCount}],this.sourceDatabaseType=e.DatabaseType,this.region=e.Region,this.instance=e.Instance,this.dialect=e.Dialect,this.isSharded=e.IsSharded,this.processingUnits=e.ProcessingUnits,this.nodeCount=e.NodeCount,(e.DatabaseType==ir.MySQL.toLowerCase()||e.DatabaseType==ir.Oracle.toLowerCase()||e.DatabaseType==ir.Postgres.toLowerCase())&&(this.isStreamingSupported=!0),this.isStreamingSupported?this.migrationTypes=[{name:"POC Migration",value:Hn.bulkMigration},{name:"Minimal downtime Migration",value:Hn.lowDowntimeMigration}]:(this.selectedMigrationType=Hn.bulkMigration,this.migrationTypes=[{name:"POC Migration",value:Hn.bulkMigration}]),this.sourceDatabaseName=e.SourceDatabaseName,this.migrationModes=[Kr.schemaOnly,Kr.dataOnly,Kr.schemaAndData]},error:e=>{this.snack.openSnackBar(e.error,"Close")}})}initializeFromLocalStorage(){null!=localStorage.getItem(he.MigrationMode)&&(this.selectedMigrationMode=localStorage.getItem(he.MigrationMode)),null!=localStorage.getItem(he.MigrationType)&&(this.selectedMigrationType=localStorage.getItem(he.MigrationType)),null!=localStorage.getItem(he.isForeignKeySkipped)&&(this.isForeignKeySkipped="true"===localStorage.getItem(he.isForeignKeySkipped)),null!=localStorage.getItem(he.IsMigrationInProgress)&&(this.isMigrationInProgress="true"===localStorage.getItem(he.IsMigrationInProgress),this.subscribeMigrationProgress()),null!=localStorage.getItem(he.IsTargetDetailSet)&&(this.isTargetDetailSet="true"===localStorage.getItem(he.IsTargetDetailSet)),null!=localStorage.getItem(he.IsSourceConnectionProfileSet)&&(this.isSourceConnectionProfileSet="true"===localStorage.getItem(he.IsSourceConnectionProfileSet)),null!=localStorage.getItem("isDatastreamConfigSet")&&(this.isDatastreamConfigurationSet="true"===localStorage.getItem("isDatastreamConfigSet")),null!=localStorage.getItem("isGcsConfigSet")&&(this.isGcsConfigurationSet="true"===localStorage.getItem("isGcsConfigSet")),null!=localStorage.getItem("isDataflowConfigSet")&&(this.isDataflowConfigurationSet="true"===localStorage.getItem("isDataflowConfigSet")),null!=localStorage.getItem(he.IsGcsMetadataPathSet)&&(this.isGcsMetadataDetailSet="true"===localStorage.getItem(he.IsGcsMetadataPathSet)),null!=localStorage.getItem(he.IsTargetConnectionProfileSet)&&(this.isTargetConnectionProfileSet="true"===localStorage.getItem(he.IsTargetConnectionProfileSet)),null!=localStorage.getItem(he.IsSourceDetailsSet)&&(this.isSourceDetailsSet="true"===localStorage.getItem(he.IsSourceDetailsSet)),null!=localStorage.getItem(he.IsMigrationDetailSet)&&(this.isMigrationDetailSet="true"===localStorage.getItem(he.IsMigrationDetailSet)),null!=localStorage.getItem(he.HasSchemaMigrationStarted)&&(this.hasSchemaMigrationStarted="true"===localStorage.getItem(he.HasSchemaMigrationStarted)),null!=localStorage.getItem(he.HasDataMigrationStarted)&&(this.hasDataMigrationStarted="true"===localStorage.getItem(he.HasDataMigrationStarted)),null!=localStorage.getItem(he.DataMigrationProgress)&&(this.dataMigrationProgress=parseInt(localStorage.getItem(he.DataMigrationProgress))),null!=localStorage.getItem(he.SchemaMigrationProgress)&&(this.schemaMigrationProgress=parseInt(localStorage.getItem(he.SchemaMigrationProgress))),null!=localStorage.getItem(he.DataProgressMessage)&&(this.dataProgressMessage=localStorage.getItem(he.DataProgressMessage)),null!=localStorage.getItem(he.SchemaProgressMessage)&&(this.schemaProgressMessage=localStorage.getItem(he.SchemaProgressMessage)),null!=localStorage.getItem(he.ForeignKeyProgressMessage)&&(this.foreignKeyProgressMessage=localStorage.getItem(he.ForeignKeyProgressMessage)),null!=localStorage.getItem(he.ForeignKeyUpdateProgress)&&(this.foreignKeyUpdateProgress=parseInt(localStorage.getItem(he.ForeignKeyUpdateProgress))),null!=localStorage.getItem(he.HasForeignKeyUpdateStarted)&&(this.hasForeignKeyUpdateStarted="true"===localStorage.getItem(he.HasForeignKeyUpdateStarted)),null!=localStorage.getItem(he.GeneratingResources)&&(this.generatingResources="true"===localStorage.getItem(he.GeneratingResources)),null!=localStorage.getItem(he.NumberOfShards)&&(this.numberOfShards=localStorage.getItem(he.NumberOfShards)),null!=localStorage.getItem(he.NumberOfInstances)&&(this.numberOfInstances=localStorage.getItem(he.NumberOfInstances))}clearLocalStorage(){localStorage.removeItem(he.MigrationMode),localStorage.removeItem(he.MigrationType),localStorage.removeItem(he.IsTargetDetailSet),localStorage.removeItem(he.IsGcsMetadataPathSet),localStorage.removeItem(he.isForeignKeySkipped),localStorage.removeItem(he.IsSourceConnectionProfileSet),localStorage.removeItem(he.IsTargetConnectionProfileSet),localStorage.removeItem(he.IsSourceDetailsSet),localStorage.removeItem("isDatastreamConfigSet"),localStorage.removeItem("maxConcurrentBackfillTasks"),localStorage.removeItem("maxConcurrentCdcTasks"),localStorage.removeItem("isGcsConfigSet"),localStorage.removeItem("ttlInDays"),localStorage.removeItem("ttlInDaysSet"),localStorage.removeItem("isDataflowConfigSet"),localStorage.removeItem("network"),localStorage.removeItem("subnetwork"),localStorage.removeItem("maxWorkers"),localStorage.removeItem("numWorkers"),localStorage.removeItem("serviceAccountEmail"),localStorage.removeItem("vpcHostProjectId"),localStorage.removeItem("machineType"),localStorage.removeItem("additionalUserLabels"),localStorage.removeItem("kmsKeyName"),localStorage.removeItem("dataflowProjectId"),localStorage.removeItem("dataflowLocation"),localStorage.removeItem("gcsTemplatePath"),localStorage.removeItem(he.IsMigrationInProgress),localStorage.removeItem(he.HasSchemaMigrationStarted),localStorage.removeItem(he.HasDataMigrationStarted),localStorage.removeItem(he.DataMigrationProgress),localStorage.removeItem(he.SchemaMigrationProgress),localStorage.removeItem(he.DataProgressMessage),localStorage.removeItem(he.SchemaProgressMessage),localStorage.removeItem(he.ForeignKeyProgressMessage),localStorage.removeItem(he.ForeignKeyUpdateProgress),localStorage.removeItem(he.HasForeignKeyUpdateStarted),localStorage.removeItem(he.GeneratingResources),localStorage.removeItem(he.NumberOfShards),localStorage.removeItem(he.NumberOfInstances)}openConnectionProfileForm(e){this.dialog.open(che,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:{IsSource:e,SourceDatabaseType:this.sourceDatabaseType}}).afterClosed().subscribe(()=>{this.targetDetails={TargetDB:localStorage.getItem(yt.TargetDB),SourceConnProfile:localStorage.getItem(yt.SourceConnProfile),TargetConnProfile:localStorage.getItem(yt.TargetConnProfile),ReplicationSlot:localStorage.getItem(yt.ReplicationSlot),Publication:localStorage.getItem(yt.Publication),GcsMetadataPath:{GcsBucketName:localStorage.getItem(yt.GcsMetadataName),GcsBucketRootPath:localStorage.getItem(yt.GcsMetadataRootPath)}},this.isSourceConnectionProfileSet="true"===localStorage.getItem(he.IsSourceConnectionProfileSet),this.isTargetConnectionProfileSet="true"===localStorage.getItem(he.IsTargetConnectionProfileSet),this.isTargetDetailSet&&this.isSourceConnectionProfileSet&&this.isTargetConnectionProfileSet&&(localStorage.setItem(he.IsMigrationDetailSet,"true"),this.isMigrationDetailSet=!0)})}openMigrationProfileForm(){this.dialog.open(lme,{width:"30vw",minWidth:"1200px",maxWidth:"1600px",data:{IsSource:!1,SourceDatabaseType:this.sourceDatabaseType,Region:this.region}}).afterClosed().subscribe(()=>{this.targetDetails={TargetDB:localStorage.getItem(yt.TargetDB),SourceConnProfile:localStorage.getItem(yt.SourceConnProfile),TargetConnProfile:localStorage.getItem(yt.TargetConnProfile),ReplicationSlot:localStorage.getItem(yt.ReplicationSlot),Publication:localStorage.getItem(yt.Publication),GcsMetadataPath:{GcsBucketName:localStorage.getItem(yt.GcsMetadataName),GcsBucketRootPath:localStorage.getItem(yt.GcsMetadataRootPath)}},null!=localStorage.getItem(he.NumberOfShards)&&(this.numberOfShards=localStorage.getItem(he.NumberOfShards)),null!=localStorage.getItem(he.NumberOfInstances)&&(this.numberOfInstances=localStorage.getItem(he.NumberOfInstances)),this.isSourceConnectionProfileSet="true"===localStorage.getItem(he.IsSourceConnectionProfileSet),this.isTargetConnectionProfileSet="true"===localStorage.getItem(he.IsTargetConnectionProfileSet),this.isTargetDetailSet&&this.isSourceConnectionProfileSet&&this.isTargetConnectionProfileSet&&(localStorage.setItem(he.IsMigrationDetailSet,"true"),this.isMigrationDetailSet=!0)})}openGcloudPopup(e){this.dialog.open(She,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:e})}openTuneDatastreamForm(){this.dialog.open(whe,{width:"4000px",minWidth:"400px",maxWidth:"500px",data:{sourceType:this.sourceDatabaseType}}).afterClosed().subscribe(()=>{this.datastreamConfig={maxConcurrentBackfillTasks:localStorage.getItem("maxConcurrentBackfillTasks"),maxConcurrentCdcTasks:localStorage.getItem("maxConcurrentCdcTasks")},this.isDatastreamConfigurationSet="true"===localStorage.getItem("isDatastreamConfigSet"),this.isSharded&&this.fetch.setDatastreamDetailsForShardedMigrations(this.datastreamConfig).subscribe({next:()=>{},error:i=>{this.snack.openSnackBar(i.error,"Close")}})})}openTuneGcsForm(){this.dialog.open(Dhe,{width:"4000px",minWidth:"400px",maxWidth:"500px"}).afterClosed().subscribe(()=>{this.gcsConfig={ttlInDays:localStorage.getItem("ttlInDays"),ttlInDaysSet:"true"===localStorage.getItem("ttlInDaysSet")},this.isGcsConfigurationSet="true"===localStorage.getItem("isGcsConfigSet"),this.isSharded&&this.fetch.setGcsDetailsForShardedMigrations(this.gcsConfig).subscribe({next:()=>{},error:i=>{this.snack.openSnackBar(i.error,"Close")}})})}openDataflowForm(){this.dialog.open(yhe,{width:"4000px",minWidth:"400px",maxWidth:"500px",data:this.spannerConfig}).afterClosed().subscribe(()=>{this.dataflowConfig={network:localStorage.getItem("network"),subnetwork:localStorage.getItem("subnetwork"),hostProjectId:localStorage.getItem("vpcHostProjectId"),maxWorkers:localStorage.getItem("maxWorkers"),numWorkers:localStorage.getItem("numWorkers"),serviceAccountEmail:localStorage.getItem("serviceAccountEmail"),machineType:localStorage.getItem("machineType"),additionalUserLabels:localStorage.getItem("additionalUserLabels"),kmsKeyName:localStorage.getItem("kmsKeyName"),projectId:localStorage.getItem("dataflowProjectId"),location:localStorage.getItem("dataflowLocation"),gcsTemplatePath:localStorage.getItem("gcsTemplatePath"),customJarPath:localStorage.getItem("customJarPath"),customClassName:localStorage.getItem("customClassName"),customParameter:localStorage.getItem("customParameter")},this.isDataflowConfigurationSet="true"===localStorage.getItem("isDataflowConfigSet"),this.isSharded&&this.fetch.setDataflowDetailsForShardedMigrations(this.dataflowConfig).subscribe({next:()=>{},error:i=>{this.snack.openSnackBar(i.error,"Close")}})})}endMigration(){this.dialog.open(vhe,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:{SpannerDatabaseName:this.resourcesGenerated.DatabaseName,SpannerDatabaseUrl:this.resourcesGenerated.DatabaseUrl,SourceDatabaseType:this.sourceDatabaseType,SourceDatabaseName:this.sourceDatabaseName}}).afterClosed().subscribe()}openSourceDetailsForm(){this.dialog.open(_he,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:this.sourceDatabaseType}).afterClosed().subscribe(()=>{this.isSourceDetailsSet="true"===localStorage.getItem(he.IsSourceDetailsSet)})}openShardedBulkSourceDetailsForm(){this.dialog.open(Ohe,{width:"30vw",minWidth:"400px",maxWidth:"550px",data:{sourceDatabaseEngine:this.sourceDatabaseType,isRestoredSession:this.connectionType}}).afterClosed().subscribe(()=>{this.isSourceDetailsSet="true"===localStorage.getItem(he.IsSourceDetailsSet),null!=localStorage.getItem(he.NumberOfShards)&&(this.numberOfShards=localStorage.getItem(he.NumberOfShards)),null!=localStorage.getItem(he.NumberOfInstances)&&(this.numberOfInstances=localStorage.getItem(he.NumberOfInstances))})}openTargetDetailsForm(){this.dialog.open(Que,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:{Region:this.region,Instance:this.instance,Dialect:this.dialect}}).afterClosed().subscribe(()=>{this.targetDetails={TargetDB:localStorage.getItem(yt.TargetDB),SourceConnProfile:localStorage.getItem(yt.SourceConnProfile),TargetConnProfile:localStorage.getItem(yt.TargetConnProfile),ReplicationSlot:localStorage.getItem(yt.ReplicationSlot),Publication:localStorage.getItem(yt.Publication),GcsMetadataPath:{GcsBucketName:localStorage.getItem(yt.GcsMetadataName),GcsBucketRootPath:localStorage.getItem(yt.GcsMetadataRootPath)}},this.isTargetDetailSet="true"===localStorage.getItem(he.IsTargetDetailSet),(this.isSourceDetailsSet&&this.isTargetDetailSet&&this.connectionType===Jn.SessionFile&&this.selectedMigrationMode!==Kr.schemaOnly||this.isTargetDetailSet&&this.selectedMigrationType==Hn.bulkMigration&&this.connectionType!==Jn.SessionFile||this.isTargetDetailSet&&this.selectedMigrationType==Hn.bulkMigration&&this.connectionType===Jn.SessionFile&&this.selectedMigrationMode===Kr.schemaOnly)&&(localStorage.setItem(he.IsMigrationDetailSet,"true"),this.isMigrationDetailSet=!0)})}openGcsMetadataDetailsForm(){this.dialog.open(dme,eoe).afterClosed().subscribe(()=>{this.isGcsMetadataDetailSet="true"===localStorage.getItem(he.IsGcsMetadataPathSet),this.targetDetails={TargetDB:localStorage.getItem(yt.TargetDB),SourceConnProfile:localStorage.getItem(yt.SourceConnProfile),TargetConnProfile:localStorage.getItem(yt.TargetConnProfile),ReplicationSlot:localStorage.getItem(yt.ReplicationSlot),Publication:localStorage.getItem(yt.Publication),GcsMetadataPath:{GcsBucketName:localStorage.getItem(yt.GcsMetadataName),GcsBucketRootPath:localStorage.getItem(yt.GcsMetadataRootPath)}}})}migrate(){this.resetValues(),this.fetch.migrate({TargetDetails:this.targetDetails,DatastreamConfig:this.datastreamConfig,GcsConfig:this.gcsConfig,DataflowConfig:this.dataflowConfig,IsSharded:this.isSharded,MigrationType:this.selectedMigrationType,MigrationMode:this.selectedMigrationMode,skipForeignKeys:this.isForeignKeySkipped}).subscribe({next:()=>{this.selectedMigrationMode==Kr.dataOnly?this.selectedMigrationType==Hn.bulkMigration?(this.hasDataMigrationStarted=!0,localStorage.setItem(he.HasDataMigrationStarted,this.hasDataMigrationStarted.toString())):(this.generatingResources=!0,localStorage.setItem(he.GeneratingResources,this.generatingResources.toString()),this.snack.openSnackBar("Setting up dataflow and datastream jobs","Close")):(this.hasSchemaMigrationStarted=!0,localStorage.setItem(he.HasSchemaMigrationStarted,this.hasSchemaMigrationStarted.toString())),this.snack.openSnackBar("Migration started successfully","Close",5),this.subscribeMigrationProgress()},error:i=>{this.snack.openSnackBar(i.error,"Close"),this.isMigrationInProgress=!this.isMigrationInProgress,this.hasDataMigrationStarted=!1,this.hasSchemaMigrationStarted=!1,this.clearLocalStorage()}})}subscribeMigrationProgress(){var e=!1;this.subscription=ON(5e3).subscribe(i=>{this.fetch.getProgress().subscribe({next:o=>{""==o.ErrorMessage?o.ProgressStatus==rd.SchemaMigrationComplete?(localStorage.setItem(he.SchemaMigrationProgress,"100"),this.schemaMigrationProgress=parseInt(localStorage.getItem(he.SchemaMigrationProgress)),this.selectedMigrationMode==Kr.schemaOnly?this.markMigrationComplete():this.selectedMigrationType==Hn.lowDowntimeMigration?(this.markSchemaMigrationComplete(),this.generatingResources=!0,localStorage.setItem(he.GeneratingResources,this.generatingResources.toString()),e||(this.snack.openSnackBar("Setting up dataflow and datastream jobs","Close"),e=!0)):(this.markSchemaMigrationComplete(),this.hasDataMigrationStarted=!0,localStorage.setItem(he.HasDataMigrationStarted,this.hasDataMigrationStarted.toString()))):o.ProgressStatus==rd.DataMigrationComplete?(this.selectedMigrationType!=Hn.lowDowntimeMigration&&(this.hasDataMigrationStarted=!0,localStorage.setItem(he.HasDataMigrationStarted,this.hasDataMigrationStarted.toString())),this.generatingResources=!1,localStorage.setItem(he.GeneratingResources,this.generatingResources.toString()),this.markMigrationComplete()):o.ProgressStatus==rd.DataWriteInProgress?(this.markSchemaMigrationComplete(),this.hasDataMigrationStarted=!0,localStorage.setItem(he.HasDataMigrationStarted,this.hasDataMigrationStarted.toString()),localStorage.setItem(he.DataMigrationProgress,o.Progress.toString()),this.dataMigrationProgress=parseInt(localStorage.getItem(he.DataMigrationProgress))):o.ProgressStatus==rd.ForeignKeyUpdateComplete?this.markMigrationComplete():o.ProgressStatus==rd.ForeignKeyUpdateInProgress&&(this.markSchemaMigrationComplete(),this.selectedMigrationType==Hn.bulkMigration&&(this.hasDataMigrationStarted=!0,localStorage.setItem(he.HasDataMigrationStarted,this.hasDataMigrationStarted.toString())),this.markForeignKeyUpdateInitiation(),this.dataMigrationProgress=100,localStorage.setItem(he.DataMigrationProgress,this.dataMigrationProgress.toString()),localStorage.setItem(he.ForeignKeyUpdateProgress,o.Progress.toString()),this.foreignKeyUpdateProgress=parseInt(localStorage.getItem(he.ForeignKeyUpdateProgress)),this.generatingResources=!1,localStorage.setItem(he.GeneratingResources,this.generatingResources.toString()),this.fetchGeneratedResources()):(this.errorMessage=o.ErrorMessage,this.subscription.unsubscribe(),this.isMigrationInProgress=!this.isMigrationInProgress,this.snack.openSnackBarWithoutTimeout(this.errorMessage,"Close"),this.schemaProgressMessage="Schema migration cancelled!",this.dataProgressMessage="Data migration cancelled!",this.foreignKeyProgressMessage="Foreign key update cancelled!",this.generatingResources=!1,this.isLowDtMigrationRunning=!1,this.clearLocalStorage())},error:o=>{this.snack.openSnackBar(o.error,"Close"),this.isMigrationInProgress=!this.isMigrationInProgress,this.clearLocalStorage()}})})}markForeignKeyUpdateInitiation(){this.dataMigrationProgress=100,this.dataProgressMessage="Data migration completed successfully!",localStorage.setItem(he.DataMigrationProgress,this.dataMigrationProgress.toString()),localStorage.setItem(he.DataMigrationProgress,this.dataMigrationProgress.toString()),this.hasForeignKeyUpdateStarted=!0,this.foreignKeyUpdateProgress=parseInt(localStorage.getItem(he.ForeignKeyUpdateProgress))}markSchemaMigrationComplete(){this.schemaMigrationProgress=100,this.schemaProgressMessage="Schema migration completed successfully!",localStorage.setItem(he.SchemaMigrationProgress,this.schemaMigrationProgress.toString()),localStorage.setItem(he.SchemaProgressMessage,this.schemaProgressMessage)}downloadConfiguration(){this.fetch.getSourceProfile().subscribe({next:e=>{this.configuredMigrationProfile=e;var i=document.createElement("a");let o=JSON.stringify(this.configuredMigrationProfile,null,"\t").replace(/9223372036854776000/g,"9223372036854775807");i.href="data:text/json;charset=utf-8,"+encodeURIComponent(o),i.download=localStorage.getItem(yt.TargetDB)+"-"+this.configuredMigrationProfile.configType+"-shardConfig.cfg",i.click()},error:e=>{this.snack.openSnackBar(e.error,"Close")}})}fetchGeneratedResources(){this.fetch.getGeneratedResources().subscribe({next:e=>{this.isResourceGenerated=!0,this.resourcesGenerated=e,this.resourcesGenerated.ShardToShardResourcesMap=new Map(Object.entries(this.resourcesGenerated.ShardToShardResourcesMap)),this.prepareGeneratedResourcesTableData(this.resourcesGenerated)},error:e=>{this.snack.openSnackBar(e.error,"Close")}}),this.selectedMigrationType===Hn.lowDowntimeMigration&&(this.isLowDtMigrationRunning=!0)}markMigrationComplete(){this.subscription.unsubscribe(),this.isMigrationInProgress=!this.isMigrationInProgress,this.dataProgressMessage="Data migration completed successfully!",this.schemaProgressMessage="Schema migration completed successfully!",this.schemaMigrationProgress=100,this.dataMigrationProgress=100,this.foreignKeyUpdateProgress=100,this.foreignKeyProgressMessage="Foreign key updated successfully!",this.fetchGeneratedResources(),this.clearLocalStorage(),this.refreshPrerequisites()}resetValues(){this.isMigrationInProgress=!this.isMigrationInProgress,this.hasSchemaMigrationStarted=!1,this.hasDataMigrationStarted=!1,this.generatingResources=!1,this.dataMigrationProgress=0,this.schemaMigrationProgress=0,this.schemaProgressMessage="Schema migration in progress...",this.dataProgressMessage="Data migration in progress...",this.isResourceGenerated=!1,this.hasForeignKeyUpdateStarted=!1,this.foreignKeyUpdateProgress=100,this.foreignKeyProgressMessage="Foreign key update in progress...",this.resourcesGenerated={MigrationJobId:"",DatabaseName:"",DatabaseUrl:"",BucketName:"",BucketUrl:"",DataStreamJobName:"",DataStreamJobUrl:"",DataflowJobName:"",DataflowJobUrl:"",PubsubTopicName:"",PubsubTopicUrl:"",PubsubSubscriptionName:"",PubsubSubscriptionUrl:"",MonitoringDashboardName:"",MonitoringDashboardUrl:"",AggMonitoringDashboardName:"",AggMonitoringDashboardUrl:"",DataflowGcloudCmd:"",ShardToShardResourcesMap:new Map},this.initializeLocalStorage()}initializeLocalStorage(){localStorage.setItem(he.MigrationMode,this.selectedMigrationMode),localStorage.setItem(he.MigrationType,this.selectedMigrationType),localStorage.setItem(he.isForeignKeySkipped,this.isForeignKeySkipped.toString()),localStorage.setItem(he.IsMigrationInProgress,this.isMigrationInProgress.toString()),localStorage.setItem(he.HasSchemaMigrationStarted,this.hasSchemaMigrationStarted.toString()),localStorage.setItem(he.HasDataMigrationStarted,this.hasDataMigrationStarted.toString()),localStorage.setItem(he.HasForeignKeyUpdateStarted,this.hasForeignKeyUpdateStarted.toString()),localStorage.setItem(he.DataMigrationProgress,this.dataMigrationProgress.toString()),localStorage.setItem(he.SchemaMigrationProgress,this.schemaMigrationProgress.toString()),localStorage.setItem(he.ForeignKeyUpdateProgress,this.foreignKeyUpdateProgress.toString()),localStorage.setItem(he.SchemaProgressMessage,this.schemaProgressMessage),localStorage.setItem(he.DataProgressMessage,this.dataProgressMessage),localStorage.setItem(he.ForeignKeyProgressMessage,this.foreignKeyProgressMessage),localStorage.setItem(he.IsTargetDetailSet,this.isTargetDetailSet.toString()),localStorage.setItem(he.GeneratingResources,this.generatingResources.toString()),localStorage.setItem(he.IsGcsMetadataPathSet,this.isGcsMetadataDetailSet.toString())}openSaveSessionSidenav(){this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("saveSession"),this.sidenav.setSidenavDatabaseName(this.conv.DatabaseName)}downloadSession(){TN(this.conv)}prepareGeneratedResourcesTableData(e){for(let[i,o]of e.ShardToShardResourcesMap){for(let r of o)r.DataShardId=i;this.displayedResources.push(...o)}this.displayedResourcesDataSource=new uP(this.displayedResources),this.displayedResourcesDataSource.paginator=this.paginator}ngOnDestroy(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(Hr),_(En),_(nr),_(Hi),_(eo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-prepare-migration"]],viewQuery:function(i,o){if(1&i&&vt(WC,5),2&i){let r;Oe(r=Ae())&&(o.paginator=r.first)}},decls:100,vars:41,consts:[[1,"header"],[1,"breadcrumb"],["mat-button","",1,"breadcrumb_source",3,"routerLink"],["mat-button","",1,"breadcrumb_workspace",3,"routerLink"],["mat-button","",1,"breadcrumb_prepare_migration",3,"routerLink"],[1,"header_action"],["mat-button","",3,"click"],["mat-button","","color","primary",3,"click"],[1,"body"],[1,"definition-container"],[4,"ngIf"],[1,"summary"],["id","summary-table","mat-table","",3,"dataSource"],["matColumnDef","Title"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Source"],["matColumnDef","Destination"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["appearance","outline"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"configure",3,"matTooltip"],[1,"mat-card-class"],["class","static-prereqs",4,"ngIf"],[1,"point"],[1,"bullet"],["matTooltip","Configure the database in Spanner you want this migration to write to (up till now only GCP Project ID and Spanner Instance name have been configured.)",1,"configure"],["mat-button","","color","primary",3,"disabled","click"],["iconPositionEnd",""],["iconPositionEnd","","class","success","matTooltip","Target details configured","matTooltipPosition","above",4,"ngIf"],["class","point",4,"ngIf"],["class","mat-card-class",4,"ngIf"],["class","progress_bar",4,"ngIf"],[1,"mat-elevation-z8",3,"hidden"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],[1,"migrate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[3,"value"],[3,"ngModel","ngModelChange"],[1,"static-prereqs"],["href","https://cloud.google.com/datastream/docs/sources","target","_blank"],["href","https://cloud.google.com/dataflow/docs/concepts/security-and-permissions","target","_blank"],["href","https://cloud.google.com/dataflow/docs/guides/routes-firewall","target","_blank"],["iconPositionEnd","","class","success","matTooltip","Source details configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Source details configured","matTooltipPosition","above",1,"success"],["matTooltip","Configure the connection info of all source shards to connect to and migrate data from.",1,"configure"],["iconPositionEnd","","matTooltip","Target details configured","matTooltipPosition","above",1,"success"],["matTooltip","Datastream will be used to capture change events from the source database. Please ensure you have met the pre-requistes required for setting up Datastream in your GCP environment. ",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Source connection profile configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Source connection profile configured","matTooltipPosition","above",1,"success"],["matTooltip","Configure the source connection profile to allow Datastream to read from your source database",1,"configure"],["matTooltip","Create a connection profile for datastream to write to a GCS bucket. Spanner migration tool will automatically create the bucket for you.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Target connection profile configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Target connection profile configured","matTooltipPosition","above",1,"success"],["class","bullet",4,"ngIf"],["matTooltip","Datastream will be used to stream CDC from source to GCS. This helps you configure the runtime environment for the Datastream job(s) e.g Parallel Backfill workers.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Datastream Tuned","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Datastream Tuned","matTooltipPosition","above",1,"success"],["matTooltip","Use this to tune the GCS bucket options where Datastream outputs to and Dataflow reads from.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Cloud Storage bucket Configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Cloud Storage bucket Configured","matTooltipPosition","above",1,"success"],["matTooltip","Dataflow will be used to perform the actual migration of data from source to Spanner. This helps you configure the execution environment for Dataflow jobs e.g VPC.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Dataflow Configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Dataflow Configured","matTooltipPosition","above",1,"success"],["matTooltip","Specify existing or new GCS path to store metadata for migration.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","GCS Metadata Path Configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","GCS Metadata Path Configured","matTooltipPosition","above",1,"success"],["matTooltip","Download the configuration done above as JSON.",1,"configure"],["iconPositionEnd","","matTooltip","Download configured shards as JSON","matTooltipPosition","above"],[1,"progress_bar"],["mode","determinate",3,"value"],[1,"spinner"],[3,"diameter"],[1,"spinner-text"],["target","_blank",3,"href"],["mat-button","",1,"configure",3,"click"],["matTooltip","Equivalent gCloud command","matTooltipPosition","above"],[1,"mat-elevation-z8"],["id","resources-table","mat-table","",3,"dataSource"],["matColumnDef","shardId"],["matColumnDef","resourceType"],["matColumnDef","resourceName"],["matColumnDef","resourceUrl"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"a",2),h(3,"Select Source"),l(),d(4,"span"),h(5,">"),l(),d(6,"a",3),h(7),l(),d(8,"span"),h(9,">"),l(),d(10,"a",4)(11,"b"),h(12,"Prepare Migration"),l()()(),d(13,"div",5)(14,"button",6),A("click",function(){return o.openSaveSessionSidenav()}),h(15," SAVE SESSION "),l(),d(16,"button",7),A("click",function(){return o.downloadSession()}),h(17,"DOWNLOAD SESSION FILE"),l()()(),D(18,"br"),d(19,"div",8)(20,"div",9),y(21,ume,2,0,"h2",10)(22,hme,2,0,"h2",10),d(23,"div",11)(24,"table",12),me(25,13),y(26,mme,2,0,"th",14)(27,pme,3,1,"td",15),pe(),me(28,16),y(29,fme,2,0,"th",14)(30,gme,2,1,"td",15),pe(),me(31,17),y(32,_me,2,0,"th",14)(33,bme,2,1,"td",15),pe(),y(34,vme,1,0,"tr",18)(35,yme,1,0,"tr",19),l()()(),D(36,"br"),d(37,"mat-form-field",20)(38,"mat-label"),h(39,"Migration Mode:"),l(),d(40,"mat-select",21),un("ngModelChange",function(a){return kn(o.selectedMigrationMode,a)||(o.selectedMigrationMode=a),a}),A("selectionChange",function(){return o.refreshPrerequisites()}),y(41,Cme,2,2,"mat-option",22),l()(),d(42,"mat-icon",23),h(43,"info"),l(),D(44,"br"),y(45,xme,9,3,"div",10)(46,Sme,6,2,"div",10),d(47,"div",24)(48,"mat-card")(49,"mat-card-title"),h(50,"Prerequisites"),l(),d(51,"mat-card-subtitle"),h(52,"Before we begin, please ensure you have done the following:"),l(),y(53,kme,6,0,"div",25)(54,Mme,20,0,"div",25),l()(),d(55,"div",24)(56,"mat-card"),y(57,Ime,14,2,"div",10)(58,Ome,16,2,"div",10),d(59,"div")(60,"mat-card-title"),h(61,"Target details:"),l(),d(62,"p",26)(63,"span",27),h(64,"1"),l(),d(65,"span"),h(66,"Configure Spanner Database "),d(67,"mat-icon",28),h(68," info"),l()(),d(69,"span")(70,"button",29),A("click",function(){return o.openTargetDetailsForm()}),h(71," Configure "),d(72,"mat-icon",30),h(73,"edit"),l(),y(74,Ame,2,0,"mat-icon",31),l()()(),y(75,Rme,13,2,"p",32)(76,Fme,13,2,"p",32)(77,Bme,13,2,"p",32)(78,Hme,13,4,"p",32)(79,qme,13,4,"p",32)(80,Yme,13,4,"p",32)(81,epe,13,4,"p",32)(82,ipe,11,2,"p",32),l()()(),y(83,npe,25,3,"div",33)(84,ope,32,6,"div",33)(85,rpe,5,2,"div",34)(86,ape,5,2,"div",34)(87,spe,5,2,"div",34)(88,cpe,8,1,"div",10),D(89,"br")(90,"br"),y(91,Mpe,31,12,"div",10),d(92,"div",35),D(93,"mat-paginator",36),l(),D(94,"br")(95,"br"),y(96,Tpe,4,0,"div",10),d(97,"div",37),y(98,Ipe,3,1,"span",10)(99,Epe,3,0,"span",10),l()()),2&i&&(m(2),f("routerLink","/"),m(4),f("routerLink","/workspace"),m(),xe("Configure Schema (",o.dialect," Dialect)"),m(3),f("routerLink","/prepare-migration"),m(11),f("ngIf",!o.isSharded),m(),f("ngIf",o.isSharded),m(2),f("dataSource",o.dataSource),m(10),f("matHeaderRowDef",o.displayedColumns),m(),f("matRowDefColumns",o.displayedColumns),m(5),dn("ngModel",o.selectedMigrationMode),m(),f("ngForOf",o.migrationModes),m(),f("matTooltip",o.migrationModesHelpText.get(o.selectedMigrationMode)),m(3),f("ngIf","Schema"!=o.selectedMigrationMode),m(),f("ngIf",!("Schema"===o.selectedMigrationMode||"lowdt"===o.selectedMigrationType)),m(7),f("ngIf","bulk"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(3),f("ngIf","sessionFile"===o.connectionType&&"Schema"!==o.selectedMigrationMode&&!o.isSharded),m(),f("ngIf",o.isSharded&&"bulk"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(12),f("disabled",o.isMigrationInProgress||o.isLowDtMigrationRunning),m(4),f("ngIf",o.isTargetDetailSet),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode&&o.isSharded),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode&&!o.isSharded),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode&&!o.isSharded),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(),f("ngIf",o.isSharded),m(),f("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode&&o.isSharded),m(),f("ngIf","Schema"!==o.selectedMigrationMode&&o.isSharded),m(),f("ngIf",o.isTargetDetailSet),m(),f("ngIf",o.hasSchemaMigrationStarted),m(),f("ngIf",o.hasDataMigrationStarted),m(),f("ngIf",o.hasForeignKeyUpdateStarted),m(),f("ngIf",o.generatingResources),m(3),f("ngIf",o.isResourceGenerated),m(),f("hidden",!(o.isResourceGenerated&&"lowdt"===o.selectedMigrationType&&o.isSharded)),m(),f("pageSizeOptions",No(40,Ope)),m(3),f("ngIf",o.isResourceGenerated&&"lowdt"===o.selectedMigrationType),m(2),f("ngIf",!o.isLowDtMigrationRunning),m(),f("ngIf",o.isLowDtMigrationRunning))},dependencies:[rn,It,qr,zE,Yt,Mi,Gu,O0,E0,vO,Di,xi,Xn,Tn,_i,ps,ka,fs,Ma,Sa,gs,Ta,Ia,_s,bs,WC,vn,Nl,sd],styles:[".header[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb_workspace[_ngcontent-%COMP%]{color:#0000008f}.header[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb_prepare_migration[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.definition-container[_ngcontent-%COMP%]{max-height:500px;overflow:auto}.definition-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:13px}.body[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}#summary-table[_ngcontent-%COMP%]{min-width:30%;max-width:50%}#summary-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:10%}.configure[_ngcontent-%COMP%]{color:#1967d2}.migrate[_ngcontent-%COMP%]{margin-top:10px}#resources-table[_ngcontent-%COMP%]{width:100%}"]})}return t})()},{path:"**",redirectTo:"/",pathMatch:"full"}];let Ppe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t});static#i=this.\u0275inj=st({imports:[wN.forRoot(Ape),wN]})}return t})(),Rpe=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.snack=i,this.dataService=o,this.data=r,this.dialogRef=a,this.errMessage="",this.updateConfigForm=new ti({GCPProjectID:new U(r.GCPProjectID,[ee.required]),SpannerInstanceID:new U(r.SpannerInstanceID,[ee.required])}),a.disableClose=!0}updateSpannerConfig(){let e=this.updateConfigForm.value;this.fetch.setSpannerConfig({GCPProjectID:e.GCPProjectID,SpannerInstanceID:e.SpannerInstanceID}).subscribe({next:o=>{o.IsMetadataDbCreated&&this.snack.openSnackBar("Metadata database not found. A new database has been created to store session metadata.","Close",5),this.snack.openSnackBar(o.IsConfigValid?"Spanner Config updated successfully":"Invalid Spanner Configuration","Close",5),this.dialogRef.close({...o}),this.dataService.updateIsOffline(),this.dataService.updateConfig(o),this.dataService.getAllSessions()},error:o=>{this.snack.openSnackBar(o.message,"Close")}})}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(En),_(nr),_(Hi),_(mo),_(bn))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-update-spanner-config-form"]],decls:20,vars:3,consts:[["mat-dialog-content",""],[1,"save-session-form",3,"formGroup"],["appearance","outline",1,"full-width"],["matInput","","placeholder","project id","type","text","formControlName","GCPProjectID","id","project-id"],["hintLabel","Min. 2 characters and Max. 64 characters","appearance","outline",1,"full-width"],["matInput","","placeholder","instance id","type","text","required","","minlength","2","maxlength","64","pattern","^[a-z]([-a-z0-9]*[a-z0-9])?","formControlName","SpannerInstanceID","id","instance-id"],["align","end"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["id","save-button","mat-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),h(3,"Connect to Spanner"),l(),d(4,"mat-form-field",2)(5,"mat-label"),h(6,"Project ID"),l(),D(7,"input",3),l(),D(8,"br"),d(9,"mat-form-field",4)(10,"mat-label"),h(11,"Instance ID"),l(),D(12,"input",5),d(13,"mat-hint",6),h(14),l()()()(),d(15,"div",7)(16,"button",8),h(17,"CANCEL"),l(),d(18,"button",9),A("click",function(){return o.updateSpannerConfig()}),h(19," SAVE "),l()()),2&i&&(m(),f("formGroup",o.updateConfigForm),m(13),xe("",(null==o.updateConfigForm.value.SpannerInstanceID?null:o.updateConfigForm.value.SpannerInstanceID.length)||0,"/64"),m(4),f("disabled",!o.updateConfigForm.valid))},dependencies:[Yt,Di,xi,sc,qi,_n,Ci,_i,Bi,Do,X0,J0,eC,wi,zi,zn,So,ko],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.buttons-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]})}return t})();function Npe(t,n){1&t&&(d(0,"mat-icon",11),h(1," warning "),l())}function Fpe(t,n){1&t&&(d(0,"mat-icon",12),h(1," check_circle "),l())}function Lpe(t,n){1&t&&(d(0,"mat-icon",13),h(1," warning "),l())}function Bpe(t,n){1&t&&(d(0,"div")(1,"span",null,14),h(3,"Spanner database is not configured, click on edit button to configure "),l()())}function Vpe(t,n){if(1&t&&(d(0,"div")(1,"span",15)(2,"b"),h(3,"Project Id: "),l(),h(4),l(),d(5,"span",16)(6,"b"),h(7,"Spanner Instance Id: "),l(),h(8),l()()),2&t){const e=C();m(4),Pe(e.spannerConfig.GCPProjectID),m(4),Pe(e.spannerConfig.SpannerInstanceID)}}let jpe=(()=>{class t{constructor(e,i,o,r,a){this.data=e,this.dialog=i,this.sidenav=o,this.clickEvent=r,this.loaderService=a,this.isOfflineStatus=!1,this.spannerConfig={GCPProjectID:"",SpannerInstanceID:""}}ngOnInit(){this.data.config.subscribe(e=>{this.spannerConfig=e}),this.data.isOffline.subscribe({next:e=>{this.isOfflineStatus=e}}),this.clickEvent.spannerConfig.subscribe(e=>{e&&this.openEditForm()})}openEditForm(){this.dialog.open(Rpe,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:this.spannerConfig}).afterClosed().subscribe(i=>{i&&(this.spannerConfig=i)})}showWarning(){return!this.spannerConfig.GCPProjectID&&!this.spannerConfig.SpannerInstanceID}openInstructionSidenav(){this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("instruction")}openUserGuide(){window.open("https://github.com/GoogleCloudPlatform/spanner-migration-tool/blob/master/SpannerMigrationToolUIUserGuide.pdf","_blank")}stopLoading(){this.loaderService.stopLoader(),this.clickEvent.cancelDbLoading(),this.clickEvent.closeDatabaseLoader()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Hi),_(Hr),_(eo),_(or),_(Mg))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-header"]],decls:16,vars:6,consts:[["color","secondry",1,"header-container"],[1,"pointer",3,"routerLink","click"],[1,"menu-spacer"],[1,"right_container"],[1,"spanner_config"],["class","icon warning","matTooltip","Invalid spanner configuration. Working in offline mode",4,"ngIf"],["id","check-icon","class","icon success","matTooltip","Valid spanner configuration.",4,"ngIf"],["class","icon warning","matTooltip","Spanner configuration has not been set.",4,"ngIf"],[4,"ngIf"],["id","edit-icon","matTooltip","Edit Settings",1,"cursor-pointer",3,"click"],["mat-icon-button","","matTooltip","Instruction",1,"example-icon","favorite-icon",3,"click"],["matTooltip","Invalid spanner configuration. Working in offline mode",1,"icon","warning"],["id","check-icon","matTooltip","Valid spanner configuration.",1,"icon","success"],["matTooltip","Spanner configuration has not been set.",1,"icon","warning"],["name",""],[1,"pid"],[1,"iid"]],template:function(i,o){1&i&&(d(0,"mat-toolbar",0)(1,"span",1),A("click",function(){return o.stopLoading()}),h(2," Spanner migration tool"),l(),D(3,"span",2),d(4,"div",3)(5,"div",4),y(6,Npe,2,0,"mat-icon",5)(7,Fpe,2,0,"mat-icon",6)(8,Lpe,2,0,"mat-icon",7)(9,Bpe,4,0,"div",8)(10,Vpe,9,2,"div",8),d(11,"mat-icon",9),A("click",function(){return o.openEditForm()}),h(12,"edit"),l()(),d(13,"button",10),A("click",function(){return o.openUserGuide()}),d(14,"mat-icon"),h(15,"help"),l()()()()),2&i&&(m(),f("routerLink","/"),m(5),f("ngIf",o.isOfflineStatus&&!o.showWarning()),m(),f("ngIf",!o.isOfflineStatus&&!o.showWarning()),m(),f("ngIf",o.showWarning()),m(),f("ngIf",o.showWarning()),m(),f("ngIf",!o.showWarning()))},dependencies:[It,qr,Aq,ba,Mi,vn],styles:[".header-container[_ngcontent-%COMP%]{padding:0 20px}.menu-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.right_container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%]{margin:0 15px 0 0;display:flex;align-items:center;border-radius:5px;padding:0 10px}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:2px}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:300;padding:0 10px}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%] .pid[_ngcontent-%COMP%]{margin-right:10px}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%] .pointer[_ngcontent-%COMP%]{cursor:pointer}.cursor-pointer[_ngcontent-%COMP%]{color:#3367d6}"]})}return t})();function zpe(t,n){1&t&&(d(0,"div",1),D(1,"mat-progress-bar",2),l())}let Hpe=(()=>{class t{constructor(e){this.loaderService=e,this.showProgress=!0}ngOnInit(){this.loaderService.isLoading.subscribe(e=>{this.showProgress=e})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Mg))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-loader"]],decls:1,vars:1,consts:[["class","progress-bar-wrapper",4,"ngIf"],[1,"progress-bar-wrapper"],["mode","indeterminate","value","40"]],template:function(i,o){1&i&&y(0,zpe,2,0,"div",0),2&i&&f("ngIf",o.showProgress)},dependencies:[It,vO],styles:[".progress-bar-wrapper[_ngcontent-%COMP%]{background-color:#cbd0e9;height:2px}.progress-bar-wrapper[_ngcontent-%COMP%] .mat-mdc-progress-bar[_ngcontent-%COMP%]{height:2px}"]})}return t})();function Upe(t,n){if(1&t&&(d(0,"mat-option",12),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Pe(e)}}function $pe(t,n){if(1&t&&(d(0,"mat-option",12),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Pe(e)}}function Gpe(t,n){if(1&t){const e=_e();d(0,"button",20),A("click",function(){ne(e);const o=C().index;return oe(C().removeColumnForm(o))}),d(1,"mat-icon"),h(2,"remove"),l(),d(3,"span"),h(4,"REMOVE COLUMN"),l()()}}function qpe(t,n){if(1&t){const e=_e();me(0),d(1,"mat-card",13)(2,"div",14)(3,"mat-form-field",1)(4,"mat-label"),h(5,"Column Name"),l(),d(6,"mat-select",15),A("selectionChange",function(){return ne(e),oe(C().selectedColumnChange())}),y(7,$pe,2,2,"mat-option",3),l()(),d(8,"mat-form-field",1)(9,"mat-label"),h(10,"Sort"),l(),d(11,"mat-select",16)(12,"mat-option",17),h(13,"Ascending"),l(),d(14,"mat-option",18),h(15,"Descending"),l()()()(),y(16,Gpe,5,0,"button",19),l(),pe()}if(2&t){const e=n.index,i=C();m(2),f("formGroupName",e),m(5),f("ngForOf",i.addColumnsList[e]),m(9),f("ngIf",!i.viewRuleFlag)}}function Wpe(t,n){if(1&t){const e=_e();d(0,"button",21),A("click",function(){return ne(e),oe(C().addNewColumnForm())}),d(1,"mat-icon"),h(2,"add"),l(),d(3,"span"),h(4,"ADD COLUMN"),l()()}}function Kpe(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",22),A("click",function(){return ne(e),oe(C().addIndex())}),h(2," ADD RULE "),l()()}if(2&t){const e=C();m(),f("disabled",!(e.addIndexForm.valid&&e.ruleNameValid&&e.ColsArray.controls.length>0))}}function Zpe(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",23),A("click",function(){return ne(e),oe(C().deleteRule())}),h(2," DELETE RULE "),l()()}}let Ype=(()=>{class t{constructor(e,i,o,r){this.fb=e,this.data=i,this.sidenav=o,this.conversion=r,this.ruleNameValid=!1,this.ruleName="",this.ruleType="",this.resetRuleType=new Ne,this.tableNames=[],this.totalColumns=[],this.addColumnsList=[],this.commonColumns=[],this.viewRuleData={},this.viewRuleFlag=!1,this.conv={},this.ruleId="",this.addIndexForm=this.fb.group({tableName:["",ee.required],indexName:["",[ee.required,ee.pattern("^[A-Za-z][A-Za-z0-9_]{0,127}$")]],ColsArray:this.fb.array([])})}ngOnInit(){this.data.conv.subscribe({next:e=>{this.conv=e,this.tableNames=Object.keys(e.SpSchema).map(i=>e.SpSchema[i].Name)}}),this.sidenav.sidenavAddIndexTable.subscribe({next:e=>{this.addIndexForm.controls.tableName.setValue(e),""!==e&&this.selectedTableChange(e)}}),this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag&&this.sidenav.ruleData.subscribe(i=>{this.viewRuleData=i,this.viewRuleData&&this.viewRuleFlag&&this.getRuleData(this.viewRuleData)})})}getRuleData(e){this.ruleId=e?.Id;let i=this.conv.SpSchema[e?.Data?.TableId]?.Name;this.addIndexForm.controls.tableName.setValue(i),this.addIndexForm.controls.indexName.setValue(e?.Data?.Name),this.selectedTableChange(i),this.setColArraysForViewRules(e?.Data?.TableId,e?.Data?.Keys),this.addIndexForm.disable()}setColArraysForViewRules(e,i){if(this.ColsArray.clear(),i)for(let o=0;oo.ColDefs[r].Name)}this.ColsArray.clear(),this.commonColumns=[],this.addColumnsList=[],this.updateCommonColumns()}addNewColumnForm(){let e=this.fb.group({columnName:["",ee.required],sort:["",ee.required]});this.ColsArray.push(e),this.updateCommonColumns(),this.addColumnsList.push([...this.commonColumns])}selectedColumnChange(){this.updateCommonColumns(),this.addColumnsList=this.addColumnsList.map((e,i)=>{const o=[...this.commonColumns];return""!==this.ColsArray.value[i].columnName&&o.push(this.ColsArray.value[i].columnName),o})}updateCommonColumns(){this.commonColumns=this.totalColumns.filter(e=>{let i=!0;return this.ColsArray.value.forEach(o=>{o.columnName===e&&(i=!1)}),i})}removeColumnForm(e){this.ColsArray.removeAt(e),this.addColumnsList=this.addColumnsList.filter((i,o)=>o!==e),this.selectedColumnChange()}addIndex(){let e=this.addIndexForm.value,i=[],o=this.conversion.getTableIdFromSpName(e.tableName,this.conv);i.push({Name:e.indexName,TableId:o,Unique:!1,Keys:e.ColsArray.map((r,a)=>({ColId:this.conversion.getColIdFromSpannerColName(r.columnName,o,this.conv),Desc:"true"===r.sort,Order:a+1})),Id:""}),this.applyRule(i[0]),this.resetRuleType.emit(""),this.sidenav.setSidenavAddIndexTable(""),this.sidenav.closeSidenav()}applyRule(e){let o=this.conversion.getTableIdFromSpName(this.addIndexForm.value.tableName,this.conv);this.data.applyRule({Name:this.ruleName,Type:"add_index",ObjectType:"Table",AssociatedObjects:o,Enabled:!0,Data:e,Id:""})}deleteRule(){this.data.dropRule(this.ruleId),this.resetRuleType.emit(""),this.sidenav.setSidenavAddIndexTable(""),this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Dr),_(Hi),_(eo),_(pc))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-add-index-form"]],inputs:{ruleNameValid:"ruleNameValid",ruleName:"ruleName",ruleType:"ruleType"},outputs:{resetRuleType:"resetRuleType"},decls:23,vars:7,consts:[[3,"formGroup"],["appearance","outline"],["matSelect","","formControlName","tableName","required","true",1,"input-field",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","indexName",1,"input-field"],[1,"container",2,"display","inline"],["href","https://cloud.google.com/spanner/docs/reference/standard-sql/data-definition-language#naming_conventions"],["align","end"],["formArrayName","ColsArray",1,"addcol-form"],[4,"ngFor","ngForOf"],["mat-button","","color","primary","class","add-column-btn","type","button",3,"click",4,"ngIf"],[4,"ngIf"],[3,"value"],[1,"column-form-card"],[3,"formGroupName"],["matSelect","","formControlName","columnName","required","true",1,"input-field",3,"selectionChange"],["formControlName","sort","required","true",1,"input-field"],["value","false"],["value","true"],["mat-button","","color","primary",3,"click",4,"ngIf"],["mat-button","","color","primary",3,"click"],["mat-button","","color","primary","type","button",1,"add-column-btn",3,"click"],["mat-raised-button","","type","submit","color","primary",1,"add-column-btn",3,"disabled","click"],["mat-raised-button","","type","submit","color","primary",1,"add-column-btn",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),h(3,"For Table"),l(),d(4,"mat-select",2),A("selectionChange",function(a){return o.selectedTableChange(a.value)}),y(5,Upe,2,2,"mat-option",3),l()(),d(6,"mat-form-field",1)(7,"mat-label"),h(8,"Index Name"),l(),D(9,"input",4),d(10,"mat-hint")(11,"div",5),h(12," Max. 128 characters, and starts with a letter. "),d(13,"a",6),h(14,"More Details"),l()()(),d(15,"mat-hint",7),h(16),l()(),me(17,8),y(18,qpe,17,3,"ng-container",9)(19,Wpe,5,0,"button",10),D(20,"br"),y(21,Kpe,3,1,"div",11)(22,Zpe,3,0,"div",11),pe(),l()),2&i&&(f("formGroup",o.addIndexForm),m(5),f("ngForOf",o.tableNames),m(11),xe("",(null==o.addIndexForm.value.indexName?null:o.addIndexForm.value.indexName.length)||0,"/128"),m(2),f("ngForOf",o.ColsArray.controls),m(),f("ngIf",o.addColumnsList.length{class t{constructor(e,i,o,r,a){this.fb=e,this.data=i,this.sidenav=o,this.conversion=r,this.fetch=a,this.ruleNameValid=!1,this.ruleType="",this.ruleName="",this.resetRuleType=new Ne,this.conversionType={},this.sourceType=[],this.destinationType=[],this.viewRuleData=[],this.viewRuleFlag=!1,this.pgSQLToStandardTypeTypemap=new Map,this.standardTypeToPGSQLTypemap=new Map,this.conv={},this.isPostgreSQLDialect=!1,this.addGlobalDataTypeForm=this.fb.group({objectType:["column",ee.required],table:["allTable",ee.required],column:["allColumn",ee.required],sourceType:["",ee.required],destinationType:["",ee.required]})}ngOnInit(){this.data.typeMap.subscribe({next:e=>{this.conversionType=e,this.sourceType=Object.keys(this.conversionType)}}),this.data.conv.subscribe({next:e=>{this.conv=e,this.isPostgreSQLDialect="postgresql"===this.conv.SpDialect}}),this.conversion.pgSQLToStandardTypeTypeMap.subscribe(e=>{this.pgSQLToStandardTypeTypemap=e}),this.conversion.standardTypeToPGSQLTypeMap.subscribe(e=>{this.standardTypeToPGSQLTypemap=e}),this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag&&this.sidenav.ruleData.subscribe(i=>{this.viewRuleData=i,this.viewRuleData&&this.setViewRuleData(this.viewRuleData)})})}setViewRuleData(e){if(this.ruleId=e?.Id,this.addGlobalDataTypeForm.controls.sourceType.setValue(Object.keys(e?.Data)[0]),this.updateDestinationType(Object.keys(e?.Data)[0]),this.isPostgreSQLDialect){let i=this.standardTypeToPGSQLTypemap.get(Object.values(this.viewRuleData?.Data)[0]);this.addGlobalDataTypeForm.controls.destinationType.setValue(void 0===i?Object.values(this.viewRuleData?.Data)[0]:i)}else this.addGlobalDataTypeForm.controls.destinationType.setValue(Object.values(this.viewRuleData?.Data)[0]);this.addGlobalDataTypeForm.disable()}formSubmit(){const e=this.addGlobalDataTypeForm.value,i=e.sourceType,o={};if(this.isPostgreSQLDialect){let r=this.pgSQLToStandardTypeTypemap.get(e.destinationType);o[i]=void 0===r?e.destinationType:r}else o[i]=e.destinationType;this.applyRule(o),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}updateDestinationType(e){const i=this.conversionType[e],o=[];i?.forEach(r=>{o.push(r.DisplayT)}),this.destinationType=o}applyRule(e){this.data.applyRule({Name:this.ruleName,Type:"global_datatype_change",ObjectType:"Column",AssociatedObjects:"All Columns",Enabled:!0,Data:e,Id:""})}deleteRule(){this.data.dropRule(this.ruleId),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Dr),_(Hi),_(eo),_(pc),_(En))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-edit-global-datatype-form"]],inputs:{ruleNameValid:"ruleNameValid",ruleType:"ruleType",ruleName:"ruleName"},outputs:{resetRuleType:"resetRuleType"},decls:34,vars:5,consts:[[3,"formGroup"],["appearance","outline"],["matSelect","","formControlName","objectType","required","true",1,"input-field"],["value","column"],["matSelect","","formControlName","table","required","true",1,"input-field"],["value","allTable"],["matSelect","","formControlName","column","required","true",1,"input-field"],["value","allColumn"],["matSelect","","formControlName","sourceType","required","true",1,"input-field",3,"selectionChange"],["sourceField",""],[3,"value",4,"ngFor","ngForOf"],["appearance","outline",4,"ngIf"],[4,"ngIf"],[3,"value"],["matSelect","","formControlName","destinationType","required","true",1,"input-field"],["mat-raised-button","","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){if(1&i){const r=_e();d(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),h(3,"For object type"),l(),d(4,"mat-select",2)(5,"mat-option",3),h(6,"Column"),l()()(),d(7,"h3"),h(8,"When"),l(),d(9,"mat-form-field",1)(10,"mat-label"),h(11,"Table is"),l(),d(12,"mat-select",4)(13,"mat-option",5),h(14,"All tables"),l()()(),d(15,"mat-form-field",1)(16,"mat-label"),h(17,"and column is"),l(),d(18,"mat-select",6)(19,"mat-option",7),h(20,"All column"),l()()(),d(21,"h3"),h(22,"Convert from"),l(),d(23,"mat-form-field",1)(24,"mat-label"),h(25,"Source data type"),l(),d(26,"mat-select",8,9),A("selectionChange",function(){ne(r);const s=Ft(27);return oe(o.updateDestinationType(s.value))}),y(28,Qpe,2,2,"mat-option",10),l()(),d(29,"h3"),h(30,"Convert to"),l(),y(31,Jpe,5,1,"mat-form-field",11)(32,efe,3,1,"div",12)(33,tfe,3,0,"div",12),l()}if(2&i){const r=Ft(27);f("formGroup",o.addGlobalDataTypeForm),m(28),f("ngForOf",o.sourceType),m(3),f("ngIf",r.selected),m(),f("ngIf",!o.viewRuleFlag),m(),f("ngIf",o.viewRuleFlag)}},dependencies:[rn,It,Yt,Di,xi,Xn,Tn,_i,Bi,Do,wi,zi],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{width:100%;padding:0}"]})}return t})();function nfe(t,n){if(1&t&&(d(0,"mat-option",10),h(1),l()),2&t){const e=n.$implicit;f("value",e),m(),Pe(e)}}function ofe(t,n){if(1&t&&(d(0,"mat-option",10),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Pe(e.name)}}function rfe(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",11),A("click",function(){return ne(e),oe(C().formSubmit())}),h(2," ADD RULE "),l()()}if(2&t){const e=C();m(),f("disabled",!(e.editColMaxLengthForm.valid&&e.ruleNameValid))}}function afe(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",12),A("click",function(){return ne(e),oe(C().deleteRule())}),h(2,"DELETE RULE"),l()()}}let sfe=(()=>{class t{constructor(e,i,o,r){this.fb=e,this.data=i,this.sidenav=o,this.conversion=r,this.ruleNameValid=!1,this.ruleName="",this.ruleType="",this.resetRuleType=new Ne,this.ruleId="",this.tableNames=[],this.viewRuleData=[],this.viewRuleFlag=!1,this.conv={},this.spTypes=[],this.hintlabel="",this.editColMaxLengthForm=this.fb.group({tableName:["",ee.required],column:["allColumn",ee.required],spDataType:["",ee.required],maxColLength:["",[ee.required,ee.pattern("([1-9][0-9]*|MAX)")]]})}ngOnInit(){this.data.conv.subscribe({next:e=>{this.conv=e,this.tableNames=Object.keys(e.SpSchema).map(i=>e.SpSchema[i].Name),this.tableNames.push("All tables"),"postgresql"===this.conv.SpDialect?(this.spTypes=[{name:"VARCHAR",value:"STRING"}],this.hintlabel="Max "+In.StringMaxLength+" for VARCHAR"):(this.spTypes=[{name:"STRING",value:"STRING"},{name:"BYTES",value:"BYTES"}],this.hintlabel="Max "+In.StringMaxLength+" for STRING and "+In.ByteMaxLength+" for BYTES")}}),this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag&&this.sidenav.ruleData.subscribe(i=>{if(this.viewRuleData=i,this.viewRuleData){this.ruleId=this.viewRuleData?.Id;let o=this.viewRuleData?.AssociatedObjects;this.editColMaxLengthForm.controls.tableName.setValue(o),this.editColMaxLengthForm.controls.spDataType.setValue(this.viewRuleData?.Data?.spDataType),this.editColMaxLengthForm.controls.maxColLength.setValue(this.viewRuleData?.Data?.spColMaxLength),this.editColMaxLengthForm.disable()}})})}formSubmit(){const e=this.editColMaxLengthForm.value;(("STRING"===e.spDataType||"VARCHAR"===e.spDataType)&&e.spColMaxLength>In.StringMaxLength||"BYTES"===e.spDataType&&e.spColMaxLength>In.ByteMaxLength)&&(e.spColMaxLength=In.StorageMaxLength);const i={spDataType:e.spDataType,spColMaxLength:e.maxColLength};let r=this.conversion.getTableIdFromSpName(e.tableName,this.conv);""===r&&(r="All tables"),this.data.applyRule({Name:this.ruleName,Type:"edit_column_max_length",ObjectType:"Table",AssociatedObjects:r,Enabled:!0,Data:i,Id:""}),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}deleteRule(){this.data.dropRule(this.ruleId),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Dr),_(Hi),_(eo),_(pc))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-edit-column-max-length"]],inputs:{ruleNameValid:"ruleNameValid",ruleName:"ruleName",ruleType:"ruleType"},outputs:{resetRuleType:"resetRuleType"},decls:23,vars:6,consts:[[3,"formGroup"],["appearance","outline"],["matSelect","","formControlName","tableName","required","true",1,"input-field"],[3,"value",4,"ngFor","ngForOf"],["matSelect","","formControlName","column","required","true",1,"input-field"],["value","allColumn"],["matSelect","","formControlName","spDataType","required","true",1,"input-field"],["appearance","outline",3,"hintLabel"],["matInput","","formControlName","maxColLength",1,"input-field"],[4,"ngIf"],[3,"value"],["mat-raised-button","","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),h(3,"Table is"),l(),d(4,"mat-select",2),y(5,nfe,2,2,"mat-option",3),l()(),d(6,"mat-form-field",1)(7,"mat-label"),h(8,"and column is"),l(),d(9,"mat-select",4)(10,"mat-option",5),h(11,"All column"),l()()(),d(12,"mat-form-field",1)(13,"mat-label"),h(14,"and Spanner Type is"),l(),d(15,"mat-select",6),y(16,ofe,2,2,"mat-option",3),l()(),d(17,"mat-form-field",7)(18,"mat-label"),h(19,"Max column length"),l(),D(20,"input",8),l(),y(21,rfe,3,1,"div",9)(22,afe,3,0,"div",9),l()),2&i&&(f("formGroup",o.editColMaxLengthForm),m(5),f("ngForOf",o.tableNames),m(11),f("ngForOf",o.spTypes),m(),f("hintLabel",o.hintlabel),m(4),f("ngIf",!o.viewRuleFlag),m(),f("ngIf",o.viewRuleFlag))},dependencies:[rn,It,Yt,Di,xi,qi,Xn,Tn,Ci,_i,Bi,Do,wi,zi]})}return t})();function cfe(t,n){if(1&t&&(d(0,"mat-option",7),h(1),l()),2&t){const e=n.$implicit;f("value",e.value),m(),Pe(e.display)}}function lfe(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",8),A("click",function(){return ne(e),oe(C().formSubmit())}),h(2," ADD RULE "),l()()}if(2&t){const e=C();m(),f("disabled",!(e.addShardIdPrimaryKeyForm.valid&&e.ruleNameValid))}}function dfe(t,n){if(1&t){const e=_e();d(0,"div")(1,"button",9),A("click",function(){return ne(e),oe(C().deleteRule())}),h(2,"DELETE RULE"),l()()}}let ufe=(()=>{class t{constructor(e,i,o){this.fb=e,this.data=i,this.sidenav=o,this.ruleNameValid=!1,this.ruleName="",this.ruleType="",this.resetRuleType=new Ne,this.viewRuleFlag=!1,this.viewRuleData={},this.primaryKeyOrder=[{value:!0,display:"At the beginning"},{value:!1,display:"At the end"}],this.addShardIdPrimaryKeyForm=this.fb.group({table:["allTable",ee.required],primaryKeyOrder:["",ee.required]})}ngOnInit(){this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag&&(this.sidenav.ruleData.subscribe(i=>{this.viewRuleData=i,this.viewRuleData&&this.setViewRuleData(this.viewRuleData)}),this.addShardIdPrimaryKeyForm.disable())})}formSubmit(){this.data.applyRule({Name:this.ruleName,Type:"add_shard_id_primary_key",AssociatedObjects:"All Tables",Enabled:!0,Data:{AddedAtTheStart:this.addShardIdPrimaryKeyForm.value.primaryKeyOrder},Id:""}),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}setViewRuleData(e){this.ruleId=e?.Id,this.addShardIdPrimaryKeyForm.controls.primaryKeyOrder.setValue(e?.Data?.AddedAtTheStart)}deleteRule(){this.data.dropRule(this.ruleId),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Dr),_(Hi),_(eo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-add-shard-id-primary-key"]],inputs:{ruleNameValid:"ruleNameValid",ruleName:"ruleName",ruleType:"ruleType"},outputs:{resetRuleType:"resetRuleType"},decls:14,vars:4,consts:[[3,"formGroup"],["appearance","outline"],["matSelect","","formControlName","table","required","true",1,"input-field"],["value","allTable"],["matSelect","","formControlName","primaryKeyOrder","required","true",1,"input-field"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"value"],["mat-raised-button","","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),h(3,"Table is"),l(),d(4,"mat-select",2)(5,"mat-option",3),h(6,"All tables"),l()()(),d(7,"mat-form-field",1)(8,"mat-label"),h(9,"Order in Primary Key"),l(),d(10,"mat-select",4),y(11,cfe,2,2,"mat-option",5),l()(),y(12,lfe,3,1,"div",6)(13,dfe,3,0,"div",6),l()),2&i&&(f("formGroup",o.addShardIdPrimaryKeyForm),m(11),f("ngForOf",o.primaryKeyOrder),m(),f("ngIf",!o.viewRuleFlag),m(),f("ngIf",o.viewRuleFlag))},dependencies:[rn,It,Yt,Di,xi,Xn,Tn,_i,Bi,Do,wi,zi]})}return t})();function hfe(t,n){1&t&&(d(0,"mat-option",18),h(1,"Add shard id column as primary key"),l())}function mfe(t,n){if(1&t){const e=_e();d(0,"div")(1,"app-edit-global-datatype-form",19),A("resetRuleType",function(){return ne(e),oe(C().resetRuleType())}),l()()}if(2&t){const e=C();m(),f("ruleNameValid",e.ruleForm.valid)("ruleName",e.rulename)("ruleType",e.ruletype)}}function pfe(t,n){if(1&t){const e=_e();d(0,"div")(1,"app-add-index-form",19),A("resetRuleType",function(){return ne(e),oe(C().resetRuleType())}),l()()}if(2&t){const e=C();m(),f("ruleNameValid",e.ruleForm.valid)("ruleName",e.rulename)("ruleType",e.ruletype)}}function ffe(t,n){if(1&t){const e=_e();d(0,"div")(1,"app-edit-column-max-length",19),A("resetRuleType",function(){return ne(e),oe(C().resetRuleType())}),l()()}if(2&t){const e=C();m(),f("ruleNameValid",e.ruleForm.valid)("ruleName",e.rulename)("ruleType",e.ruletype)}}function gfe(t,n){if(1&t){const e=_e();d(0,"div")(1,"app-add-shard-id-primary-key",19),A("resetRuleType",function(){return ne(e),oe(C().resetRuleType())}),l()()}if(2&t){const e=C();m(),f("ruleNameValid",e.ruleForm.valid)("ruleName",e.rulename)("ruleType",e.ruletype)}}let _fe=(()=>{class t{constructor(e,i){this.sidenav=e,this.data=i,this.currentRules=[],this.ruleForm=new ti({ruleName:new U("",[ee.required,ee.pattern("^[a-zA-Z].{0,59}$")]),ruleType:new U("",[ee.required])}),this.rulename="",this.ruletype="",this.viewRuleData=[],this.viewRuleFlag=!1,this.shardedMigration=!1}ngOnInit(){this.data.conv.subscribe({next:e=>{Object.keys(e.SpSchema),this.shardedMigration=!!e.IsSharded}}),this.ruleForm.valueChanges.subscribe(()=>{this.rulename=this.ruleForm.controls.ruleName?.value,this.ruletype=this.ruleForm.controls.ruleType?.value}),this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag?this.sidenav.ruleData.subscribe(i=>{this.viewRuleData=i,this.setViewRuleData(this.viewRuleData)}):(this.ruleForm.enable(),this.ruleForm.controls.ruleType.setValue(""),this.sidenav.sidenavRuleType.subscribe(i=>{"addIndex"===i&&this.ruleForm.controls.ruleType.setValue("addIndex")}))})}setViewRuleData(e){this.ruleForm.disable(),this.ruleForm.controls.ruleName.setValue(e?.Name),this.ruleForm.controls.ruleType.setValue(this.getViewRuleType(this.viewRuleData?.Type))}closeSidenav(){this.sidenav.closeSidenav()}get ruleType(){return this.ruleForm.get("ruleType")?.value}resetRuleType(){this.ruleForm.controls.ruleType.setValue(""),this.ruleForm.controls.ruleName.setValue(""),this.ruleForm.markAsUntouched()}getViewRuleType(e){switch(e){case"add_index":return"addIndex";case"global_datatype_change":return"globalDataType";case"edit_column_max_length":return"changeMaxLength";case"add_shard_id_primary_key":return"addShardIdPrimaryKey"}return""}static#e=this.\u0275fac=function(i){return new(i||t)(_(eo),_(Hi))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sidenav-rule"]],inputs:{currentRules:"currentRules"},decls:36,vars:8,consts:[[1,"sidenav"],[1,"sidenav-header"],[1,"header-title"],["mat-icon-button","","color","primary",1,"close-button",3,"click"],[1,"close-icon"],[1,"sidenav-content"],[3,"formGroup"],["hintLabel","Max. 60 characters, and starts with a letter.","appearance","outline"],["matInput","","formControlName","ruleName",1,"input-field"],["align","end"],["appearance","outline"],["matSelect","","formControlName","ruleType","required","true",1,"input-field"],["ruleType",""],["value","globalDataType"],["value","addIndex"],["value","changeMaxLength"],["value","addShardIdPrimaryKey",4,"ngIf"],[4,"ngIf"],["value","addShardIdPrimaryKey"],[3,"ruleNameValid","ruleName","ruleType","resetRuleType"]],template:function(i,o){if(1&i&&(d(0,"div",0)(1,"div",1)(2,"span",2),h(3),l(),d(4,"button",3),A("click",function(){return o.closeSidenav()}),d(5,"mat-icon",4),h(6,"close"),l()()(),d(7,"div",5)(8,"form",6)(9,"h3"),h(10,"Rule info"),l(),d(11,"mat-form-field",7)(12,"mat-label"),h(13,"Rule name"),l(),D(14,"input",8),d(15,"mat-hint",9),h(16),l()(),d(17,"h3"),h(18,"Rule definition"),l(),d(19,"mat-form-field",10)(20,"mat-label"),h(21,"Rule type"),l(),d(22,"mat-select",11,12)(24,"mat-option",13),h(25,"Change global data type"),l(),d(26,"mat-option",14),h(27,"Add Index"),l(),d(28,"mat-option",15),h(29,"Change default max column length"),l(),y(30,hfe,2,0,"mat-option",16),l()(),D(31,"br"),l(),y(32,mfe,2,3,"div",17)(33,pfe,2,3,"div",17)(34,ffe,2,3,"div",17)(35,gfe,2,3,"div",17),l()()),2&i){const r=Ft(23);m(3),Pe(o.viewRuleFlag?"View Rule":"Add Rule"),m(5),f("formGroup",o.ruleForm),m(8),xe("",(null==o.ruleForm.value.ruleName?null:o.ruleForm.value.ruleName.length)||0,"/60"),m(14),f("ngIf",o.shardedMigration),m(2),f("ngIf","globalDataType"===r.value),m(),f("ngIf","addIndex"===r.value),m(),f("ngIf","changeMaxLength"===r.value),m(),f("ngIf","addShardIdPrimaryKey"===r.value)}},dependencies:[It,ba,Mi,Di,xi,sc,qi,Xn,Tn,_n,Ci,_i,Bi,Do,wi,zi,Ype,ife,sfe,ufe],styles:["mat-mdc-form-field[_ngcontent-%COMP%]{padding-bottom:0} .mat-mdc-form-field-wrapper{padding-bottom:14px}"]})}return t})();function bfe(t,n){1&t&&(d(0,"th",39),h(1,"Total tables"),l())}function vfe(t,n){if(1&t&&(d(0,"td",40),h(1),l()),2&t){const e=n.$implicit;m(),Pe(e.total)}}function yfe(t,n){1&t&&(d(0,"th",39)(1,"mat-icon",41),h(2," error "),l(),h(3,"Converted with many issues "),l())}function Cfe(t,n){if(1&t&&(d(0,"td",40),h(1),l()),2&t){const e=n.$implicit;m(),Pe(e.bad)}}function wfe(t,n){1&t&&(d(0,"th",39)(1,"mat-icon",42),h(2," warning"),l(),h(3,"Conversion some warnings & suggestions "),l())}function xfe(t,n){if(1&t&&(d(0,"td",40),h(1),l()),2&t){const e=n.$implicit;m(),Pe(e.ok)}}function Dfe(t,n){1&t&&(d(0,"th",39)(1,"mat-icon",43),h(2," check_circle "),l(),h(3,"100% conversion "),l())}function Sfe(t,n){if(1&t&&(d(0,"td",40),h(1),l()),2&t){const e=n.$implicit;m(),Pe(e.good)}}function kfe(t,n){1&t&&D(0,"tr",44)}function Mfe(t,n){1&t&&D(0,"tr",45)}function Tfe(t,n){1&t&&(d(0,"th",63),h(1," No. "),l())}function Ife(t,n){if(1&t&&(d(0,"td",64),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.position," ")}}function Efe(t,n){1&t&&(d(0,"th",65),h(1," Description "),l())}function Ofe(t,n){if(1&t&&(d(0,"td",66),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.description," ")}}function Afe(t,n){1&t&&(d(0,"th",67),h(1," Table Count "),l())}function Pfe(t,n){if(1&t&&(d(0,"td",68),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.tableCount," ")}}function Rfe(t,n){1&t&&(d(0,"th",69),h(1,"\xa0"),l())}function Nfe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_down"),l())}function Ffe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function Lfe(t,n){if(1&t){const e=_e();d(0,"td",70)(1,"button",71),A("click",function(o){const a=ne(e).$implicit;return C(2).toggleRow(a),oe(o.stopPropagation())}),y(2,Nfe,2,0,"mat-icon",37)(3,Ffe,2,0,"mat-icon",37),l()()}if(2&t){const e=n.$implicit,i=C(2);m(2),f("ngIf",!i.isRowExpanded(e)),m(),f("ngIf",i.isRowExpanded(e))}}function Bfe(t,n){if(1&t&&(d(0,"td",70)(1,"div",72)(2,"div",73),h(3),l()()()),2&t){const e=n.$implicit,i=C(2);Xe("colspan",i.columnsToDisplayWithExpand.length),m(),f("ngClass",i.isRowExpanded(e)?"expanded":"collapsed"),m(2),xe(" TABLES: ",e.tableNamesJoinedByComma,"")}}function Vfe(t,n){1&t&&D(0,"tr",44)}function jfe(t,n){if(1&t){const e=_e();d(0,"tr",74),A("click",function(){const r=ne(e).$implicit;return oe(C(2).toggleRow(r))}),l()}if(2&t){const e=n.$implicit;et("example-expanded-row",C(2).isRowExpanded(e))}}function zfe(t,n){1&t&&D(0,"tr",75)}const Eg=()=>["expandedDetail"];function Hfe(t,n){if(1&t&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon",46),h(4," error "),l(),h(5," ERRORS "),l()(),d(6,"table",47),me(7,48),y(8,Tfe,2,0,"th",49)(9,Ife,2,1,"td",50),pe(),me(10,51),y(11,Efe,2,0,"th",52)(12,Ofe,2,1,"td",53),pe(),me(13,54),y(14,Afe,2,0,"th",55)(15,Pfe,2,1,"td",56),pe(),me(16,57),y(17,Rfe,2,0,"th",58)(18,Lfe,4,2,"td",59),pe(),me(19,60),y(20,Bfe,4,3,"td",59),pe(),y(21,Vfe,1,0,"tr",34)(22,jfe,1,2,"tr",61)(23,zfe,1,0,"tr",62),l()()),2&t){const e=C();m(6),f("dataSource",e.issueTableData_Errors),m(15),f("matHeaderRowDef",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",No(4,Eg))}}function Ufe(t,n){1&t&&D(0,"br")}function $fe(t,n){1&t&&(d(0,"th",63),h(1," No. "),l())}function Gfe(t,n){if(1&t&&(d(0,"td",64),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.position," ")}}function qfe(t,n){1&t&&(d(0,"th",65),h(1," Description "),l())}function Wfe(t,n){if(1&t&&(d(0,"td",66),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.description," ")}}function Kfe(t,n){1&t&&(d(0,"th",67),h(1," Table Count "),l())}function Zfe(t,n){if(1&t&&(d(0,"td",68),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.tableCount," ")}}function Yfe(t,n){1&t&&(d(0,"th",69),h(1,"\xa0"),l())}function Qfe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_down"),l())}function Xfe(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function Jfe(t,n){if(1&t){const e=_e();d(0,"td",70)(1,"button",71),A("click",function(o){const a=ne(e).$implicit;return C(2).toggleRow(a),oe(o.stopPropagation())}),y(2,Qfe,2,0,"mat-icon",37)(3,Xfe,2,0,"mat-icon",37),l()()}if(2&t){const e=n.$implicit,i=C(2);m(2),f("ngIf",!i.isRowExpanded(e)),m(),f("ngIf",i.isRowExpanded(e))}}function ege(t,n){if(1&t&&(d(0,"td",70)(1,"div",72)(2,"div",73),h(3),l()()()),2&t){const e=n.$implicit,i=C(2);Xe("colspan",i.columnsToDisplayWithExpand.length),m(),f("ngClass",i.isRowExpanded(e)?"expanded":"collapsed"),m(2),xe(" TABLES: ",e.tableNamesJoinedByComma,"")}}function tge(t,n){1&t&&D(0,"tr",44)}function ige(t,n){if(1&t){const e=_e();d(0,"tr",74),A("click",function(){const r=ne(e).$implicit;return oe(C(2).toggleRow(r))}),l()}if(2&t){const e=n.$implicit;et("example-expanded-row",C(2).isRowExpanded(e))}}function nge(t,n){1&t&&D(0,"tr",75)}function oge(t,n){if(1&t&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon",76),h(4," warning "),l(),h(5," WARNINGS "),l()(),d(6,"table",47),me(7,48),y(8,$fe,2,0,"th",49)(9,Gfe,2,1,"td",50),pe(),me(10,51),y(11,qfe,2,0,"th",52)(12,Wfe,2,1,"td",53),pe(),me(13,54),y(14,Kfe,2,0,"th",55)(15,Zfe,2,1,"td",56),pe(),me(16,57),y(17,Yfe,2,0,"th",58)(18,Jfe,4,2,"td",59),pe(),me(19,60),y(20,ege,4,3,"td",59),pe(),y(21,tge,1,0,"tr",34)(22,ige,1,2,"tr",61)(23,nge,1,0,"tr",62),l()()),2&t){const e=C();m(6),f("dataSource",e.issueTableData_Warnings),m(15),f("matHeaderRowDef",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",No(4,Eg))}}function rge(t,n){1&t&&D(0,"br")}function age(t,n){1&t&&(d(0,"th",63),h(1," No. "),l())}function sge(t,n){if(1&t&&(d(0,"td",64),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.position," ")}}function cge(t,n){1&t&&(d(0,"th",65),h(1," Description "),l())}function lge(t,n){if(1&t&&(d(0,"td",66),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.description," ")}}function dge(t,n){1&t&&(d(0,"th",67),h(1," Table Count "),l())}function uge(t,n){if(1&t&&(d(0,"td",68),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.tableCount," ")}}function hge(t,n){1&t&&(d(0,"th",69),h(1,"\xa0"),l())}function mge(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_down"),l())}function pge(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function fge(t,n){if(1&t){const e=_e();d(0,"td",70)(1,"button",71),A("click",function(o){const a=ne(e).$implicit;return C(2).toggleRow(a),oe(o.stopPropagation())}),y(2,mge,2,0,"mat-icon",37)(3,pge,2,0,"mat-icon",37),l()()}if(2&t){const e=n.$implicit,i=C(2);m(2),f("ngIf",!i.isRowExpanded(e)),m(),f("ngIf",i.isRowExpanded(e))}}function gge(t,n){if(1&t&&(d(0,"td",70)(1,"div",72)(2,"div",73),h(3),l()()()),2&t){const e=n.$implicit,i=C(2);Xe("colspan",i.columnsToDisplayWithExpand.length),m(),f("ngClass",i.isRowExpanded(e)?"expanded":"collapsed"),m(2),xe(" TABLES: ",e.tableNamesJoinedByComma,"")}}function _ge(t,n){1&t&&D(0,"tr",44)}function bge(t,n){if(1&t){const e=_e();d(0,"tr",74),A("click",function(){const r=ne(e).$implicit;return oe(C(2).toggleRow(r))}),l()}if(2&t){const e=n.$implicit;et("example-expanded-row",C(2).isRowExpanded(e))}}function vge(t,n){1&t&&D(0,"tr",75)}function yge(t,n){if(1&t&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon",77),h(4," wb_incandescent "),l(),h(5," SUGGESTIONS "),l()(),d(6,"table",47),me(7,48),y(8,age,2,0,"th",49)(9,sge,2,1,"td",50),pe(),me(10,51),y(11,cge,2,0,"th",52)(12,lge,2,1,"td",53),pe(),me(13,54),y(14,dge,2,0,"th",55)(15,uge,2,1,"td",56),pe(),me(16,57),y(17,hge,2,0,"th",58)(18,fge,4,2,"td",59),pe(),me(19,60),y(20,gge,4,3,"td",59),pe(),y(21,_ge,1,0,"tr",34)(22,bge,1,2,"tr",61)(23,vge,1,0,"tr",62),l()()),2&t){const e=C();m(6),f("dataSource",e.issueTableData_Suggestions),m(15),f("matHeaderRowDef",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",No(4,Eg))}}function Cge(t,n){1&t&&D(0,"br")}function wge(t,n){1&t&&(d(0,"th",63),h(1," No. "),l())}function xge(t,n){if(1&t&&(d(0,"td",64),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.position," ")}}function Dge(t,n){1&t&&(d(0,"th",65),h(1," Description "),l())}function Sge(t,n){if(1&t&&(d(0,"td",66),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.description," ")}}function kge(t,n){1&t&&(d(0,"th",67),h(1," Table Count "),l())}function Mge(t,n){if(1&t&&(d(0,"td",68),h(1),l()),2&t){const e=n.$implicit;m(),xe(" ",e.tableCount," ")}}function Tge(t,n){1&t&&(d(0,"th",69),h(1,"\xa0"),l())}function Ige(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_down"),l())}function Ege(t,n){1&t&&(d(0,"mat-icon"),h(1,"keyboard_arrow_up"),l())}function Oge(t,n){if(1&t){const e=_e();d(0,"td",70)(1,"button",71),A("click",function(o){const a=ne(e).$implicit;return C(2).toggleRow(a),oe(o.stopPropagation())}),y(2,Ige,2,0,"mat-icon",37)(3,Ege,2,0,"mat-icon",37),l()()}if(2&t){const e=n.$implicit,i=C(2);m(2),f("ngIf",!i.isRowExpanded(e)),m(),f("ngIf",i.isRowExpanded(e))}}function Age(t,n){if(1&t&&(d(0,"td",70)(1,"div",72)(2,"div",73),h(3),l()()()),2&t){const e=n.$implicit,i=C(2);Xe("colspan",i.columnsToDisplayWithExpand.length),m(),f("ngClass",i.isRowExpanded(e)?"expanded":"collapsed"),m(2),xe(" TABLES: ",e.tableNamesJoinedByComma,"")}}function Pge(t,n){1&t&&D(0,"tr",44)}function Rge(t,n){if(1&t){const e=_e();d(0,"tr",74),A("click",function(){const r=ne(e).$implicit;return oe(C(2).toggleRow(r))}),l()}if(2&t){const e=n.$implicit;et("example-expanded-row",C(2).isRowExpanded(e))}}function Nge(t,n){1&t&&D(0,"tr",75)}function Fge(t,n){if(1&t&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon",78),h(4," check_circle "),l(),h(5," NOTES "),l()(),d(6,"table",47),me(7,48),y(8,wge,2,0,"th",49)(9,xge,2,1,"td",50),pe(),me(10,51),y(11,Dge,2,0,"th",52)(12,Sge,2,1,"td",53),pe(),me(13,54),y(14,kge,2,0,"th",55)(15,Mge,2,1,"td",56),pe(),me(16,57),y(17,Tge,2,0,"th",58)(18,Oge,4,2,"td",59),pe(),me(19,60),y(20,Age,4,3,"td",59),pe(),y(21,Pge,1,0,"tr",34)(22,Rge,1,2,"tr",61)(23,Nge,1,0,"tr",62),l()()),2&t){const e=C();m(6),f("dataSource",e.issueTableData_Notes),m(15),f("matHeaderRowDef",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",e.columnsToDisplayWithExpand),m(),f("matRowDefColumns",No(4,Eg))}}function Lge(t,n){1&t&&D(0,"br")}function Bge(t,n){1&t&&(d(0,"div",79)(1,"div",80),ei(),d(2,"svg",81),D(3,"path",82),l()(),pr(),d(4,"div",83),h(5," Woohoo! No issues or suggestions"),D(6,"br"),h(7,"found. "),l(),D(8,"br"),l())}const Sw=t=>({"width.%":t});let Vge=(()=>{class t{toggleRow(e){this.isRowExpanded(e)?this.expandedElements.delete(e):this.expandedElements.add(e)}isRowExpanded(e){return this.expandedElements.has(e)}constructor(e,i,o){this.sidenav=e,this.clickEvent=i,this.fetch=o,this.issueTableData_Errors=[],this.issueTableData_Warnings=[],this.issueTableData_Suggestions=[],this.issueTableData_Notes=[],this.columnsToDisplay=["position","description","tableCount"],this.columnsToDisplayWithExpand=[...this.columnsToDisplay,"expand"],this.expandedElements=new Set,this.srcDbType="",this.connectionDetail="",this.summaryText="",this.issueDescription={},this.conversionRateCount={good:0,ok:0,bad:0},this.conversionRatePercentage={good:0,ok:0,bad:0},this.rateCountDataSource=[],this.rateCountDisplayedColumns=["total","bad","ok","good"],this.ratePcDataSource=[],this.ratePcDisplayedColumns=["bad","ok","good"]}ngOnInit(){this.clickEvent.viewAssesment.subscribe(e=>{this.srcDbType=e.srcDbType,this.connectionDetail=e.connectionDetail,this.conversionRateCount=e.conversionRates;let i=this.conversionRateCount.good+this.conversionRateCount.ok+this.conversionRateCount.bad;if(i>0)for(let o in this.conversionRatePercentage)this.conversionRatePercentage[o]=Number((this.conversionRateCount[o]/i*100).toFixed(2));i>0&&this.setRateCountDataSource(i),this.fetch.getDStructuredReport().subscribe({next:o=>{this.summaryText=o.summary.text}}),this.issueTableData={position:0,description:"",tableCount:0,tableNamesJoinedByComma:""},this.fetch.getIssueDescription().subscribe({next:o=>{this.issueDescription=o,this.generateIssueReport()}})})}closeSidenav(){this.sidenav.closeSidenav()}setRateCountDataSource(e){this.rateCountDataSource=[],this.rateCountDataSource.push({total:e,bad:this.conversionRateCount.bad,ok:this.conversionRateCount.ok,good:this.conversionRateCount.good})}downloadStructuredReport(){var e=document.createElement("a");this.fetch.getDStructuredReport().subscribe({next:i=>{let o=JSON.stringify(i).replace(/9223372036854776000/g,"9223372036854775807");e.href="data:text;charset=utf-8,"+encodeURIComponent(o),e.download=`${i.summary.dbName}_migration_structuredReport.json`,e.click()}})}downloadTextReport(){var e=document.createElement("a");this.fetch.getDTextReport().subscribe({next:i=>{let o=this.connectionDetail;e.href="data:text;charset=utf-8,"+encodeURIComponent(i),e.download=`${o}_migration_textReport.txt`,e.click()}})}downloadReports(){let e=new RN;this.fetch.getDStructuredReport().subscribe({next:i=>{let o=i.summary.dbName,r=JSON.stringify(i).replace(/9223372036854776000/g,"9223372036854775807");e.file(o+"_migration_structuredReport.json",r),this.fetch.getDTextReport().subscribe({next:s=>{e.file(o+"_migration_textReport.txt",s),e.generateAsync({type:"blob"}).then(c=>{var u=document.createElement("a");u.href=URL.createObjectURL(c),u.download=`${o}_reports`,u.click()})}})}})}generateIssueReport(){this.fetch.getDStructuredReport().subscribe({next:e=>{let i=e.tableReports;var o={errors:new Map,warnings:new Map,suggestions:new Map,notes:new Map};for(var r of i){let c=r.issues;if(null==c)return this.issueTableData_Errors=[],this.issueTableData_Warnings=[],this.issueTableData_Suggestions=[],void(this.issueTableData_Notes=[]);for(var a of c){let u={tableCount:0,tableNames:new Set};switch(a.issueType){case"Error":case"Errors":this.appendIssueWithTableInformation(a.issueList,o.errors,u,r);break;case"Warnings":case"Warning":this.appendIssueWithTableInformation(a.issueList,o.warnings,u,r);break;case"Suggestion":case"Suggestions":this.appendIssueWithTableInformation(a.issueList,o.suggestions,u,r);break;case"Note":case"Notes":this.appendIssueWithTableInformation(a.issueList,o.notes,u,r)}}}let s=o.warnings;this.issueTableData_Warnings=[],0!=s.size&&this.populateTableData(s,this.issueTableData_Warnings),s=o.errors,this.issueTableData_Errors=[],0!=s.size&&this.populateTableData(s,this.issueTableData_Errors),s=o.suggestions,this.issueTableData_Suggestions=[],0!=s.size&&this.populateTableData(s,this.issueTableData_Suggestions),s=o.notes,this.issueTableData_Notes=[],0!=s.size&&this.populateTableData(s,this.issueTableData_Notes)}})}populateTableData(e,i){let o=1;for(let[r,a]of e.entries()){let s=[...a.tableNames.keys()];i.push({position:o,description:this.issueDescription[r],tableCount:a.tableCount,tableNamesJoinedByComma:s.join(", ")}),o+=1}}appendIssueWithTableInformation(e,i,o,r){for(var a of e)if(i.has(a.category)){let c=i.get(a.category),u={tableNames:new Set(c.tableNames),tableCount:c.tableNames.size};u.tableNames.add(r.srcTableName),u.tableCount=u.tableNames.size,i.set(a.category,u)}else{let c=o;c.tableNames.add(r.srcTableName),c.tableCount=c.tableNames.size,i.set(a.category,c)}}static#e=this.\u0275fac=function(i){return new(i||t)(_(eo),_(or),_(En))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sidenav-view-assessment"]],decls:87,vars:25,consts:[[1,"sidenav-view-assessment-container"],[1,"sidenav-view-assessment-header"],[1,"mat-h2","header-title"],[1,"btn-source-select"],[1,"reportsButtons"],["mat-raised-button","","color","primary",1,"split-button-left",3,"click"],["mat-raised-button","","color","primary",1,"split-button-right",3,"matMenuTriggerFor"],["aria-hidden","false","aria-label","More options"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","","color","primary",1,"close-button",3,"click"],[1,"close-icon"],[1,"content"],[1,"summaryHeader"],[1,"databaseName"],[1,"migrationDetails"],[1,"summaryText"],[1,"sidenav-percentage-bar"],[1,"danger-background",3,"ngStyle"],[1,"warning-background",3,"ngStyle"],[1,"success-background",3,"ngStyle"],[1,"sidenav-percentage-indent"],[1,"icon","danger"],[1,"icon","warning"],[1,"icon","success"],[1,"sidenav-title"],["mat-table","",1,"sidenav-conversionByTable",3,"dataSource"],["matColumnDef","total"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","cells",4,"matCellDef"],["matColumnDef","bad",1,"bad"],["matColumnDef","ok"],["matColumnDef","good"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"issue-report"],[4,"ngIf"],["class","no-issue-container",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"cells"],[1,"icon","danger","icon-size","icons"],[1,"icon","warning","icon-size","icons"],[1,"icon","success","icon-size","icons"],["mat-header-row",""],["mat-row",""],["matTooltip","Error: Please resolve them to proceed with the migration","matTooltipPosition","above",1,"danger"],["mat-table","","multiTemplateDataRows","",1,"sidenav-databaseDefinitions",3,"dataSource"],["matColumnDef","position"],["mat-header-cell","","class","mat-position",4,"matHeaderCellDef"],["mat-cell","","class","mat-position",4,"matCellDef"],["matColumnDef","description"],["mat-header-cell","","class","mat-description",4,"matHeaderCellDef"],["mat-cell","","class","mat-description",4,"matCellDef"],["matColumnDef","tableCount"],["mat-header-cell","","class","mat-tableCount",4,"matHeaderCellDef"],["mat-cell","","class","mat-tableCount",4,"matCellDef"],["matColumnDef","expand"],["mat-header-cell","","aria-label","row actions",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","expandedDetail"],["mat-row","","class","example-element-row",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","example-detail-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"mat-position"],["mat-cell","",1,"mat-position"],["mat-header-cell","",1,"mat-description"],["mat-cell","",1,"mat-description"],["mat-header-cell","",1,"mat-tableCount"],["mat-cell","",1,"mat-tableCount"],["mat-header-cell","","aria-label","row actions"],["mat-cell",""],["mat-icon-button","","aria-label","expand row",3,"click"],[1,"example-element-detail",3,"ngClass"],[1,"example-element-description"],["mat-row","",1,"example-element-row",3,"click"],["mat-row","",1,"example-detail-row"],["matTooltip","Warning : Changes made because of differences in source and spanner capabilities.","matTooltipPosition","above",1,"warning"],["matTooltip","Suggestion : We highly recommend you make these changes or else it will impact your DB performance.","matTooltipPosition","above",1,"suggestion"],["matTooltip","Note : This is informational and you don't need to do anything.","matTooltipPosition","above",1,"success"],[1,"no-issue-container"],[1,"no-issue-icon-container"],["width","36","height","36","viewBox","0 0 24 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.8332 0.69873C16.0051 7.45842 16.2492 9.44782 10.4672 10.2012C16.1511 11.1242 16.2329 13.2059 16.8332 19.7037C17.6237 13.1681 17.4697 11.2106 23.1986 10.2012C17.4247 9.45963 17.6194 7.4505 16.8332 0.69873ZM4.23739 0.872955C3.79064 4.52078 3.92238 5.59467 0.802246 6.00069C3.86944 6.49885 3.91349 7.62218 4.23739 11.1284C4.66397 7.60153 4.581 6.54497 7.67271 6.00069C4.55696 5.60052 4.66178 4.51623 4.23739 0.872955ZM7.36426 11.1105C7.05096 13.6683 7.14331 14.4212 4.95554 14.7061C7.10612 15.0553 7.13705 15.8431 7.36426 18.3017C7.66333 15.8288 7.60521 15.088 9.77298 14.7061C7.58818 14.4255 7.66177 13.6653 7.36426 11.1105Z","fill","#3367D6"],[1,"no-issue-message"]],template:function(i,o){if(1&i&&(d(0,"div",0)(1,"div",1)(2,"span",2),h(3,"Assessment report"),l(),d(4,"div",3)(5,"span",4)(6,"button",5),A("click",function(){return o.downloadReports()}),h(7," DOWNLOAD REPORTS "),l(),d(8,"button",6)(9,"mat-icon",7),h(10,"expand_more"),l()(),d(11,"mat-menu",8,9)(13,"button",10),A("click",function(){return o.downloadTextReport()}),h(14," Download Text Report "),l(),d(15,"button",10),A("click",function(){return o.downloadStructuredReport()}),h(16," Download Structured Report "),l()()(),d(17,"button",11),A("click",function(){return o.closeSidenav()}),d(18,"mat-icon",12),h(19,"close"),l()()()(),d(20,"div",13)(21,"div",14)(22,"p",15),h(23),l(),d(24,"p",16),h(25),d(26,"mat-icon"),h(27,"arrow_right_alt"),l(),h(28," Spanner)"),l()(),d(29,"p",17),h(30),l(),d(31,"mat-card")(32,"div",18),D(33,"div",19)(34,"div",20)(35,"div",21),l(),D(36,"hr")(37,"br"),d(38,"div",22)(39,"span")(40,"mat-icon",23),h(41," circle "),l(),d(42,"span"),h(43," Not a great conversion"),l()(),d(44,"span")(45,"mat-icon",24),h(46," circle "),l(),d(47,"span"),h(48," Converted with warnings"),l()(),d(49,"span")(50,"mat-icon",25),h(51," circle "),l(),d(52,"span"),h(53," Converted automatically"),l()()()(),D(54,"br"),d(55,"h3",26),h(56,"Conversion status by table"),l(),d(57,"table",27),me(58,28),y(59,bfe,2,0,"th",29)(60,vfe,2,1,"td",30),pe(),me(61,31),y(62,yfe,4,0,"th",29)(63,Cfe,2,1,"td",30),pe(),me(64,32),y(65,wfe,4,0,"th",29)(66,xfe,2,1,"td",30),pe(),me(67,33),y(68,Dfe,4,0,"th",29)(69,Sfe,2,1,"td",30),pe(),y(70,kfe,1,0,"tr",34)(71,Mfe,1,0,"tr",35),l(),D(72,"br"),d(73,"h3"),h(74,"Summarized Table Report"),l(),d(75,"div",36),y(76,Hfe,24,5,"mat-expansion-panel",37)(77,Ufe,1,0,"br",37)(78,oge,24,5,"mat-expansion-panel",37)(79,rge,1,0,"br",37)(80,yge,24,5,"mat-expansion-panel",37)(81,Cge,1,0,"br",37)(82,Fge,24,5,"mat-expansion-panel",37)(83,Lge,1,0,"br",37)(84,Bge,9,0,"div",38),D(85,"br"),l(),D(86,"br"),l()()),2&i){const r=Ft(12);m(8),f("matMenuTriggerFor",r),m(15),Pe(o.connectionDetail),m(2),xe(" \xa0 (",o.srcDbType," "),m(5),Pe(o.summaryText),m(3),f("ngStyle",hi(19,Sw,o.conversionRatePercentage.bad)),m(),f("ngStyle",hi(21,Sw,o.conversionRatePercentage.ok)),m(),f("ngStyle",hi(23,Sw,o.conversionRatePercentage.good)),m(22),f("dataSource",o.rateCountDataSource),m(13),f("matHeaderRowDef",o.rateCountDisplayedColumns),m(),f("matRowDefColumns",o.rateCountDisplayedColumns),m(5),f("ngIf",o.issueTableData_Errors.length),m(),f("ngIf",o.issueTableData_Errors.length),m(),f("ngIf",o.issueTableData_Warnings.length),m(),f("ngIf",o.issueTableData_Warnings.length),m(),f("ngIf",o.issueTableData_Suggestions.length),m(),f("ngIf",o.issueTableData_Suggestions.length),m(),f("ngIf",o.issueTableData_Notes.length),m(),f("ngIf",o.issueTableData_Notes.length),m(),f("ngIf",!(o.issueTableData_Notes.length||o.issueTableData_Suggestions.length||o.issueTableData_Warnings.length||o.issueTableData_Errors.length))}},dependencies:[yr,It,w2,Yt,ba,Mi,Gu,jl,wa,zl,ps,ka,fs,Ma,Sa,gs,Ta,Ia,_s,bs,DC,bP,JQ,vn],styles:["table.mat-mdc-table[_ngcontent-%COMP%]{width:100%}.icon-size[_ngcontent-%COMP%]{font-size:1.2em;text-align:center;margin-top:8px;margin-left:10px;vertical-align:inherit}.mat-mdc-header-cell[_ngcontent-%COMP%]{border-style:none}.icons[_ngcontent-%COMP%]{border-left:1px solid rgb(208,204,204);padding-left:10px}.cells[_ngcontent-%COMP%]{text-align:center}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%]{padding:7px 16px;display:flex;flex-direction:row;align-items:center;border-bottom:1px solid #d0cccc;justify-content:space-between}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{margin:0}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%]{vertical-align:middle}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .reportsButtons[_ngcontent-%COMP%]{white-space:nowrap;vertical-align:middle}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .split-button-left[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .split-button-right[_ngcontent-%COMP%]{width:30px!important;min-width:unset!important;padding:0 8px 0 2px;border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid #fafafa}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{margin-left:1.25px;padding:0;height:10px;vertical-align:text-top}"]})}return t})(),jge=(()=>{class t{constructor(e,i,o,r){this.fetch=e,this.data=i,this.snack=o,this.sidenav=r,this.errMessage="",this.saveSessionForm=new ti({SessionName:new U("",[ee.required,ee.pattern("^[a-zA-Z][a-zA-Z0-9_ -]{0,59}$")]),EditorName:new U("",[ee.required,ee.pattern("^[a-zA-Z][a-zA-Z0-9_ -]{0,59}$")]),DatabaseName:new U("",[ee.required,ee.pattern("^[a-zA-Z][a-zA-Z0-9_-]{0,59}$")]),Notes:new U("")})}saveSession(){let e=this.saveSessionForm.value,i={SessionName:e.SessionName.trim(),EditorName:e.EditorName.trim(),DatabaseName:e.DatabaseName.trim(),Notes:""===e.Notes?.trim()||null===e.Notes?[""]:e.Notes?.split("\n")};this.fetch.saveSession(i).subscribe({next:o=>{this.data.getAllSessions(),this.snack.openSnackBar("Session saved successfully","Close",5)},error:o=>{this.snack.openSnackBar(o.error,"Close")}}),this.saveSessionForm.reset(),this.saveSessionForm.markAsUntouched(),this.closeSidenav()}ngOnInit(){this.sidenav.sidenavDatabaseName.subscribe({next:e=>{this.saveSessionForm.controls.DatabaseName.setValue(e)}})}closeSidenav(){this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(En),_(Hi),_(nr),_(eo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sidenav-save-session"]],decls:40,vars:5,consts:[[1,"sidenav"],[1,"sidenav-header"],[1,"header-title"],["mat-icon-button","","color","primary",1,"close-button",3,"click"],[1,"close-icon"],[1,"sidenav-content"],[1,"save-session-form",3,"formGroup"],["hintLabel","Letters, numbers, hyphen, space and underscore allowed. Max. 60 characters, and starts with a letter.","appearance","outline"],["matInput","","placeholder","mysession","type","text","formControlName","SessionName","matTooltip","User can view saved sessions under session history section","matTooltipPosition","above"],["align","end"],["hintLabel","Letters, numbers, hyphen, space and underscore allowed. Max. 60 characters, and starts with a letter.","appearance","outline",1,"full-width"],["matInput","","placeholder","editor name","type","text","formControlName","EditorName"],["hintLabel","Letters, numbers, hyphen and underscores allowed. Max. 60 characters, and starts with a letter.","appearance","outline",1,"full-width"],["matInput","","type","text","formControlName","DatabaseName"],["appearance","outline",1,"full-width"],["rows","7","matInput","","placeholder","added new index","type","text","formControlName","Notes"],[1,"sidenav-footer"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"span",2),h(3,"Save Session"),l(),d(4,"button",3),A("click",function(){return o.closeSidenav()}),d(5,"mat-icon",4),h(6,"close"),l()()(),d(7,"div",5)(8,"h3"),h(9,"Session Details"),l(),d(10,"form",6)(11,"mat-form-field",7)(12,"mat-label"),h(13,"Session Name"),l(),D(14,"input",8),d(15,"mat-hint",9),h(16),l()(),D(17,"br"),d(18,"mat-form-field",10)(19,"mat-label"),h(20,"Editor Name"),l(),D(21,"input",11),d(22,"mat-hint",9),h(23),l()(),D(24,"br"),d(25,"mat-form-field",12)(26,"mat-label"),h(27,"Database Name"),l(),D(28,"input",13),d(29,"mat-hint",9),h(30),l()(),D(31,"br"),d(32,"mat-form-field",14)(33,"mat-label"),h(34,"Notes"),l(),D(35,"textarea",15),l(),D(36,"br"),l()(),d(37,"div",16)(38,"button",17),A("click",function(){return o.saveSession()}),h(39," Save Session "),l()()()),2&i&&(m(10),f("formGroup",o.saveSessionForm),m(6),xe("",(null==o.saveSessionForm.value.SessionName?null:o.saveSessionForm.value.SessionName.length)||0,"/60"),m(7),xe("",(null==o.saveSessionForm.value.EditorName?null:o.saveSessionForm.value.EditorName.length)||0,"/60"),m(7),xe("",(null==o.saveSessionForm.value.DatabaseName?null:o.saveSessionForm.value.DatabaseName.length)||0,"/60"),m(8),f("disabled",!o.saveSessionForm.valid))},dependencies:[Yt,ba,Mi,Di,xi,sc,qi,_n,Ci,_i,Bi,wi,zi,vn],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{padding-bottom:10px}"]})}return t})();function zge(t,n){1&t&&(d(0,"th",9),h(1,"Column"),l())}function Hge(t,n){if(1&t&&(d(0,"td",10),h(1),l()),2&t){const e=n.$implicit;m(),Pe(e.ColumnName)}}function Uge(t,n){1&t&&(d(0,"th",9),h(1,"Type"),l())}function $ge(t,n){if(1&t&&(d(0,"td",10),h(1),l()),2&t){const e=n.$implicit;m(),Pe(e.Type)}}function Gge(t,n){1&t&&(d(0,"th",9),h(1,"Updated Column"),l())}function qge(t,n){if(1&t&&(d(0,"td",10),h(1),l()),2&t){const e=n.$implicit;m(),Pe(e.UpdateColumnName)}}function Wge(t,n){1&t&&(d(0,"th",9),h(1,"Updated Type"),l())}function Kge(t,n){if(1&t&&(d(0,"td",10),h(1),l()),2&t){const e=n.$implicit;m(),Pe(e.UpdateType)}}function Zge(t,n){1&t&&D(0,"tr",11)}function Yge(t,n){1&t&&D(0,"tr",12)}let Qge=(()=>{class t{constructor(){this.tableChange={InterleaveColumnChanges:[],Table:""},this.dataSource=[],this.displayedColumns=["ColumnName","Type","UpdateColumnName","UpdateType"]}ngOnInit(){}ngOnChanges(e){this.tableChange=e.tableChange?.currentValue||this.tableChange,this.dataSource=this.tableChange.InterleaveColumnChanges}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-table-column-changes-preview"]],inputs:{tableChange:"tableChange"},features:[fi],decls:15,vars:3,consts:[["mat-table","",1,"object-full-width","margin-bot-1",3,"dataSource"],["matColumnDef","ColumnName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Type"],["matColumnDef","UpdateColumnName"],["matColumnDef","UpdateType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(i,o){1&i&&(d(0,"table",0),me(1,1),y(2,zge,2,0,"th",2)(3,Hge,2,1,"td",3),pe(),me(4,4),y(5,Uge,2,0,"th",2)(6,$ge,2,1,"td",3),pe(),me(7,5),y(8,Gge,2,0,"th",2)(9,qge,2,1,"td",3),pe(),me(10,6),y(11,Wge,2,0,"th",2)(12,Kge,2,1,"td",3),pe(),y(13,Zge,1,0,"tr",7)(14,Yge,1,0,"tr",8),l()),2&i&&(f("dataSource",o.dataSource),m(13),f("matHeaderRowDef",o.displayedColumns),m(),f("matRowDefColumns",o.displayedColumns))},dependencies:[ps,ka,fs,Ma,Sa,gs,Ta,Ia,_s,bs],styles:[".margin-bot-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mat-mdc-header-row[_ngcontent-%COMP%]{background-color:#f5f5f5}.mat-mdc-column-ColumnName[_ngcontent-%COMP%], .mat-mdc-column-UpdateColumnName[_ngcontent-%COMP%]{width:30%;max-width:30%}.mat-mdc-column-Type[_ngcontent-%COMP%], .mat-mdc-column-UpdateType[_ngcontent-%COMP%]{width:20%;max-width:20%}.mat-mdc-cell[_ngcontent-%COMP%]{padding-right:1rem;word-break:break-all}"]})}return t})();function Xge(t,n){1&t&&(d(0,"p"),h(1,"Review the DDL changes below."),l())}function Jge(t,n){if(1&t&&(d(0,"p"),h(1," Changing an interleaved table will have an impact on the following tables : "),d(2,"b"),h(3),l()()),2&t){const e=C();m(3),Pe(e.tableList)}}function e_e(t,n){if(1&t&&(d(0,"div",11)(1,"pre")(2,"code"),h(3),l()()()),2&t){const e=C();m(3),Pe(e.ddl)}}function t_e(t,n){if(1&t&&(me(0),d(1,"h4"),h(2),l(),D(3,"app-table-column-changes-preview",14),pe()),2&t){const e=n.$implicit,i=n.index,o=C(2);m(2),Pe(o.tableNames[i]),m(),f("tableChange",e)}}function i_e(t,n){if(1&t&&(d(0,"div",12),y(1,t_e,4,2,"ng-container",13),l()),2&t){const e=C();m(),f("ngForOf",e.tableChanges)}}let n_e=(()=>{class t{constructor(e,i,o,r){this.sidenav=e,this.tableUpdatePubSub=i,this.data=o,this.snackbar=r,this.ddl="",this.showDdl=!0,this.tableUpdateData={tableName:"",tableId:"",updateDetail:{UpdateCols:{}}},this.tableChanges=[],this.tableNames=[],this.tableList=""}ngOnInit(){this.tableUpdatePubSub.reviewTableChanges.subscribe(e=>{if(e.Changes&&e.Changes.length>0){this.showDdl=!1,this.tableChanges=e.Changes;const i=[];this.tableList="",this.tableChanges.forEach((o,r)=>{i.push(o.Table),this.tableList+=0==r?o.Table:", "+o.Table}),this.tableList+=".",this.tableNames=i}else this.showDdl=!0,this.ddl=e.DDL}),this.tableUpdatePubSub.tableUpdateDetail.subscribe(e=>{this.tableUpdateData=e})}updateTable(){this.data.updateTable(this.tableUpdateData.tableId,this.tableUpdateData.updateDetail).subscribe({next:e=>{""==e?(this.snackbar.openSnackBar(`Schema changes to table ${this.tableUpdateData.tableName} saved successfully`,"Close",5),0==this.showDdl&&1!=this.tableNames.length&&this.snackbar.openSnackBar(`Schema changes to tables ${this.tableNames[0]} and ${this.tableNames[1]} saved successfully`,"Close",5),this.closeSidenav()):this.snackbar.openSnackBar(e,"Close",5)}})}closeSidenav(){this.ddl="",this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(eo),_(Cw),_(Hi),_(nr))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-sidenav-review-changes"]],decls:17,vars:4,consts:[[1,"sidenav"],[1,"sidenav-header"],[1,"header-title"],["mat-icon-button","","color","primary",1,"close-button",3,"click"],[1,"close-icon"],[1,"sidenav-content"],[4,"ngIf"],["class","ddl-display",4,"ngIf"],["class","table-changes-display",4,"ngIf"],[1,"sidenav-footer"],["mat-raised-button","","color","primary",3,"click"],[1,"ddl-display"],[1,"table-changes-display"],[4,"ngFor","ngForOf"],[3,"tableChange"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"span",2),h(3,"Review changes to your schema"),l(),d(4,"button",3),A("click",function(){return o.closeSidenav()}),d(5,"mat-icon",4),h(6,"close"),l()()(),D(7,"mat-divider"),d(8,"div",5),y(9,Xge,2,0,"p",6)(10,Jge,4,1,"p",6)(11,e_e,4,1,"div",7)(12,i_e,2,1,"div",8),l(),D(13,"mat-divider"),d(14,"div",9)(15,"button",10),A("click",function(){return o.updateTable()}),h(16,"Confirm Conversion"),l()()()),2&i&&(m(9),f("ngIf",o.showDdl),m(),f("ngIf",!o.showDdl),m(),f("ngIf",o.showDdl),m(),f("ngIf",!o.showDdl))},dependencies:[rn,It,Yt,ba,Mi,wO,Qge],styles:[".sidenav-content[_ngcontent-%COMP%]{height:82%}.sidenav-content[_ngcontent-%COMP%] .ddl-display[_ngcontent-%COMP%]{height:90%;background-color:#dadada;padding:10px;overflow:auto}.sidenav-content[_ngcontent-%COMP%] .table-changes-display[_ngcontent-%COMP%]{height:90%;overflow:auto}"]})}return t})();function o_e(t,n){1&t&&D(0,"app-sidenav-rule")}function r_e(t,n){1&t&&D(0,"app-sidenav-save-session")}function a_e(t,n){1&t&&D(0,"app-sidenav-review-changes")}function s_e(t,n){1&t&&D(0,"app-sidenav-view-assessment")}function c_e(t,n){1&t&&D(0,"app-instruction")}const l_e=(t,n,e)=>({"width-40pc":t,"width-50pc":n,"width-60pc":e});let d_e=(()=>{class t{constructor(e){this.sidenavService=e,this.title="ui",this.showSidenav=!1,this.sidenavComponent=""}ngOnInit(){this.sidenavService.isSidenav.subscribe(e=>{this.showSidenav=e}),this.sidenavService.sidenavComponent.subscribe(e=>{this.sidenavComponent=e})}closeSidenav(){this.showSidenav=!1}static#e=this.\u0275fac=function(i){return new(i||t)(_(eo))};static#t=this.\u0275cmp=Ie({type:t,selectors:[["app-root"]],decls:14,vars:11,consts:[[1,"sidenav-container",3,"backdropClick"],["position","end","mode","over",3,"opened","ngClass"],["sidenav",""],[4,"ngIf"],[1,"sidenav-content"],[1,"appLoader"],[1,"padding-20"]],template:function(i,o){1&i&&(d(0,"mat-sidenav-container",0),A("backdropClick",function(){return o.closeSidenav()}),d(1,"mat-sidenav",1,2),y(3,o_e,1,0,"app-sidenav-rule",3)(4,r_e,1,0,"app-sidenav-save-session",3)(5,a_e,1,0,"app-sidenav-review-changes",3)(6,s_e,1,0,"app-sidenav-view-assessment",3)(7,c_e,1,0,"app-instruction",3),l(),d(8,"mat-sidenav-content",4),D(9,"app-header"),d(10,"div",5),D(11,"app-loader"),l(),d(12,"div",6),D(13,"router-outlet"),l()()()),2&i&&(m(),f("opened",o.showSidenav)("ngClass",HM(7,l_e,"rule"===o.sidenavComponent||"saveSession"===o.sidenavComponent,"reviewChanges"===o.sidenavComponent,"assessment"===o.sidenavComponent||"instruction"===o.sidenavComponent)),m(2),f("ngIf","rule"===o.sidenavComponent),m(),f("ngIf","saveSession"==o.sidenavComponent),m(),f("ngIf","reviewChanges"==o.sidenavComponent),m(),f("ngIf","assessment"===o.sidenavComponent),m(),f("ngIf","instruction"===o.sidenavComponent))},dependencies:[yr,It,Cg,hR,mR,qC,AN,jpe,Hpe,_fe,Vge,jge,n_e],styles:[".padding-20[_ngcontent-%COMP%]{padding:5px 0}.progress-bar-wrapper[_ngcontent-%COMP%]{background-color:#cbd0e9;height:2px}.progress-bar-wrapper[_ngcontent-%COMP%] .mat-mdc-progress-bar[_ngcontent-%COMP%], .appLoader[_ngcontent-%COMP%]{height:2px}mat-mdc-sidenav[_ngcontent-%COMP%]{width:30%;min-width:350px}.sidenav-container[_ngcontent-%COMP%]{height:100vh}.sidenav-container[_ngcontent-%COMP%] mat-mdc-sidenav[_ngcontent-%COMP%]{min-width:350px;border-radius:3px}.width-40pc[_ngcontent-%COMP%]{width:40%}.width-50pc[_ngcontent-%COMP%]{width:50%}.width-60pc[_ngcontent-%COMP%]{width:60%}"]})}return t})(),u_e=(()=>{class t{constructor(e){this.loader=e,this.count=0}intercept(e,i){let o=!e.url.includes("/connect");return o&&(this.loader.startLoader(),this.count++),i.handle(e).pipe(ec(()=>{o&&this.count--,0==this.count&&this.loader.stopLoader()}))}static#e=this.\u0275fac=function(i){return new(i||t)(X(Mg))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),h_e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=ct({type:t,bootstrap:[d_e]});static#i=this.\u0275inj=st({providers:[{provide:ZE,useClass:u_e,multi:!0}],imports:[Y2,Ppe,b$,mte,mW,RK,xte,Mte,rre,OC]})}return t})();bH().bootstrapModule(h_e).catch(t=>console.error(t))},304:ld=>{ld.exports=function q(Re,Y,F){function R($,W){if(!Y[$]){if(!Re[$]){if(k)return k($,!0);var G=new Error("Cannot find module '"+$+"'");throw G.code="MODULE_NOT_FOUND",G}var I=Y[$]={exports:{}};Re[$][0].call(I.exports,function(B){return R(Re[$][1][B]||B)},I,I.exports,q,Re,Y,F)}return Y[$].exports}for(var k=void 0,P=0;P>4,B=1>6:64,M=2>2)+k.charAt(I)+k.charAt(B)+k.charAt(M));return N.join("")},Y.decode=function(P){var $,W,V,G,I,B,M=0,N=0,E="data:";if(P.substr(0,5)===E)throw new Error("Invalid base64 input, it looks like a data url.");var j,K=3*(P=P.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(P.charAt(P.length-1)===k.charAt(64)&&K--,P.charAt(P.length-2)===k.charAt(64)&&K--,K%1!=0)throw new Error("Invalid base64 input, bad content length.");for(j=R.uint8array?new Uint8Array(0|K):new Array(0|K);M>4,W=(15&G)<<4|(I=k.indexOf(P.charAt(M++)))>>2,V=(3&I)<<6|(B=k.indexOf(P.charAt(M++))),j[N++]=$,64!==I&&(j[N++]=W),64!==B&&(j[N++]=V);return j}},{"./support":30,"./utils":32}],2:[function(q,Re,Y){"use strict";var F=q("./external"),R=q("./stream/DataWorker"),k=q("./stream/Crc32Probe"),P=q("./stream/DataLengthProbe");function $(W,V,G,I,B){this.compressedSize=W,this.uncompressedSize=V,this.crc32=G,this.compression=I,this.compressedContent=B}$.prototype={getContentWorker:function(){var W=new R(F.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new P("data_length")),V=this;return W.on("end",function(){if(this.streamInfo.data_length!==V.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),W},getCompressedWorker:function(){return new R(F.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},$.createWorkerFrom=function(W,V,G){return W.pipe(new k).pipe(new P("uncompressedSize")).pipe(V.compressWorker(G)).pipe(new P("compressedSize")).withStreamInfo("compression",V)},Re.exports=$},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(q,Re,Y){"use strict";var F=q("./stream/GenericWorker");Y.STORE={magic:"\0\0",compressWorker:function(){return new F("STORE compression")},uncompressWorker:function(){return new F("STORE decompression")}},Y.DEFLATE=q("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(q,Re,Y){"use strict";var F=q("./utils"),R=function(){for(var k,P=[],$=0;$<256;$++){k=$;for(var W=0;W<8;W++)k=1&k?3988292384^k>>>1:k>>>1;P[$]=k}return P}();Re.exports=function(k,P){return void 0!==k&&k.length?"string"!==F.getTypeOf(k)?function($,W,V,G){var I=R,B=0+V;$^=-1;for(var M=0;M>>8^I[255&($^W[M])];return-1^$}(0|P,k,k.length):function($,W,V,G){var I=R,B=0+V;$^=-1;for(var M=0;M>>8^I[255&($^W.charCodeAt(M))];return-1^$}(0|P,k,k.length):0}},{"./utils":32}],5:[function(q,Re,Y){"use strict";Y.base64=!1,Y.binary=!1,Y.dir=!1,Y.createFolders=!0,Y.date=null,Y.compression=null,Y.compressionOptions=null,Y.comment=null,Y.unixPermissions=null,Y.dosPermissions=null},{}],6:[function(q,Re,Y){"use strict";var F;F=typeof Promise<"u"?Promise:q("lie"),Re.exports={Promise:F}},{lie:37}],7:[function(q,Re,Y){"use strict";var F=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",R=q("pako"),k=q("./utils"),P=q("./stream/GenericWorker"),$=F?"uint8array":"array";function W(V,G){P.call(this,"FlateWorker/"+V),this._pako=null,this._pakoAction=V,this._pakoOptions=G,this.meta={}}Y.magic="\b\0",k.inherits(W,P),W.prototype.processChunk=function(V){this.meta=V.meta,null===this._pako&&this._createPako(),this._pako.push(k.transformTo($,V.data),!1)},W.prototype.flush=function(){P.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},W.prototype.cleanUp=function(){P.prototype.cleanUp.call(this),this._pako=null},W.prototype._createPako=function(){this._pako=new R[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var V=this;this._pako.onData=function(G){V.push({data:G,meta:V.meta})}},Y.compressWorker=function(V){return new W("Deflate",V)},Y.uncompressWorker=function(){return new W("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(q,Re,Y){"use strict";function F(I,B){var M,N="";for(M=0;M>>=8;return N}function R(I,B,M,N,E,j){var K,re,te=I.file,Te=I.compression,we=j!==$.utf8encode,Fe=k.transformTo("string",j(te.name)),ye=k.transformTo("string",$.utf8encode(te.name)),Ge=te.comment,mt=k.transformTo("string",j(Ge)),H=k.transformTo("string",$.utf8encode(Ge)),Ce=ye.length!==te.name.length,x=H.length!==Ge.length,Me="",Rt="",Le="",Vt=te.dir,Ve=te.date,Tt={crc32:0,compressedSize:0,uncompressedSize:0};B&&!M||(Tt.crc32=I.crc32,Tt.compressedSize=I.compressedSize,Tt.uncompressedSize=I.uncompressedSize);var fe=0;B&&(fe|=8),we||!Ce&&!x||(fe|=2048);var Qe,Fn,le=0,bt=0;Vt&&(le|=16),"UNIX"===E?(bt=798,le|=(Fn=Qe=te.unixPermissions,Qe||(Fn=Vt?16893:33204),(65535&Fn)<<16)):(bt=20,le|=function(Qe){return 63&(Qe||0)}(te.dosPermissions)),K=Ve.getUTCHours(),K<<=6,K|=Ve.getUTCMinutes(),K<<=5,K|=Ve.getUTCSeconds()/2,re=Ve.getUTCFullYear()-1980,re<<=4,re|=Ve.getUTCMonth()+1,re<<=5,re|=Ve.getUTCDate(),Ce&&(Rt=F(1,1)+F(W(Fe),4)+ye,Me+="up"+F(Rt.length,2)+Rt),x&&(Le=F(1,1)+F(W(mt),4)+H,Me+="uc"+F(Le.length,2)+Le);var it="";return it+="\n\0",it+=F(fe,2),it+=Te.magic,it+=F(K,2),it+=F(re,2),it+=F(Tt.crc32,4),it+=F(Tt.compressedSize,4),it+=F(Tt.uncompressedSize,4),it+=F(Fe.length,2),it+=F(Me.length,2),{fileRecord:V.LOCAL_FILE_HEADER+it+Fe+Me,dirRecord:V.CENTRAL_FILE_HEADER+F(bt,2)+it+F(mt.length,2)+"\0\0\0\0"+F(le,4)+F(N,4)+Fe+Me+mt}}var k=q("../utils"),P=q("../stream/GenericWorker"),$=q("../utf8"),W=q("../crc32"),V=q("../signature");function G(I,B,M,N){P.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=B,this.zipPlatform=M,this.encodeFileName=N,this.streamFiles=I,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}k.inherits(G,P),G.prototype.push=function(I){var B=I.meta.percent||0,M=this.entriesCount,N=this._sources.length;this.accumulate?this.contentBuffer.push(I):(this.bytesWritten+=I.data.length,P.prototype.push.call(this,{data:I.data,meta:{currentFile:this.currentFile,percent:M?(B+100*(M-N-1))/M:100}}))},G.prototype.openedSource=function(I){this.currentSourceOffset=this.bytesWritten,this.currentFile=I.file.name;var B=this.streamFiles&&!I.file.dir;if(B){var M=R(I,B,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:M.fileRecord,meta:{percent:0}})}else this.accumulate=!0},G.prototype.closedSource=function(I){this.accumulate=!1;var N,B=this.streamFiles&&!I.file.dir,M=R(I,B,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(M.dirRecord),B)this.push({data:(N=I,V.DATA_DESCRIPTOR+F(N.crc32,4)+F(N.compressedSize,4)+F(N.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:M.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},G.prototype.flush=function(){for(var I=this.bytesWritten,B=0;B=this.index;P--)$=($<<8)+this.byteAt(P);return this.index+=k,$},readString:function(k){return F.transformTo("string",this.readData(k))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var k=this.readInt(4);return new Date(Date.UTC(1980+(k>>25&127),(k>>21&15)-1,k>>16&31,k>>11&31,k>>5&63,(31&k)<<1))}},Re.exports=R},{"../utils":32}],19:[function(q,Re,Y){"use strict";var F=q("./Uint8ArrayReader");function R(k){F.call(this,k)}q("../utils").inherits(R,F),R.prototype.readData=function(k){this.checkOffset(k);var P=this.data.slice(this.zero+this.index,this.zero+this.index+k);return this.index+=k,P},Re.exports=R},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(q,Re,Y){"use strict";var F=q("./DataReader");function R(k){F.call(this,k)}q("../utils").inherits(R,F),R.prototype.byteAt=function(k){return this.data.charCodeAt(this.zero+k)},R.prototype.lastIndexOfSignature=function(k){return this.data.lastIndexOf(k)-this.zero},R.prototype.readAndCheckSignature=function(k){return k===this.readData(4)},R.prototype.readData=function(k){this.checkOffset(k);var P=this.data.slice(this.zero+this.index,this.zero+this.index+k);return this.index+=k,P},Re.exports=R},{"../utils":32,"./DataReader":18}],21:[function(q,Re,Y){"use strict";var F=q("./ArrayReader");function R(k){F.call(this,k)}q("../utils").inherits(R,F),R.prototype.readData=function(k){if(this.checkOffset(k),0===k)return new Uint8Array(0);var P=this.data.subarray(this.zero+this.index,this.zero+this.index+k);return this.index+=k,P},Re.exports=R},{"../utils":32,"./ArrayReader":17}],22:[function(q,Re,Y){"use strict";var F=q("../utils"),R=q("../support"),k=q("./ArrayReader"),P=q("./StringReader"),$=q("./NodeBufferReader"),W=q("./Uint8ArrayReader");Re.exports=function(V){var G=F.getTypeOf(V);return F.checkSupport(G),"string"!==G||R.uint8array?"nodebuffer"===G?new $(V):R.uint8array?new W(F.transformTo("uint8array",V)):new k(F.transformTo("array",V)):new P(V)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(q,Re,Y){"use strict";Y.LOCAL_FILE_HEADER="PK\x03\x04",Y.CENTRAL_FILE_HEADER="PK\x01\x02",Y.CENTRAL_DIRECTORY_END="PK\x05\x06",Y.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",Y.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",Y.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(q,Re,Y){"use strict";var F=q("./GenericWorker"),R=q("../utils");function k(P){F.call(this,"ConvertWorker to "+P),this.destType=P}R.inherits(k,F),k.prototype.processChunk=function(P){this.push({data:R.transformTo(this.destType,P.data),meta:P.meta})},Re.exports=k},{"../utils":32,"./GenericWorker":28}],25:[function(q,Re,Y){"use strict";var F=q("./GenericWorker"),R=q("../crc32");function k(){F.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}q("../utils").inherits(k,F),k.prototype.processChunk=function(P){this.streamInfo.crc32=R(P.data,this.streamInfo.crc32||0),this.push(P)},Re.exports=k},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(q,Re,Y){"use strict";var F=q("../utils"),R=q("./GenericWorker");function k(P){R.call(this,"DataLengthProbe for "+P),this.propName=P,this.withStreamInfo(P,0)}F.inherits(k,R),k.prototype.processChunk=function(P){P&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+P.data.length),R.prototype.processChunk.call(this,P)},Re.exports=k},{"../utils":32,"./GenericWorker":28}],27:[function(q,Re,Y){"use strict";var F=q("../utils"),R=q("./GenericWorker");function k(P){R.call(this,"DataWorker");var $=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,P.then(function(W){$.dataIsReady=!0,$.data=W,$.max=W&&W.length||0,$.type=F.getTypeOf(W),$.isPaused||$._tickAndRepeat()},function(W){$.error(W)})}F.inherits(k,R),k.prototype.cleanUp=function(){R.prototype.cleanUp.call(this),this.data=null},k.prototype.resume=function(){return!!R.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,F.delay(this._tickAndRepeat,[],this)),!0)},k.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(F.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},k.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var P=null,$=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":P=this.data.substring(this.index,$);break;case"uint8array":P=this.data.subarray(this.index,$);break;case"array":case"nodebuffer":P=this.data.slice(this.index,$)}return this.index=$,this.push({data:P,meta:{percent:this.max?this.index/this.max*100:0}})},Re.exports=k},{"../utils":32,"./GenericWorker":28}],28:[function(q,Re,Y){"use strict";function F(R){this.name=R||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}F.prototype={push:function(R){this.emit("data",R)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(R){this.emit("error",R)}return!0},error:function(R){return!this.isFinished&&(this.isPaused?this.generatedError=R:(this.isFinished=!0,this.emit("error",R),this.previous&&this.previous.error(R),this.cleanUp()),!0)},on:function(R,k){return this._listeners[R].push(k),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(R,k){if(this._listeners[R])for(var P=0;P "+R:R}},Re.exports=F},{}],29:[function(q,Re,Y){"use strict";var F=q("../utils"),R=q("./ConvertWorker"),k=q("./GenericWorker"),P=q("../base64"),$=q("../support"),W=q("../external"),V=null;if($.nodestream)try{V=q("../nodejs/NodejsStreamOutputAdapter")}catch{}function I(B,M,N){var E=M;switch(M){case"blob":case"arraybuffer":E="uint8array";break;case"base64":E="string"}try{this._internalType=E,this._outputType=M,this._mimeType=N,F.checkSupport(E),this._worker=B.pipe(new R(E)),B.lock()}catch(j){this._worker=new k("error"),this._worker.error(j)}}I.prototype={accumulate:function(B){return function G(B,M){return new W.Promise(function(N,E){var j=[],K=B._internalType,re=B._outputType,te=B._mimeType;B.on("data",function(Te,we){j.push(Te),M&&M(we)}).on("error",function(Te){j=[],E(Te)}).on("end",function(){try{var Te=function(we,Fe,ye){switch(we){case"blob":return F.newBlob(F.transformTo("arraybuffer",Fe),ye);case"base64":return P.encode(Fe);default:return F.transformTo(we,Fe)}}(re,function(we,Fe){var ye,Ge=0,mt=null,H=0;for(ye=0;ye"u")Y.blob=!1;else{var F=new ArrayBuffer(0);try{Y.blob=0===new Blob([F],{type:"application/zip"}).size}catch{try{var R=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);R.append(F),Y.blob=0===R.getBlob("application/zip").size}catch{Y.blob=!1}}}try{Y.nodestream=!!q("readable-stream").Readable}catch{Y.nodestream=!1}},{"readable-stream":16}],31:[function(q,Re,Y){"use strict";for(var F=q("./utils"),R=q("./support"),k=q("./nodejsUtils"),P=q("./stream/GenericWorker"),$=new Array(256),W=0;W<256;W++)$[W]=252<=W?6:248<=W?5:240<=W?4:224<=W?3:192<=W?2:1;function V(){P.call(this,"utf-8 decode"),this.leftOver=null}function G(){P.call(this,"utf-8 encode")}$[254]=$[254]=1,Y.utf8encode=function(I){return R.nodebuffer?k.newBufferFrom(I,"utf-8"):function(B){var M,N,E,j,K,re=B.length,te=0;for(j=0;j>>6:(N<65536?M[K++]=224|N>>>12:(M[K++]=240|N>>>18,M[K++]=128|N>>>12&63),M[K++]=128|N>>>6&63),M[K++]=128|63&N);return M}(I)},Y.utf8decode=function(I){return R.nodebuffer?F.transformTo("nodebuffer",I).toString("utf-8"):function(B){var M,N,E,j,K=B.length,re=new Array(2*K);for(M=N=0;M>10&1023,re[N++]=56320|1023&E)}return re.length!==N&&(re.subarray?re=re.subarray(0,N):re.length=N),F.applyFromCharCode(re)}(I=F.transformTo(R.uint8array?"uint8array":"array",I))},F.inherits(V,P),V.prototype.processChunk=function(I){var B=F.transformTo(R.uint8array?"uint8array":"array",I.data);if(this.leftOver&&this.leftOver.length){if(R.uint8array){var M=B;(B=new Uint8Array(M.length+this.leftOver.length)).set(this.leftOver,0),B.set(M,this.leftOver.length)}else B=this.leftOver.concat(B);this.leftOver=null}var N=function(j,K){var re;for((K=K||j.length)>j.length&&(K=j.length),re=K-1;0<=re&&128==(192&j[re]);)re--;return re<0||0===re?K:re+$[j[re]]>K?re:K}(B),E=B;N!==B.length&&(R.uint8array?(E=B.subarray(0,N),this.leftOver=B.subarray(N,B.length)):(E=B.slice(0,N),this.leftOver=B.slice(N,B.length))),this.push({data:Y.utf8decode(E),meta:I.meta})},V.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Y.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},Y.Utf8DecodeWorker=V,F.inherits(G,P),G.prototype.processChunk=function(I){this.push({data:Y.utf8encode(I.data),meta:I.meta})},Y.Utf8EncodeWorker=G},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(q,Re,Y){"use strict";var F=q("./support"),R=q("./base64"),k=q("./nodejsUtils"),P=q("./external");function $(M){return M}function W(M,N){for(var E=0;E>8;this.dir=!!(16&this.externalFileAttributes),0==I&&(this.dosPermissions=63&this.externalFileAttributes),3==I&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var I=F(this.extraFields[1].value);this.uncompressedSize===R.MAX_VALUE_32BITS&&(this.uncompressedSize=I.readInt(8)),this.compressedSize===R.MAX_VALUE_32BITS&&(this.compressedSize=I.readInt(8)),this.localHeaderOffset===R.MAX_VALUE_32BITS&&(this.localHeaderOffset=I.readInt(8)),this.diskNumberStart===R.MAX_VALUE_32BITS&&(this.diskNumberStart=I.readInt(4))}},readExtraFields:function(I){var B,M,N,E=I.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});I.index+4>>6:(I<65536?G[N++]=224|I>>>12:(G[N++]=240|I>>>18,G[N++]=128|I>>>12&63),G[N++]=128|I>>>6&63),G[N++]=128|63&I);return G},Y.buf2binstring=function(V){return W(V,V.length)},Y.binstring2buf=function(V){for(var G=new F.Buf8(V.length),I=0,B=G.length;I>10&1023,j[B++]=56320|1023&M)}return W(j,B)},Y.utf8border=function(V,G){var I;for((G=G||V.length)>V.length&&(G=V.length),I=G-1;0<=I&&128==(192&V[I]);)I--;return I<0||0===I?G:I+P[V[I]]>G?I:G}},{"./common":41}],43:[function(q,Re,Y){"use strict";Re.exports=function(F,R,k,P){for(var $=65535&F|0,W=F>>>16&65535|0,V=0;0!==k;){for(k-=V=2e3>>1:R>>>1;k[P]=R}return k}();Re.exports=function(R,k,P,$){var W=F,V=$+P;R^=-1;for(var G=$;G>>8^W[255&(R^k[G])];return-1^R}},{}],46:[function(q,Re,Y){"use strict";var F,R=q("../utils/common"),k=q("./trees"),P=q("./adler32"),$=q("./crc32"),W=q("./messages"),V=0,I=0,B=-2,E=2,j=8,re=286,te=30,Te=19,we=2*re+1,Fe=15,ye=3,Ge=258,mt=Ge+ye+1,H=42,Ce=113;function Vt(v,Se){return v.msg=W[Se],Se}function Ve(v){return(v<<1)-(4v.avail_out&&(J=v.avail_out),0!==J&&(R.arraySet(v.output,Se.pending_buf,Se.pending_out,J,v.next_out),v.next_out+=J,Se.pending_out+=J,v.total_out+=J,v.avail_out-=J,Se.pending-=J,0===Se.pending&&(Se.pending_out=0))}function le(v,Se){k._tr_flush_block(v,0<=v.block_start?v.block_start:-1,v.strstart-v.block_start,Se),v.block_start=v.strstart,fe(v.strm)}function bt(v,Se){v.pending_buf[v.pending++]=Se}function it(v,Se){v.pending_buf[v.pending++]=Se>>>8&255,v.pending_buf[v.pending++]=255&Se}function Qe(v,Se){var J,L,O=v.max_chain_length,Z=v.strstart,de=v.prev_length,Ee=v.nice_match,ce=v.strstart>v.w_size-mt?v.strstart-(v.w_size-mt):0,je=v.window,Je=v.w_mask,ze=v.prev,ht=v.strstart+Ge,oi=je[Z+de-1],Kt=je[Z+de];v.prev_length>=v.good_match&&(O>>=2),Ee>v.lookahead&&(Ee=v.lookahead);do{if(je[(J=Se)+de]===Kt&&je[J+de-1]===oi&&je[J]===je[Z]&&je[++J]===je[Z+1]){Z+=2,J++;do{}while(je[++Z]===je[++J]&&je[++Z]===je[++J]&&je[++Z]===je[++J]&&je[++Z]===je[++J]&&je[++Z]===je[++J]&&je[++Z]===je[++J]&&je[++Z]===je[++J]&&je[++Z]===je[++J]&&Zce&&0!=--O);return de<=v.lookahead?de:v.lookahead}function Zi(v){var Se,J,L,O,Z,de,Ee,ce,je,Je,ze=v.w_size;do{if(O=v.window_size-v.lookahead-v.strstart,v.strstart>=ze+(ze-mt)){for(R.arraySet(v.window,v.window,ze,ze,0),v.match_start-=ze,v.strstart-=ze,v.block_start-=ze,Se=J=v.hash_size;L=v.head[--Se],v.head[Se]=ze<=L?L-ze:0,--J;);for(Se=J=ze;L=v.prev[--Se],v.prev[Se]=ze<=L?L-ze:0,--J;);O+=ze}if(0===v.strm.avail_in)break;if(Ee=v.window,ce=v.strstart+v.lookahead,Je=void 0,(je=O)<(Je=(de=v.strm).avail_in)&&(Je=je),J=0===Je?0:(de.avail_in-=Je,R.arraySet(Ee,de.input,de.next_in,Je,ce),1===de.state.wrap?de.adler=P(de.adler,Ee,Je,ce):2===de.state.wrap&&(de.adler=$(de.adler,Ee,Je,ce)),de.next_in+=Je,de.total_in+=Je,Je),v.lookahead+=J,v.lookahead+v.insert>=ye)for(v.ins_h=v.window[Z=v.strstart-v.insert],v.ins_h=(v.ins_h<=ye&&(v.ins_h=(v.ins_h<=ye)if(L=k._tr_tally(v,v.strstart-v.match_start,v.match_length-ye),v.lookahead-=v.match_length,v.match_length<=v.max_lazy_match&&v.lookahead>=ye){for(v.match_length--;v.strstart++,v.ins_h=(v.ins_h<=ye&&(v.ins_h=(v.ins_h<=ye&&v.match_length<=v.prev_length){for(O=v.strstart+v.lookahead-ye,L=k._tr_tally(v,v.strstart-1-v.prev_match,v.prev_length-ye),v.lookahead-=v.prev_length-1,v.prev_length-=2;++v.strstart<=O&&(v.ins_h=(v.ins_h<v.pending_buf_size-5&&(J=v.pending_buf_size-5);;){if(v.lookahead<=1){if(Zi(v),0===v.lookahead&&Se===V)return 1;if(0===v.lookahead)break}v.strstart+=v.lookahead,v.lookahead=0;var L=v.block_start+J;if((0===v.strstart||v.strstart>=L)&&(v.lookahead=v.strstart-L,v.strstart=L,le(v,!1),0===v.strm.avail_out)||v.strstart-v.block_start>=v.w_size-mt&&(le(v,!1),0===v.strm.avail_out))return 1}return v.insert=0,4===Se?(le(v,!0),0===v.strm.avail_out?3:4):(v.strstart>v.block_start&&le(v,!1),1)}),new ni(4,4,8,4,Fn),new ni(4,5,16,8,Fn),new ni(4,6,32,32,Fn),new ni(4,4,16,16,Wt),new ni(8,16,32,32,Wt),new ni(8,16,128,128,Wt),new ni(8,32,128,256,Wt),new ni(32,128,258,1024,Wt),new ni(32,258,258,4096,Wt)],Y.deflateInit=function(v,Se){return fo(v,Se,j,15,8,0)},Y.deflateInit2=fo,Y.deflateReset=ar,Y.deflateResetKeep=Ui,Y.deflateSetHeader=function(v,Se){return v&&v.state?2!==v.state.wrap?B:(v.state.gzhead=Se,I):B},Y.deflate=function(v,Se){var J,L,O,Z;if(!v||!v.state||5>8&255),bt(L,L.gzhead.time>>16&255),bt(L,L.gzhead.time>>24&255),bt(L,9===L.level?2:2<=L.strategy||L.level<2?4:0),bt(L,255&L.gzhead.os),L.gzhead.extra&&L.gzhead.extra.length&&(bt(L,255&L.gzhead.extra.length),bt(L,L.gzhead.extra.length>>8&255)),L.gzhead.hcrc&&(v.adler=$(v.adler,L.pending_buf,L.pending,0)),L.gzindex=0,L.status=69):(bt(L,0),bt(L,0),bt(L,0),bt(L,0),bt(L,0),bt(L,9===L.level?2:2<=L.strategy||L.level<2?4:0),bt(L,3),L.status=Ce);else{var de=j+(L.w_bits-8<<4)<<8;de|=(2<=L.strategy||L.level<2?0:L.level<6?1:6===L.level?2:3)<<6,0!==L.strstart&&(de|=32),de+=31-de%31,L.status=Ce,it(L,de),0!==L.strstart&&(it(L,v.adler>>>16),it(L,65535&v.adler)),v.adler=1}if(69===L.status)if(L.gzhead.extra){for(O=L.pending;L.gzindex<(65535&L.gzhead.extra.length)&&(L.pending!==L.pending_buf_size||(L.gzhead.hcrc&&L.pending>O&&(v.adler=$(v.adler,L.pending_buf,L.pending-O,O)),fe(v),O=L.pending,L.pending!==L.pending_buf_size));)bt(L,255&L.gzhead.extra[L.gzindex]),L.gzindex++;L.gzhead.hcrc&&L.pending>O&&(v.adler=$(v.adler,L.pending_buf,L.pending-O,O)),L.gzindex===L.gzhead.extra.length&&(L.gzindex=0,L.status=73)}else L.status=73;if(73===L.status)if(L.gzhead.name){O=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>O&&(v.adler=$(v.adler,L.pending_buf,L.pending-O,O)),fe(v),O=L.pending,L.pending===L.pending_buf_size)){Z=1;break}Z=L.gzindexO&&(v.adler=$(v.adler,L.pending_buf,L.pending-O,O)),0===Z&&(L.gzindex=0,L.status=91)}else L.status=91;if(91===L.status)if(L.gzhead.comment){O=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>O&&(v.adler=$(v.adler,L.pending_buf,L.pending-O,O)),fe(v),O=L.pending,L.pending===L.pending_buf_size)){Z=1;break}Z=L.gzindexO&&(v.adler=$(v.adler,L.pending_buf,L.pending-O,O)),0===Z&&(L.status=103)}else L.status=103;if(103===L.status&&(L.gzhead.hcrc?(L.pending+2>L.pending_buf_size&&fe(v),L.pending+2<=L.pending_buf_size&&(bt(L,255&v.adler),bt(L,v.adler>>8&255),v.adler=0,L.status=Ce)):L.status=Ce),0!==L.pending){if(fe(v),0===v.avail_out)return L.last_flush=-1,I}else if(0===v.avail_in&&Ve(Se)<=Ve(J)&&4!==Se)return Vt(v,-5);if(666===L.status&&0!==v.avail_in)return Vt(v,-5);if(0!==v.avail_in||0!==L.lookahead||Se!==V&&666!==L.status){var Ee=2===L.strategy?function(ce,je){for(var Je;;){if(0===ce.lookahead&&(Zi(ce),0===ce.lookahead)){if(je===V)return 1;break}if(ce.match_length=0,Je=k._tr_tally(ce,0,ce.window[ce.strstart]),ce.lookahead--,ce.strstart++,Je&&(le(ce,!1),0===ce.strm.avail_out))return 1}return ce.insert=0,4===je?(le(ce,!0),0===ce.strm.avail_out?3:4):ce.last_lit&&(le(ce,!1),0===ce.strm.avail_out)?1:2}(L,Se):3===L.strategy?function(ce,je){for(var Je,ze,ht,oi,Kt=ce.window;;){if(ce.lookahead<=Ge){if(Zi(ce),ce.lookahead<=Ge&&je===V)return 1;if(0===ce.lookahead)break}if(ce.match_length=0,ce.lookahead>=ye&&0ce.lookahead&&(ce.match_length=ce.lookahead)}if(ce.match_length>=ye?(Je=k._tr_tally(ce,1,ce.match_length-ye),ce.lookahead-=ce.match_length,ce.strstart+=ce.match_length,ce.match_length=0):(Je=k._tr_tally(ce,0,ce.window[ce.strstart]),ce.lookahead--,ce.strstart++),Je&&(le(ce,!1),0===ce.strm.avail_out))return 1}return ce.insert=0,4===je?(le(ce,!0),0===ce.strm.avail_out?3:4):ce.last_lit&&(le(ce,!1),0===ce.strm.avail_out)?1:2}(L,Se):F[L.level].func(L,Se);if(3!==Ee&&4!==Ee||(L.status=666),1===Ee||3===Ee)return 0===v.avail_out&&(L.last_flush=-1),I;if(2===Ee&&(1===Se?k._tr_align(L):5!==Se&&(k._tr_stored_block(L,0,0,!1),3===Se&&(Tt(L.head),0===L.lookahead&&(L.strstart=0,L.block_start=0,L.insert=0))),fe(v),0===v.avail_out))return L.last_flush=-1,I}return 4!==Se?I:L.wrap<=0?1:(2===L.wrap?(bt(L,255&v.adler),bt(L,v.adler>>8&255),bt(L,v.adler>>16&255),bt(L,v.adler>>24&255),bt(L,255&v.total_in),bt(L,v.total_in>>8&255),bt(L,v.total_in>>16&255),bt(L,v.total_in>>24&255)):(it(L,v.adler>>>16),it(L,65535&v.adler)),fe(v),0=J.w_size&&(0===Z&&(Tt(J.head),J.strstart=0,J.block_start=0,J.insert=0),je=new R.Buf8(J.w_size),R.arraySet(je,Se,Je-J.w_size,J.w_size,0),Se=je,Je=J.w_size),de=v.avail_in,Ee=v.next_in,ce=v.input,v.avail_in=Je,v.next_in=0,v.input=Se,Zi(J);J.lookahead>=ye;){for(L=J.strstart,O=J.lookahead-(ye-1);J.ins_h=(J.ins_h<>>=ye=Fe>>>24,K-=ye,0==(ye=Fe>>>16&255))Me[W++]=65535&Fe;else{if(!(16&ye)){if(!(64&ye)){Fe=re[(65535&Fe)+(j&(1<>>=ye,K-=ye),K<15&&(j+=x[P++]<>>=ye=Fe>>>24,K-=ye,!(16&(ye=Fe>>>16&255))){if(!(64&ye)){Fe=te[(65535&Fe)+(j&(1<>>=ye,K-=ye,(ye=W-V)>3,j&=(1<<(K-=Ge<<3))-1,F.next_in=P,F.next_out=W,F.avail_in=P<$?$-P+5:5-(P-$),F.avail_out=W>>24&255)+(H>>>8&65280)+((65280&H)<<8)+((255&H)<<24)}function j(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new F.Buf16(320),this.work=new F.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function K(H){var Ce;return H&&H.state?(H.total_in=H.total_out=(Ce=H.state).total=0,H.msg="",Ce.wrap&&(H.adler=1&Ce.wrap),Ce.mode=B,Ce.last=0,Ce.havedict=0,Ce.dmax=32768,Ce.head=null,Ce.hold=0,Ce.bits=0,Ce.lencode=Ce.lendyn=new F.Buf32(M),Ce.distcode=Ce.distdyn=new F.Buf32(N),Ce.sane=1,Ce.back=-1,G):I}function re(H){var Ce;return H&&H.state?((Ce=H.state).wsize=0,Ce.whave=0,Ce.wnext=0,K(H)):I}function te(H,Ce){var x,Me;return H&&H.state?(Me=H.state,Ce<0?(x=0,Ce=-Ce):(x=1+(Ce>>4),Ce<48&&(Ce&=15)),Ce&&(Ce<8||15=Le.wsize?(F.arraySet(Le.window,Ce,x-Le.wsize,Le.wsize,0),Le.wnext=0,Le.whave=Le.wsize):(Me<(Rt=Le.wsize-Le.wnext)&&(Rt=Me),F.arraySet(Le.window,Ce,x-Me,Rt,Le.wnext),(Me-=Rt)?(F.arraySet(Le.window,Ce,x-Me,Me,0),Le.wnext=Me,Le.whave=Le.wsize):(Le.wnext+=Rt,Le.wnext===Le.wsize&&(Le.wnext=0),Le.whave>>8&255,x.check=k(x.check,Z,2,0),le=fe=0,x.mode=2;break}if(x.flags=0,x.head&&(x.head.done=!1),!(1&x.wrap)||(((255&fe)<<8)+(fe>>8))%31){H.msg="incorrect header check",x.mode=30;break}if(8!=(15&fe)){H.msg="unknown compression method",x.mode=30;break}if(le-=4,v=8+(15&(fe>>>=4)),0===x.wbits)x.wbits=v;else if(v>x.wbits){H.msg="invalid window size",x.mode=30;break}x.dmax=1<>8&1),512&x.flags&&(Z[0]=255&fe,Z[1]=fe>>>8&255,x.check=k(x.check,Z,2,0)),le=fe=0,x.mode=3;case 3:for(;le<32;){if(0===Ve)break e;Ve--,fe+=Me[Le++]<>>8&255,Z[2]=fe>>>16&255,Z[3]=fe>>>24&255,x.check=k(x.check,Z,4,0)),le=fe=0,x.mode=4;case 4:for(;le<16;){if(0===Ve)break e;Ve--,fe+=Me[Le++]<>8),512&x.flags&&(Z[0]=255&fe,Z[1]=fe>>>8&255,x.check=k(x.check,Z,2,0)),le=fe=0,x.mode=5;case 5:if(1024&x.flags){for(;le<16;){if(0===Ve)break e;Ve--,fe+=Me[Le++]<>>8&255,x.check=k(x.check,Z,2,0)),le=fe=0}else x.head&&(x.head.extra=null);x.mode=6;case 6:if(1024&x.flags&&(Ve<(Qe=x.length)&&(Qe=Ve),Qe&&(x.head&&(v=x.head.extra_len-x.length,x.head.extra||(x.head.extra=new Array(x.head.extra_len)),F.arraySet(x.head.extra,Me,Le,Qe,v)),512&x.flags&&(x.check=k(x.check,Me,Qe,Le)),Ve-=Qe,Le+=Qe,x.length-=Qe),x.length))break e;x.length=0,x.mode=7;case 7:if(2048&x.flags){if(0===Ve)break e;for(Qe=0;v=Me[Le+Qe++],x.head&&v&&x.length<65536&&(x.head.name+=String.fromCharCode(v)),v&&Qe>9&1,x.head.done=!0),H.adler=x.check=0,x.mode=12;break;case 10:for(;le<32;){if(0===Ve)break e;Ve--,fe+=Me[Le++]<>>=7&le,le-=7&le,x.mode=27;break}for(;le<3;){if(0===Ve)break e;Ve--,fe+=Me[Le++]<>>=1)){case 0:x.mode=14;break;case 1:if(Ge(x),x.mode=20,6!==Ce)break;fe>>>=2,le-=2;break e;case 2:x.mode=17;break;case 3:H.msg="invalid block type",x.mode=30}fe>>>=2,le-=2;break;case 14:for(fe>>>=7&le,le-=7≤le<32;){if(0===Ve)break e;Ve--,fe+=Me[Le++]<>>16^65535)){H.msg="invalid stored block lengths",x.mode=30;break}if(x.length=65535&fe,le=fe=0,x.mode=15,6===Ce)break e;case 15:x.mode=16;case 16:if(Qe=x.length){if(Ve>>=5)),le-=5,x.ncode=4+(15&(fe>>>=5)),fe>>>=4,le-=4,286>>=3,le-=3}for(;x.have<19;)x.lens[de[x.have++]]=0;if(x.lencode=x.lendyn,x.lenbits=7,Se=$(0,x.lens,0,19,x.lencode,0,x.work,J={bits:x.lenbits}),x.lenbits=J.bits,Se){H.msg="invalid code lengths set",x.mode=30;break}x.have=0,x.mode=19;case 19:for(;x.have>>16&255,cn=65535&O,!((Wt=O>>>24)<=le);){if(0===Ve)break e;Ve--,fe+=Me[Le++]<>>=Wt,le-=Wt,x.lens[x.have++]=cn;else{if(16===cn){for(L=Wt+2;le>>=Wt,le-=Wt,0===x.have){H.msg="invalid bit length repeat",x.mode=30;break}v=x.lens[x.have-1],Qe=3+(3&fe),fe>>>=2,le-=2}else if(17===cn){for(L=Wt+3;le>>=Wt)),fe>>>=3,le-=3}else{for(L=Wt+7;le>>=Wt)),fe>>>=7,le-=7}if(x.have+Qe>x.nlen+x.ndist){H.msg="invalid bit length repeat",x.mode=30;break}for(;Qe--;)x.lens[x.have++]=v}}if(30===x.mode)break;if(0===x.lens[256]){H.msg="invalid code -- missing end-of-block",x.mode=30;break}if(x.lenbits=9,Se=$(1,x.lens,0,x.nlen,x.lencode,0,x.work,J={bits:x.lenbits}),x.lenbits=J.bits,Se){H.msg="invalid literal/lengths set",x.mode=30;break}if(x.distbits=6,x.distcode=x.distdyn,Se=$(2,x.lens,x.nlen,x.ndist,x.distcode,0,x.work,J={bits:x.distbits}),x.distbits=J.bits,Se){H.msg="invalid distances set",x.mode=30;break}if(x.mode=20,6===Ce)break e;case 20:x.mode=21;case 21:if(6<=Ve&&258<=Tt){H.next_out=Vt,H.avail_out=Tt,H.next_in=Le,H.avail_in=Ve,x.hold=fe,x.bits=le,P(H,it),Vt=H.next_out,Rt=H.output,Tt=H.avail_out,Le=H.next_in,Me=H.input,Ve=H.avail_in,fe=x.hold,le=x.bits,12===x.mode&&(x.back=-1);break}for(x.back=0;ni=(O=x.lencode[fe&(1<>>16&255,cn=65535&O,!((Wt=O>>>24)<=le);){if(0===Ve)break e;Ve--,fe+=Me[Le++]<>Ui)])>>>16&255,cn=65535&O,!(Ui+(Wt=O>>>24)<=le);){if(0===Ve)break e;Ve--,fe+=Me[Le++]<>>=Ui,le-=Ui,x.back+=Ui}if(fe>>>=Wt,le-=Wt,x.back+=Wt,x.length=cn,0===ni){x.mode=26;break}if(32&ni){x.back=-1,x.mode=12;break}if(64&ni){H.msg="invalid literal/length code",x.mode=30;break}x.extra=15&ni,x.mode=22;case 22:if(x.extra){for(L=x.extra;le>>=x.extra,le-=x.extra,x.back+=x.extra}x.was=x.length,x.mode=23;case 23:for(;ni=(O=x.distcode[fe&(1<>>16&255,cn=65535&O,!((Wt=O>>>24)<=le);){if(0===Ve)break e;Ve--,fe+=Me[Le++]<>Ui)])>>>16&255,cn=65535&O,!(Ui+(Wt=O>>>24)<=le);){if(0===Ve)break e;Ve--,fe+=Me[Le++]<>>=Ui,le-=Ui,x.back+=Ui}if(fe>>>=Wt,le-=Wt,x.back+=Wt,64&ni){H.msg="invalid distance code",x.mode=30;break}x.offset=cn,x.extra=15&ni,x.mode=24;case 24:if(x.extra){for(L=x.extra;le>>=x.extra,le-=x.extra,x.back+=x.extra}if(x.offset>x.dmax){H.msg="invalid distance too far back",x.mode=30;break}x.mode=25;case 25:if(0===Tt)break e;if(x.offset>(Qe=it-Tt)){if((Qe=x.offset-Qe)>x.whave&&x.sane){H.msg="invalid distance too far back",x.mode=30;break}Zi=Qe>x.wnext?x.wsize-(Qe-=x.wnext):x.wnext-Qe,Qe>x.length&&(Qe=x.length),Fn=x.window}else Fn=Rt,Zi=Vt-x.offset,Qe=x.length;for(Ttwe?(ye=Zi[Fn+N[Ce]],le[bt+N[Ce]]):(ye=96,0),j=1<>Vt)+(K-=j)]=Fe<<24|ye<<16|Ge|0,0!==K;);for(j=1<>=1;if(0!==j?(fe&=j-1,fe+=j):fe=0,Ce++,0==--it[H]){if(H===Me)break;H=V[G+N[Ce]]}if(Rt>>7)]}function bt(O,Z){O.pending_buf[O.pending++]=255&Z,O.pending_buf[O.pending++]=Z>>>8&255}function it(O,Z,de){O.bi_valid>E-de?(O.bi_buf|=Z<>E-O.bi_valid,O.bi_valid+=de-E):(O.bi_buf|=Z<>>=1,de<<=1,0<--Z;);return de>>>1}function Fn(O,Z,de){var Ee,ce,je=new Array(N+1),Je=0;for(Ee=1;Ee<=N;Ee++)je[Ee]=Je=Je+de[Ee-1]<<1;for(ce=0;ce<=Z;ce++){var ze=O[2*ce+1];0!==ze&&(O[2*ce]=Zi(je[ze]++,ze))}}function Wt(O){var Z;for(Z=0;Z>1;1<=de;de--)Ui(O,je,de);for(ce=ht;de=O.heap[1],O.heap[1]=O.heap[O.heap_len--],Ui(O,je,1),Ee=O.heap[1],O.heap[--O.heap_max]=de,O.heap[--O.heap_max]=Ee,je[2*ce]=je[2*de]+je[2*Ee],O.depth[ce]=(O.depth[de]>=O.depth[Ee]?O.depth[de]:O.depth[Ee])+1,je[2*de+1]=je[2*Ee+1]=ce,O.heap[1]=ce++,Ui(O,je,1),2<=O.heap_len;);O.heap[--O.heap_max]=O.heap[1],function(Kt,go){var ws,_o,Mo,Ti,_c,xs,sr=go.dyn_tree,bc=go.max_code,Ag=go.stat_desc.static_tree,Ds=go.stat_desc.has_stree,vc=go.stat_desc.extra_bits,Sh=go.stat_desc.extra_base,Qr=go.stat_desc.max_length,yc=0;for(Ti=0;Ti<=N;Ti++)Kt.bl_count[Ti]=0;for(sr[2*Kt.heap[Kt.heap_max]+1]=0,ws=Kt.heap_max+1;ws<573;ws++)Qr<(Ti=sr[2*sr[2*(_o=Kt.heap[ws])+1]+1]+1)&&(Ti=Qr,yc++),sr[2*_o+1]=Ti,bc<_o||(Kt.bl_count[Ti]++,_c=0,Sh<=_o&&(_c=vc[_o-Sh]),Kt.opt_len+=(xs=sr[2*_o])*(Ti+_c),Ds&&(Kt.static_len+=xs*(Ag[2*_o+1]+_c)));if(0!==yc){do{for(Ti=Qr-1;0===Kt.bl_count[Ti];)Ti--;Kt.bl_count[Ti]--,Kt.bl_count[Ti+1]+=2,Kt.bl_count[Qr]--,yc-=2}while(0>=7;ce>>=1)if(1&oi&&0!==ze.dyn_ltree[2*ht])return 0;if(0!==ze.dyn_ltree[18]||0!==ze.dyn_ltree[20]||0!==ze.dyn_ltree[26])return 1;for(ht=32;ht>>3)<=(ce=O.opt_len+3+7>>>3)&&(ce=je)):ce=je=de+5,de+4<=ce&&-1!==Z?L(O,Z,de,Ee):4===O.strategy||je===ce?(it(O,2+(Ee?1:0),3),ar(O,mt,H)):(it(O,4+(Ee?1:0),3),function(ze,ht,oi,Kt){var go;for(it(ze,ht-257,5),it(ze,oi-1,5),it(ze,Kt-4,4),go=0;go>>8&255,O.pending_buf[O.d_buf+2*O.last_lit+1]=255&Z,O.pending_buf[O.l_buf+O.last_lit]=255&de,O.last_lit++,0===Z?O.dyn_ltree[2*de]++:(O.matches++,Z--,O.dyn_ltree[2*(x[de]+V+1)]++,O.dyn_dtree[2*le(Z)]++),O.last_lit===O.lit_bufsize-1},Y._tr_align=function(O){var Z;it(O,2,3),Qe(O,256,mt),16===(Z=O).bi_valid?(bt(Z,Z.bi_buf),Z.bi_buf=0,Z.bi_valid=0):8<=Z.bi_valid&&(Z.pending_buf[Z.pending++]=255&Z.bi_buf,Z.bi_buf>>=8,Z.bi_valid-=8)}},{"../utils/common":41}],53:[function(q,Re,Y){"use strict";Re.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(q,Re,Y){(function(F){!function(R,k){"use strict";if(!R.setImmediate){var P,$,W,V,G=1,I={},B=!1,M=R.document,N=Object.getPrototypeOf&&Object.getPrototypeOf(R);N=N&&N.setTimeout?N:R,P="[object process]"==={}.toString.call(R.process)?function(re){process.nextTick(function(){j(re)})}:function(){if(R.postMessage&&!R.importScripts){var re=!0,te=R.onmessage;return R.onmessage=function(){re=!1},R.postMessage("","*"),R.onmessage=te,re}}()?(V="setImmediate$"+Math.random()+"$",R.addEventListener?R.addEventListener("message",K,!1):R.attachEvent("onmessage",K),function(re){R.postMessage(V+re,"*")}):R.MessageChannel?((W=new MessageChannel).port1.onmessage=function(re){j(re.data)},function(re){W.port2.postMessage(re)}):M&&"onreadystatechange"in M.createElement("script")?($=M.documentElement,function(re){var te=M.createElement("script");te.onreadystatechange=function(){j(re),te.onreadystatechange=null,$.removeChild(te),te=null},$.appendChild(te)}):function(re){setTimeout(j,0,re)},N.setImmediate=function(re){"function"!=typeof re&&(re=new Function(""+re));for(var te=new Array(arguments.length-1),Te=0;Te"u"?void 0===F?this:F:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)}},ld=>{ld(ld.s=536)}]); \ No newline at end of file diff --git a/ui/dist/ui/main.d7bac2a603df4648.js b/ui/dist/ui/main.d7bac2a603df4648.js new file mode 100644 index 000000000..879e3a5ef --- /dev/null +++ b/ui/dist/ui/main.d7bac2a603df4648.js @@ -0,0 +1 @@ +(self.webpackChunkui=self.webpackChunkui||[]).push([[179],{315:(xl,q,Re)=>{"use strict";function z(t){return"function"==typeof t}function N(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const R=N(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function k(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class T{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(z(i))try{i()}catch(r){n=r instanceof R?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{H(r)}catch(a){n=n??[],a instanceof R?n=[...n,...a.errors]:n.push(a)}}if(n)throw new R(n)}}add(n){var e;if(n&&n!==this)if(this.closed)H(n);else{if(n instanceof T){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&k(e,n)}remove(n){const{_finalizers:e}=this;e&&k(e,n),n instanceof T&&n._removeParent(this)}}T.EMPTY=(()=>{const t=new T;return t.closed=!0,t})();const G=T.EMPTY;function Z(t){return t instanceof T||t&&"closed"in t&&z(t.remove)&&z(t.add)&&z(t.unsubscribe)}function H(t){z(t)?t():t.unsubscribe()}const $={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},M={setTimeout(t,n,...e){const{delegate:i}=M;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=M;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function B(t){M.setTimeout(()=>{const{onUnhandledError:n}=$;if(!n)throw t;n(t)})}function D(){}const F=K("C",void 0,void 0);function K(t,n,e){return{kind:t,value:n,error:e}}let ie=null;function ee(t){if($.useDeprecatedSynchronousErrorHandling){const n=!ie;if(n&&(ie={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=ie;if(ie=null,e)throw i}}else t()}class ve extends T{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Z(n)&&n.add(this)):this.destination=we}static create(n,e,i){return new ut(n,e,i)}next(n){this.isStopped?w(function V(t){return K("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?w(function E(t){return K("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?w(F,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Be=Function.prototype.bind;function be(t,n){return Be.call(t,n)}class Ge{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){j(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){j(i)}else j(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){j(e)}}}class ut extends ve{constructor(n,e,i){let o;if(super(),z(n)||!n)o={next:n??void 0,error:e??void 0,complete:i??void 0};else{let r;this&&$.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&be(n.next,r),error:n.error&&be(n.error,r),complete:n.complete&&be(n.complete,r)}):o=n}this.destination=new Ge(o)}}function j(t){$.useDeprecatedSynchronousErrorHandling?function De(t){$.useDeprecatedSynchronousErrorHandling&&ie&&(ie.errorThrown=!0,ie.error=t)}(t):B(t)}function w(t,n){const{onStoppedNotification:e}=$;e&&M.setTimeout(()=>e(t,n))}const we={closed:!0,next:D,error:function Ce(t){throw t},complete:D},St="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ae(t){return t}function Ve(t){return 0===t.length?Ae:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}let Ye=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function _t(t){return t&&t instanceof ve||function ce(t){return t&&z(t.next)&&z(t.error)&&z(t.complete)}(t)&&Z(t)}(e)?e:new ut(e,i,o);return ee(()=>{const{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=me(i))((o,r)=>{const a=new ut({next:s=>{try{e(s)}catch(c){r(c),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[St](){return this}pipe(...e){return Ve(e)(this)}toPromise(e){return new(e=me(e))((i,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>i(r))})}}return t.create=n=>new t(n),t})();function me(t){var n;return null!==(n=t??$.Promise)&&void 0!==n?n:Promise}const tt=N(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let te=(()=>{class t extends Ye{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Ti(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new tt}next(e){ee(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){ee(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){ee(()=>{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=this.currentObservers=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:i,isStopped:o,observers:r}=this;return i||o?G:(this.currentObservers=null,r.push(e),new T(()=>{this.currentObservers=null,k(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new Ye;return e.source=this,e}}return t.create=(n,e)=>new Ti(n,e),t})();class Ti extends te{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:G}}function rn(t){return z(t?.lift)}function at(t){return n=>{if(rn(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function dt(t,n,e,i,o){return new Zi(t,n,e,i,o)}class Zi extends ve{constructor(n,e,i,o,r,a){super(n),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(c){n.error(c)}}:super._next,this._error=o?function(s){try{o(s)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ze(t,n){return at((e,i)=>{let o=0;e.subscribe(dt(i,r=>{i.next(t.call(n,r,o++))}))})}function Jn(t){return this instanceof Jn?(this.v=t,this):new Jn(t)}function zs(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function ii(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(a){return new Promise(function(s,c){!function o(r,a,s,c){Promise.resolve(c).then(function(h){r({value:h,done:s})},a)}(s,c,(a=t[r](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const If=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function $0(t){return z(t?.then)}function G0(t){return z(t[St])}function q0(t){return Symbol.asyncIterator&&z(t?.[Symbol.asyncIterator])}function W0(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const K0=function hP(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Z0(t){return z(t?.[K0])}function Y0(t){return function Ii(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(y){i[y]&&(o[y]=function(x){return new Promise(function(I,O){r.push([y,x,I,O])>1||s(y,x)})})}function s(y,x){try{!function c(y){y.value instanceof Jn?Promise.resolve(y.value.v).then(h,f):b(r[0][2],y)}(i[y](x))}catch(I){b(r[0][3],I)}}function h(y){s("next",y)}function f(y){s("throw",y)}function b(y,x){y(x),r.shift(),r.length&&s(r[0][0],r[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield Jn(e.read());if(o)return yield Jn(void 0);yield yield Jn(i)}}finally{e.releaseLock()}})}function Q0(t){return z(t?.getReader)}function Mn(t){if(t instanceof Ye)return t;if(null!=t){if(G0(t))return function mP(t){return new Ye(n=>{const e=t[St]();if(z(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(If(t))return function pP(t){return new Ye(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,B)})}(t);if(q0(t))return X0(t);if(Z0(t))return function gP(t){return new Ye(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(Q0(t))return function _P(t){return X0(Y0(t))}(t)}throw W0(t)}function X0(t){return new Ye(n=>{(function bP(t,n){var e,i,o,r;return function je(t,n,e,i){return new(e||(e=Promise))(function(r,a){function s(f){try{h(i.next(f))}catch(b){a(b)}}function c(f){try{h(i.throw(f))}catch(b){a(b)}}function h(f){f.done?r(f.value):function o(r){return r instanceof e?r:new e(function(a){a(r)})}(f.value).then(s,c)}h((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=zs(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Rr(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function an(t,n,e=1/0){return z(n)?an((i,o)=>ze((r,a)=>n(i,r,o,a))(Mn(t(i,o))),e):("number"==typeof n&&(e=n),at((i,o)=>function vP(t,n,e,i,o,r,a,s){const c=[];let h=0,f=0,b=!1;const y=()=>{b&&!c.length&&!h&&n.complete()},x=O=>h{r&&n.next(O),h++;let W=!1;Mn(e(O,f++)).subscribe(dt(n,de=>{o?.(de),r?x(de):n.next(de)},()=>{W=!0},void 0,()=>{if(W)try{for(h--;c.length&&hI(de)):I(de)}y()}catch(de){n.error(de)}}))};return t.subscribe(dt(n,x,()=>{b=!0,y()})),()=>{s?.()}}(i,o,t,e)))}function Us(t=1/0){return an(Ae,t)}const ho=new Ye(t=>t.complete());function J0(t){return t&&z(t.schedule)}function Ef(t){return t[t.length-1]}function e1(t){return z(Ef(t))?t.pop():void 0}function wl(t){return J0(Ef(t))?t.pop():void 0}function t1(t,n=0){return at((e,i)=>{e.subscribe(dt(i,o=>Rr(i,t,()=>i.next(o),n),()=>Rr(i,t,()=>i.complete(),n),o=>Rr(i,t,()=>i.error(o),n)))})}function n1(t,n=0){return at((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function o1(t,n){if(!t)throw new Error("Iterable cannot be null");return new Ye(e=>{Rr(e,n,()=>{const i=t[Symbol.asyncIterator]();Rr(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function Hi(t,n){return n?function MP(t,n){if(null!=t){if(G0(t))return function xP(t,n){return Mn(t).pipe(n1(n),t1(n))}(t,n);if(If(t))return function SP(t,n){return new Ye(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if($0(t))return function wP(t,n){return Mn(t).pipe(n1(n),t1(n))}(t,n);if(q0(t))return o1(t,n);if(Z0(t))return function DP(t,n){return new Ye(e=>{let i;return Rr(e,n,()=>{i=t[K0](),Rr(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(a){return void e.error(a)}r?e.complete():e.next(o)},0,!0)}),()=>z(i?.return)&&i.return()})}(t,n);if(Q0(t))return function kP(t,n){return o1(Y0(t),n)}(t,n)}throw W0(t)}(t,n):Mn(t)}function yi(...t){const n=wl(t),e=function CP(t,n){return"number"==typeof Ef(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?Mn(i[0]):Us(e)(Hi(i,n)):ho}class pt extends te{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function qe(...t){return Hi(t,wl(t))}function Au(t={}){const{connector:n=(()=>new te),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,c,h=0,f=!1,b=!1;const y=()=>{s?.unsubscribe(),s=void 0},x=()=>{y(),a=c=void 0,f=b=!1},I=()=>{const O=a;x(),O?.unsubscribe()};return at((O,W)=>{h++,!b&&!f&&y();const de=c=c??n();W.add(()=>{h--,0===h&&!b&&!f&&(s=Of(I,o))}),de.subscribe(W),!a&&h>0&&(a=new ut({next:re=>de.next(re),error:re=>{b=!0,y(),s=Of(x,e,re),de.error(re)},complete:()=>{f=!0,y(),s=Of(x,i),de.complete()}}),Mn(O).subscribe(a))})(r)}}function Of(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new ut({next:()=>{i.unsubscribe(),t()}});return Mn(n(...e)).subscribe(i)}function Yi(t,n){return at((e,i)=>{let o=null,r=0,a=!1;const s=()=>a&&!o&&i.complete();e.subscribe(dt(i,c=>{o?.unsubscribe();let h=0;const f=r++;Mn(t(c,f)).subscribe(o=dt(i,b=>i.next(n?n(c,b,f,h++):b),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function $s(t,n=Ae){return t=t??TP,at((e,i)=>{let o,r=!0;e.subscribe(dt(i,a=>{const s=n(a);(r||!t(o,s))&&(r=!1,o=s,i.next(a))}))})}function TP(t,n){return t===n}function ai(t){for(let n in t)if(t[n]===ai)return n;throw Error("Could not find renamed property on target object.")}function Pu(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function sn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(sn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Af(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const IP=ai({__forward_ref__:ai});function qt(t){return t.__forward_ref__=qt,t.toString=function(){return sn(this())},t}function Dt(t){return Pf(t)?t():t}function Pf(t){return"function"==typeof t&&t.hasOwnProperty(IP)&&t.__forward_ref__===qt}function Rf(t){return t&&!!t.\u0275providers}const r1="https://g.co/ng/security#xss";class pe extends Error{constructor(n,e){super(function Ru(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function It(t){return"string"==typeof t?t:null==t?"":String(t)}function Ff(t,n){throw new pe(-201,!1)}function Oo(t,n){null==t&&function Ct(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function ke(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function st(t){return{providers:t.providers||[],imports:t.imports||[]}}function Fu(t){return a1(t,Lu)||a1(t,s1)}function a1(t,n){return t.hasOwnProperty(n)?t[n]:null}function Nu(t){return t&&(t.hasOwnProperty(Nf)||t.hasOwnProperty(LP))?t[Nf]:null}const Lu=ai({\u0275prov:ai}),Nf=ai({\u0275inj:ai}),s1=ai({ngInjectableDef:ai}),LP=ai({ngInjectorDef:ai});var zt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(zt||{});let Lf;function eo(t){const n=Lf;return Lf=t,n}function l1(t,n,e){const i=Fu(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&zt.Optional?null:void 0!==n?n:void Ff(sn(t))}const Ci=globalThis;class se{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ke({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Sl={},Hf="__NG_DI_FLAG__",Bu="ngTempTokenPath",jP=/\n/gm,u1="__source";let Gs;function fa(t){const n=Gs;return Gs=t,n}function UP(t,n=zt.Default){if(void 0===Gs)throw new pe(-203,!1);return null===Gs?l1(t,void 0,n):Gs.get(t,n&zt.Optional?null:void 0,n)}function Y(t,n=zt.Default){return(function c1(){return Lf}()||UP)(Dt(t),n)}function Ne(t,n=zt.Default){return Y(t,Vu(n))}function Vu(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Uf(t){const n=[];for(let e=0;en){a=r-1;break}}}for(;rr?"":o[b+1].toLowerCase();const x=8&i?y:null;if(x&&-1!==f1(x,h,0)||2&i&&h!==y){if(Zo(i))return!1;a=!0}}}}else{if(!a&&!Zo(i)&&!Zo(c))return!1;if(a&&Zo(c))continue;a=!1,i=c|1&i}}return Zo(i)||a}function Zo(t){return 0==(1&t)}function YP(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&i?o+="."+a:4&i&&(o+=" "+a);else""!==o&&!Zo(a)&&(n+=x1(r,o),o=""),i=a,r=r||!Zo(i);e++}return""!==o&&(n+=x1(r,o)),n}function Me(t){return Fr(()=>{const n=S1(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===ju.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ao.Emulated,styles:t.styles||Xt,_:null,schemas:t.schemas||null,tView:null,id:""};D1(e);const i=t.dependencies;return e.directiveDefs=Hu(i,!1),e.pipeDefs=Hu(i,!0),e.id=function lR(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function rR(t){return Wt(t)||_n(t)}function aR(t){return null!==t}function lt(t){return Fr(()=>({type:t.type,bootstrap:t.bootstrap||Xt,declarations:t.declarations||Xt,imports:t.imports||Xt,exports:t.exports||Xt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function w1(t,n){if(null==t)return dr;const e={};for(const i in t)if(t.hasOwnProperty(i)){let o=t[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),e[o]=i,n&&(n[o]=r)}return e}function X(t){return Fr(()=>{const n=S1(t);return D1(n),n})}function to(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Wt(t){return t[zu]||null}function _n(t){return t[$f]||null}function Nn(t){return t[Gf]||null}function po(t,n){const e=t[m1]||null;if(!e&&!0===n)throw new Error(`Type ${sn(t)} does not have '\u0275mod' property.`);return e}function S1(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||dr,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||Xt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:w1(t.inputs,n),outputs:w1(t.outputs)}}function D1(t){t.features?.forEach(n=>n(t))}function Hu(t,n){if(!t)return null;const e=n?Nn:rR;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(aR)}const Bi=0,Je=1,Rt=2,Ei=3,Yo=4,Tl=5,Tn=6,Ws=7,Ui=8,ga=9,Ks=10,Et=11,Il=12,k1=13,Zs=14,$i=15,El=16,Ys=17,ur=18,Ol=19,M1=20,_a=21,Lr=22,Al=23,Pl=24,Ht=25,Wf=1,T1=2,hr=7,Qs=9,bn=11;function io(t){return Array.isArray(t)&&"object"==typeof t[Wf]}function Ln(t){return Array.isArray(t)&&!0===t[Wf]}function Kf(t){return 0!=(4&t.flags)}function is(t){return t.componentOffset>-1}function $u(t){return 1==(1&t.flags)}function Qo(t){return!!t.template}function Zf(t){return 0!=(512&t[Rt])}function ns(t,n){return t.hasOwnProperty(Nr)?t[Nr]:null}let vn=null,Gu=!1;function Po(t){const n=vn;return vn=t,n}const O1={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function P1(t){if(!Fl(t)||t.dirty){if(!t.producerMustRecompute(t)&&!N1(t))return void(t.dirty=!1);t.producerRecomputeValue(t),t.dirty=!1}}function F1(t){t.dirty=!0,function R1(t){if(void 0===t.liveConsumerNode)return;const n=Gu;Gu=!0;try{for(const e of t.liveConsumerNode)e.dirty||F1(e)}finally{Gu=n}}(t),t.consumerMarkedDirty?.(t)}function Qf(t){return t&&(t.nextProducerIndex=0),Po(t)}function Xf(t,n){if(Po(n),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(Fl(t))for(let e=t.nextProducerIndex;et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function N1(t){Xs(t);for(let n=0;n0}function Xs(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let j1=null;function U1(t){const n=Po(null);try{return t()}finally{Po(n)}}const $1=()=>{},xR=(()=>({...O1,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:$1}))();class wR{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function si(){return G1}function G1(t){return t.type.prototype.ngOnChanges&&(t.setInput=DR),SR}function SR(){const t=W1(this),n=t?.current;if(n){const e=t.previous;if(e===dr)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function DR(t,n,e,i){const o=this.declaredInputs[e],r=W1(t)||function kR(t,n){return t[q1]=n}(t,{previous:dr,current:null}),a=r.current||(r.current={}),s=r.previous,c=s[o];a[o]=new wR(c&&c.currentValue,n,s===dr),t[i]=n}si.ngInherit=!0;const q1="__ngSimpleChanges__";function W1(t){return t[q1]||null}const mr=function(t,n,e){},K1="svg";function xi(t){for(;Array.isArray(t);)t=t[Bi];return t}function Wu(t,n){return xi(n[t])}function no(t,n){return xi(n[t.index])}function Y1(t,n){return t.data[n]}function Js(t,n){return t[n]}function fo(t,n){const e=n[t];return io(e)?e:e[Bi]}function va(t,n){return null==n?null:t[n]}function Q1(t){t[Ys]=0}function AR(t){1024&t[Rt]||(t[Rt]|=1024,J1(t,1))}function X1(t){1024&t[Rt]&&(t[Rt]&=-1025,J1(t,-1))}function J1(t,n){let e=t[Ei];if(null===e)return;e[Tl]+=n;let i=e;for(e=e[Ei];null!==e&&(1===n&&1===i[Tl]||-1===n&&0===i[Tl]);)e[Tl]+=n,i=e,e=e[Ei]}const xt={lFrame:dC(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function iC(){return xt.bindingsEnabled}function ec(){return null!==xt.skipHydrationRootTNode}function Se(){return xt.lFrame.lView}function Kt(){return xt.lFrame.tView}function ne(t){return xt.lFrame.contextLView=t,t[Ui]}function oe(t){return xt.lFrame.contextLView=null,t}function yn(){let t=nC();for(;null!==t&&64===t.type;)t=t.parent;return t}function nC(){return xt.lFrame.currentTNode}function pr(t,n){const e=xt.lFrame;e.currentTNode=t,e.isParent=n}function ng(){return xt.lFrame.isParent}function og(){xt.lFrame.isParent=!1}function Bn(){const t=xt.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Br(){return xt.lFrame.bindingIndex}function tc(){return xt.lFrame.bindingIndex++}function Vr(t){const n=xt.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function $R(t,n){const e=xt.lFrame;e.bindingIndex=e.bindingRootIndex=t,rg(n)}function rg(t){xt.lFrame.currentDirectiveIndex=t}function ag(t){const n=xt.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function sC(){return xt.lFrame.currentQueryIndex}function sg(t){xt.lFrame.currentQueryIndex=t}function qR(t){const n=t[Je];return 2===n.type?n.declTNode:1===n.type?t[Tn]:null}function cC(t,n,e){if(e&zt.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&zt.Host||(o=qR(r),null===o||(r=r[Zs],10&o.type))););if(null===o)return!1;n=o,t=r}const i=xt.lFrame=lC();return i.currentTNode=n,i.lView=t,!0}function cg(t){const n=lC(),e=t[Je];xt.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function lC(){const t=xt.lFrame,n=null===t?null:t.child;return null===n?dC(t):n}function dC(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function uC(){const t=xt.lFrame;return xt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const hC=uC;function lg(){const t=uC();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Vn(){return xt.lFrame.selectedIndex}function os(t){xt.lFrame.selectedIndex=t}function Ri(){const t=xt.lFrame;return Y1(t.tView,t.selectedIndex)}function Zt(){xt.lFrame.currentNamespace=K1}function Xo(){!function YR(){xt.lFrame.currentNamespace=null}()}let pC=!0;function Ku(){return pC}function ya(t){pC=t}function Zu(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[c]<0&&(t[Ys]+=65536),(s>13>16&&(3&t[Rt])===n&&(t[Rt]+=8192,gC(s,r)):gC(s,r)}const ic=-1;class Ll{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function hg(t){return t!==ic}function Bl(t){return 32767&t}function Vl(t,n){let e=function iF(t){return t>>16}(t),i=n;for(;e>0;)i=i[Zs],e--;return i}let mg=!0;function Xu(t){const n=mg;return mg=t,n}const _C=255,bC=5;let nF=0;const fr={};function Ju(t,n){const e=vC(t,n);if(-1!==e)return e;const i=n[Je];i.firstCreatePass&&(t.injectorIndex=n.length,pg(i.data,t),pg(n,null),pg(i.blueprint,null));const o=eh(t,n),r=t.injectorIndex;if(hg(o)){const a=Bl(o),s=Vl(o,n),c=s[Je].data;for(let h=0;h<8;h++)n[r+h]=s[a+h]|c[a+h]}return n[r+8]=o,r}function pg(t,n){t.push(0,0,0,0,0,0,0,0,n)}function vC(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function eh(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){if(i=kC(o),null===i)return ic;if(e++,o=o[Zs],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return ic}function fg(t,n,e){!function oF(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(kl)&&(i=e[kl]),null==i&&(i=e[kl]=nF++);const o=i&_C;n.data[t+(o>>bC)]|=1<=0?n&_C:lF:n}(e);if("function"==typeof r){if(!cC(n,t,i))return i&zt.Host?yC(o,0,i):CC(n,e,i,o);try{let a;if(a=r(i),null!=a||i&zt.Optional)return a;Ff()}finally{hC()}}else if("number"==typeof r){let a=null,s=vC(t,n),c=ic,h=i&zt.Host?n[$i][Tn]:null;for((-1===s||i&zt.SkipSelf)&&(c=-1===s?eh(t,n):n[s+8],c!==ic&&DC(i,!1)?(a=n[Je],s=Bl(c),n=Vl(c,n)):s=-1);-1!==s;){const f=n[Je];if(SC(r,s,f.data)){const b=aF(s,n,e,a,i,h);if(b!==fr)return b}c=n[s+8],c!==ic&&DC(i,n[Je].data[s+8]===h)&&SC(r,s,n)?(a=f,s=Bl(c),n=Vl(c,n)):s=-1}}return o}function aF(t,n,e,i,o,r){const a=n[Je],s=a.data[t+8],f=th(s,a,e,null==i?is(s)&&mg:i!=a&&0!=(3&s.type),o&zt.Host&&r===s);return null!==f?rs(n,a,f,s):fr}function th(t,n,e,i,o){const r=t.providerIndexes,a=n.data,s=1048575&r,c=t.directiveStart,f=r>>20,y=o?s+f:t.directiveEnd;for(let x=i?s:s+f;x=c&&I.type===e)return x}if(o){const x=a[c];if(x&&Qo(x)&&x.type===e)return c}return null}function rs(t,n,e,i){let o=t[e];const r=n.data;if(function JR(t){return t instanceof Ll}(o)){const a=o;a.resolving&&function EP(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new pe(-200,`Circular dependency in DI detected for ${t}${e}`)}(function ni(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():It(t)}(r[e]));const s=Xu(a.canSeeViewProviders);a.resolving=!0;const h=a.injectImpl?eo(a.injectImpl):null;cC(t,i,zt.Default);try{o=t[e]=a.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function QR(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const a=G1(n);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}(e,r[e],n)}finally{null!==h&&eo(h),Xu(s),a.resolving=!1,hC()}}return o}function SC(t,n,e){return!!(e[n+(t>>bC)]&1<{const n=t.prototype.constructor,e=n[Nr]||gg(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[Nr]||gg(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function gg(t){return Pf(t)?()=>{const n=gg(Dt(t));return n&&n()}:ns(t)}function kC(t){const n=t[Je],e=n.type;return 2===e?n.declTNode:1===e?t[Tn]:null}function zn(t){return function rF(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o{const i=function _g(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const a=new o(...r);return s.annotation=a,s;function s(c,h,f){const b=c.hasOwnProperty(oc)?c[oc]:Object.defineProperty(c,oc,{value:[]})[oc];for(;b.length<=f;)b.push(null);return(b[f]=b[f]||[]).push(a),c}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function cc(t,n){t.forEach(e=>Array.isArray(e)?cc(e,n):n(e))}function TC(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function ih(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Hl(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function _F(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function bg(t,n){const e=lc(t,n);if(e>=0)return t[1|e]}function lc(t,n){return function IC(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),a=t[r<n?o=r:i=r+1}return~(o<|^->||--!>|)/g,jF="\u200b$1\u200b";const wg=new Map;let zF=0;const Dg="__ngContext__";function In(t,n){io(n)?(t[Dg]=n[Ol],function UF(t){wg.set(t[Ol],t)}(n)):t[Dg]=n}let kg;function Mg(t,n){return kg(t,n)}function Gl(t){const n=t[Ei];return Ln(n)?n[Ei]:n}function ZC(t){return QC(t[Il])}function YC(t){return QC(t[Yo])}function QC(t){for(;null!==t&&!Ln(t);)t=t[Yo];return t}function mc(t,n,e,i,o){if(null!=i){let r,a=!1;Ln(i)?r=i:io(i)&&(a=!0,i=i[Bi]);const s=xi(i);0===t&&null!==e?null==o?tx(n,e,s):as(n,e,s,o||null,!0):1===t&&null!==e?as(n,e,s,o||null,!0):2===t?function fh(t,n,e){const i=mh(t,n);i&&function cN(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,s,a):3===t&&n.destroyNode(s),null!=r&&function uN(t,n,e,i,o){const r=e[hr];r!==xi(e)&&mc(n,t,i,r,o);for(let s=bn;sn.replace(VF,jF))}(n))}function uh(t,n,e){return t.createElement(n,e)}function JC(t,n){const e=t[Qs],i=e.indexOf(n);X1(n),e.splice(i,1)}function hh(t,n){if(t.length<=bn)return;const e=bn+n,i=t[e];if(i){const o=i[El];null!==o&&o!==t&&JC(o,i),n>0&&(t[e-1][Yo]=i[Yo]);const r=ih(t,bn+n);!function eN(t,n){Wl(t,n,n[Et],2,null,null),n[Bi]=null,n[Tn]=null}(i[Je],i);const a=r[ur];null!==a&&a.detachView(r[Je]),i[Ei]=null,i[Yo]=null,i[Rt]&=-129}return i}function Ig(t,n){if(!(256&n[Rt])){const e=n[Et];n[Al]&&L1(n[Al]),n[Pl]&&L1(n[Pl]),e.destroyNode&&Wl(t,n,e,3,null,null),function nN(t){let n=t[Il];if(!n)return Eg(t[Je],t);for(;n;){let e=null;if(io(n))e=n[Il];else{const i=n[bn];i&&(e=i)}if(!e){for(;n&&!n[Yo]&&n!==t;)io(n)&&Eg(n[Je],n),n=n[Ei];null===n&&(n=t),io(n)&&Eg(n[Je],n),e=n&&n[Yo]}n=e}}(n)}}function Eg(t,n){if(!(256&n[Rt])){n[Rt]&=-129,n[Rt]|=256,function sN(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[a]():i[-a].unsubscribe(),r+=2}else e[r].call(i[e[r+1]]);null!==i&&(n[Ws]=null);const o=n[_a];if(null!==o){n[_a]=null;for(let r=0;r-1){const{encapsulation:r}=t.data[i.directiveStart+o];if(r===Ao.None||r===Ao.Emulated)return null}return no(i,e)}}(t,n.parent,e)}function as(t,n,e,i,o){t.insertBefore(n,e,i,o)}function tx(t,n,e){t.appendChild(n,e)}function ix(t,n,e,i,o){null!==i?as(t,n,e,i,o):tx(t,n,e)}function mh(t,n){return t.parentNode(n)}function nx(t,n,e){return rx(t,n,e)}let Ag,gh,Ng,_h,rx=function ox(t,n,e){return 40&t.type?no(t,e):null};function ph(t,n,e,i){const o=Og(t,i,n),r=n[Et],s=nx(i.parent||n[Tn],i,n);if(null!=o)if(Array.isArray(e))for(let c=0;ct,createScript:t=>t,createScriptURL:t=>t})}catch{}return gh}()?.createHTML(t)||t}function fc(){if(void 0!==Ng)return Ng;if(typeof document<"u")return document;throw new pe(210,!1)}function Lg(){if(void 0===_h&&(_h=null,Ci.trustedTypes))try{_h=Ci.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return _h}function hx(t){return Lg()?.createHTML(t)||t}function px(t){return Lg()?.createScriptURL(t)||t}class ss{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${r1})`}}class bN extends ss{getTypeName(){return"HTML"}}class vN extends ss{getTypeName(){return"Style"}}class yN extends ss{getTypeName(){return"Script"}}class CN extends ss{getTypeName(){return"URL"}}class xN extends ss{getTypeName(){return"ResourceURL"}}function _o(t){return t instanceof ss?t.changingThisBreaksApplicationSecurity:t}function gr(t,n){const e=function wN(t){return t instanceof ss&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${r1})`)}return e===n}class IN{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(pc(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class EN{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=pc(n),e}}const AN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function bh(t){return(t=String(t)).match(AN)?t:"unsafe:"+t}function jr(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Kl(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const gx=jr("area,br,col,hr,img,wbr"),_x=jr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),bx=jr("rp,rt"),Bg=Kl(gx,Kl(_x,jr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Kl(bx,jr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Kl(bx,_x)),Vg=jr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),vx=Kl(Vg,jr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),jr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),PN=jr("script,style,template");class RN{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!Bg.hasOwnProperty(e))return this.sanitizedSomething=!0,!PN.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const e=n.nodeName.toLowerCase();Bg.hasOwnProperty(e)&&!gx.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(yx(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const FN=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,NN=/([^\#-~ |!])/g;function yx(t){return t.replace(/&/g,"&").replace(FN,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(NN,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let vh;function Cx(t,n){let e=null;try{vh=vh||function fx(t){const n=new EN(t);return function ON(){try{return!!(new window.DOMParser).parseFromString(pc(""),"text/html")}catch{return!1}}()?new IN(n):n}(t);let i=n?String(n):"";e=vh.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=vh.getInertBodyElement(i)}while(i!==r);return pc((new RN).sanitizeChildren(jg(e)||e))}finally{if(e){const i=jg(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function jg(t){return"content"in t&&function LN(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Cn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Cn||{});function xx(t){const n=Zl();return n?hx(n.sanitize(Cn.HTML,t)||""):gr(t,"HTML")?hx(_o(t)):Cx(fc(),It(t))}function Fo(t){const n=Zl();return n?n.sanitize(Cn.URL,t)||"":gr(t,"URL")?_o(t):bh(It(t))}function wx(t){const n=Zl();if(n)return px(n.sanitize(Cn.RESOURCE_URL,t)||"");if(gr(t,"ResourceURL"))return px(_o(t));throw new pe(904,!1)}function Zl(){const t=Se();return t&&t[Ks].sanitizer}const Yl=new se("ENVIRONMENT_INITIALIZER"),Dx=new se("INJECTOR",-1),kx=new se("INJECTOR_DEF_TYPES");class zg{get(n,e=Sl){if(e===Sl){const i=new Error(`NullInjectorError: No provider for ${sn(n)}!`);throw i.name="NullInjectorError",i}return e}}function UN(...t){return{\u0275providers:Mx(0,t),\u0275fromNgModule:!0}}function Mx(t,...n){const e=[],i=new Set;let o;const r=a=>{e.push(a)};return cc(n,a=>{const s=a;yh(s,r,[],i)&&(o||=[],o.push(s))}),void 0!==o&&Tx(o,r),e}function Tx(t,n){for(let e=0;e{n(r,i)})}}function yh(t,n,e,i){if(!(t=Dt(t)))return!1;let o=null,r=Nu(t);const a=!r&&Wt(t);if(r||a){if(a&&!a.standalone)return!1;o=t}else{const c=t.ngModule;if(r=Nu(c),!r)return!1;o=c}const s=i.has(o);if(a){if(s)return!1;if(i.add(o),a.dependencies){const c="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const h of c)yh(h,n,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!s){let h;i.add(o);try{cc(r.imports,f=>{yh(f,n,e,i)&&(h||=[],h.push(f))})}finally{}void 0!==h&&Tx(h,n)}if(!s){const h=ns(o)||(()=>new o);n({provide:o,useFactory:h,deps:Xt},o),n({provide:kx,useValue:o,multi:!0},o),n({provide:Yl,useValue:()=>Y(o),multi:!0},o)}const c=r.providers;if(null!=c&&!s){const h=t;Ug(c,f=>{n(f,h)})}}}return o!==t&&void 0!==t.providers}function Ug(t,n){for(let e of t)Rf(e)&&(e=e.\u0275providers),Array.isArray(e)?Ug(e,n):n(e)}const $N=ai({provide:String,useValue:ai});function $g(t){return null!==t&&"object"==typeof t&&$N in t}function cs(t){return"function"==typeof t}const Gg=new se("Set Injector scope."),Ch={},qN={};let qg;function xh(){return void 0===qg&&(qg=new zg),qg}class bo{}class gc extends bo{get destroyed(){return this._destroyed}constructor(n,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Kg(n,a=>this.processProvider(a)),this.records.set(Dx,_c(void 0,this)),o.has("environment")&&this.records.set(bo,_c(void 0,this));const r=this.records.get(Gg);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(kx.multi,Xt,zt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of n)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=fa(this),i=eo(void 0);try{return n()}finally{fa(e),eo(i)}}get(n,e=Sl,i=zt.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(p1))return n[p1](this);i=Vu(i);const r=fa(this),a=eo(void 0);try{if(!(i&zt.SkipSelf)){let c=this.records.get(n);if(void 0===c){const h=function QN(t){return"function"==typeof t||"object"==typeof t&&t instanceof se}(n)&&Fu(n);c=h&&this.injectableDefInScope(h)?_c(Wg(n),Ch):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&zt.Self?xh():this.parent).get(n,e=i&zt.Optional&&e===Sl?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Bu]=s[Bu]||[]).unshift(sn(n)),r)throw s;return function GP(t,n,e,i){const o=t[Bu];throw n[u1]&&o.unshift(n[u1]),t.message=function qP(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=sn(n);if(Array.isArray(n))o=n.map(sn).join(" -> ");else if("object"==typeof n){let r=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];r.push(a+":"+("string"==typeof s?JSON.stringify(s):sn(s)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(jP,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[Bu]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{eo(a),fa(r)}}resolveInjectorInitializers(){const n=fa(this),e=eo(void 0);try{const o=this.get(Yl.multi,Xt,zt.Self);for(const r of o)r()}finally{fa(n),eo(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(sn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new pe(205,!1)}processProvider(n){let e=cs(n=Dt(n))?n:Dt(n&&n.provide);const i=function KN(t){return $g(t)?_c(void 0,t.useValue):_c(Ox(t),Ch)}(n);if(cs(n)||!0!==n.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=_c(void 0,Ch,!0),o.factory=()=>Uf(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Ch&&(e.value=qN,e.value=e.factory()),"object"==typeof e.value&&e.value&&function YN(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=Dt(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function Wg(t){const n=Fu(t),e=null!==n?n.factory:ns(t);if(null!==e)return e;if(t instanceof se)throw new pe(204,!1);if(t instanceof Function)return function WN(t){const n=t.length;if(n>0)throw Hl(n,"?"),new pe(204,!1);const e=function NP(t){return t&&(t[Lu]||t[s1])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new pe(204,!1)}function Ox(t,n,e){let i;if(cs(t)){const o=Dt(t);return ns(o)||Wg(o)}if($g(t))i=()=>Dt(t.useValue);else if(function Ex(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...Uf(t.deps||[]));else if(function Ix(t){return!(!t||!t.useExisting)}(t))i=()=>Y(Dt(t.useExisting));else{const o=Dt(t&&(t.useClass||t.provide));if(!function ZN(t){return!!t.deps}(t))return ns(o)||Wg(o);i=()=>new o(...Uf(t.deps))}return i}function _c(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function Kg(t,n){for(const e of t)Array.isArray(e)?Kg(e,n):e&&Rf(e)?Kg(e.\u0275providers,n):n(e)}const Ql=new se("AppId",{providedIn:"root",factory:()=>XN}),XN="ng",Ax=new se("Platform Initializer"),wa=new se("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),oi=new se("AnimationModuleType"),Zg=new se("CSP nonce",{providedIn:"root",factory:()=>fc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Px=(t,n,e)=>null;function n_(t,n,e=!1){return Px(t,n,e)}class l3{}class Nx{}class u3{resolveComponentFactory(n){throw function d3(t){const n=Error(`No component factory found for ${sn(t)}.`);return n.ngComponent=t,n}(n)}}let ls=(()=>{class t{static#e=this.NULL=new u3}return t})();function h3(){return yc(yn(),Se())}function yc(t,n){return new Le(no(t,n))}let Le=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=h3}return t})();function m3(t){return t instanceof Le?t.nativeElement:t}class ed{}let zr=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function p3(){const t=Se(),e=fo(yn().index,t);return(io(e)?e:t)[Et]}()}return t})(),f3=(()=>{class t{static#e=this.\u0275prov=ke({token:t,providedIn:"root",factory:()=>null})}return t})();class ds{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const g3=new ds("16.2.12"),a_={};function zx(t,n=null,e=null,i){const o=Hx(t,n,e,i);return o.resolveInjectorInitializers(),o}function Hx(t,n=null,e=null,i,o=new Set){const r=[e||Xt,UN(t)];return i=i||("object"==typeof t?void 0:sn(t)),new gc(r,n||xh(),i||null,o)}let Oi=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=Sl;static#t=this.NULL=new zg;static create(e,i){if(Array.isArray(e))return zx({name:""},i,e,"");{const o=e.name??"";return zx({name:o},e.parent,e.providers,o)}}static#i=this.\u0275prov=ke({token:t,providedIn:"any",factory:()=>Y(Dx)});static#n=this.__NG_ELEMENT_ID__=-1}return t})();function c_(t){return t.ngOriginalError}class No{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&c_(n);for(;e&&c_(e);)e=c_(e);return e||null}}function d_(t){return n=>{setTimeout(t,void 0,n)}}const Fe=class w3 extends te{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let o=n,r=e||(()=>null),a=i;if(n&&"object"==typeof n){const c=n;o=c.next?.bind(c),r=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(r=d_(r),o&&(o=d_(o)),a&&(a=d_(a)));const s=super.subscribe({next:o,error:r,complete:a});return n instanceof T&&n.add(s),s}};function $x(...t){}class We{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Fe(!1),this.onMicrotaskEmpty=new Fe(!1),this.onStable=new Fe(!1),this.onError=new Fe(!1),typeof Zone>"u")throw new pe(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function S3(){const t="function"==typeof Ci.requestAnimationFrame;let n=Ci[t?"requestAnimationFrame":"setTimeout"],e=Ci[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function M3(t){const n=()=>{!function k3(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ci,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,h_(t),t.isCheckStableRunning=!0,u_(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),h_(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,a,s)=>{if(function I3(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(s))return e.invokeTask(o,r,a,s);try{return Gx(t),e.invokeTask(o,r,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),qx(t)}},onInvoke:(e,i,o,r,a,s,c)=>{try{return Gx(t),e.invoke(o,r,a,s,c)}finally{t.shouldCoalesceRunChangeDetection&&n(),qx(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,h_(t),u_(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!We.isInAngularZone())throw new pe(909,!1)}static assertNotInAngularZone(){if(We.isInAngularZone())throw new pe(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,n,D3,$x,$x);try{return r.runTask(a,e,i)}finally{r.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const D3={};function u_(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function h_(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Gx(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function qx(t){t._nesting--,u_(t)}class T3{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fe,this.onMicrotaskEmpty=new Fe,this.onStable=new Fe,this.onError=new Fe}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}const Wx=new se("",{providedIn:"root",factory:Kx});function Kx(){const t=Ne(We);let n=!0;return yi(new Ye(o=>{n=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{o.next(n),o.complete()})}),new Ye(o=>{let r;t.runOutsideAngular(()=>{r=t.onStable.subscribe(()=>{We.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(n=!0,o.next(!0))})})});const a=t.onUnstable.subscribe(()=>{We.assertInAngularZone(),n&&(n=!1,t.runOutsideAngular(()=>{o.next(!1)}))});return()=>{r.unsubscribe(),a.unsubscribe()}}).pipe(Au()))}function Hr(t){return t instanceof Function?t():t}let m_=(()=>{class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=ke({token:t,providedIn:"root",factory:()=>new t})}return t})();function td(t){for(;t;){t[Rt]|=64;const n=Gl(t);if(Zf(t)&&!n)return t;t=n}return null}const Jx=new se("",{providedIn:"root",factory:()=>!1});let Ih=null;function nw(t,n){return t[n]??aw()}function ow(t,n){const e=aw();e.producerNode?.length&&(t[n]=Ih,e.lView=t,Ih=rw())}const V3={...O1,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{td(t.lView)},lView:null};function rw(){return Object.create(V3)}function aw(){return Ih??=rw(),Ih}const Ot={};function m(t){sw(Kt(),Se(),Vn()+t,!1)}function sw(t,n,e,i){if(!i)if(3==(3&n[Rt])){const r=t.preOrderCheckHooks;null!==r&&Yu(n,r,e)}else{const r=t.preOrderHooks;null!==r&&Qu(n,r,0,e)}os(e)}function _(t,n=zt.Default){const e=Se();return null===e?Y(t,n):xC(yn(),e,Dt(t),n)}function _r(){throw new Error("invalid")}function Eh(t,n,e,i,o,r,a,s,c,h,f){const b=n.blueprint.slice();return b[Bi]=o,b[Rt]=140|i,(null!==h||t&&2048&t[Rt])&&(b[Rt]|=2048),Q1(b),b[Ei]=b[Zs]=t,b[Ui]=e,b[Ks]=a||t&&t[Ks],b[Et]=s||t&&t[Et],b[ga]=c||t&&t[ga]||null,b[Tn]=r,b[Ol]=function HF(){return zF++}(),b[Lr]=f,b[M1]=h,b[$i]=2==n.type?t[$i]:b,b}function wc(t,n,e,i,o){let r=t.data[n];if(null===r)r=function p_(t,n,e,i,o){const r=nC(),a=ng(),c=t.data[n]=function W3(t,n,e,i,o,r){let a=n?n.injectorIndex:-1,s=0;return ec()&&(s|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?r:r&&r.parent,e,n,i,o);return null===t.firstChild&&(t.firstChild=c),null!==r&&(a?null==r.child&&null!==c.parent&&(r.child=c):null===r.next&&(r.next=c,c.prev=r)),c}(t,n,e,i,o),function UR(){return xt.lFrame.inI18n}()&&(r.flags|=32);else if(64&r.type){r.type=e,r.value=i,r.attrs=o;const a=function Nl(){const t=xt.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();r.injectorIndex=null===a?-1:a.injectorIndex}return pr(r,!0),r}function id(t,n,e,i){if(0===e)return-1;const o=n.length;for(let r=0;rHt&&sw(t,n,Ht,!1),mr(s?2:0,o);const h=s?r:null,f=Qf(h);try{null!==h&&(h.dirty=!1),e(i,o)}finally{Xf(h,f)}}finally{s&&null===n[Al]&&ow(n,Al),os(a),mr(s?3:1,o)}}function f_(t,n,e){if(Kf(n)){const i=Po(null);try{const r=n.directiveEnd;for(let a=n.directiveStart;anull;function uw(t,n,e,i){for(let o in t)if(t.hasOwnProperty(o)){e=null===e?{}:e;const r=t[o];null===i?hw(e,n,o,r):i.hasOwnProperty(o)&&hw(e,n,i[o],r)}return e}function hw(t,n,e,i){t.hasOwnProperty(e)?t[e].push(n,i):t[e]=[n,i]}function vo(t,n,e,i,o,r,a,s){const c=no(n,e);let f,h=n.inputs;!s&&null!=h&&(f=h[i])?(w_(t,e,f,i,o),is(n)&&function Y3(t,n){const e=fo(n,t);16&e[Rt]||(e[Rt]|=64)}(e,n.index)):3&n.type&&(i=function Z3(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=a?a(o,n.value||"",i):o,r.setProperty(c,i,o))}function v_(t,n,e,i){if(iC()){const o=null===i?null:{"":-1},r=function iL(t,n){const e=t.directiveRegistry;let i=null,o=null;if(e)for(let r=0;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,i,r)}}(t,n,i,id(t,e,o.hostVars,Ot),o)}function br(t,n,e,i,o,r){const a=no(t,n);!function C_(t,n,e,i,o,r,a){if(null==r)t.removeAttribute(n,o,e);else{const s=null==a?It(r):a(r,i||"",o);t.setAttribute(n,o,s,e)}}(n[Et],a,r,t.value,e,i,o)}function cL(t,n,e,i,o,r){const a=r[n];if(null!==a)for(let s=0;s{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,i,o){const r=typeof Zone>"u"?null:Zone.current,a=function CR(t,n,e){const i=Object.create(xR);e&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=n;const o=a=>{i.cleanupFn=a};return i.ref={notify:()=>F1(i),run:()=>{if(i.dirty=!1,i.hasRun&&!N1(i))return;i.hasRun=!0;const a=Qf(i);try{i.cleanupFn(),i.cleanupFn=$1,i.fn(o)}finally{Xf(i,a)}},cleanup:()=>i.cleanupFn()},i.ref}(e,h=>{this.all.has(h)&&this.queue.set(h,r)},o);let s;this.all.add(a),a.notify();const c=()=>{a.cleanup(),s?.(),this.all.delete(a),this.queue.delete(a)};return s=i?.onDestroy(c),{destroy:c}}flush(){if(0!==this.queue.size)for(const[e,i]of this.queue)this.queue.delete(e),i?i.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=ke({token:t,providedIn:"root",factory:()=>new t})}return t})();function Ah(t,n,e){let i=e?t.styles:null,o=e?t.classes:null,r=0;if(null!==n)for(let a=0;a0){Dw(t,1);const o=e.components;null!==o&&Mw(t,o,1)}}function Mw(t,n,e){for(let i=0;i-1&&(hh(n,i),ih(e,i))}this._attachedToViewContainer=!1}Ig(this._lView[Je],this._lView)}onDestroy(n){!function eC(t,n){if(256==(256&t[Rt]))throw new pe(911,!1);null===t[_a]&&(t[_a]=[]),t[_a].push(n)}(this._lView,n)}markForCheck(){td(this._cdRefInjectingView||this._lView)}detach(){this._lView[Rt]&=-129}reattach(){this._lView[Rt]|=128}detectChanges(){Ph(this._lView[Je],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new pe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function iN(t,n){Wl(t,n,n[Et],2,null,null)}(this._lView[Je],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new pe(902,!1);this._appRef=n}}class _L extends od{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Ph(n[Je],n,n[Ui],!1)}checkNoChanges(){}get context(){return null}}class Tw extends ls{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Wt(n);return new rd(e,this.ngModule)}}function Iw(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class vL{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=Vu(i);const o=this.injector.get(n,a_,i);return o!==a_||e===a_?o:this.parentInjector.get(n,e,i)}}class rd extends Nx{get inputs(){const n=this.componentDef,e=n.inputTransforms,i=Iw(n.inputs);if(null!==e)for(const o of i)e.hasOwnProperty(o.propName)&&(o.transform=e[o.propName]);return i}get outputs(){return Iw(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function iR(t){return t.map(tR).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,o){let r=(o=o||this.ngModule)instanceof bo?o:o?.injector;r&&null!==this.componentDef.getStandaloneInjector&&(r=this.componentDef.getStandaloneInjector(r)||r);const a=r?new vL(n,r):n,s=a.get(ed,null);if(null===s)throw new pe(407,!1);const b={rendererFactory:s,sanitizer:a.get(f3,null),effectManager:a.get(xw,null),afterRenderEventManager:a.get(m_,null)},y=s.createRenderer(null,this.componentDef),x=this.componentDef.selectors[0][0]||"div",I=i?function H3(t,n,e,i){const r=i.get(Jx,!1)||e===Ao.ShadowDom,a=t.selectRootElement(n,r);return function U3(t){dw(t)}(a),a}(y,i,this.componentDef.encapsulation,a):uh(y,x,function bL(t){const n=t.toLowerCase();return"svg"===n?K1:"math"===n?"math":null}(x)),de=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let re=null;null!==I&&(re=n_(I,a,!0));const $e=b_(0,null,null,1,0,null,null,null,null,null,null),et=Eh(null,$e,null,de,null,null,b,y,a,null,re);let Tt,ui;cg(et);try{const ki=this.componentDef;let kn,To=null;ki.findHostDirectiveDefs?(kn=[],To=new Map,ki.findHostDirectiveDefs(ki,kn,To),kn.push(ki)):kn=[ki];const lr=function CL(t,n){const e=t[Je],i=Ht;return t[i]=n,wc(e,i,2,"#host",null)}(et,I),Sf=function xL(t,n,e,i,o,r,a){const s=o[Je];!function wL(t,n,e,i){for(const o of t)n.mergedAttrs=Ml(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(Ah(n,n.mergedAttrs,!0),null!==e&&ux(i,e,n))}(i,t,n,a);let c=null;null!==n&&(c=n_(n,o[ga]));const h=r.rendererFactory.createRenderer(n,e);let f=16;e.signals?f=4096:e.onPush&&(f=64);const b=Eh(o,lw(e),null,f,o[t.index],t,r,h,null,null,c);return s.firstCreatePass&&y_(s,t,i.length-1),Oh(o,b),o[t.index]=b}(lr,I,ki,kn,et,b,y);ui=Y1($e,Ht),I&&function DL(t,n,e,i){if(i)qf(t,e,["ng-version",g3.full]);else{const{attrs:o,classes:r}=function nR(t){const n=[],e=[];let i=1,o=2;for(;i0&&dx(t,e,r.join(" "))}}(y,ki,I,i),void 0!==e&&function kL(t,n,e){const i=t.projection=[];for(let o=0;o=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=Ml(o.hostAttrs,e=Ml(e,o.hostAttrs))}}(i)}function Rh(t){return t===dr?{}:t===Xt?[]:t}function IL(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function EL(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function OL(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}function Rw(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];Array.isArray(o)&&o[2]&&(e[i]=o[2])}t.inputTransforms=e}function Fh(t){return!!D_(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function D_(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function vr(t,n,e){return t[n]=e}function ad(t,n){return t[n]}function En(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function us(t,n,e,i){const o=En(t,n,e);return En(t,n+1,i)||o}function Nh(t,n,e,i,o){const r=us(t,n,e,i);return En(t,n+2,o)||r}function Lo(t,n,e,i,o,r){const a=us(t,n,e,i);return us(t,n+2,o,r)||a}function Qe(t,n,e,i){const o=Se();return En(o,tc(),n)&&(Kt(),br(Ri(),o,t,n,e,i)),Qe}function Dc(t,n,e,i){return En(t,tc(),e)?n+It(e)+i:Ot}function g(t,n,e,i,o,r,a,s){const c=Se(),h=Kt(),f=t+Ht,b=h.firstCreatePass?function n4(t,n,e,i,o,r,a,s,c){const h=n.consts,f=wc(n,t,4,a||null,va(h,s));v_(n,e,f,va(h,c)),Zu(n,f);const b=f.tView=b_(2,f,i,o,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,h,null);return null!==n.queries&&(n.queries.template(n,f),b.queries=n.queries.embeddedTView(f)),f}(f,h,c,n,e,i,o,r,a):h.data[f];pr(b,!1);const y=Ww(h,c,b,t);Ku()&&ph(h,c,y,b),In(y,c),Oh(c,c[f]=gw(y,c,y,b)),$u(b)&&g_(h,c,b),null!=a&&__(c,b,s)}let Ww=function Kw(t,n,e,i){return ya(!0),n[Et].createComment("")};function At(t){return Js(function HR(){return xt.lFrame.contextLView}(),Ht+t)}function p(t,n,e){const i=Se();return En(i,tc(),n)&&vo(Kt(),Ri(),i,t,n,i[Et],e,!1),p}function O_(t,n,e,i,o){const a=o?"class":"style";w_(t,e,n.inputs[a],a,i)}function d(t,n,e,i){const o=Se(),r=Kt(),a=Ht+t,s=o[Et],c=r.firstCreatePass?function s4(t,n,e,i,o,r){const a=n.consts,c=wc(n,t,2,i,va(a,o));return v_(n,e,c,va(a,r)),null!==c.attrs&&Ah(c,c.attrs,!1),null!==c.mergedAttrs&&Ah(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(a,r,o,n,e,i):r.data[a],h=Zw(r,o,c,s,n,t);o[a]=h;const f=$u(c);return pr(c,!0),ux(s,h,c),32!=(32&c.flags)&&Ku()&&ph(r,o,h,c),0===function RR(){return xt.lFrame.elementDepthCount}()&&In(h,o),function FR(){xt.lFrame.elementDepthCount++}(),f&&(g_(r,o,c),f_(r,c,o)),null!==i&&__(o,c),d}function l(){let t=yn();ng()?og():(t=t.parent,pr(t,!1));const n=t;(function LR(t){return xt.skipHydrationRootTNode===t})(n)&&function zR(){xt.skipHydrationRootTNode=null}(),function NR(){xt.lFrame.elementDepthCount--}();const e=Kt();return e.firstCreatePass&&(Zu(e,t),Kf(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function eF(t){return 0!=(8&t.flags)}(n)&&O_(e,n,Se(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function tF(t){return 0!=(16&t.flags)}(n)&&O_(e,n,Se(),n.stylesWithoutHost,!1),l}function S(t,n,e,i){return d(t,n,e,i),l(),S}let Zw=(t,n,e,i,o,r)=>(ya(!0),uh(i,o,function mC(){return xt.lFrame.currentNamespace}()));function ue(t,n,e){const i=Se(),o=Kt(),r=t+Ht,a=o.firstCreatePass?function d4(t,n,e,i,o){const r=n.consts,a=va(r,i),s=wc(n,t,8,"ng-container",a);return null!==a&&Ah(s,a,!0),v_(n,e,s,va(r,o)),null!==n.queries&&n.queries.elementStart(n,s),s}(r,o,i,n,e):o.data[r];pr(a,!0);const s=Yw(o,i,a,t);return i[r]=s,Ku()&&ph(o,i,s,a),In(s,i),$u(a)&&(g_(o,i,a),f_(o,a,i)),null!=e&&__(i,a),ue}function he(){let t=yn();const n=Kt();return ng()?og():(t=t.parent,pr(t,!1)),n.firstCreatePass&&(Zu(n,t),Kf(t)&&n.queries.elementEnd(t)),he}function Hn(t,n,e){return ue(t,n,e),he(),Hn}let Yw=(t,n,e,i)=>(ya(!0),Tg(n[Et],""));function ge(){return Se()}function dd(t){return!!t&&"function"==typeof t.then}function Qw(t){return!!t&&"function"==typeof t.subscribe}function P(t,n,e,i){const o=Se(),r=Kt(),a=yn();return Xw(r,o,o[Et],a,t,n,i),P}function jh(t,n){const e=yn(),i=Se(),o=Kt();return Xw(o,i,yw(ag(o.data),e,i),e,t,n),jh}function Xw(t,n,e,i,o,r,a){const s=$u(i),h=t.firstCreatePass&&vw(t),f=n[Ui],b=bw(n);let y=!0;if(3&i.type||a){const O=no(i,n),W=a?a(O):O,de=b.length,re=a?et=>a(xi(et[i.index])):i.index;let $e=null;if(!a&&s&&($e=function m4(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;rc?s[c]:null}"string"==typeof a&&(r+=2)}return null}(t,n,o,i.index)),null!==$e)($e.__ngLastListenerFn__||$e).__ngNextListenerFn__=r,$e.__ngLastListenerFn__=r,y=!1;else{r=eS(i,n,f,r,!1);const et=e.listen(W,o,r);b.push(r,et),h&&h.push(o,re,de,de+1)}}else r=eS(i,n,f,r,!1);const x=i.outputs;let I;if(y&&null!==x&&(I=x[o])){const O=I.length;if(O)for(let W=0;W-1?fo(t.index,n):n);let c=Jw(n,e,i,a),h=r.__ngNextListenerFn__;for(;h;)c=Jw(n,e,h,a)&&c,h=h.__ngNextListenerFn__;return o&&!1===c&&a.preventDefault(),c}}function C(t=1){return function WR(t){return(xt.lFrame.contextLView=function KR(t,n){for(;t>0;)n=n[Zs],t--;return n}(t,xt.lFrame.contextLView))[Ui]}(t)}function p4(t,n){let e=null;const i=function QP(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o>17&32767}function R_(t){return 2|t}function hs(t){return(131068&t)>>2}function F_(t,n){return-131069&t|n<<2}function N_(t){return 1|t}function lS(t,n,e,i,o){const r=t[e+1],a=null===n;let s=i?Sa(r):hs(r),c=!1;for(;0!==s&&(!1===c||a);){const f=t[s+1];y4(t[s],n)&&(c=!0,t[s+1]=i?N_(f):R_(f)),s=i?Sa(f):hs(f)}c&&(t[e+1]=i?R_(r):N_(r))}function y4(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&lc(t,n)>=0}const ln={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function dS(t){return t.substring(ln.key,ln.keyEnd)}function uS(t,n){const e=ln.textEnd;return e===n?-1:(n=ln.keyEnd=function S4(t,n,e){for(;n32;)n++;return n}(t,ln.key=n,e),Pc(t,n,e))}function Pc(t,n,e){for(;n=0;e=uS(n,e))go(t,dS(n),!0)}function Jo(t,n,e,i){const o=Se(),r=Kt(),a=Vr(2);r.firstUpdatePass&&_S(r,t,a,i),n!==Ot&&En(o,a,n)&&vS(r,r.data[Vn()],o,o[Et],t,o[a+1]=function N4(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=sn(_o(t)))),t}(n,e),i,a)}function gS(t,n){return n>=t.expandoStartIndex}function _S(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[Vn()],a=gS(t,e);CS(r,i)&&null===n&&!a&&(n=!1),n=function I4(t,n,e,i){const o=ag(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=ud(e=L_(null,t,n,e,i),n.attrs,i),r=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==o)if(e=L_(o,t,n,e,i),null===r){let c=function E4(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==hs(i))return t[Sa(i)]}(t,n,i);void 0!==c&&Array.isArray(c)&&(c=L_(null,t,n,c[1],i),c=ud(c,n.attrs,i),function O4(t,n,e,i){t[Sa(e?n.classBindings:n.styleBindings)]=i}(t,n,i,c))}else r=function A4(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(h=!0)):f=e,o)if(0!==c){const y=Sa(t[s+1]);t[i+1]=zh(y,s),0!==y&&(t[y+1]=F_(t[y+1],i)),t[s+1]=function g4(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=zh(s,0),0!==s&&(t[s+1]=F_(t[s+1],i)),s=i;else t[i+1]=zh(c,0),0===s?s=i:t[c+1]=F_(t[c+1],i),c=i;h&&(t[i+1]=R_(t[i+1])),lS(t,f,i,!0),lS(t,f,i,!1),function v4(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&lc(r,n)>=0&&(e[i+1]=N_(e[i+1]))}(n,f,t,i,r),a=zh(s,c),r?n.classBindings=a:n.styleBindings=a}(o,r,n,e,a,i)}}function L_(t,n,e,i,o){let r=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const c=t[o],h=Array.isArray(c),f=h?c[1]:c,b=null===f;let y=e[o+1];y===Ot&&(y=b?Xt:void 0);let x=b?bg(y,i):f===i?y:void 0;if(h&&!Hh(x)&&(x=bg(c,i)),Hh(x)&&(s=x,a))return s;const I=t[o+1];o=a?Sa(I):hs(I)}if(null!==n){let c=r?n.residualClasses:n.residualStyles;null!=c&&(s=bg(c,i))}return s}function Hh(t){return void 0!==t}function CS(t,n){return 0!=(t.flags&(n?8:16))}function u(t,n=""){const e=Se(),i=Kt(),o=t+Ht,r=i.firstCreatePass?wc(i,o,1,n,null):i.data[o],a=xS(i,e,r,n,t);e[o]=a,Ku()&&ph(i,e,a,r),pr(r,!1)}let xS=(t,n,e,i,o)=>(ya(!0),function dh(t,n){return t.createText(n)}(n[Et],i));function Ie(t){return ye("",t,""),Ie}function ye(t,n,e){const i=Se(),o=Dc(i,t,n,e);return o!==Ot&&Ur(i,Vn(),o),ye}function Rc(t,n,e,i,o){const r=Se(),a=function kc(t,n,e,i,o,r){const s=us(t,Br(),e,o);return Vr(2),s?n+It(e)+i+It(o)+r:Ot}(r,t,n,e,i,o);return a!==Ot&&Ur(r,Vn(),a),Rc}function B_(t,n,e,i,o,r,a){const s=Se(),c=function Mc(t,n,e,i,o,r,a,s){const h=Nh(t,Br(),e,o,a);return Vr(3),h?n+It(e)+i+It(o)+r+It(a)+s:Ot}(s,t,n,e,i,o,r,a);return c!==Ot&&Ur(s,Vn(),c),B_}function V_(t,n,e,i,o,r,a,s,c){const h=Se(),f=function Tc(t,n,e,i,o,r,a,s,c,h){const b=Lo(t,Br(),e,o,a,c);return Vr(4),b?n+It(e)+i+It(o)+r+It(a)+s+It(c)+h:Ot}(h,t,n,e,i,o,r,a,s,c);return f!==Ot&&Ur(h,Vn(),f),V_}function TS(t,n,e){!function er(t,n,e,i){const o=Kt(),r=Vr(2);o.firstUpdatePass&&_S(o,null,r,i);const a=Se();if(e!==Ot&&En(a,r,e)){const s=o.data[Vn()];if(CS(s,i)&&!gS(o,r)){let c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(e=Af(c,e||"")),O_(o,s,a,e,i)}else!function F4(t,n,e,i,o,r,a,s){o===Ot&&(o=Xt);let c=0,h=0,f=0>20;if(cs(t)||!t.multi){const x=new Ll(h,o,_),I=$_(c,n,o?f:f+y,b);-1===I?(fg(Ju(s,a),r,c),U_(r,t,n.length),n.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(x),a.push(x)):(e[I]=x,a[I]=x)}else{const x=$_(c,n,f+y,b),I=$_(c,n,f,f+y),W=I>=0&&e[I];if(o&&!W||!o&&!(x>=0&&e[x])){fg(Ju(s,a),r,c);const de=function n8(t,n,e,i,o){const r=new Ll(t,e,_);return r.multi=[],r.index=n,r.componentProviders=0,uD(r,o,i&&!e),r}(o?i8:t8,e.length,o,i,h);!o&&W&&(e[I].providerFactory=de),U_(r,t,n.length,0),n.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(de),a.push(de)}else U_(r,t,x>-1?x:I,uD(e[o?I:x],h,!o&&i));!o&&i&&W&&e[I].componentProviders++}}}function U_(t,n,e,i){const o=cs(n),r=function GN(t){return!!t.useClass}(n);if(o||r){const c=(r?Dt(n.useClass):n).prototype.ngOnDestroy;if(c){const h=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const f=h.indexOf(e);-1===f?h.push(e,[i,c]):h[f+1].push(i,c)}else h.push(e,c)}}}function uD(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function $_(t,n,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function e8(t,n,e){const i=Kt();if(i.firstCreatePass){const o=Qo(t);H_(e,i.data,i.blueprint,o,!0),H_(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}class ps{}class hD{}class q_ extends ps{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Tw(this);const o=po(n);this._bootstrapComponents=Hr(o.bootstrap),this._r3Injector=Hx(n,e,[{provide:ps,useValue:this},{provide:ls,useValue:this.componentFactoryResolver},...i],sn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class W_ extends hD{constructor(n){super(),this.moduleType=n}create(n){return new q_(this.moduleType,n,[])}}class mD extends ps{constructor(n){super(),this.componentFactoryResolver=new Tw(this),this.instance=null;const e=new gc([...n.providers,{provide:ps,useValue:this},{provide:ls,useValue:this.componentFactoryResolver}],n.parent||xh(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function K_(t,n,e=null){return new mD({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let a8=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=Mx(0,e.type),o=i.length>0?K_([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=ke({token:t,providedIn:"environment",factory:()=>new t(Y(bo))})}return t})();function pD(t){t.getStandaloneInjector=n=>n.get(a8).getOrCreateStandaloneInjector(t)}function yo(t,n,e){const i=Bn()+t,o=Se();return o[i]===Ot?vr(o,i,e?n.call(e):n()):ad(o,i)}function ri(t,n,e,i){return DD(Se(),Bn(),t,n,e,i)}function CD(t,n,e,i,o){return function kD(t,n,e,i,o,r,a){const s=n+e;return us(t,s,o,r)?vr(t,s+2,a?i.call(a,o,r):i(o,r)):_d(t,s+2)}(Se(),Bn(),t,n,e,i,o)}function xD(t,n,e,i,o,r){return function MD(t,n,e,i,o,r,a,s){const c=n+e;return Nh(t,c,o,r,a)?vr(t,c+3,s?i.call(s,o,r,a):i(o,r,a)):_d(t,c+3)}(Se(),Bn(),t,n,e,i,o,r)}function _d(t,n){const e=t[n];return e===Ot?void 0:e}function DD(t,n,e,i,o,r){const a=n+e;return En(t,a,o)?vr(t,a+1,r?i.call(r,o):i(o)):_d(t,a+1)}function bd(t,n){const e=Kt();let i;const o=t+Ht;e.firstCreatePass?(i=function v8(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks??=[]).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=ns(i.type)),s=eo(_);try{const c=Xu(!1),h=r();return Xu(c),function a4(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Se(),o,h),h}finally{eo(s)}}function vd(t,n,e){const i=t+Ht,o=Se(),r=Js(o,i);return function yd(t,n){return t[Je].data[n].pure}(o,i)?DD(o,Bn(),n,r.transform,e,r):r.transform(e)}function S8(){return this._results[Symbol.iterator]()}class $r{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new Fe)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=$r.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=S8)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const o=function Ro(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function fF(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i0&&(e[o-1][Yo]=n),i{class t{static#e=this.__NG_ELEMENT_ID__=I8}return t})();const M8=ci,T8=class extends M8{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const o=function D8(t,n,e,i){const o=n.tView,s=Eh(t,o,e,4096&t[Rt]?4096:16,null,n,null,null,null,i?.injector??null,i?.hydrationInfo??null);s[El]=t[n.index];const h=t[ur];return null!==h&&(s[ur]=h.createEmbeddedView(o)),S_(o,s,e),s}(this._declarationLView,this._declarationTContainer,n,{injector:e,hydrationInfo:i});return new od(o)}};function I8(){return Kh(yn(),Se())}function Kh(t,n){return 4&t.type?new T8(n,t,yc(t,n)):null}let hi=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=F8}return t})();function F8(){return ND(yn(),Se())}const N8=hi,RD=class extends N8{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return yc(this._hostTNode,this._hostLView)}get injector(){return new jn(this._hostTNode,this._hostLView)}get parentInjector(){const n=eh(this._hostTNode,this._hostLView);if(hg(n)){const e=Vl(n,this._hostLView),i=Bl(n);return new jn(e[Je].data[i+8],e)}return new jn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=FD(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-bn}createEmbeddedView(n,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const s=n.createEmbeddedViewImpl(e||{},r,null);return this.insertImpl(s,o,false),s}createComponent(n,e,i,o,r){const a=n&&!function zl(t){return"function"==typeof t}(n);let s;if(a)s=e;else{const O=e||{};s=O.index,i=O.injector,o=O.projectableNodes,r=O.environmentInjector||O.ngModuleRef}const c=a?n:new rd(Wt(n)),h=i||this.parentInjector;if(!r&&null==c.ngModule){const W=(a?h:this.parentInjector).get(bo,null);W&&(r=W)}Wt(c.componentType??{});const x=c.create(h,o,null,r);return this.insertImpl(x.hostView,s,false),x}insert(n,e){return this.insertImpl(n,e,!1)}insertImpl(n,e,i){const o=n._lView;if(function OR(t){return Ln(t[Ei])}(o)){const c=this.indexOf(n);if(-1!==c)this.detach(c);else{const h=o[Ei],f=new RD(h,h[Tn],h[Ei]);f.detach(f.indexOf(n))}}const a=this._adjustIndex(e),s=this._lContainer;return k8(s,o,a,!i),n.attachToViewContainerRef(),TC(Y_(s),a,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=FD(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=hh(this._lContainer,e);i&&(ih(Y_(this._lContainer),e),Ig(i[Je],i))}detach(n){const e=this._adjustIndex(n,-1),i=hh(this._lContainer,e);return i&&null!=ih(Y_(this._lContainer),e)?new od(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function FD(t){return t[8]}function Y_(t){return t[8]||(t[8]=[])}function ND(t,n){let e;const i=n[t.index];return Ln(i)?e=i:(e=gw(i,n,null,t),n[t.index]=e,Oh(n,e)),LD(e,n,t,i),new RD(e,t,n)}let LD=function BD(t,n,e,i){if(t[hr])return;let o;o=8&e.type?xi(i):function L8(t,n){const e=t[Et],i=e.createComment(""),o=no(n,t);return as(e,mh(e,o),i,function lN(t,n){return t.nextSibling(n)}(e,o),!1),i}(n,e),t[hr]=o};class Q_{constructor(n){this.queryList=n,this.matches=null}clone(){return new Q_(this.queryList)}setDirty(){this.queryList.setDirty()}}class X_{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,o=[];for(let r=0;r0)i.push(a[s/2]);else{const h=r[s+1],f=n[-c];for(let b=bn;b{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=Ne(sb,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const r=o();if(dd(r))e.push(r);else if(Qw(r)){const a=new Promise((s,c)=>{r.subscribe({complete:s,error:c})});e.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ak=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const xr=new se("LocaleId",{providedIn:"root",factory:()=>Ne(xr,zt.Optional|zt.SkipSelf)||function h6(){return typeof $localize<"u"&&$localize.locale||Nc}()});let Qh=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new pt(!1)}add(){this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class f6{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let sk=(()=>{class t{compileModuleSync(e){return new W_(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=Hr(po(e).declarations).reduce((a,s)=>{const c=Wt(s);return c&&a.push(new rd(c)),a},[]);return new f6(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const uk=new se(""),Jh=new se("");let mb,ub=(()=>{class t{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,mb||(function L6(t){mb=t}(o),o.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{We.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}static#e=this.\u0275fac=function(i){return new(i||t)(Y(We),Y(hb),Y(Jh))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})(),hb=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return mb?.findTestabilityInTree(this,e,i)??null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),Da=null;const hk=new se("AllowMultipleToken"),pb=new se("PlatformDestroyListeners"),fb=new se("appBootstrapListener");class pk{constructor(n,e){this.name=n,this.token=e}}function gk(t,n,e=[]){const i=`Platform: ${n}`,o=new se(i);return(r=[])=>{let a=gb();if(!a||a.injector.get(hk,!1)){const s=[...e,...r,{provide:o,useValue:!0}];t?t(s):function j6(t){if(Da&&!Da.get(hk,!1))throw new pe(400,!1);(function mk(){!function gR(t){j1=t}(()=>{throw new pe(600,!1)})})(),Da=t;const n=t.get(bk);(function fk(t){t.get(Ax,null)?.forEach(e=>e())})(t)}(function _k(t=[],n){return Oi.create({name:n,providers:[{provide:Gg,useValue:"platform"},{provide:pb,useValue:new Set([()=>Da=null])},...t]})}(s,i))}return function H6(t){const n=gb();if(!n)throw new pe(401,!1);return n}()}}function gb(){return Da?.get(bk)??null}let bk=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function U6(t="zone.js",n){return"noop"===t?new T3:"zone.js"===t?new We(n):t}(i?.ngZone,function vk(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const r=function r8(t,n,e){return new q_(t,n,e)}(e.moduleType,this.injector,function Sk(t){return[{provide:We,useFactory:t},{provide:Yl,multi:!0,useFactory:()=>{const n=Ne(G6,{optional:!0});return()=>n.initialize()}},{provide:wk,useFactory:$6},{provide:Wx,useFactory:Kx}]}(()=>o)),a=r.injector.get(No,null);return o.runOutsideAngular(()=>{const s=o.onError.subscribe({next:c=>{a.handleError(c)}});r.onDestroy(()=>{em(this._modules,r),s.unsubscribe()})}),function yk(t,n,e){try{const i=e();return dd(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(a,o,()=>{const s=r.injector.get(cb);return s.runInitializers(),s.donePromise.then(()=>(function zS(t){Oo(t,"Expected localeId to be defined"),"string"==typeof t&&(jS=t.toLowerCase().replace(/_/g,"-"))}(r.injector.get(xr,Nc)||Nc),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,i=[]){const o=Ck({},i);return function B6(t,n,e){const i=new W_(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(ka);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new pe(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new pe(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(pb,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Oi))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function Ck(t,n){return Array.isArray(n)?n.reduce(Ck,t):{...t,...n}}let ka=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ne(wk),this.zoneIsStable=Ne(Wx),this.componentTypes=[],this.components=[],this.isStable=Ne(Qh).hasPendingTasks.pipe(Yi(e=>e?qe(!1):this.zoneIsStable),$s(),Au()),this._injector=Ne(bo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof Nx;if(!this._injector.get(cb).done)throw!o&&function qs(t){const n=Wt(t)||_n(t)||Nn(t);return null!==n&&n.standalone}(e),new pe(405,!1);let a;a=o?e:this._injector.get(ls).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function V6(t){return t.isBoundToModule}(a)?void 0:this._injector.get(ps),h=a.create(Oi.NULL,[],i||a.selector,s),f=h.location.nativeElement,b=h.injector.get(uk,null);return b?.registerApplication(f),h.onDestroy(()=>{this.detachView(h.hostView),em(this.components,h),b?.unregisterApplication(f)}),this._loadComponent(h),h}tick(){if(this._runningTick)throw new pe(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;em(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(fb,[]);i.push(...this._bootstrapListeners),i.forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>em(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new pe(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function em(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const wk=new se("",{providedIn:"root",factory:()=>Ne(No).handleError.bind(void 0)});function $6(){const t=Ne(We),n=Ne(No);return e=>t.runOutsideAngular(()=>n.handleError(e))}let G6=(()=>{class t{constructor(){this.zone=Ne(We),this.applicationRef=Ne(ka)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();let Nt=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=W6}return t})();function W6(t){return function K6(t,n,e){if(is(t)&&!e){const i=fo(t.index,n);return new od(i,i)}return 47&t.type?new od(n[$i],n):null}(yn(),Se(),16==(16&t))}class Tk{constructor(){}supports(n){return Fh(n)}create(n){return new eB(n)}}const J6=(t,n)=>n;class eB{constructor(n){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=n||J6}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(o,s),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new tB(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=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(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new Ik),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ik),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class tB{constructor(n,e){this.item=n,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 iB{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Ik{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new iB,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ek(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}const i=new oB(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class oB{constructor(n){this.key=n,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 Ak(){return new Bo([new Tk])}let Bo=(()=>{class t{static#e=this.\u0275prov=ke({token:t,providedIn:"root",factory:Ak});constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Ak()),deps:[[t,new dc,new Ca]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new pe(901,!1)}}return t})();function Pk(){return new wd([new Ok])}let wd=(()=>{class t{static#e=this.\u0275prov=ke({token:t,providedIn:"root",factory:Pk});constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Pk()),deps:[[t,new dc,new Ca]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new pe(901,!1)}}return t})();const sB=gk(null,"core",[]);let cB=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ka))};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({})}return t})();function Vc(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let xb=null;function Ma(){return xb}class xB{}const ct=new se("DocumentToken");let wb=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:function(){return Ne(SB)},providedIn:"platform"})}return t})();const wB=new se("Location Initialized");let SB=(()=>{class t extends wb{constructor(){super(),this._doc=Ne(ct),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ma().getBaseHref(this._doc)}onPopState(e){const i=Ma().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Ma().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,o){this._history.pushState(e,i,o)}replaceState(e,i,o){this._history.replaceState(e,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:function(){return new t},providedIn:"platform"})}return t})();function Sb(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function Hk(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Gr(t){return t&&"?"!==t[0]?"?"+t:t}let gs=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:function(){return Ne($k)},providedIn:"root"})}return t})();const Uk=new se("appBaseHref");let $k=(()=>{class t extends gs{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Ne(ct).location?.origin??""}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 Sb(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Gr(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const a=this.prepareExternalUrl(o+Gr(r));this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){const a=this.prepareExternalUrl(o+Gr(r));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(wb),Y(Uk,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),DB=(()=>{class t extends gs{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=Sb(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let a=this.prepareExternalUrl(o+Gr(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){let a=this.prepareExternalUrl(o+Gr(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(wb),Y(Uk,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})(),Sd=(()=>{class t{constructor(e){this._subject=new Fe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function TB(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(Hk(Gk(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Gr(i))}normalize(e){return t.stripTrailingSlash(function MB(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,Gk(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Gr(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Gr(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}static#e=this.normalizeQueryParams=Gr;static#t=this.joinWithSlash=Sb;static#i=this.stripTrailingSlash=Hk;static#n=this.\u0275fac=function(i){return new(i||t)(Y(gs))};static#o=this.\u0275prov=ke({token:t,factory:function(){return function kB(){return new Sd(Y(gs))}()},providedIn:"root"})}return t})();function Gk(t){return t.replace(/\/index.html$/,"")}function eM(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}const Rb=/\s+/,tM=[];let nr=(()=>{class t{constructor(e,i,o,r){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=o,this._renderer=r,this.initialClasses=tM,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Rb):tM}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Rb):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],o=e[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(Rb).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Bo),_(wd),_(Le),_(zr))};static#t=this.\u0275dir=X({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class mV{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}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 qi=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}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 i=this._viewContainer;e.forEachOperation((o,r,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new mV(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===r?void 0:r);else if(null!==r){const s=i.get(r);i.move(s,a),nM(s,o)}});for(let o=0,r=i.length;o{nM(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(_(hi),_(ci),_(Bo))};static#t=this.\u0275dir=X({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function nM(t,n){t.context.$implicit=n.item}let kt=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new pV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){oM("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){oM("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(_(hi),_(ci))};static#t=this.\u0275dir=X({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class pV{constructor(){this.$implicit=null,this.ngIf=null}}function oM(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${sn(n)}'.`)}class Fb{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let zc=(()=>{class t{constructor(){this._defaultViews=[],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.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return t})(),pm=(()=>{class t{constructor(e,i,o){this.ngSwitch=o,o._addCase(),this._view=new Fb(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(i){return new(i||t)(_(hi),_(ci),_(zc,9))};static#t=this.\u0275dir=X({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return t})(),rM=(()=>{class t{constructor(e,i,o){o._addDefault(new Fb(e,i))}static#e=this.\u0275fac=function(i){return new(i||t)(_(hi),_(ci),_(zc,9))};static#t=this.\u0275dir=X({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return t})(),sM=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split("."),a=-1===o.indexOf("-")?void 0:xa.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(wd),_(zr))};static#t=this.\u0275dir=X({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return t})(),fm=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:r,ngTemplateOutletInjector:a}=this;this._viewRef=i.createEmbeddedView(o,r,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(i){return new(i||t)(_(hi))};static#t=this.\u0275dir=X({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[si]})}return t})();function or(t,n){return new pe(2100,!1)}class gV{createSubscription(n,e){return U1(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){U1(()=>n.unsubscribe())}}class _V{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const bV=new _V,vV=new gV;let cM=(()=>{class t{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(dd(e))return bV;if(Qw(e))return vV;throw or()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}static#e=this.\u0275fac=function(i){return new(i||t)(_(Nt,16))};static#t=this.\u0275pipe=to({name:"async",type:t,pure:!1,standalone:!0})}return t})(),lM=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw or();return e.toUpperCase()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=to({name:"uppercase",type:t,pure:!0,standalone:!0})}return t})(),Nb=(()=>{class t{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=dM}transform(e,i=dM){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const o=this.differ.diff(e),r=i!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(function OV(t,n){return{key:t,value:n}}(a.key,a.currentValue))})),(o||r)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}static#e=this.\u0275fac=function(i){return new(i||t)(_(wd,16))};static#t=this.\u0275pipe=to({name:"keyvalue",type:t,pure:!1,standalone:!0})}return t})();function dM(t,n){const e=t.key,i=n.key;if(e===i)return 0;if(void 0===e)return 1;if(void 0===i)return-1;if(null===e)return 1;if(null===i)return-1;if("string"==typeof e&&"string"==typeof i)return e{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({})}return t})();const uM="browser";function hM(t){return"server"===t}let VV=(()=>{class t{static#e=this.\u0275prov=ke({token:t,providedIn:"root",factory:()=>new jV(Y(ct),window)})}return t})();class jV{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function zV(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const a=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(a)return a}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.supportsScrolling()&&(this.window.history.scrollRestoration=n)}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class mM{}class dj extends xB{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class zb extends dj{static makeCurrent(){!function CB(t){xb||(xb=t)}(new zb)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function uj(){return Td=Td||document.querySelector("base"),Td?Td.getAttribute("href"):null}();return null==e?null:function hj(t){bm=bm||document.createElement("a"),bm.setAttribute("href",t);const n=bm.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){Td=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return eM(document.cookie,n)}}let bm,Td=null,pj=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();const Hb=new se("EventManagerPlugins");let bM=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(r=>r.supports(e)),!i)throw new pe(5101,!1);return this._eventNameToPlugin.set(e,i),i}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Hb),Y(We))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();class vM{constructor(n){this._doc=n}}const Ub="ng-app-id";let yM=(()=>{class t{constructor(e,i,o,r={}){this.doc=e,this.appId=i,this.nonce=o,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=hM(r),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(o=>o.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${Ub}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(o=>{null!=o.textContent&&i.set(o.textContent,o)}),i}return null}changeUsageCount(e,i){const o=this.styleRef;if(o.has(e)){const r=o.get(e);return r.usage+=i,r.usage}return o.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const o=this.styleNodesInDOM,r=o?.get(i);if(r?.parentNode===e)return o.delete(i),r.removeAttribute(Ub),r;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Ub,this.appId),a}}addStyleToHost(e,i){const o=this.getStyleElement(e,i);e.appendChild(o);const r=this.styleRef,a=r.get(i)?.elements;a?a.push(o):r.set(i,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ct),Y(Ql),Y(Zg,8),Y(wa))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();const $b={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Gb=/%COMP%/g,bj=new se("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function xM(t,n){return n.map(e=>e.replace(Gb,t))}let qb=(()=>{class t{constructor(e,i,o,r,a,s,c,h=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=s,this.ngZone=c,this.nonce=h,this.rendererByCompId=new Map,this.platformIsServer=hM(s),this.defaultRenderer=new Wb(e,a,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Ao.ShadowDom&&(i={...i,encapsulation:Ao.Emulated});const o=this.getOrCreateRenderer(e,i);return o instanceof SM?o.applyToHost(e):o instanceof Kb&&o.applyStyles(),o}getOrCreateRenderer(e,i){const o=this.rendererByCompId;let r=o.get(i.id);if(!r){const a=this.doc,s=this.ngZone,c=this.eventManager,h=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,b=this.platformIsServer;switch(i.encapsulation){case Ao.Emulated:r=new SM(c,h,i,this.appId,f,a,s,b);break;case Ao.ShadowDom:return new xj(c,h,e,i,a,s,this.nonce,b);default:r=new Kb(c,h,i,f,a,s,b)}o.set(i.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(bM),Y(yM),Y(Ql),Y(bj),Y(ct),Y(wa),Y(We),Y(Zg))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();class Wb{constructor(n,e,i,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS($b[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(wM(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(wM(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new pe(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=$b[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=$b[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&(xa.DashCase|xa.Important)?n.style.setProperty(e,i,o&xa.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&xa.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=Ma().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function wM(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class xj extends Wb{constructor(n,e,i,o,r,a,s,c){super(n,r,a,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const h=xM(o.id,o.styles);for(const f of h){const b=document.createElement("style");s&&b.setAttribute("nonce",s),b.textContent=f,this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Kb extends Wb{constructor(n,e,i,o,r,a,s,c){super(n,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=c?xM(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class SM extends Kb{constructor(n,e,i,o,r,a,s,c){const h=o+"-"+i.id;super(n,e,i,r,a,s,c,h),this.contentAttr=function vj(t){return"_ngcontent-%COMP%".replace(Gb,t)}(h),this.hostAttr=function yj(t){return"_nghost-%COMP%".replace(Gb,t)}(h)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let wj=(()=>{class t extends vM{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ct))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();const DM=["alt","control","meta","shift"],Sj={"\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"},Dj={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let kj=(()=>{class t extends vM{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ma().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),DM.forEach(h=>{const f=i.indexOf(h);f>-1&&(i.splice(f,1),a+=h+".")}),a+=r,0!=i.length||0===r.length)return null;const c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(e,i){let o=Sj[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),DM.forEach(a=>{a!==o&&(0,Dj[a])(e)&&(r+=a+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ct))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();const Ej=gk(sB,"browser",[{provide:wa,useValue:uM},{provide:Ax,useValue:function Mj(){zb.makeCurrent()},multi:!0},{provide:ct,useFactory:function Ij(){return function _N(t){Ng=t}(document),document},deps:[]}]),Oj=new se(""),TM=[{provide:Jh,useClass:class mj{addToWindow(n){Ci.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new pe(5103,!1);return r},Ci.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ci.getAllAngularRootElements=()=>n.getAllRootElements(),Ci.frameworkStabilizers||(Ci.frameworkStabilizers=[]),Ci.frameworkStabilizers.push(i=>{const o=Ci.getAllAngularTestabilities();let r=o.length,a=!1;const s=function(c){a=a||c,r--,0==r&&i(a)};o.forEach(c=>{c.whenStable(s)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?Ma().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:uk,useClass:ub,deps:[We,hb,Jh]},{provide:ub,useClass:ub,deps:[We,hb,Jh]}],IM=[{provide:Gg,useValue:"root"},{provide:No,useFactory:function Tj(){return new No},deps:[]},{provide:Hb,useClass:wj,multi:!0,deps:[ct,We,wa]},{provide:Hb,useClass:kj,multi:!0,deps:[ct]},qb,yM,bM,{provide:ed,useExisting:qb},{provide:mM,useClass:pj,deps:[]},[]];let EM=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:Ql,useValue:e.appId}]}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Oj,12))};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({providers:[...IM,...TM],imports:[xn,cB]})}return t})(),OM=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ct))};static#t=this.\u0275prov=ke({token:t,factory:function(i){let o=null;return o=i?new i:function Pj(){return new OM(Y(ct))}(),o},providedIn:"root"})}return t})();typeof window<"u"&&window;let Yb=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:function(i){let o=null;return o=i?new(i||t):Y(RM),o},providedIn:"root"})}return t})(),RM=(()=>{class t extends Yb{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Cn.NONE:return i;case Cn.HTML:return gr(i,"HTML")?_o(i):Cx(this._doc,String(i)).toString();case Cn.STYLE:return gr(i,"Style")?_o(i):i;case Cn.SCRIPT:if(gr(i,"Script"))return _o(i);throw new pe(5200,!1);case Cn.URL:return gr(i,"URL")?_o(i):bh(String(i));case Cn.RESOURCE_URL:if(gr(i,"ResourceURL"))return _o(i);throw new pe(5201,!1);default:throw new pe(5202,!1)}}bypassSecurityTrustHtml(e){return function SN(t){return new bN(t)}(e)}bypassSecurityTrustStyle(e){return function DN(t){return new vN(t)}(e)}bypassSecurityTrustScript(e){return function kN(t){return new yN(t)}(e)}bypassSecurityTrustUrl(e){return function MN(t){return new CN(t)}(e)}bypassSecurityTrustResourceUrl(e){return function TN(t){return new xN(t)}(e)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ct))};static#t=this.\u0275prov=ke({token:t,factory:function(i){let o=null;return o=i?new i:function Lj(t){return new RM(t.get(ct))}(Y(Oi)),o},providedIn:"root"})}return t})();class NM{}class Bj{}const Kr="*";function xo(t,n){return{type:7,name:t,definitions:n,options:{}}}function ji(t,n=null){return{type:4,styles:n,timings:t}}function Qb(t,n=null){return{type:3,steps:t,options:n}}function LM(t,n=null){return{type:2,steps:t,options:n}}function $t(t){return{type:6,styles:t,offset:null}}function Xi(t,n,e){return{type:0,name:t,styles:n,options:e}}function zi(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function Xb(t=null){return{type:9,options:t}}function Jb(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}class Id{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class BM{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++i==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function VM(t){return new pe(3e3,!1)}function Ia(t){switch(t.length){case 0:return new Id;case 1:return t[0];default:return new BM(t)}}function jM(t,n,e=new Map,i=new Map){const o=[],r=[];let a=-1,s=null;if(n.forEach(c=>{const h=c.get("offset"),f=h==a,b=f&&s||new Map;c.forEach((y,x)=>{let I=x,O=y;if("offset"!==x)switch(I=t.normalizePropertyName(I,o),O){case"!":O=e.get(x);break;case Kr:O=i.get(x);break;default:O=t.normalizeStyleValue(x,I,O,o)}b.set(I,O)}),f||r.push(b),s=b,a=h}),o.length)throw function sz(t){return new pe(3502,!1)}();return r}function tv(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&iv(e,"start",t)));break;case"done":t.onDone(()=>i(e&&iv(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&iv(e,"destroy",t)))}}function iv(t,n,e){const r=nv(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(r._data=a),r}function nv(t,n,e,i,o="",r=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function wo(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function zM(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const vz=(()=>typeof document>"u"?null:document.documentElement)();function ov(t){const n=t.parentNode||t.host||null;return n===vz?null:n}let _s=null,HM=!1;function UM(t,n){for(;n;){if(n===t)return!0;n=ov(n)}return!1}function $M(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let GM=(()=>{class t{validateStyleProperty(e){return function Cz(t){_s||(_s=function xz(){return typeof document<"u"?document.body:null}()||{},HM=!!_s.style&&"WebkitAppearance"in _s.style);let n=!0;return _s.style&&!function yz(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in _s.style,!n&&HM&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in _s.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return UM(e,i)}getParentElement(e){return ov(e)}query(e,i,o){return $M(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,a,s=[],c){return new Id(o,r)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})(),rv=(()=>{class t{static#e=this.NOOP=new GM}return t})();const wz=1e3,av="ng-enter",vm="ng-leave",ym="ng-trigger",Cm=".ng-trigger",WM="ng-animating",sv=".ng-animating";function Zr(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:cv(parseFloat(n[1]),n[2])}function cv(t,n){return"s"===n?t*wz:t}function xm(t,n,e){return t.hasOwnProperty("duration")?t:function Dz(t,n,e){let o,r=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return n.push(VM()),{duration:0,delay:0,easing:""};o=cv(parseFloat(s[1]),s[2]);const c=s[3];null!=c&&(r=cv(parseFloat(c),s[4]));const h=s[5];h&&(a=h)}else o=t;if(!e){let s=!1,c=n.length;o<0&&(n.push(function Vj(){return new pe(3100,!1)}()),s=!0),r<0&&(n.push(function jj(){return new pe(3101,!1)}()),s=!0),s&&n.splice(c,0,VM())}return{duration:o,delay:r,easing:a}}(t,n,e)}function Ed(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function KM(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Ea(t,n=new Map,e){if(e)for(let[i,o]of e)n.set(i,o);for(let[i,o]of t)n.set(i,o);return n}function wr(t,n,e){n.forEach((i,o)=>{const r=dv(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i})}function bs(t,n){n.forEach((e,i)=>{const o=dv(i);t.style[o]=""})}function Od(t){return Array.isArray(t)?1==t.length?t[0]:LM(t):t}const lv=new RegExp("{{\\s*(.+?)\\s*}}","g");function YM(t){let n=[];if("string"==typeof t){let e;for(;e=lv.exec(t);)n.push(e[1]);lv.lastIndex=0}return n}function Ad(t,n,e){const i=t.toString(),o=i.replace(lv,(r,a)=>{let s=n[a];return null==s&&(e.push(function Hj(t){return new pe(3003,!1)}()),s=""),s.toString()});return o==i?t:o}function wm(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const Tz=/-+([a-z0-9])/g;function dv(t){return t.replace(Tz,(...n)=>n[1].toUpperCase())}function So(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function Uj(t){return new pe(3004,!1)}()}}function QM(t,n){return window.getComputedStyle(t)[n]}const Sm="*";function Oz(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function Az(t,n,e){if(":"==t[0]){const c=function Pz(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof c)return void n.push(c);t=c}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function iz(t){return new pe(3015,!1)}()),n;const o=i[1],r=i[2],a=i[3];n.push(XM(o,a));"<"==r[0]&&!(o==Sm&&a==Sm)&&n.push(XM(a,o))}(i,e,n)):e.push(t),e}const Dm=new Set(["true","1"]),km=new Set(["false","0"]);function XM(t,n){const e=Dm.has(t)||km.has(t),i=Dm.has(n)||km.has(n);return(o,r)=>{let a=t==Sm||t==o,s=n==Sm||n==r;return!a&&e&&"boolean"==typeof o&&(a=o?Dm.has(t):km.has(t)),!s&&i&&"boolean"==typeof r&&(s=r?Dm.has(n):km.has(n)),a&&s}}const Rz=new RegExp("s*:selfs*,?","g");function uv(t,n,e,i){return new Fz(t).build(n,e,i)}class Fz{constructor(n){this._driver=n}build(n,e,i){const o=new Bz(e);return this._resetContextStyleTimingState(o),So(this,Od(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],a=[];return"@"==n.name.charAt(0)&&e.errors.push(function Gj(){return new pe(3006,!1)}()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const c=s,h=c.name;h.toString().split(/\s*,\s*/).forEach(f=>{c.name=f,r.push(this.visitState(c,e))}),c.name=h}else if(1==s.type){const c=this.visitTransition(s,e);i+=c.queryCount,o+=c.depCount,a.push(c)}else e.errors.push(function qj(){return new pe(3007,!1)}())}),{type:7,name:n.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,a=o||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(c=>{YM(c).forEach(h=>{a.hasOwnProperty(h)||r.add(h)})})}),r.size&&(wm(r.values()),e.errors.push(function Wj(t,n){return new pe(3008,!1)}()))}return{type:0,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=So(this,Od(n.animation),e);return{type:1,matchers:Oz(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:vs(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>So(this,i,e)),options:vs(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(a=>{e.currentTime=i;const s=So(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:3,steps:r,options:vs(n.options)}}visitAnimate(n,e){const i=function jz(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return hv(xm(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=hv(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=xm(e,n);return hv(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:$t({});if(5==r.type)o=this.visitKeyframes(r,e);else{let a=n.styles,s=!1;if(!a){s=!0;const h={};i.easing&&(h.easing=i.easing),a=$t(h)}e.currentTime+=i.duration+i.delay;const c=this.visitStyle(a,e);c.isEmptyStep=s,o=c}return e.currentAnimateTimings=null,{type:4,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of o)"string"==typeof s?s===Kr?i.push(s):e.errors.push(new pe(3002,!1)):i.push(KM(s));let r=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r))for(let c of s.values())if(c.toString().indexOf("{{")>=0){r=!0;break}}),{type:6,styles:i,easing:a,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,c)=>{const h=e.collectedStyles.get(e.currentQuerySelector),f=h.get(c);let b=!0;f&&(r!=o&&r>=f.startTime&&o<=f.endTime&&(e.errors.push(function Zj(t,n,e,i,o){return new pe(3010,!1)}()),b=!1),r=f.startTime),b&&h.set(c,{startTime:r,endTime:o}),e.options&&function Mz(t,n,e){const i=n.params||{},o=YM(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function zj(t){return new pe(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Yj(){return new pe(3011,!1)}()),i;let r=0;const a=[];let s=!1,c=!1,h=0;const f=n.steps.map(de=>{const re=this._makeStyleAst(de,e);let $e=null!=re.offset?re.offset:function Vz(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(re.styles),et=0;return null!=$e&&(r++,et=re.offset=$e),c=c||et<0||et>1,s=s||et0&&r{const $e=y>0?re==x?1:y*re:a[re],et=$e*W;e.currentTime=I+O.delay+et,O.duration=et,this._validateStyleAst(de,e),de.offset=$e,i.styles.push(de)}),i}visitReference(n,e){return{type:8,animation:So(this,Od(n.animation),e),options:vs(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:vs(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:vs(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,a]=function Nz(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(Rz,"")),t=t.replace(/@\*/g,Cm).replace(/@\w+/g,e=>Cm+"-"+e.slice(1)).replace(/:animating/g,sv),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,wo(e.collectedStyles,e.currentQuerySelector,new Map);const s=So(this,Od(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:vs(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function ez(){return new pe(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:xm(n.timings,e.errors,!0);return{type:12,animation:So(this,Od(n.animation),e),timings:i,options:null}}}class Bz{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function vs(t){return t?(t=Ed(t)).params&&(t.params=function Lz(t){return t?Ed(t):null}(t.params)):t={},t}function hv(t,n,e){return{duration:t,delay:n,easing:e}}function mv(t,n,e,i,o,r,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}class Mm{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const Uz=new RegExp(":enter","g"),Gz=new RegExp(":leave","g");function pv(t,n,e,i,o,r=new Map,a=new Map,s,c,h=[]){return(new qz).buildKeyframes(t,n,e,i,o,r,a,s,c,h)}class qz{buildKeyframes(n,e,i,o,r,a,s,c,h,f=[]){h=h||new Mm;const b=new fv(n,e,h,o,r,f,[]);b.options=c;const y=c.delay?Zr(c.delay):0;b.currentTimeline.delayNextStep(y),b.currentTimeline.setStyles([a],null,b.errors,c),So(this,i,b);const x=b.timelines.filter(I=>I.containsAnimation());if(x.length&&s.size){let I;for(let O=x.length-1;O>=0;O--){const W=x[O];if(W.element===e){I=W;break}}I&&!I.allowOnlyTimelineStyles()&&I.setStyles([s],null,b.errors,c)}return x.length?x.map(I=>I.buildKeyframes()):[mv(e,[],[],[],0,y,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const o of n){const r=o?.delay;if(r){const a="number"==typeof r?r:Zr(Ad(r,o?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const a=null!=i.duration?Zr(i.duration):null,s=null!=i.delay?Zr(i.delay):null;return 0!==a&&n.forEach(c=>{const h=e.appendInstructionToTimeline(c,a,s);r=Math.max(r,h.duration+h.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),So(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Tm);const a=Zr(r.delay);o.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>So(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?Zr(n.options.delay):0;n.steps.forEach(a=>{const s=e.createSubContext(n.options);r&&s.delayNextStep(r),So(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return xm(e.params?Ad(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(c=>{s.forwardTime((c.offset||0)*r),s.setStyles(c.styles,c.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?Zr(o.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Tm);let a=i;const s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let c=null;s.forEach((h,f)=>{e.currentQueryIndex=f;const b=e.createSubContext(n.options,h);r&&b.delayNextStep(r),h===e.element&&(c=b.currentTimeline),So(this,n.animation,b),b.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,b.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1);let c=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":c=s-c;break;case"full":c=i.currentStaggerTime}const f=e.currentTimeline;c&&f.delayNextStep(c);const b=f.currentTime;So(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-b+(o.startTime-i.currentTimeline.startTime)}}const Tm={};class fv{constructor(n,e,i,o,r,a,s,c){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Tm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Im(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=Zr(i.duration)),null!=i.delay&&(o.delay=Zr(i.delay));const r=i.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=Ad(r[s],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new fv(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Tm,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},r=new Wz(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,a){let s=[];if(o&&s.push(this.element),n.length>0){n=(n=n.replace(Uz,"."+this._enterClassName)).replace(Gz,"."+this._leaveClassName);let h=this._driver.query(this.element,n,1!=i);0!==i&&(h=i<0?h.slice(h.length+i,h.length):h.slice(0,i)),s.push(...h)}return!r&&0==s.length&&a.push(function tz(t){return new pe(3014,!1)}()),s}}class Im{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),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.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Im(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Kr),this._currentKeyframe.set(e,Kr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&this._previousKeyframe.set("easing",e);const r=o&&o.params||{},a=function Kz(t,n){const e=new Map;let i;return t.forEach(o=>{if("*"===o){i=i||n.keys();for(let r of i)e.set(r,Kr)}else Ea(o,e)}),e}(n,this._globalTimelineStyles);for(let[s,c]of a){const h=Ad(c,r,i);this._pendingStyles.set(s,h),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Kr),this._updateStyle(s,h)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((s,c)=>{const h=Ea(s,new Map,this._backFill);h.forEach((f,b)=>{"!"===f?n.add(b):f===Kr&&e.add(b)}),i||h.set("offset",c/this.duration),o.push(h)});const r=n.size?wm(n.values()):[],a=e.size?wm(e.values()):[];if(i){const s=o[0],c=new Map(s);s.set("offset",0),c.set("offset",1),o=[s,c]}return mv(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}}class Wz extends Im{constructor(n,e,i,o,r,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],a=i+e,s=e/a,c=Ea(n[0]);c.set("offset",0),r.push(c);const h=Ea(n[0]);h.set("offset",tT(s)),r.push(h);const f=n.length-1;for(let b=1;b<=f;b++){let y=Ea(n[b]);const x=y.get("offset");y.set("offset",tT((e+x*i)/a)),r.push(y)}i=a,e=0,o="",n=r}return mv(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function tT(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class gv{}const Zz=new Set(["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"]);class Yz extends gv{normalizePropertyName(n,e){return dv(n)}normalizeStyleValue(n,e,i,o){let r="";const a=i.toString().trim();if(Zz.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&o.push(function $j(t,n){return new pe(3005,!1)}())}return a+r}}function iT(t,n,e,i,o,r,a,s,c,h,f,b,y){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:a,timelines:s,queriedElements:c,preStyleProps:h,postStyleProps:f,totalTime:b,errors:y}}const _v={};class nT{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function Qz(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,a,s,c,h,f){const b=[],y=this.ast.options&&this.ast.options.params||_v,I=this.buildStyles(i,s&&s.params||_v,b),O=c&&c.params||_v,W=this.buildStyles(o,O,b),de=new Set,re=new Map,$e=new Map,et="void"===o,Tt={params:Xz(O,y),delay:this.ast.options?.delay},ui=f?[]:pv(n,e,this.ast.animation,r,a,I,W,Tt,h,b);let ki=0;if(ui.forEach(To=>{ki=Math.max(To.duration+To.delay,ki)}),b.length)return iT(e,this._triggerName,i,o,et,I,W,[],[],re,$e,ki,b);ui.forEach(To=>{const lr=To.element,Sf=wo(re,lr,new Set);To.preStyleProps.forEach(Bs=>Sf.add(Bs));const Iu=wo($e,lr,new Set);To.postStyleProps.forEach(Bs=>Iu.add(Bs)),lr!==e&&de.add(lr)});const kn=wm(de.values());return iT(e,this._triggerName,i,o,et,I,W,ui,kn,re,$e,ki)}}function Xz(t,n){const e=Ed(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class Jz{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,o=Ed(this.defaultParams);return Object.keys(n).forEach(r=>{const a=n[r];null!==a&&(o[r]=a)}),this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,s)=>{a&&(a=Ad(a,o,e));const c=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,c,a,e),i.set(s,a)})}),i}}class t7{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new Jz(o.style,o.options&&o.options.params||{},i))}),oT(this.states,"true","1"),oT(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new nT(n,o,this.states))}),this.fallbackTransition=function i7(t,n,e){return new nT(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(a=>a.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function oT(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const n7=new Mm;class o7{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=uv(this._driver,e,i,[]);if(i.length)throw function cz(t){return new pe(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,e,i){const o=n.element,r=jM(this._normalizer,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations.get(n);let a;const s=new Map;if(r?(a=pv(this._driver,e,r,av,vm,new Map,new Map,i,n7,o),a.forEach(f=>{const b=wo(s,f.element,new Map);f.postStyleProps.forEach(y=>b.set(y,null))})):(o.push(function lz(){return new pe(3300,!1)}()),a=[]),o.length)throw function dz(t){return new pe(3504,!1)}();s.forEach((f,b)=>{f.forEach((y,x)=>{f.set(x,this._driver.computeStyle(b,x,Kr))})});const h=Ia(a.map(f=>{const b=s.get(f.element);return this._buildPlayer(f,new Map,b)}));return this._playersById.set(n,h),h.onDestroy(()=>this.destroy(n)),this.players.push(h),h}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function uz(t){return new pe(3301,!1)}();return e}listen(n,e,i,o){const r=nv(e,"","","");return tv(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const rT="ng-animate-queued",bv="ng-animate-disabled",l7=[],aT={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},d7={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},rr="__ng_removed";class vv{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function p7(t){return t??null}(i?n.value:n),i){const r=Ed(n);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const Pd="void",yv=new vv(Pd);class u7{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,zo(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw function hz(t,n){return new pe(3302,!1)}();if(null==i||0==i.length)throw function mz(t){return new pe(3303,!1)}();if(!function f7(t){return"start"==t||"done"==t}(i))throw function pz(t,n){return new pe(3400,!1)}();const r=wo(this._elementListeners,n,[]),a={name:e,phase:i,callback:o};r.push(a);const s=wo(this._engine.statesByElement,n,new Map);return s.has(e)||(zo(n,ym),zo(n,ym+"-"+e),s.set(e,yv)),()=>{this._engine.afterFlush(()=>{const c=r.indexOf(a);c>=0&&r.splice(c,1),this._triggers.has(e)||s.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function fz(t){return new pe(3401,!1)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),a=new Cv(this.id,e,n);let s=this._engine.statesByElement.get(n);s||(zo(n,ym),zo(n,ym+"-"+e),this._engine.statesByElement.set(n,s=new Map));let c=s.get(e);const h=new vv(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&h.absorbOptions(c.options),s.set(e,h),c||(c=yv),h.value!==Pd&&c.value===h.value){if(!function b7(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o{bs(n,W),wr(n,de)})}return}const y=wo(this._engine.playersByElement,n,[]);y.forEach(O=>{O.namespaceId==this.id&&O.triggerName==e&&O.queued&&O.destroy()});let x=r.matchTransition(c.value,h.value,n,h.params),I=!1;if(!x){if(!o)return;x=r.fallbackTransition,I=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:x,fromState:c,toState:h,player:a,isFallbackTransition:I}),I||(zo(n,rT),a.onStart(()=>{Hc(n,rT)})),a.onDone(()=>{let O=this.players.indexOf(a);O>=0&&this.players.splice(O,1);const W=this._engine.playersByElement.get(n);if(W){let de=W.indexOf(a);de>=0&&W.splice(de,1)}}),this.players.push(a),y.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Cm,!0);i.forEach(o=>{if(o[rr])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),a=new Map;if(r){const s=[];if(r.forEach((c,h)=>{if(a.set(h,c.value),this._triggers.has(h)){const f=this.trigger(n,h,Pd,o);f&&s.push(f)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&Ia(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const a=r.name;if(o.has(a))return;o.add(a);const c=this._triggers.get(a).fallbackTransition,h=i.get(a)||yv,f=new vv(Pd),b=new Cv(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:c,fromState:h,toState:f,player:b,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[rr];(!r||r===aT)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){zo(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==i.triggerName){const c=nv(r,i.triggerName,i.fromState.value,i.toState.value);c._data=n,tv(i.player,s.phase,c,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,a=o.transition.ast.depCount;return 0==r||0==a?r-a:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class h7{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,r)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new u7(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const c=o.get(s);if(c){const h=i.indexOf(c);i.splice(h+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(n,e,i,o){if(Em(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!Em(e))return;const r=e[rr];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),zo(n,bv)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Hc(n,bv))}removeNode(n,e,i){if(Em(e)){const o=n?this._fetchNamespace(n):null;o?o.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const r=this.namespacesByHostElement.get(e);r&&r.id!==n&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[rr]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return Em(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,Cm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,sv,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ia(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[rr];if(e&&e.setForRemoval){if(n[rr]=aT,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(bv)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Ia(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function gz(t){return new pe(3402,!1)}()}_flushAnimations(n,e){const i=new Mm,o=[],r=new Map,a=[],s=new Map,c=new Map,h=new Map,f=new Set;this.disabledNodes.forEach(rt=>{f.add(rt);const gt=this.driver.query(rt,".ng-animate-queued",!0);for(let yt=0;yt{const yt=av+O++;I.set(gt,yt),rt.forEach(Qt=>zo(Qt,yt))});const W=[],de=new Set,re=new Set;for(let rt=0;rtde.add(Qt)):re.add(gt))}const $e=new Map,et=lT(y,Array.from(de));et.forEach((rt,gt)=>{const yt=vm+O++;$e.set(gt,yt),rt.forEach(Qt=>zo(Qt,yt))}),n.push(()=>{x.forEach((rt,gt)=>{const yt=I.get(gt);rt.forEach(Qt=>Hc(Qt,yt))}),et.forEach((rt,gt)=>{const yt=$e.get(gt);rt.forEach(Qt=>Hc(Qt,yt))}),W.forEach(rt=>{this.processLeaveNode(rt)})});const Tt=[],ui=[];for(let rt=this._namespaceList.length-1;rt>=0;rt--)this._namespaceList[rt].drainQueuedTransitions(e).forEach(yt=>{const Qt=yt.player,gn=yt.element;if(Tt.push(Qt),this.collectedEnterElements.length){const Fn=gn[rr];if(Fn&&Fn.setForMove){if(Fn.previousTriggersValues&&Fn.previousTriggersValues.has(yt.triggerName)){const Vs=Fn.previousTriggersValues.get(yt.triggerName),Wo=this.statesByElement.get(yt.element);if(Wo&&Wo.has(yt.triggerName)){const Df=Wo.get(yt.triggerName);Df.value=Vs,Wo.set(yt.triggerName,Df)}}return void Qt.destroy()}}const Pr=!b||!this.driver.containsElement(b,gn),Io=$e.get(gn),Xa=I.get(gn),Li=this._buildInstruction(yt,i,Xa,Io,Pr);if(Li.errors&&Li.errors.length)return void ui.push(Li);if(Pr)return Qt.onStart(()=>bs(gn,Li.fromStyles)),Qt.onDestroy(()=>wr(gn,Li.toStyles)),void o.push(Qt);if(yt.isFallbackTransition)return Qt.onStart(()=>bs(gn,Li.fromStyles)),Qt.onDestroy(()=>wr(gn,Li.toStyles)),void o.push(Qt);const lP=[];Li.timelines.forEach(Fn=>{Fn.stretchStartingKeyframe=!0,this.disabledNodes.has(Fn.element)||lP.push(Fn)}),Li.timelines=lP,i.append(gn,Li.timelines),a.push({instruction:Li,player:Qt,element:gn}),Li.queriedElements.forEach(Fn=>wo(s,Fn,[]).push(Qt)),Li.preStyleProps.forEach((Fn,Vs)=>{if(Fn.size){let Wo=c.get(Vs);Wo||c.set(Vs,Wo=new Set),Fn.forEach((Df,U0)=>Wo.add(U0))}}),Li.postStyleProps.forEach((Fn,Vs)=>{let Wo=h.get(Vs);Wo||h.set(Vs,Wo=new Set),Fn.forEach((Df,U0)=>Wo.add(U0))})});if(ui.length){const rt=[];ui.forEach(gt=>{rt.push(function _z(t,n){return new pe(3505,!1)}())}),Tt.forEach(gt=>gt.destroy()),this.reportError(rt)}const ki=new Map,kn=new Map;a.forEach(rt=>{const gt=rt.element;i.has(gt)&&(kn.set(gt,gt),this._beforeAnimationBuild(rt.player.namespaceId,rt.instruction,ki))}),o.forEach(rt=>{const gt=rt.element;this._getPreviousPlayers(gt,!1,rt.namespaceId,rt.triggerName,null).forEach(Qt=>{wo(ki,gt,[]).push(Qt),Qt.destroy()})});const To=W.filter(rt=>uT(rt,c,h)),lr=new Map;cT(lr,this.driver,re,h,Kr).forEach(rt=>{uT(rt,c,h)&&To.push(rt)});const Iu=new Map;x.forEach((rt,gt)=>{cT(Iu,this.driver,new Set(rt),c,"!")}),To.forEach(rt=>{const gt=lr.get(rt),yt=Iu.get(rt);lr.set(rt,new Map([...gt?.entries()??[],...yt?.entries()??[]]))});const Bs=[],sP=[],cP={};a.forEach(rt=>{const{element:gt,player:yt,instruction:Qt}=rt;if(i.has(gt)){if(f.has(gt))return yt.onDestroy(()=>wr(gt,Qt.toStyles)),yt.disabled=!0,yt.overrideTotalTime(Qt.totalTime),void o.push(yt);let gn=cP;if(kn.size>1){let Io=gt;const Xa=[];for(;Io=Io.parentNode;){const Li=kn.get(Io);if(Li){gn=Li;break}Xa.push(Io)}Xa.forEach(Li=>kn.set(Li,gn))}const Pr=this._buildAnimation(yt.namespaceId,Qt,ki,r,Iu,lr);if(yt.setRealPlayer(Pr),gn===cP)Bs.push(yt);else{const Io=this.playersByElement.get(gn);Io&&Io.length&&(yt.parentPlayer=Ia(Io)),o.push(yt)}}else bs(gt,Qt.fromStyles),yt.onDestroy(()=>wr(gt,Qt.toStyles)),sP.push(yt),f.has(gt)&&o.push(yt)}),sP.forEach(rt=>{const gt=r.get(rt.element);if(gt&>.length){const yt=Ia(gt);rt.setRealPlayer(yt)}}),o.forEach(rt=>{rt.parentPlayer?rt.syncPlayerEvents(rt.parentPlayer):rt.destroy()});for(let rt=0;rt!Pr.destroyed);gn.length?g7(this,gt,gn):this.processLeaveNode(gt)}return W.length=0,Bs.forEach(rt=>{this.players.push(rt),rt.onDone(()=>{rt.destroy();const gt=this.players.indexOf(rt);this.players.splice(gt,1)}),rt.play()}),Bs}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let a=[];if(e){const s=this.playersByQueriedElement.get(n);s&&(a=s)}else{const s=this.playersByElement.get(n);if(s){const c=!r||r==Pd;s.forEach(h=>{h.queued||!c&&h.triggerName!=o||a.push(h)})}}return(i||o)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){const r=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:e.triggerName;for(const c of e.timelines){const h=c.element,f=h!==r,b=wo(i,h,[]);this._getPreviousPlayers(h,f,a,s,e.toState).forEach(x=>{const I=x.getRealPlayer();I.beforeDestroy&&I.beforeDestroy(),x.destroy(),b.push(x)})}bs(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,a){const s=e.triggerName,c=e.element,h=[],f=new Set,b=new Set,y=e.timelines.map(I=>{const O=I.element;f.add(O);const W=O[rr];if(W&&W.removedBeforeQueried)return new Id(I.duration,I.delay);const de=O!==c,re=function _7(t){const n=[];return dT(t,n),n}((i.get(O)||l7).map(ki=>ki.getRealPlayer())).filter(ki=>!!ki.element&&ki.element===O),$e=r.get(O),et=a.get(O),Tt=jM(this._normalizer,I.keyframes,$e,et),ui=this._buildPlayer(I,Tt,re);if(I.subTimeline&&o&&b.add(O),de){const ki=new Cv(n,s,O);ki.setRealPlayer(ui),h.push(ki)}return ui});h.forEach(I=>{wo(this.playersByQueriedElement,I.element,[]).push(I),I.onDone(()=>function m7(t,n,e){let i=t.get(n);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,I.element,I))}),f.forEach(I=>zo(I,WM));const x=Ia(y);return x.onDestroy(()=>{f.forEach(I=>Hc(I,WM)),wr(c,e.toStyles)}),b.forEach(I=>{wo(o,I,[]).push(x)}),x}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new Id(n.duration,n.delay)}}class Cv{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new Id,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>tv(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){wo(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Em(t){return t&&1===t.nodeType}function sT(t,n){const e=t.style.display;return t.style.display=n??"none",e}function cT(t,n,e,i,o){const r=[];e.forEach(c=>r.push(sT(c)));const a=[];i.forEach((c,h)=>{const f=new Map;c.forEach(b=>{const y=n.computeStyle(h,b,o);f.set(b,y),(!y||0==y.length)&&(h[rr]=d7,a.push(h))}),t.set(h,f)});let s=0;return e.forEach(c=>sT(c,r[s++])),a}function lT(t,n){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==n.length)return e;const o=new Set(n),r=new Map;function a(s){if(!s)return 1;let c=r.get(s);if(c)return c;const h=s.parentNode;return c=e.has(h)?h:o.has(h)?1:a(h),r.set(s,c),c}return n.forEach(s=>{const c=a(s);1!==c&&e.get(c).push(s)}),e}function zo(t,n){t.classList?.add(n)}function Hc(t,n){t.classList?.remove(n)}function g7(t,n,e){Ia(e).onDone(()=>t.processLeaveNode(n))}function dT(t,n){for(let e=0;eo.add(r)):n.set(t,i),e.delete(t),!0}class Om{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,r)=>{},this._transitionEngine=new h7(n,e,i),this._timelineEngine=new o7(n,e,i),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(n,e,i,o,r){const a=n+"-"+o;let s=this._triggerCache[a];if(!s){const c=[],f=uv(this._driver,r,c,[]);if(c.length)throw function az(t,n){return new pe(3404,!1)}();s=function e7(t,n,e){return new t7(t,n,e)}(o,f,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,a]=zM(i);this._timelineEngine.command(r,e,a,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[a,s]=zM(i);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}let y7=(()=>{class t{static#e=this.initialStylesByElement=new WeakMap;constructor(e,i,o){this._element=e,this._startStyles=i,this._endStyles=o,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&wr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(wr(this._element,this._initialStyles),this._endStyles&&(wr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(bs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(bs(this._element,this._endStyles),this._endStyles=null),wr(this._element,this._initialStyles),this._state=3)}}return t})();function xv(t){let n=null;return t.forEach((e,i)=>{(function C7(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class hT{constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:QM(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class x7{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return UM(n,e)}getParentElement(n){return ov(n)}query(n,e,i){return $M(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,o,r,a=[]){const c={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(c.easing=r);const h=new Map,f=a.filter(x=>x instanceof hT);(function Iz(t,n){return 0===t||0===n})(i,o)&&f.forEach(x=>{x.currentSnapshot.forEach((I,O)=>h.set(O,I))});let b=function kz(t){return t.length?t[0]instanceof Map?t:t.map(n=>KM(n)):[]}(e).map(x=>Ea(x));b=function Ez(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,a)=>{i.has(a)||o.push(a),i.set(a,r)}),o.length)for(let r=1;ra.set(s,QM(t,s)))}}return n}(n,b,h);const y=function v7(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=xv(n[0]),n.length>1&&(i=xv(n[n.length-1]))):n instanceof Map&&(e=xv(n)),e||i?new y7(t,e,i):null}(n,b);return new hT(n,b,c,y)}}let w7=(()=>{class t extends NM{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ao.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?LM(e):e;return mT(this._renderer,null,i,"register",[o]),new S7(i,this._renderer)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ed),Y(ct))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();class S7 extends Bj{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new D7(this._id,n,e||{},this._renderer)}}class D7{constructor(n,e,i,o){this.id=n,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return mT(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}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(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function mT(t,n,e,i,o){return t.setProperty(n,`@@${e}:${i}`,o)}const pT="@.disabled";let k7=(()=>{class t{constructor(e,i,o){this.delegate=e,this.engine=i,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(r,a)=>{const s=a?.parentNode(r);s&&a.removeChild(s,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let f=this._rendererCache.get(r);return f||(f=new fT("",r,this.engine,()=>this._rendererCache.delete(r)),this._rendererCache.set(r,f)),f}const a=i.id,s=i.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const c=f=>{Array.isArray(f)?f.forEach(c):this.engine.registerTrigger(a,s,e,f.name,f)};return i.data.animation.forEach(c),new M7(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,o){e>=0&&ei(o)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}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()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ed),Y(Om),Y(We))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();class fT{constructor(n,e,i,o){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==pT?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class M7 extends fT{constructor(n,e,i,o,r){super(e,i,o,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==pT?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function T7(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.slice(1),a="";return"@"!=r.charAt(0)&&([r,a]=function I7(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,i,s)})}return this.delegate.listen(n,e,i)}}const gT=[{provide:NM,useClass:w7},{provide:gv,useFactory:function O7(){return new Yz}},{provide:Om,useClass:(()=>{class t extends Om{constructor(e,i,o,r){super(e.body,i,o)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ct),Y(rv),Y(gv),Y(ka))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})()},{provide:ed,useFactory:function A7(t,n,e){return new k7(t,n,e)},deps:[qb,Om,We]}],wv=[{provide:rv,useFactory:()=>new x7},{provide:oi,useValue:"BrowserAnimations"},...gT],_T=[{provide:rv,useClass:GM},{provide:oi,useValue:"NoopAnimations"},...gT];let Sv,P7=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?_T:wv}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({providers:wv,imports:[EM]})}return t})();try{Sv=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Sv=!1}let Uc,ti=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function BV(t){return t===uM}(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&&!Sv)&&typeof CSS<"u"&&!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}static#e=this.\u0275fac=function(i){return new(i||t)(Y(wa))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const bT=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function vT(){if(Uc)return Uc;if("object"!=typeof document||!document)return Uc=new Set(bT),Uc;let t=document.createElement("input");return Uc=new Set(bT.filter(n=>(t.setAttribute("type",n),t.type===n))),Uc}let Rd,Pm,ys,Dv;function Oa(t){return function R7(){if(null==Rd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Rd=!0}))}finally{Rd=Rd||!1}return Rd}()?t:!!t.capture}function yT(){if(null==ys){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ys=!1,ys;if("scrollBehavior"in document.documentElement.style)ys=!0;else{const t=Element.prototype.scrollTo;ys=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return ys}function Fd(){if("object"!=typeof document||!document)return 0;if(null==Pm){const t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),Pm=0,0===t.scrollLeft&&(t.scrollLeft=1,Pm=0===t.scrollLeft?1:2),t.remove()}return Pm}function Rm(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Yr(t){return t.composedPath?t.composedPath()[0]:t.target}function kv(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function fn(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Ut(t,n,e){const i=z(t)||n||e?{next:t,error:n,complete:e}:t;return i?at((o,r)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;o.subscribe(dt(r,c=>{var h;null===(h=i.next)||void 0===h||h.call(i,c),r.next(c)},()=>{var c;s=!1,null===(c=i.complete)||void 0===c||c.call(i),r.complete()},c=>{var h;s=!1,null===(h=i.error)||void 0===h||h.call(i,c),r.error(c)},()=>{var c,h;s&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(h=i.finalize)||void 0===h||h.call(i)}))}):Ae}class Y7 extends T{constructor(n,e){super()}schedule(n,e=0){return this}}const Bm={setInterval(t,n,...e){const{delegate:i}=Bm;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Bm;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class Iv extends Y7{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return Bm.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Bm.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,k(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const Ev={now:()=>(Ev.delegate||Date).now(),delegate:void 0};class Ld{constructor(n,e=Ld.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}Ld.now=Ev.now;class Ov extends Ld{constructor(n,e=Ld.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Bd=new Ov(Iv),Q7=Bd;function Vm(t,n=Bd){return at((e,i)=>{let o=null,r=null,a=null;const s=()=>{if(o){o.unsubscribe(),o=null;const h=r;r=null,i.next(h)}};function c(){const h=a+t,f=n.now();if(f{r=h,a=n.now(),o||(o=n.schedule(c,t),i.add(o))},()=>{s(),i.complete()},void 0,()=>{r=o=null}))})}function Mt(t,n){return at((e,i)=>{let o=0;e.subscribe(dt(i,r=>t.call(n,r,o++)&&i.next(r)))})}function Pt(t){return t<=0?()=>ho:at((n,e)=>{let i=0;n.subscribe(dt(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function Av(t){return Mt((n,e)=>t<=e)}function nt(t){return at((n,e)=>{Mn(t).subscribe(dt(e,()=>e.complete(),D)),!e.closed&&n.subscribe(e)})}function Ue(t){return null!=t&&"false"!=`${t}`}function mi(t,n=0){return CT(t)?Number(t):n}function CT(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function jm(t){return Array.isArray(t)?t:[t]}function Ji(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Xr(t){return t instanceof Le?t.nativeElement:t}let xT=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),J7=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Xr(e);return new Ye(o=>{const a=this._observeElement(i).subscribe(o);return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new te,o=this._mutationObserverFactory.create(r=>i.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:o}=this._observedElements.get(e);i&&i.disconnect(),o.complete(),this._observedElements.delete(e)}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xT))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wT=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=Ue(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=mi(e),this._subscribe()}constructor(e,i,o){this._contentObserver=e,this._elementRef=i,this._ngZone=o,this.event=new Fe,this._disabled=!1,this._currentSubscription=null}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(Vm(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(_(J7),_(Le),_(We))};static#t=this.\u0275dir=X({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),zm=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({providers:[xT]})}return t})();const{isArray:eH}=Array,{getPrototypeOf:tH,prototype:iH,keys:nH}=Object;function ST(t){if(1===t.length){const n=t[0];if(eH(n))return{args:n,keys:null};if(function oH(t){return t&&"object"==typeof t&&tH(t)===iH}(n)){const e=nH(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:rH}=Array;function Pv(t){return ze(n=>function aH(t,n){return rH(n)?t(...n):t(n)}(t,n))}function DT(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function Cs(...t){const n=wl(t),e=e1(t),{args:i,keys:o}=ST(t);if(0===i.length)return Hi([],n);const r=new Ye(function sH(t,n,e=Ae){return i=>{kT(n,()=>{const{length:o}=t,r=new Array(o);let a=o,s=o;for(let c=0;c{const h=Hi(t[c],n);let f=!1;h.subscribe(dt(i,b=>{r[c]=b,f||(f=!0,s--),s||i.next(e(r.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,o?a=>DT(o,a):Ae));return e?r.pipe(Pv(e)):r}function kT(t,n,e){t?Rr(e,t,n):n()}function Vd(...t){return function cH(){return Us(1)}()(Hi(t,wl(t)))}function Wi(...t){const n=wl(t);return at((e,i)=>{(n?Vd(t,e,n):Vd(t,e)).subscribe(i)})}const MT=new Set;let xs,lH=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):uH}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function dH(t,n){if(!MT.has(t))try{xs||(xs=document.createElement("style"),n&&(xs.nonce=n),xs.setAttribute("type","text/css"),document.head.appendChild(xs)),xs.sheet&&(xs.sheet.insertRule(`@media ${t} {body{ }}`,0),MT.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ti),Y(Zg,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function uH(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Rv=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new te}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return TT(jm(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=Cs(TT(jm(e)).map(a=>this._registerQuery(a).observable));return r=Vd(r.pipe(Pt(1)),r.pipe(Av(1),Vm(0))),r.pipe(ze(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:h})=>{s.matches=s.matches||c,s.breakpoints[h]=c}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new Ye(a=>{const s=c=>this._zone.run(()=>a.next(c));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(Wi(i),ze(({matches:a})=>({query:e,matches:a})),nt(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static#e=this.\u0275fac=function(i){return new(i||t)(Y(lH),Y(We))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function TT(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function Hm(t,n,e){const i=Um(t,n);i.some(o=>o.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))}function Gc(t,n,e){const o=Um(t,n).filter(r=>r!=e.trim());o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}function Um(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const ET="cdk-describedby-message",$m="cdk-describedby-host";let Fv=0,mH=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Fv++,this._document=e,this._id=Ne(Ql)+"-"+Fv++}describe(e,i,o){if(!this._canBeDescribed(e,i))return;const r=Nv(i,o);"string"!=typeof i?(OT(i,this._id),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,o){if(!i||!this._isElementNode(e))return;const r=Nv(i,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),"string"==typeof i){const a=this._messageRegistry.get(r);a&&0===a.referenceCount&&this._deleteMessageElement(r)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${$m}="${this._id}"]`);for(let i=0;i0!=o.indexOf(ET));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const o=this._messageRegistry.get(i);Hm(e,"aria-describedby",o.messageElement.id),e.setAttribute($m,this._id),o.referenceCount++}_removeMessageReference(e,i){const o=this._messageRegistry.get(i);o.referenceCount--,Gc(e,"aria-describedby",o.messageElement.id),e.removeAttribute($m)}_isElementDescribedByMessage(e,i){const o=Um(e,"aria-describedby"),r=this._messageRegistry.get(i),a=r&&r.messageElement.id;return!!a&&-1!=o.indexOf(a)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const o=null==i?"":`${i}`.trim(),r=e.getAttribute("aria-label");return!(!o||r&&r.trim()===o)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ct),Y(ti))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nv(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function OT(t,n){t.id||(t.id=`${ET}-${n}-${Fv++}`)}class AT{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new te,this._typeaheadSubscription=T.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new te,this.change=new te,n instanceof $r&&(this._itemChangesSubscription=n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ut(e=>this._pressedLetters.push(e)),Vm(n),Mt(()=>this._pressedLetters.length>0),ze(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.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(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof $r?this._items.toArray():this._items}}class PT extends AT{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class Gm extends AT{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let jd=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function fH(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function pH(t){try{return t.frameElement}catch{return null}}(function wH(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===FT(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=FT(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function CH(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function xH(t){return!function _H(t){return function vH(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function gH(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function bH(t){return function yH(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||RT(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ti))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function RT(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function FT(t){if(!RT(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class SH{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.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(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(Pt(1)).subscribe(n)}}let qm=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new SH(e,this._checker,this._ngZone,this._document,i)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(jd),Y(We),Y(ct))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Lv(t){return 0===t.buttons||0===t.detail}function Bv(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const DH=new se("cdk-input-modality-detector-options"),kH={ignoreKeys:[18,17,224,91,16]},qc=Oa({passive:!0,capture:!0});let MH=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new pt(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Yr(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Lv(a)?"keyboard":"mouse"),this._mostRecentTarget=Yr(a))},this._onTouchstart=a=>{Bv(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Yr(a))},this._options={...kH,...r},this.modalityDetected=this._modality.pipe(Av(1)),this.modalityChanged=this.modalityDetected.pipe($s()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,qc),o.addEventListener("mousedown",this._onMousedown,qc),o.addEventListener("touchstart",this._onTouchstart,qc)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,qc),document.removeEventListener("mousedown",this._onMousedown,qc),document.removeEventListener("touchstart",this._onTouchstart,qc))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ti),Y(We),Y(ct),Y(DH,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const TH=new se("liveAnnouncerElement",{providedIn:"root",factory:function IH(){return null}}),EH=new se("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let OH=0,Vv=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{constructor(e,i,o,r,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,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 te,this._rootNodeFocusAndBlurListener=s=>{for(let h=Yr(s);h;h=h.parentElement)"focus"===s.type?this._onFocus(s,h):this._onBlur(s,h)},this._document=r,this._detectionMode=a?.detectionMode||0}monitor(e,i=!1){const o=Xr(e);if(!this._platform.isBrowser||1!==o.nodeType)return qe();const r=function N7(t){if(function F7(){if(null==Dv){const t=typeof document<"u"?document.head:null;Dv=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Dv}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;const s={checkChildren:i,subject:new te,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const i=Xr(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Xr(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([s,c])=>this._originChanged(s,i,c)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=Yr(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Wm),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Wm)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(nt(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Wm),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Wm),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let a=0;a{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new Fe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(Do))};static#t=this.\u0275dir=X({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();const LT="cdk-high-contrast-black-on-white",BT="cdk-high-contrast-white-on-black",jv="cdk-high-contrast-active";let VT=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Ne(Rv).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(jv,LT,BT),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(jv,LT):2===i&&e.add(jv,BT)}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ti),Y(ct))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zv=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(VT))};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[zm]})}return t})();const RH=new se("cdk-dir-doc",{providedIn:"root",factory:function FH(){return Ne(ct)}}),NH=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let en=(()=>{class t{constructor(e){this.value="ltr",this.change=new Fe,e&&(this.value=function LH(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?NH.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(RH,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zd=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({})}return t})();const BH=["*",[["mat-option"],["ng-container"]]],VH=["*","mat-option, ng-container"],jH=["text"];function zH(t,n){if(1&t&&S(0,"mat-pseudo-checkbox",6),2&t){const e=C();p("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function HH(t,n){1&t&&S(0,"mat-pseudo-checkbox",7),2&t&&p("disabled",C().disabled)}function UH(t,n){if(1&t&&(d(0,"span",8),u(1),l()),2&t){const e=C();m(1),ye("(",e.group.label,")")}}const $H=[[["mat-icon"]],"*"],GH=["mat-icon","*"],WH=new se("mat-sanity-checks",{providedIn:"root",factory:function qH(){return!0}});let wt=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!kv()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static#e=this.\u0275fac=function(i){return new(i||t)(Y(VT),Y(WH,8),Y(ct))};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[zd,zd]})}return t})();function Sr(t){return class extends t{get disabled(){return this._disabled}set disabled(n){this._disabled=Ue(n)}constructor(...n){super(...n),this._disabled=!1}}}function Pa(t,n){return class extends t{get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}constructor(...e){super(...e),this.defaultColor=n,this.color=n}}}function Ra(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=Ue(n)}constructor(...n){super(...n),this._disableRipple=!1}}}function Fa(t,n=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?mi(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=n,this.defaultTabIndex=n}}}function Hv(t){return class extends t{updateErrorState(){const n=this.errorState,r=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);r!==n&&(this.errorState=r,this.stateChanges.next())}constructor(...n){super(...n),this.errorState=!1}}}function KH(t){return class extends t{constructor(...n){super(...n),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Ye(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(n){n.next(),n.complete()}}}let Km=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class YH{constructor(n,e,i,o=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const HT=Oa({passive:!0,capture:!0});class QH{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=Yr(n);e&&this._events.get(n.type)?.forEach((i,o)=>{(o===e||o.contains(e))&&i.forEach(r=>r.handleEvent(n))})}}addHandler(n,e,i,o){const r=this._events.get(e);if(r){const a=r.get(i);a?a.add(o):r.set(i,new Set([o]))}else this._events.set(e,new Map([[i,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,HT)})}removeHandler(n,e,i){const o=this._events.get(n);if(!o)return;const r=o.get(e);r&&(r.delete(i),0===r.size&&o.delete(e),0===o.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,HT)))}}const UT={enterDuration:225,exitDuration:150},$T=Oa({passive:!0,capture:!0}),GT=["mousedown","touchstart"],qT=["mouseup","mouseleave","touchend","touchcancel"];class Ud{static#e=this._eventManager=new QH;constructor(n,e,i,o){this._target=n,this._ngZone=e,this._platform=o,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Xr(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r={...UT,...i.animation};i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const a=i.radius||function JH(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),s=n-o.left,c=e-o.top,h=r.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left=s-a+"px",f.style.top=c-a+"px",f.style.height=2*a+"px",f.style.width=2*a+"px",null!=i.color&&(f.style.backgroundColor=i.color),f.style.transitionDuration=`${h}ms`,this._containerElement.appendChild(f);const b=window.getComputedStyle(f),x=b.transitionDuration,I="none"===b.transitionProperty||"0s"===x||"0s, 0s"===x||0===o.width&&0===o.height,O=new YH(this,f,i,I);f.style.transform="scale3d(1, 1, 1)",O.state=0,i.persistent||(this._mostRecentTransientRipple=O);let W=null;return!I&&(h||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const de=()=>this._finishRippleTransition(O),re=()=>this._destroyRipple(O);f.addEventListener("transitionend",de),f.addEventListener("transitioncancel",re),W={onTransitionEnd:de,onTransitionCancel:re}}),this._activeRipples.set(O,W),(I||!h)&&this._finishRippleTransition(O),O}fadeOutRipple(n){if(2===n.state||3===n.state)return;const e=n.element,i={...UT,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=2,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Xr(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,GT.forEach(i=>{Ud._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{qT.forEach(e=>{this._triggerElement.addEventListener(e,this,$T)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){0===n.state?this._startFadeOutTransition(n):2===n.state&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=1,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=3,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=Lv(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(GT.forEach(e=>Ud._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&qT.forEach(e=>n.removeEventListener(e,this,$T)))}}const Wc=new se("mat-ripple-global-options");let Na=(()=>{class t{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()}constructor(e,i,o,r,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Ud(this,i,e,o)}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:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(We),_(ti),_(Wc,8),_(oi,8))};static#t=this.\u0275dir=X({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){2&i&&Xe("mat-ripple-unbounded",o.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"]})}return t})(),La=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[wt,wt]})}return t})(),e9=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(i){return new(i||t)(_(oi,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){2&i&&Xe("mat-pseudo-checkbox-indeterminate","indeterminate"===o.state)("mat-pseudo-checkbox-checked","checked"===o.state)("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal","minimal"===o.appearance)("mat-pseudo-checkbox-full","full"===o.appearance)("_mat-animation-noopable","NoopAnimations"===o._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,o){},styles:['.mat-pseudo-checkbox{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-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return t})(),WT=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[wt]})}return t})();const Zm=new se("MAT_OPTION_PARENT_COMPONENT"),t9=Sr(class{});let i9=0,n9=(()=>{class t extends t9{constructor(e){super(),this._labelId="mat-optgroup-label-"+i9++,this._inert=e?.inertGroups??!1}static#e=this.\u0275fac=function(i){return new(i||t)(_(Zm,8))};static#t=this.\u0275dir=X({type:t,inputs:{label:"label"},features:[_e]})}return t})();const Ym=new se("MatOptgroup");let KT=(()=>{class t extends n9{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(i,o){2&i&&Qe("role",o._inert?null:"group")("aria-disabled",o._inert?null:o.disabled.toString())("aria-labelledby",o._inert?null:o._labelId)},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[Ze([{provide:Ym,useExisting:t}]),_e],ngContentSelectors:VH,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(i,o){1&i&&(Vt(BH),d(0,"span",0)(1,"span",1),u(2),Ke(3),l()(),Ke(4,1)),2&i&&(Xe("mdc-list-item--disabled",o.disabled),p("id",o._labelId),m(2),ye("",o.label," "))},styles:[".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color);font-family:var(--mat-optgroup-label-text-font);line-height:var(--mat-optgroup-label-text-line-height);font-size:var(--mat-optgroup-label-text-size);letter-spacing:var(--mat-optgroup-label-text-tracking);font-weight:var(--mat-optgroup-label-text-weight)}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;min-height:48px}.mat-mdc-optgroup-label:focus{outline:none}[dir=rtl] .mat-mdc-optgroup-label,.mat-mdc-optgroup-label[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"],encapsulation:2,changeDetection:0})}return t})(),o9=0;class ZT{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let r9=(()=>{class t{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=Ue(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+o9++,this.onSelectionChange=new Fe,this._stateChanges=new te}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!fn(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new ZT(this,e))}static#e=this.\u0275fac=function(i){_r()};static#t=this.\u0275dir=X({type:t,viewQuery:function(i,o){if(1&i&&bt(jH,7),2&i){let r;Ee(r=Oe())&&(o._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}})}return t})(),un=(()=>{class t extends r9{constructor(e,i,o,r){super(e,i,o,r)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(Nt),_(Zm,8),_(Ym,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){1&i&&P("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),2&i&&(Un("id",o.id),Qe("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),Xe("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},exportAs:["matOption"],features:[_e],ngContentSelectors:GH,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(i,o){1&i&&(Vt($H),g(0,zH,1,2,"mat-pseudo-checkbox",0),Ke(1),d(2,"span",1,2),Ke(4,1),l(),g(5,HH,1,1,"mat-pseudo-checkbox",3),g(6,UH,2,1,"span",4),S(7,"div",5)),2&i&&(p("ngIf",o.multiple),m(5),p("ngIf",!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator),m(1),p("ngIf",o.group&&o.group._inert),m(1),p("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[Na,kt,e9],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})();function YT(t,n,e){if(e.length){let i=n.toArray(),o=e.toArray(),r=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}let Qm=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[La,xn,wt,WT]})}return t})();const XT={capture:!0},JT=["focus","click","mouseenter","touchstart"],Uv="mat-ripple-loader-uninitialized",$v="mat-ripple-loader-class-name",e2="mat-ripple-loader-centered",Xm="mat-ripple-loader-disabled";let t2=(()=>{class t{constructor(){this._document=Ne(ct,{optional:!0}),this._animationMode=Ne(oi,{optional:!0}),this._globalRippleOptions=Ne(Wc,{optional:!0}),this._platform=Ne(ti),this._ngZone=Ne(We),this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const o=e.target.closest(`[${Uv}]`);o&&this.createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const e of JT)this._document?.addEventListener(e,this._onInteraction,XT)})}ngOnDestroy(){for(const e of JT)this._document?.removeEventListener(e,this._onInteraction,XT)}configureRipple(e,i){e.setAttribute(Uv,""),(i.className||!e.hasAttribute($v))&&e.setAttribute($v,i.className||""),i.centered&&e.setAttribute(e2,""),i.disabled&&e.setAttribute(Xm,"")}getRipple(e){return e.matRipple?e.matRipple:this.createRipple(e)}setDisabled(e,i){const o=e.matRipple;o?o.disabled=i:i?e.setAttribute(Xm,""):e.removeAttribute(Xm)}createRipple(e){if(!this._document)return;e.querySelector(".mat-ripple")?.remove();const i=this._document.createElement("span");i.classList.add("mat-ripple",e.getAttribute($v)),e.append(i);const o=new Na(new Le(i),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=e,o.centered=e.hasAttribute(e2),o.disabled=e.hasAttribute(Xm),this.attachRipple(e,o),o}attachRipple(e,i){e.removeAttribute(Uv),e.matRipple=i}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const a9=["*",[["mat-toolbar-row"]]],s9=["*","mat-toolbar-row"],c9=Pa(class{constructor(t){this._elementRef=t}});let l9=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),d9=(()=>{class t extends c9{constructor(e,i,o){super(e),this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(ti),_(ct))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,o,r){if(1&i&&ft(r,l9,5),2&i){let a;Ee(a=Oe())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(i,o){2&i&&Xe("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",0===o._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[_e],ngContentSelectors:s9,decls:2,vars:0,template:function(i,o){1&i&&(Vt(a9),Ke(0),Ke(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}return t})(),n2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[wt,wt]})}return t})();const o2=["mat-button",""],r2=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],a2=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],s2=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",h9=["mat-icon-button",""],m9=["*"],p9=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],f9=Pa(Sr(Ra(class{constructor(t){this._elementRef=t}})));let Gv=(()=>{class t extends f9{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ue(e),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=Ue(e),this._updateRippleDisabled()}constructor(e,i,o,r){super(e),this._platform=i,this._ngZone=o,this._animationMode=r,this._focusMonitor=Ne(Do),this._rippleLoader=Ne(t2),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const a=e.nativeElement.classList;for(const s of p9)this._hasHostAttributes(s.selector)&&s.mdcClasses.forEach(c=>{a.add(c)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_hasHostAttributes(...e){return e.some(i=>this._elementRef.nativeElement.hasAttribute(i))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(i){_r()};static#t=this.\u0275dir=X({type:t,features:[_e]})}return t})(),_9=(()=>{class t extends Gv{constructor(e,i,o,r){super(e,i,o,r),this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}static#e=this.\u0275fac=function(i){_r()};static#t=this.\u0275dir=X({type:t,features:[_e]})}return t})(),Gt=(()=>{class t extends Gv{constructor(e,i,o,r){super(e,i,o,r)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(ti),_(We),_(oi,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(i,o){2&i&&(Qe("disabled",o.disabled||null),Xe("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[_e],attrs:o2,ngContentSelectors:a2,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){1&i&&(Vt(r2),S(0,"span",0),Ke(1),d(2,"span",1),Ke(3,1),l(),Ke(4,2),S(5,"span",2)(6,"span",3)),2&i&&Xe("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return t})(),c2=(()=>{class t extends _9{constructor(e,i,o,r){super(e,i,o,r)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(ti),_(We),_(oi,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:9,hostBindings:function(i,o){2&i&&(Qe("disabled",o.disabled||null)("tabindex",o.disabled?-1:o.tabIndex)("aria-disabled",o.disabled.toString()),Xe("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[_e],attrs:o2,ngContentSelectors:a2,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){1&i&&(Vt(r2),S(0,"span",0),Ke(1),d(2,"span",1),Ke(3,1),l(),Ke(4,2),S(5,"span",2)(6,"span",3)),2&i&&Xe("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',s2],encapsulation:2,changeDetection:0})}return t})(),Jr=(()=>{class t extends Gv{constructor(e,i,o,r){super(e,i,o,r),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(ti),_(We),_(oi,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(i,o){2&i&&(Qe("disabled",o.disabled||null),Xe("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[_e],attrs:h9,ngContentSelectors:m9,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){1&i&&(Vt(),S(0,"span",0),Ke(1),S(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',s2],encapsulation:2,changeDetection:0})}return t})(),Jm=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[wt,La,wt]})}return t})();function Kc(t,n){const e=z(t)?t:()=>t,i=o=>o.error(e());return new Ye(n?o=>n.schedule(i,0,o):i)}function qv(...t){const n=e1(t),{args:e,keys:i}=ST(t),o=new Ye(r=>{const{length:a}=e;if(!a)return void r.complete();const s=new Array(a);let c=a,h=a;for(let f=0;f{b||(b=!0,h--),s[f]=y},()=>c--,void 0,()=>{(!c||!b)&&(h||r.next(i?DT(i,s):s),r.complete())}))}});return n?o.pipe(Pv(n)):o}function Di(t){return at((n,e)=>{let r,i=null,o=!1;i=n.subscribe(dt(e,void 0,void 0,a=>{r=Mn(t(a,Di(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function ws(t){return at((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Zc(t,n){return z(n)?an(t,n,1):an(t,1)}class ep{}class tp{}class Dr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Dr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Dr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Dr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===r.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class v9{encodeKey(n){return l2(n)}encodeValue(n){return l2(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const C9=/%(\d[a-f0-9])/gi,x9={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function l2(t){return encodeURIComponent(t).replace(C9,(n,e)=>x9[e]??n)}function ip(t){return`${t}`}class Ba{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new v9,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function y9(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[a,s]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],c=e.get(a)||[];c.push(s),e.set(a,c)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],o=Array.isArray(i)?i.map(ip):[ip(i)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Ba({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(ip(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(ip(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class w9{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function d2(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function u2(t){return typeof Blob<"u"&&t instanceof Blob}function h2(t){return typeof FormData<"u"&&t instanceof FormData}class $d{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function S9(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new Dr),this.context||(this.context=new w9),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":sb.set(y,n.setHeaders[y]),c)),n.setParams&&(h=Object.keys(n.setParams).reduce((b,y)=>b.set(y,n.setParams[y]),h)),new $d(e,i,r,{params:h,headers:c,context:f,reportProgress:s,responseType:o,withCredentials:a})}}var Yc=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Yc||{});class Wv{constructor(n,e=200,i="OK"){this.headers=n.headers||new Dr,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Kv extends Wv{constructor(n={}){super(n),this.type=Yc.ResponseHeader}clone(n={}){return new Kv({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Qc extends Wv{constructor(n={}){super(n),this.type=Yc.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Qc({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class m2 extends Wv{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Zv(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let np=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof $d)r=e;else{let c,h;c=o.headers instanceof Dr?o.headers:new Dr(o.headers),o.params&&(h=o.params instanceof Ba?o.params:new Ba({fromObject:o.params})),r=new $d(e,i,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:h,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const a=qe(r).pipe(Zc(c=>this.handler.handle(c)));if(e instanceof $d||"events"===o.observe)return a;const s=a.pipe(Mt(c=>c instanceof Qc));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(ze(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return s.pipe(ze(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return s.pipe(ze(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return s.pipe(ze(c=>c.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Ba).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,Zv(o,i))}post(e,i,o={}){return this.request("POST",e,Zv(o,i))}put(e,i,o={}){return this.request("PUT",e,Zv(o,i))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ep))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();function g2(t,n){return n(t)}function M9(t,n){return(e,i)=>n.intercept(e,{handle:o=>t(o,i)})}const _2=new se(""),Gd=new se(""),b2=new se("");function I9(){let t=null;return(n,e)=>{null===t&&(t=(Ne(_2,{optional:!0})??[]).reduceRight(M9,g2));const i=Ne(Qh),o=i.add();return t(n,e).pipe(ws(()=>i.remove(o)))}}let v2=(()=>{class t extends ep{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=Ne(Qh)}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Gd),...this.injector.get(b2,[])]));this.chain=o.reduceRight((r,a)=>function T9(t,n,e){return(i,o)=>e.runInContext(()=>n(i,r=>t(r,o)))}(r,a,this.injector),g2)}const i=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(ws(()=>this.pendingTasks.remove(i)))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(tp),Y(bo))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();const P9=/^\)\]\}',?\n/;let C2=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new pe(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?Hi(i.\u0275loadImpl()):qe(null)).pipe(Yi(()=>new Ye(r=>{const a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((O,W)=>a.setRequestHeader(O,W.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const O=e.detectContentTypeHeader();null!==O&&a.setRequestHeader("Content-Type",O)}if(e.responseType){const O=e.responseType.toLowerCase();a.responseType="json"!==O?O:"text"}const s=e.serializeBody();let c=null;const h=()=>{if(null!==c)return c;const O=a.statusText||"OK",W=new Dr(a.getAllResponseHeaders()),de=function R9(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(a)||e.url;return c=new Kv({headers:W,status:a.status,statusText:O,url:de}),c},f=()=>{let{headers:O,status:W,statusText:de,url:re}=h(),$e=null;204!==W&&($e=typeof a.response>"u"?a.responseText:a.response),0===W&&(W=$e?200:0);let et=W>=200&&W<300;if("json"===e.responseType&&"string"==typeof $e){const Tt=$e;$e=$e.replace(P9,"");try{$e=""!==$e?JSON.parse($e):null}catch(ui){$e=Tt,et&&(et=!1,$e={error:ui,text:$e})}}et?(r.next(new Qc({body:$e,headers:O,status:W,statusText:de,url:re||void 0})),r.complete()):r.error(new m2({error:$e,headers:O,status:W,statusText:de,url:re||void 0}))},b=O=>{const{url:W}=h(),de=new m2({error:O,status:a.status||0,statusText:a.statusText||"Unknown Error",url:W||void 0});r.error(de)};let y=!1;const x=O=>{y||(r.next(h()),y=!0);let W={type:Yc.DownloadProgress,loaded:O.loaded};O.lengthComputable&&(W.total=O.total),"text"===e.responseType&&a.responseText&&(W.partialText=a.responseText),r.next(W)},I=O=>{let W={type:Yc.UploadProgress,loaded:O.loaded};O.lengthComputable&&(W.total=O.total),r.next(W)};return a.addEventListener("load",f),a.addEventListener("error",b),a.addEventListener("timeout",b),a.addEventListener("abort",b),e.reportProgress&&(a.addEventListener("progress",x),null!==s&&a.upload&&a.upload.addEventListener("progress",I)),a.send(s),r.next({type:Yc.Sent}),()=>{a.removeEventListener("error",b),a.removeEventListener("abort",b),a.removeEventListener("load",f),a.removeEventListener("timeout",b),e.reportProgress&&(a.removeEventListener("progress",x),null!==s&&a.upload&&a.upload.removeEventListener("progress",I)),a.readyState!==a.DONE&&a.abort()}})))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(mM))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();const Yv=new se("XSRF_ENABLED"),x2=new se("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),w2=new se("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class S2{}let L9=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,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=eM(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ct),Y(wa),Y(x2))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();function B9(t,n){const e=t.url.toLowerCase();if(!Ne(Yv)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Ne(S2).getToken(),o=Ne(w2);return null!=i&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),n(t)}var Va=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Va||{});function V9(...t){const n=[np,C2,v2,{provide:ep,useExisting:v2},{provide:tp,useExisting:C2},{provide:Gd,useValue:B9,multi:!0},{provide:Yv,useValue:!0},{provide:S2,useClass:L9}];for(const e of t)n.push(...e.\u0275providers);return function Hg(t){return{\u0275providers:t}}(n)}const D2=new se("LEGACY_INTERCEPTOR_FN");function j9(){return function Ss(t,n){return{\u0275kind:t,\u0275providers:n}}(Va.LegacyInterceptors,[{provide:D2,useFactory:I9},{provide:Gd,useExisting:D2,multi:!0}])}let z9=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({providers:[V9(j9())]})}return t})();const W9=["*"];let rp;function qd(t){return function K9(){if(void 0===rp&&(rp=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(rp=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return rp}()?.createHTML(t)||t}function k2(t){return Error(`Unable to find icon with the name "${t}"`)}function M2(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function T2(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Ds{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}}let ap=(()=>{class t{constructor(e,i,o,r){this._httpClient=e,this._sanitizer=i,this._errorHandler=r,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","mat-ligature-font"],this._document=o}addSvgIcon(e,i,o){return this.addSvgIconInNamespace("",e,i,o)}addSvgIconLiteral(e,i,o){return this.addSvgIconLiteralInNamespace("",e,i,o)}addSvgIconInNamespace(e,i,o,r){return this._addSvgIconConfig(e,i,new Ds(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,o,r){const a=this._sanitizer.sanitize(Cn.HTML,o);if(!a)throw T2(o);const s=qd(a);return this._addSvgIconConfig(e,i,new Ds("",s,r))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,o){return this._addSvgIconSetConfig(e,new Ds(i,null,o))}addSvgIconSetLiteralInNamespace(e,i,o){const r=this._sanitizer.sanitize(Cn.HTML,i);if(!r)throw T2(i);const a=qd(r);return this._addSvgIconSetConfig(e,new Ds("",a,o))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(Cn.RESOURCE_URL,e);if(!i)throw M2(e);const o=this._cachedIconsByUrl.get(i);return o?qe(sp(o)):this._loadSvgIconFromConfig(new Ds(e,null)).pipe(Ut(r=>this._cachedIconsByUrl.set(i,r)),ze(r=>sp(r)))}getNamedSvgIcon(e,i=""){const o=I2(i,e);let r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(i,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);const a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):Kc(k2(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?qe(sp(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ze(i=>sp(i)))}_getSvgFromIconSetConfigs(e,i){const o=this._extractIconWithNameFromAnySet(e,i);return o?qe(o):qv(i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Di(s=>{const h=`Loading icon set URL: ${this._sanitizer.sanitize(Cn.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(h)),qe(null)})))).pipe(ze(()=>{const a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw k2(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let o=i.length-1;o>=0;o--){const r=i[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ut(i=>e.svgText=i),ze(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?qe(null):this._fetchIcon(e).pipe(Ut(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,o){const r=e.querySelector(`[id="${i}"]`);if(!r)return null;const a=r.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,o);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),o);const s=this._svgElementFromString(qd(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const o=i.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const i=this._svgElementFromString(qd("")),o=e.attributes;for(let r=0;rqd(h)),ws(()=>this._inProgressUrlFetches.delete(a)),Au());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,o){return this._svgIconConfigs.set(I2(e,i),o),this}_addSvgIconSetConfig(e,i){const o=this._iconSetConfigs.get(e);return o?o.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let o=0;on?n.pathname+n.search:""}}}),E2=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],iU=E2.map(t=>`[${t}]`).join(", "),nU=/^url\(['"]?#(.*?)['"]?\)$/;let vi=(()=>{class t extends X9{get inline(){return this._inline}set inline(e){this._inline=Ue(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,o,r,a,s){super(e),this._iconRegistry=i,this._location=r,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=T.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const o=e.childNodes[i];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),i.forEach(o=>e.classList.add(o)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(iU),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{const s=i[r],c=s.getAttribute(a),h=c?c.match(nU):null;if(h){let f=o.get(s);f||(f=[],o.set(s,f)),f.push({name:a,value:h[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,o]=this._splitIconName(e);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(Pt(1)).subscribe(r=>this._setSvgElement(r),r=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${o}! ${r.message}`))})}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(ap),zn("aria-hidden"),_(eU),_(No),_(J9,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(i,o){2&i&&(Qe("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),Xe("mat-icon-inline",o.inline)("mat-icon-no-color","primary"!==o.color&&"accent"!==o.color&&"warn"!==o.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[_e],ngContentSelectors:W9,decls:1,vars:0,template:function(i,o){1&i&&(Vt(),Ke(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0})}return t})(),O2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[wt,wt]})}return t})();const oU=["*"],sU=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],cU=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],lU=new se("MAT_CARD_CONFIG");let Wd=(()=>{class t{constructor(e){this.appearance=e?.appearance||"raised"}static#e=this.\u0275fac=function(i){return new(i||t)(_(lU,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,o){2&i&&Xe("mat-mdc-card-outlined","outlined"===o.appearance)("mdc-card--outlined","outlined"===o.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:oU,decls:1,vars:0,template:function(i,o){1&i&&(Vt(),Ke(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation);--mdc-elevated-card-container-shape:4px;--mdc-outlined-card-container-shape:4px;--mdc-outlined-card-outline-width:1px}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}return t})(),Qv=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})(),Xv=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})(),A2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:cU,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,o){1&i&&(Vt(sU),Ke(0),d(1,"div",0),Ke(2,1),l(),Ke(3,2))},encapsulation:2,changeDetection:0})}return t})(),P2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[wt,xn,wt]})}return t})();const mU=new se("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),fU=Pa(class{constructor(t){this._elementRef=t}},"primary");let R2=(()=>{class t extends fU{constructor(e,i,o,r,a){super(e),this._ngZone=i,this._changeDetectorRef=o,this._animationMode=r,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new Fe,this._mode="determinate",this._transitionendHandler=s=>{0===this.animationEnd.observers.length||!s.target||!s.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===r,a&&(a.color&&(this.color=this.defaultColor=a.color),this.mode=a.mode||this.mode)}get value(){return this._value}set value(e){this._value=F2(mi(e)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=F2(mi(e)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(We),_(Nt),_(oi,8),_(mU,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(i,o){2&i&&(Qe("aria-valuenow",o._isIndeterminate()?null:o.value)("mode",o.mode),Xe("_mat-animation-noopable",o._isNoopAnimation)("mdc-linear-progress--animation-ready",!o._isNoopAnimation)("mdc-linear-progress--indeterminate",o._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[_e],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(i,o){1&i&&(d(0,"div",0),S(1,"div",1)(2,"div",2),l(),d(3,"div",3),S(4,"span",4),l(),d(5,"div",5),S(6,"span",4),l()),2&i&&(m(1),dn("flex-basis",o._getBufferBarFlexBasis()),m(2),dn("transform",o._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill=''/%3E%3C/svg%3E\")}}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{display:block;text-align:left;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}[dir=rtl] .mat-mdc-progress-bar{text-align:right}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0})}return t})();function F2(t,n=0,e=100){return Math.max(n,Math.min(e,t))}let N2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[wt]})}return t})(),L2=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=Ue(e)}get inset(){return this._inset}set inset(e){this._inset=Ue(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,o){2&i&&(Qe("aria-orientation",o.vertical?"vertical":"horizontal"),Xe("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,o){},styles:[".mat-divider{--mat-divider-width:1px;display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}return t})(),Jv=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[wt,wt]})}return t})();function ey(){return at((t,n)=>{let e=null;t._refCount++;const i=dt(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class ty extends Ye{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,rn(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new T;const e=this.getSubject();n.add(this.source.subscribe(dt(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=T.EMPTY)}return n}refCount(){return ey()(this)}}class B2{}function cp(t){return t&&"function"==typeof t.connect&&!(t instanceof ty)}class V2{applyChanges(n,e,i,o,r){n.forEachOperation((a,s,c)=>{let h,f;if(null==a.previousIndex){const b=i(a,s,c);h=e.createEmbeddedView(b.templateRef,b.context,b.index),f=1}else null==c?(e.remove(s),f=3):(h=e.get(s),e.move(h,c),f=2);r&&r({context:h?.context,operation:f,record:a})})}detach(){}}class Kd{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(n=!1,e,i=!0,o){this._multiple=n,this._emitChanges=i,this.compareWith=o,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new te,e&&e.length&&(n?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);const e=this.selected,i=new Set(n);n.forEach(r=>this._markSelected(r)),e.filter(r=>!i.has(r)).forEach(r=>this._unmarkSelected(r));const o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();const e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}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(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(n){if(this.compareWith){for(let e of this._selection)if(this.compareWith(n,e))return e;return n}return n}}let iy=(()=>{class t{constructor(){this._listeners=[]}notify(e,i){for(let o of this._listeners)o(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Zd=new se("_ViewRepeater");let z2=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(zr),_(Le))};static#t=this.\u0275dir=X({type:t})}return t})(),ks=(()=>{class t extends z2{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,features:[_e]})}return t})();const Wn=new se("NgValueAccessor"),_U={provide:Wn,useExisting:qt(()=>pi),multi:!0},vU=new se("CompositionEventMode");let pi=(()=>{class t extends z2{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function bU(){const t=Ma()?Ma().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",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)}static#e=this.\u0275fac=function(i){return new(i||t)(_(zr),_(Le),_(vU,8))};static#t=this.\u0275dir=X({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){1&i&&P("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Ze([_U]),_e]})}return t})();function ja(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function U2(t){return null!=t&&"number"==typeof t.length}const wn=new se("NgValidators"),za=new se("NgAsyncValidators"),yU=/^(?=.{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 J{static min(n){return function $2(t){return n=>{if(ja(n.value)||ja(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(ja(n.value)||ja(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return q2(n)}static requiredTrue(n){return function W2(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function K2(t){return ja(t.value)||yU.test(t.value)?null:{email:!0}}(n)}static minLength(n){return Z2(n)}static maxLength(n){return Y2(n)}static pattern(n){return Q2(n)}static nullValidator(n){return null}static compose(n){return nI(n)}static composeAsync(n){return oI(n)}}function q2(t){return ja(t.value)?{required:!0}:null}function Z2(t){return n=>ja(n.value)||!U2(n.value)?null:n.value.lengthU2(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}function Q2(t){if(!t)return lp;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(ja(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function lp(t){return null}function X2(t){return null!=t}function J2(t){return dd(t)?Hi(t):t}function eI(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function tI(t,n){return n.map(e=>e(t))}function iI(t){return t.map(n=>function CU(t){return!t.validate}(n)?n:e=>n.validate(e))}function nI(t){if(!t)return null;const n=t.filter(X2);return 0==n.length?null:function(e){return eI(tI(e,n))}}function ny(t){return null!=t?nI(iI(t)):null}function oI(t){if(!t)return null;const n=t.filter(X2);return 0==n.length?null:function(e){return qv(tI(e,n).map(J2)).pipe(ze(eI))}}function oy(t){return null!=t?oI(iI(t)):null}function rI(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function aI(t){return t._rawValidators}function sI(t){return t._rawAsyncValidators}function ry(t){return t?Array.isArray(t)?t:[t]:[]}function dp(t,n){return Array.isArray(t)?t.includes(n):t===n}function cI(t,n){const e=ry(n);return ry(t).forEach(o=>{dp(e,o)||e.push(o)}),e}function lI(t,n){return ry(n).filter(e=>!dp(t,e))}class dI{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(n){this._rawValidators=n||[],this._composedValidatorFn=ny(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=oy(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Kn extends dI{get formDirective(){return null}get path(){return null}}class ar extends dI{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class uI{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let li=(()=>{class t extends uI{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(ar,2))};static#t=this.\u0275dir=X({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){2&i&&Xe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[_e]})}return t})(),Mi=(()=>{class t extends uI{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Kn,10))};static#t=this.\u0275dir=X({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){2&i&&Xe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[_e]})}return t})();const Yd="VALID",hp="INVALID",Xc="PENDING",Qd="DISABLED";function cy(t){return(mp(t)?t.validators:t)||null}function ly(t,n){return(mp(n)?n.asyncValidators:t)||null}function mp(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function mI(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new pe(1e3,"");if(!i[e])throw new pe(1001,"")}function pI(t,n,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new pe(1002,"")})}class pp{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Yd}get invalid(){return this.status===hp}get pending(){return this.status==Xc}get disabled(){return this.status===Qd}get enabled(){return this.status!==Qd}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(cI(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(cI(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(lI(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(lI(n,this._rawAsyncValidators))}hasValidator(n){return dp(this._rawValidators,n)}hasAsyncValidator(n){return dp(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Xc,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Qd,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Yd,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Yd||this.status===Xc)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qd:Yd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Xc,this._hasOwnPendingAsyncValidator=!0;const e=J2(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Fe,this.statusChanges=new Fe}_calculateStatus(){return this._allControlsDisabled()?Qd:this.errors?hp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xc)?Xc:this._anyControlsHaveStatus(hp)?hp:Yd}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){mp(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function DU(t){return Array.isArray(t)?ny(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function kU(t){return Array.isArray(t)?oy(t):t||null}(this._rawAsyncValidators)}}class Yt extends pp{constructor(n,e,i){super(cy(e),ly(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){pI(this,0,n),Object.keys(n).forEach(i=>{mI(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n?n[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class fI extends Yt{}const Ms=new se("CallSetDisabledState",{providedIn:"root",factory:()=>Xd}),Xd="always";function fp(t,n){return[...n.path,t]}function Jd(t,n,e=Xd){dy(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function TU(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&gI(t,n)})}(t,n),function EU(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function IU(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&gI(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function MU(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function gp(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),bp(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function _p(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function dy(t,n){const e=aI(t);null!==n.validator?t.setValidators(rI(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=sI(t);null!==n.asyncValidator?t.setAsyncValidators(rI(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();_p(n._rawValidators,o),_p(n._rawAsyncValidators,o)}function bp(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=aI(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=sI(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return _p(n._rawValidators,i),_p(n._rawAsyncValidators,i),e}function gI(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function _I(t,n){dy(t,n)}function hy(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function bI(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function my(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===pi?e=r:function PU(t){return Object.getPrototypeOf(t.constructor)===ks}(r)?i=r:o=r}),o||i||e||null}const FU={provide:Kn,useExisting:qt(()=>Ha)},eu=(()=>Promise.resolve())();let Ha=(()=>{class t extends Kn{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Fe,this.form=new Yt({},ny(e),oy(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){eu.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Jd(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){eu.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){eu.then(()=>{const i=this._findContainer(e.path),o=new Yt({});_I(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){eu.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){eu.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,bI(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){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}static#e=this.\u0275fac=function(i){return new(i||t)(_(wn,10),_(za,10),_(Ms,8))};static#t=this.\u0275dir=X({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){1&i&&P("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ze([FU]),_e]})}return t})();function vI(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function yI(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const U=class extends pp{constructor(n=null,e,i){super(cy(e),ly(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),mp(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=yI(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){vI(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){vI(this._onDisabledChange,n)}_forEachChild(n){}_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(n){yI(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let CI=(()=>{class t extends Kn{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return fp(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,features:[_e]})}return t})();const BU={provide:ar,useExisting:qt(()=>Jc)},wI=(()=>Promise.resolve())();let Jc=(()=>{class t extends ar{constructor(e,i,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new U,this._registered=!1,this.name="",this.update=new Fe,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=my(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),hy(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(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(){Jd(this.control,this,this.callSetDisabledState),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){wI.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&Vc(i);wI.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?fp(e,this._parent):[e]}static#e=this.\u0275fac=function(i){return new(i||t)(_(Kn,9),_(wn,10),_(za,10),_(Wn,10),_(Nt,8),_(Ms,8))};static#t=this.\u0275dir=X({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ze([BU]),_e,si]})}return t})(),tn=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return t})();const VU={provide:Wn,useExisting:qt(()=>py),multi:!0};let py=(()=>{class t extends ks{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,o){1&i&&P("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[Ze([VU]),_e]})}return t})(),SI=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({})}return t})();const fy=new se("NgModelWithFormControlWarning"),UU={provide:ar,useExisting:qt(()=>el)};let el=(()=>{class t extends ar{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this.update=new Fe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=my(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&gp(i,this,!1),Jd(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}hy(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&gp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static#t=this.\u0275fac=function(i){return new(i||t)(_(wn,10),_(za,10),_(Wn,10),_(fy,8),_(Ms,8))};static#i=this.\u0275dir=X({type:t,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ze([UU]),_e,si]})}return t})();const $U={provide:Kn,useExisting:qt(()=>fi)};let fi=(()=>{class t extends Kn{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Fe,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(bp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Jd(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){gp(e.control||null,e,!1),function RU(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,bI(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(gp(i||null,e),(t=>t instanceof U)(o)&&(Jd(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);_I(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function OU(t,n){return bp(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){dy(this.form,this),this._oldForm&&bp(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(wn,10),_(za,10),_(Ms,8))};static#t=this.\u0275dir=X({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){1&i&&P("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ze([$U]),_e,si]})}return t})();const GU={provide:Kn,useExisting:qt(()=>tu)};let tu=(()=>{class t extends CI{constructor(e,i,o){super(),this.name=null,this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){MI(this._parent)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Kn,13),_(wn,10),_(za,10))};static#t=this.\u0275dir=X({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[Ze([GU]),_e]})}return t})();const qU={provide:Kn,useExisting:qt(()=>iu)};let iu=(()=>{class t extends Kn{constructor(e,i,o){super(),this.name=null,this._parent=e,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return fp(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){MI(this._parent)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Kn,13),_(wn,10),_(za,10))};static#t=this.\u0275dir=X({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[Ze([qU]),_e]})}return t})();function MI(t){return!(t instanceof tu||t instanceof fi||t instanceof iu)}const WU={provide:ar,useExisting:qt(()=>Ai)};let Ai=(()=>{class t extends ar{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new Fe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=my(0,r)}ngOnChanges(e){this._added||this._setUpControl(),hy(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return fp(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(i){return new(i||t)(_(Kn,13),_(wn,10),_(za,10),_(Wn,10),_(fy,8))};static#i=this.\u0275dir=X({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ze([WU]),_e,si]})}return t})();function EI(t){return"number"==typeof t?t:parseInt(t,10)}let Ts=(()=>{class t{constructor(){this._validator=lp}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):lp,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t,features:[si]})}return t})();const i$={provide:wn,useExisting:qt(()=>so),multi:!0};let so=(()=>{class t extends Ts{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Vc,this.createValidator=e=>q2}enabled(e){return e}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){2&i&&Qe("required",o._enabled?"":null)},inputs:{required:"required"},features:[Ze([i$]),_e]})}return t})();const r$={provide:wn,useExisting:qt(()=>vy),multi:!0};let vy=(()=>{class t extends Ts{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>EI(e),this.createValidator=e=>Z2(e)}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&Qe("minlength",o._enabled?o.minlength:null)},inputs:{minlength:"minlength"},features:[Ze([r$]),_e]})}return t})();const a$={provide:wn,useExisting:qt(()=>yy),multi:!0};let yy=(()=>{class t extends Ts{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>EI(e),this.createValidator=e=>Y2(e)}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&Qe("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ze([a$]),_e]})}return t})();const s$={provide:wn,useExisting:qt(()=>Cy),multi:!0};let Cy=(()=>{class t extends Ts{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>Q2(e)}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&Qe("pattern",o._enabled?o.pattern:null)},inputs:{pattern:"pattern"},features:[Ze([s$]),_e]})}return t})(),FI=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[SI]})}return t})();class NI extends pp{constructor(n,e,i){super(cy(e),ly(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){pI(this,0,n),n.forEach((i,o)=>{mI(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function LI(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let sr=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const o=this._reduceControls(e);let r={};return LI(i)?r=i:null!==i&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new Yt(o,r)}record(e,i=null){const o=this._reduceControls(e);return new fI(o,i)}control(e,i,o){let r={};return this.useNonNullable?(LI(i)?r=i:(r.validators=i,r.asyncValidators=o),new U(e,{...r,nonNullable:!0})):new U(e,i,o)}array(e,i,o){const r=e.map(a=>this._createControl(a));return new NI(r,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return e instanceof U||e instanceof pp?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),c$=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ms,useValue:e.callSetDisabledState??Xd}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[FI]})}return t})(),BI=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:fy,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Ms,useValue:e.callSetDisabledState??Xd}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[FI]})}return t})(),UI=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[zm,xn,wt,La,WT,Jv]})}return t})();class B$ extends te{constructor(n=1/0,e=1/0,i=Ev){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:i,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(i.push(n),!o&&i.push(r.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:o}=this,r=o.slice();for(let a=0;athis._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new Ye(e=>{const i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(Mt(e=>e.some(i=>i.target===n)),function V$(t,n,e){let i,o=!1;return t&&"object"==typeof t?({bufferSize:i=1/0,windowTime:n=1/0,refCount:o=!1,scheduler:e}=t):i=t??1/0,Au({connector:()=>new B$(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}({bufferSize:1,refCount:!0}),nt(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let z$=(()=>{class t{constructor(){this._observers=new Map,this._ngZone=Ne(We)}ngOnDestroy(){for(const[,e]of this._observers)e.destroy();this._observers.clear()}observe(e,i){const o=i?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new j$(o)),this._observers.get(o).observe(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const H$=["notch"],U$=["matFormFieldNotchedOutline",""],$$=["*"],G$=["textField"],q$=["iconPrefixContainer"],W$=["textPrefixContainer"];function K$(t,n){1&t&&S(0,"span",19)}function Z$(t,n){if(1&t&&(d(0,"label",17),Ke(1,1),g(2,K$,1,0,"span",18),l()),2&t){const e=C(2);p("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),Qe("for",e._control.id),m(2),p("ngIf",!e.hideRequiredMarker&&e._control.required)}}function Y$(t,n){1&t&&g(0,Z$,3,5,"label",16),2&t&&p("ngIf",C()._hasFloatingLabel())}function Q$(t,n){1&t&&S(0,"div",20)}function X$(t,n){}function J$(t,n){1&t&&g(0,X$,0,0,"ng-template",22),2&t&&(C(2),p("ngTemplateOutlet",At(1)))}function eG(t,n){if(1&t&&(d(0,"div",21),g(1,J$,1,1,"ng-template",9),l()),2&t){const e=C();p("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),m(1),p("ngIf",!e._forceDisplayInfixLabel())}}function tG(t,n){1&t&&(d(0,"div",23,24),Ke(2,2),l())}function iG(t,n){1&t&&(d(0,"div",25,26),Ke(2,3),l())}function nG(t,n){}function oG(t,n){1&t&&g(0,nG,0,0,"ng-template",22),2&t&&(C(),p("ngTemplateOutlet",At(1)))}function rG(t,n){1&t&&(d(0,"div",27),Ke(1,4),l())}function aG(t,n){1&t&&(d(0,"div",28),Ke(1,5),l())}function sG(t,n){1&t&&S(0,"div",29)}function cG(t,n){1&t&&(d(0,"div",30),Ke(1,6),l()),2&t&&p("@transitionMessages",C()._subscriptAnimationState)}function lG(t,n){if(1&t&&(d(0,"mat-hint",34),u(1),l()),2&t){const e=C(2);p("id",e._hintLabelId),m(1),Ie(e.hintLabel)}}function dG(t,n){if(1&t&&(d(0,"div",31),g(1,lG,2,2,"mat-hint",32),Ke(2,7),S(3,"div",33),Ke(4,8),l()),2&t){const e=C();p("@transitionMessages",e._subscriptAnimationState),m(1),p("ngIf",e.hintLabel)}}const uG=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],hG=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let gi=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t,selectors:[["mat-label"]]})}return t})(),mG=0;const $I=new se("MatError");let wy=(()=>{class t{constructor(e,i){this.id="mat-mdc-error-"+mG++,e||i.nativeElement.setAttribute("aria-live","polite")}static#e=this.\u0275fac=function(i){return new(i||t)(zn("aria-live"),_(Le))};static#t=this.\u0275dir=X({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,o){2&i&&Un("id",o.id)},inputs:{id:"id"},features:[Ze([{provide:$I,useExisting:t}])]})}return t})(),pG=0,Is=(()=>{class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+pG++}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,o){2&i&&(Un("id",o.id),Qe("align",null),Xe("mat-mdc-form-field-hint-end","end"===o.align))},inputs:{align:"align",id:"id"}})}return t})();const fG=new se("MatPrefix"),GI=new se("MatSuffix");let Sy=(()=>{class t{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[Ze([{provide:GI,useExisting:t}])]})}return t})();const qI=new se("FloatingLabelParent");let WI=(()=>{class t{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=Ne(z$),this._ngZone=Ne(We),this._parent=Ne(qI),this._resizeSubscription=new T}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function gG(t){if(null!==t.offsetParent)return t.scrollWidth;const e=t.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);const i=e.scrollWidth;return e.remove(),i}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le))};static#t=this.\u0275dir=X({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,o){2&i&&Xe("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();const KI="mdc-line-ripple--active",vp="mdc-line-ripple--deactivating";let ZI=(()=>{class t{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=o=>{const r=this._elementRef.nativeElement.classList,a=r.contains(vp);"opacity"===o.propertyName&&a&&r.remove(KI,vp)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(vp),e.add(KI)}deactivate(){this._elementRef.nativeElement.classList.add(vp)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(We))};static#t=this.\u0275dir=X({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),YI=(()=>{class t{constructor(e,i){this._elementRef=e,this._ngZone=i,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){this._notch.nativeElement.style.width=this.open&&e?`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(We))};static#t=this.\u0275cmp=Me({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,o){if(1&i&&bt(H$,5),2&i){let r;Ee(r=Oe())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,o){2&i&&Xe("mdc-notched-outline--notched",o.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:U$,ngContentSelectors:$$,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(i,o){1&i&&(Vt(),S(0,"div",0),d(1,"div",1,2),Ke(3),l(),S(4,"div",3))},encapsulation:2,changeDetection:0})}return t})();const _G={transitionMessages:xo("transitionMessages",[Xi("enter",$t({opacity:1,transform:"translateY(0%)"})),zi("void => enter",[$t({opacity:0,transform:"translateY(-5px)"}),ji("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let yp=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t})}return t})();const nu=new se("MatFormField"),bG=new se("MAT_FORM_FIELD_DEFAULT_OPTIONS");let QI=0,_i=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ue(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,i,o,r,a,s,c,h){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=o,this._dir=r,this._platform=a,this._defaults=s,this._animationMode=c,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+QI++,this._hintLabelId="mat-mdc-hint-"+QI++,this._subscriptAnimationState="",this._destroyed=new te,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,s&&(s.appearance&&(this.appearance=s.appearance),this._hideRequiredMarker=!!s?.hideRequiredMarker,s.color&&(this.color=s.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(nt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),yi(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(nt(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(nt(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(r=>"start"===r.align):null,o=this._hintChildren?this._hintChildren.find(r=>"end"===r.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const e=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(e.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const i=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,r=i?.getBoundingClientRect().width??0,a=o?.getBoundingClientRect().width??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${r+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(Nt),_(We),_(en),_(ti),_(bG,8),_(oi,8),_(ct))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,o,r){if(1&i&&(ft(r,gi,5),ft(r,gi,7),ft(r,yp,5),ft(r,fG,5),ft(r,GI,5),ft(r,$I,5),ft(r,Is,5)),2&i){let a;Ee(a=Oe())&&(o._labelChildNonStatic=a.first),Ee(a=Oe())&&(o._labelChildStatic=a.first),Ee(a=Oe())&&(o._formFieldControl=a.first),Ee(a=Oe())&&(o._prefixChildren=a),Ee(a=Oe())&&(o._suffixChildren=a),Ee(a=Oe())&&(o._errorChildren=a),Ee(a=Oe())&&(o._hintChildren=a)}},viewQuery:function(i,o){if(1&i&&(bt(G$,5),bt(q$,5),bt(W$,5),bt(WI,5),bt(YI,5),bt(ZI,5)),2&i){let r;Ee(r=Oe())&&(o._textField=r.first),Ee(r=Oe())&&(o._iconPrefixContainer=r.first),Ee(r=Oe())&&(o._textPrefixContainer=r.first),Ee(r=Oe())&&(o._floatingLabel=r.first),Ee(r=Oe())&&(o._notchedOutline=r.first),Ee(r=Oe())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,o){2&i&&Xe("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===o._animationMode)("mat-form-field-appearance-fill","fill"==o.appearance)("mat-form-field-appearance-outline","outline"==o.appearance)("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary","accent"!==o.color&&"warn"!==o.color)("mat-accent","accent"===o.color)("mat-warn","warn"===o.color)("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ze([{provide:nu,useExisting:t},{provide:qI,useExisting:t}])],ngContentSelectors:hG,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(i,o){1&i&&(Vt(uG),g(0,Y$,1,1,"ng-template",null,0,tr),d(2,"div",1,2),P("click",function(a){return o._control.onContainerClick(a)}),g(4,Q$,1,0,"div",3),d(5,"div",4),g(6,eG,2,2,"div",5),g(7,tG,3,0,"div",6),g(8,iG,3,0,"div",7),d(9,"div",8),g(10,oG,1,1,"ng-template",9),Ke(11),l(),g(12,rG,2,0,"div",10),g(13,aG,2,0,"div",11),l(),g(14,sG,1,0,"div",12),l(),d(15,"div",13),g(16,cG,2,1,"div",14),g(17,dG,5,2,"div",15),l()),2&i&&(m(2),Xe("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),m(2),p("ngIf",!o._hasOutline()&&!o._control.disabled),m(2),p("ngIf",o._hasOutline()),m(1),p("ngIf",o._hasIconPrefix),m(1),p("ngIf",o._hasTextPrefix),m(2),p("ngIf",!o._hasOutline()||o._forceDisplayInfixLabel()),m(2),p("ngIf",o._hasTextSuffix),m(1),p("ngIf",o._hasIconSuffix),m(1),p("ngIf",!o._hasOutline()),m(1),Xe("mat-mdc-form-field-subscript-dynamic-size","dynamic"===o.subscriptSizing),p("ngSwitch",o._getDisplayedMessages()),m(1),p("ngSwitchCase","error"),m(1),p("ngSwitchCase","hint"))},dependencies:[kt,fm,zc,pm,Is,WI,YI,ZI],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[_G.transitionMessages]},changeDetection:0})}return t})(),ou=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[wt,xn,zm,wt]})}return t})();const CG=["addListener","removeListener"],xG=["addEventListener","removeEventListener"],wG=["on","off"];function Uo(t,n,e,i){if(z(e)&&(i=e,e=void 0),i)return Uo(t,n,e).pipe(Pv(i));const[o,r]=function kG(t){return z(t.addEventListener)&&z(t.removeEventListener)}(t)?xG.map(a=>s=>t[a](n,s,e)):function SG(t){return z(t.addListener)&&z(t.removeListener)}(t)?CG.map(eE(t,n)):function DG(t){return z(t.on)&&z(t.off)}(t)?wG.map(eE(t,n)):[];if(!o&&If(t))return an(a=>Uo(a,n,e))(Mn(t));if(!o)throw new TypeError("Invalid event target");return new Ye(a=>{const s=(...c)=>a.next(1r(s)})}function eE(t,n){return e=>i=>t[e](n,i)}function Cp(t=0,n,e=Q7){let i=-1;return null!=n&&(J0(n)?e=n:i=n),new Ye(o=>{let r=function TG(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=i?this.schedule(void 0,i):o.complete())},r)})}function Dy(t,n=Bd){return function MG(t){return at((n,e)=>{let i=!1,o=null,r=null,a=!1;const s=()=>{if(r?.unsubscribe(),r=null,i){i=!1;const h=o;o=null,e.next(h)}a&&e.complete()},c=()=>{r=null,a&&e.complete()};n.subscribe(dt(e,h=>{i=!0,o=h,r||Mn(t(h)).subscribe(r=dt(e,s,c))},()=>{a=!0,(!i||!r||r.closed)&&e.complete()}))})}(()=>Cp(t,n))}const tE=Oa({passive:!0});let IG=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return ho;const i=Xr(e),o=this._monitoredElements.get(i);if(o)return o.subject;const r=new te,a="cdk-text-field-autofilled",s=c=>{"cdk-text-field-autofill-start"!==c.animationName||i.classList.contains(a)?"cdk-text-field-autofill-end"===c.animationName&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>r.next({target:c.target,isAutofilled:!1}))):(i.classList.add(a),this._ngZone.run(()=>r.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",s,tE),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:()=>{i.removeEventListener("animationstart",s,tE)}}),r}stopMonitoring(e){const i=Xr(e),o=this._monitoredElements.get(i);o&&(o.unlisten(),o.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ti),Y(We))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),iE=(()=>{class t{get minRows(){return this._minRows}set minRows(e){this._minRows=mi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=mi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=Ue(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(e,i,o,r){this._elementRef=e,this._platform=i,this._ngZone=o,this._destroyed=new te,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=a=>{this._hasFocus="focus"===a.type},this._document=r,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Uo(this._getWindow(),"resize").pipe(Dy(16),nt(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,i=e.style.marginBottom||"",o=this._platform.FIREFOX,r=o&&this._hasFocus,a=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";r&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);const s=e.scrollHeight-4;return e.classList.remove(a),r&&(e.style.marginBottom=i),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const i=this._elementRef.nativeElement,o=i.value;if(!e&&this._minRows===this._previousMinRows&&o===this._previousValue)return;const r=this._measureScrollHeight(),a=Math.max(r,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=o,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:i,selectionEnd:o}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,o)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(ti),_(We),_(ct,8))};static#t=this.\u0275dir=X({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,o){1&i&&P("input",function(){return o._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),EG=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({})}return t})();const OG=new se("MAT_INPUT_VALUE_ACCESSOR"),AG=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let PG=0;const RG=Hv(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new te}});let Fi=(()=>{class t extends RG{get disabled(){return this._disabled}set disabled(e){this._disabled=Ue(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(J.required)??!1}set required(e){this._required=Ue(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&vT().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=Ue(e)}constructor(e,i,o,r,a,s,c,h,f,b){super(s,r,a,o),this._elementRef=e,this._platform=i,this._autofillMonitor=h,this._formField=b,this._uid="mat-input-"+PG++,this.focused=!1,this.stateChanges=new te,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(I=>vT().has(I)),this._iOSKeyupListener=I=>{const O=I.target;!O.value&&0===O.selectionStart&&0===O.selectionEnd&&(O.setSelectionRange(1,1),O.setSelectionRange(0,0))};const y=this._elementRef.nativeElement,x=y.nodeName.toLowerCase();this._inputValueAccessor=c||y,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&f.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===x,this._isTextarea="textarea"===x,this._isInFormField=!!b,this._isNativeSelect&&(this.controlType=y.multiple?"mat-native-select-multiple":"mat-native-select")}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),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const e=this._getPlaceholder();if(e!==this._previousPlaceholder){const i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){AG.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(ti),_(ar,10),_(Ha,8),_(fi,8),_(Km),_(OG,10),_(IG),_(We),_(nu,8))};static#t=this.\u0275dir=X({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(i,o){1&i&&P("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),2&i&&(Un("id",o.id)("disabled",o.disabled)("required",o.required),Qe("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),Xe("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Ze([{provide:yp,useExisting:t}]),_e,si]})}return t})(),nE=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[wt,ou,ou,EG,wt]})}return t})();const ru={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=ru;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const o=n(r=>{e=void 0,t(r)});return new T(()=>e?.(o))},requestAnimationFrame(...t){const{delegate:n}=ru;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=ru;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};new class NG extends Ov{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class FG extends Iv{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=ru.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(ru.cancelAnimationFrame(e),n._scheduled=void 0)}});let ky,BG=1;const xp={};function oE(t){return t in xp&&(delete xp[t],!0)}const VG={setImmediate(t){const n=BG++;return xp[n]=!0,ky||(ky=Promise.resolve()),ky.then(()=>oE(n)&&t()),n},clearImmediate(t){oE(t)}},{setImmediate:jG,clearImmediate:zG}=VG,wp={setImmediate(...t){const{delegate:n}=wp;return(n?.setImmediate||jG)(...t)},clearImmediate(t){const{delegate:n}=wp;return(n?.clearImmediate||zG)(t)},delegate:void 0},My=new class UG extends Ov{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class HG extends Iv{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=wp.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(wp.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}});let au=(()=>{class t{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new te,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ye(i=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(Dy(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):qe()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Mt(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=Xr(i),r=e.getElementRef().nativeElement;do{if(o==r)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Uo(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(We),Y(ti),Y(ct,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),su=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=o,this.dir=r,this._destroyed=new te,this._elementScrolled=new Ye(a=>this.ngZone.runOutsideAngular(()=>Uo(this.elementRef.nativeElement,"scroll").pipe(nt(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=o?e.end:e.start),null==e.right&&(e.right=o?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),o&&0!=Fd()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==Fd()?e.left=e.right:1==Fd()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;yT()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",o="right",r=this.elementRef.nativeElement;if("top"==e)return r.scrollTop;if("bottom"==e)return r.scrollHeight-r.clientHeight-r.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?o:i:"end"==e&&(e=a?i:o),a&&2==Fd()?e==i?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&1==Fd()?e==i?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==i?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(au),_(We),_(en,8))};static#t=this.\u0275dir=X({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return t})(),ea=(()=>{class t{constructor(e,i,o){this._platform=e,this._change=new te,this._changeListener=r=>{this._change.next(r)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Dy(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}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ti),Y(We),Y(ct,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ua=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({})}return t})(),Ty=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[zd,Ua,zd,Ua]})}return t})();class Iy{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class tl extends Iy{constructor(n,e,i,o,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=o,this.projectableNodes=r}}class ta extends Iy{constructor(n,e,i,o){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=o}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class WG extends Iy{constructor(n){super(),this.element=n instanceof Le?n.nativeElement:n}}class Sp{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof tl?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof ta?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof WG?(this._attachedPortal=n,this.attachDomPortal(n)):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(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class KG extends Sp{constructor(n,e,i,o,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=o,this.attachDomPortal=a=>{const s=a.element,c=this._document.createComment("dom-portal");s.parentNode.insertBefore(c,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(s,c)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let o;return n.viewContainerRef?(o=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>o.destroy())):(o=i.create(n.injector||this._defaultInjector||Oi.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=n,o}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(i);-1!==o&&e.remove(o)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let ZG=(()=>{class t extends ta{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(_(ci),_(hi))};static#t=this.\u0275dir=X({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[_e]})}return t})(),ia=(()=>{class t extends Sp{constructor(e,i,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Fe,this.attachDomPortal=r=>{const a=r.element,s=this._document.createComment("dom-portal");r.setAttachedHost(this),a.parentNode.insertBefore(s,a),this._getRootNode().appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(a,s)})},this._document=o}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._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(r,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static#e=this.\u0275fac=function(i){return new(i||t)(_(ls),_(hi),_(ct))};static#t=this.\u0275dir=X({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[_e]})}return t})(),Es=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({})}return t})();const rE=yT();class YG{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=Ji(-this._previousScrollPosition.left),n.style.top=Ji(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,o=this._document.body.style,r=i.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),rE&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),rE&&(i.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class QG{constructor(n,e,i,o){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(Mt(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class aE{enable(){}disable(){}attach(){}}function Ey(t,n){return n.some(e=>t.bottome.bottom||t.righte.right)}function sE(t,n){return n.some(e=>t.tope.bottom||t.lefte.right)}class XG{constructor(n,e,i,o){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=o,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();Ey(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let JG=(()=>{class t{constructor(e,i,o,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new aE,this.close=a=>new QG(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new YG(this._viewportRuler,this._document),this.reposition=a=>new XG(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=r}static#e=this.\u0275fac=function(i){return new(i||t)(Y(au),Y(ea),Y(We),Y(ct))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class il{constructor(n){if(this.scrollStrategy=new aE,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class eq{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}let cE=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ct))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),tq=(()=>{class t extends cE{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=o=>{const r=this._attachedOverlays;for(let a=r.length-1;a>-1;a--)if(r[a]._keydownEvents.observers.length>0){const s=r[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(o)):s.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ct),Y(We,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),iq=(()=>{class t extends cE{constructor(e,i,o){super(e),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Yr(r)},this._clickListener=r=>{const a=Yr(r),s="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let h=c.length-1;h>-1;h--){const f=c[h];if(f._outsidePointerEvents.observers.length<1||!f.hasAttached())continue;if(f.overlayElement.contains(a)||f.overlayElement.contains(s))break;const b=f._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>b.next(r)):b.next(r)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const 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}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ct),Y(ti),Y(We,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Dp=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||kv()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;rthis._backdropClick.next(b),this._backdropTransitionendHandler=b=>{this._disposeBackdrop(b.target)},this._keydownEvents=new te,this._outsidePointerEvents=new te,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Pt(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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),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 n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=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),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,n&&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(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=Ji(this._config.width),n.height=Ji(this._config.height),n.minWidth=Ji(this._config.minWidth),n.minHeight=Ji(this._config.minHeight),n.maxWidth=Ji(this._config.maxWidth),n.maxHeight=Ji(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){const o=jm(e||[]).filter(r=>!!r);o.length&&(i?n.classList.add(...o):n.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(nt(yi(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()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const lE="cdk-overlay-connected-position-bounding-box",nq=/([A-Za-z%]+)$/;class oq{get positions(){return this._preferredPositions}constructor(n,e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new te,this._resizeSubscription=T.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(lE),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,o=this._containerRect,r=[];let a;for(let s of this._preferredPositions){let c=this._getOriginPoint(n,o,s),h=this._getOverlayPoint(c,e,s),f=this._getOverlayFit(h,e,i,s);if(f.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(f,h,i)?r.push({position:s,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!a||a.overlayFit.visibleAreac&&(c=f,s=h)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Os(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(lE),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let o,r;if("center"==i.originX)o=n.left+n.width/2;else{const a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;o="start"==i.originX?a:s}return e.left<0&&(o-=e.left),r="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(n,e,i){let o,r;return o="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+o,y:n.y+r}}_getOverlayFit(n,e,i,o){const r=uE(e);let{x:a,y:s}=n,c=this._getOffset(o,"x"),h=this._getOffset(o,"y");c&&(a+=c),h&&(s+=h);let y=0-s,x=s+r.height-i.height,I=this._subtractOverflows(r.width,0-a,a+r.width-i.width),O=this._subtractOverflows(r.height,y,x),W=I*O;return{visibleArea:W,isCompletelyWithinViewport:r.width*r.height===W,fitsInViewportVertically:O===r.height,fitsInViewportHorizontally:I==r.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const o=i.bottom-e.y,r=i.right-e.x,a=dE(this._overlayRef.getConfig().minHeight),s=dE(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=a&&a<=o)&&(n.fitsInViewportHorizontally||null!=s&&s<=r)}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const o=uE(e),r=this._viewportRect,a=Math.max(n.x+o.width-r.width,0),s=Math.max(n.y+o.height-r.height,0),c=Math.max(r.top-i.top-n.y,0),h=Math.max(r.left-i.left-n.x,0);let f=0,b=0;return f=o.width<=r.width?h||-a:n.xI&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-I/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)y=i.width-n.x+this._viewportMargin,f=n.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)b=n.x,f=i.right-n.x;else{const x=Math.min(i.right-n.x+i.left,n.x),I=this._lastBoundingBoxSize.width;f=2*x,b=n.x-x,f>I&&!this._isInitialRender&&!this._growAfterOpen&&(b=n.x-I/2)}return{top:a,left:b,bottom:s,right:y,width:f,height:r}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.height=Ji(i.height),o.top=Ji(i.top),o.bottom=Ji(i.bottom),o.width=Ji(i.width),o.left=Ji(i.left),o.right=Ji(i.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(o.maxHeight=Ji(r)),a&&(o.maxWidth=Ji(a))}this._lastBoundingBoxSize=i,Os(this._boundingBox.style,o)}_resetBoundingBoxStyles(){Os(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Os(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){const f=this._viewportRuler.getViewportScrollPosition();Os(i,this._getExactOverlayY(e,n,f)),Os(i,this._getExactOverlayX(e,n,f))}else i.position="static";let s="",c=this._getOffset(e,"x"),h=this._getOffset(e,"y");c&&(s+=`translateX(${c}px) `),h&&(s+=`translateY(${h}px)`),i.transform=s.trim(),a.maxHeight&&(o?i.maxHeight=Ji(a.maxHeight):r&&(i.maxHeight="")),a.maxWidth&&(o?i.maxWidth=Ji(a.maxWidth):r&&(i.maxWidth="")),Os(this._pane.style,i)}_getExactOverlayY(n,e,i){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===n.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=Ji(r.y),o}_getExactOverlayX(n,e,i){let a,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),a=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===a?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=Ji(r.x),o}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:sE(n,i),isOriginOutsideView:Ey(n,i),isOverlayClipped:sE(e,i),isOverlayOutsideView:Ey(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,o)=>i-Math.max(o,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&jm(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Le)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function Os(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function dE(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(nq);return e&&"px"!==e?null:parseFloat(n)}return t||null}function uE(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const hE="cdk-global-overlay-wrapper";class rq{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(hE),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=i,c=!("100%"!==o&&"100vw"!==o||a&&"100%"!==a&&"100vw"!==a),h=!("100%"!==r&&"100vh"!==r||s&&"100%"!==s&&"100vh"!==s),f=this._xPosition,b=this._xOffset,y="rtl"===this._overlayRef.getConfig().direction;let x="",I="",O="";c?O="flex-start":"center"===f?(O="center",y?I=b:x=b):y?"left"===f||"end"===f?(O="flex-end",x=b):("right"===f||"start"===f)&&(O="flex-start",I=b):"left"===f||"start"===f?(O="flex-start",x=b):("right"===f||"end"===f)&&(O="flex-end",I=b),n.position=this._cssPosition,n.marginLeft=c?"0":x,n.marginTop=h?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=c?"0":I,e.justifyContent=O,e.alignItems=h?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(hE),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let aq=(()=>{class t{constructor(e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r}global(){return new rq}flexibleConnectedTo(e){return new oq(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ea),Y(ct),Y(ti),Y(Dp))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sq=0,On=(()=>{class t{constructor(e,i,o,r,a,s,c,h,f,b,y,x){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=s,this._ngZone=c,this._document=h,this._directionality=f,this._location=b,this._outsideClickDispatcher=y,this._animationsModuleType=x}create(e){const i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),a=new il(e);return a.direction=a.direction||this._directionality.value,new cu(r,i,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+sq++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(ka)),new KG(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(JG),Y(Dp),Y(ls),Y(aq),Y(tq),Y(Oi),Y(We),Y(ct),Y(en),Y(Sd),Y(iq),Y(oi,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const cq=[{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"}],mE=new se("cdk-connected-overlay-scroll-strategy");let Oy=(()=>{class t{constructor(e){this.elementRef=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le))};static#t=this.\u0275dir=X({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return t})(),pE=(()=>{class t{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=Ue(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Ue(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Ue(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Ue(e)}get push(){return this._push}set push(e){this._push=Ue(e)}constructor(e,i,o,r,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=T.EMPTY,this._attachSubscription=T.EMPTY,this._detachSubscription=T.EMPTY,this._positionSubscription=T.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Fe,this.positionChange=new Fe,this.attach=new Fe,this.detach=new Fe,this.overlayKeydown=new Fe,this.overlayOutsideClick=new Fe,this._templatePortal=new ta(i,o),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}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=cq);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(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!fn(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new il({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).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 Oy?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 qG(t,n=!1){return at((e,i)=>{let o=0;e.subscribe(dt(i,r=>{const a=t(r,o++);(a||n)&&i.next(r),!a&&i.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()}static#e=this.\u0275fac=function(i){return new(i||t)(_(On),_(ci),_(hi),_(mE),_(en,8))};static#t=this.\u0275dir=X({type:t,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"],standalone:!0,features:[si]})}return t})();const dq={provide:mE,deps:[On],useFactory:function lq(t){return()=>t.scrollStrategies.reposition()}};let As=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({providers:[On,dq],imports:[zd,Es,Ty,Ty]})}return t})();function nl(t){return new Ye(n=>{Mn(t()).subscribe(n)})}const uq=["trigger"],hq=["panel"];function mq(t,n){if(1&t&&(d(0,"span",10),u(1),l()),2&t){const e=C();m(1),Ie(e.placeholder)}}function pq(t,n){if(1&t&&(d(0,"span",14),u(1),l()),2&t){const e=C(2);m(1),Ie(e.triggerValue)}}function fq(t,n){1&t&&Ke(0,0,["*ngSwitchCase","true"])}function gq(t,n){1&t&&(d(0,"span",11),g(1,pq,2,1,"span",12),g(2,fq,1,0,"ng-content",13),l()),2&t&&(p("ngSwitch",!!C().customTrigger),m(2),p("ngSwitchCase",!0))}function _q(t,n){if(1&t){const e=ge();Zt(),Xo(),d(0,"div",15,16),P("@transformPanel.done",function(o){return ne(e),oe(C()._panelDoneAnimatingStream.next(o.toState))})("keydown",function(o){return ne(e),oe(C()._handleKeydown(o))}),Ke(2,1),l()}if(2&t){const e=C();TS("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),p("ngClass",e.panelClass)("@transformPanel","showing"),Qe("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const bq=[[["mat-select-trigger"]],"*"],vq=["mat-select-trigger","*"],yq={transformPanelWrap:xo("transformPanelWrap",[zi("* => void",Jb("@transformPanel",[Xb()],{optional:!0}))]),transformPanel:xo("transformPanel",[Xi("void",$t({opacity:0,transform:"scale(1, 0.8)"})),zi("void => showing",ji("120ms cubic-bezier(0, 0, 0.2, 1)",$t({opacity:1,transform:"scale(1, 1)"}))),zi("* => void",ji("100ms linear",$t({opacity:0})))])};let fE=0;const gE=new se("mat-select-scroll-strategy"),xq=new se("MAT_SELECT_CONFIG"),wq={provide:gE,deps:[On],useFactory:function Cq(t){return()=>t.scrollStrategies.reposition()}},Sq=new se("MatSelectTrigger");class Dq{constructor(n,e){this.source=n,this.value=e}}const kq=Ra(Fa(Sr(Hv(class{constructor(t,n,e,i,o){this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new te}}))));let Mq=(()=>{class t extends kq{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(J.required)??!1}set required(e){this._required=Ue(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Ue(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Ue(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=mi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,i,o,r,a,s,c,h,f,b,y,x,I,O){super(a,r,c,h,b),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=o,this._dir=s,this._parentFormField=f,this._liveAnnouncer=I,this._defaultOptions=O,this._panelOpen=!1,this._compareWith=(W,de)=>W===de,this._uid="mat-select-"+fE++,this._triggerAriaLabelledBy=null,this._destroy=new te,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+fE++,this._panelDoneAnimatingStream=new te,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=nl(()=>{const W=this.options;return W?W.changes.pipe(Wi(W),Yi(()=>yi(...W.map(de=>de.onSelectionChange)))):this._ngZone.onStable.pipe(Pt(1),Yi(()=>this.optionSelectionChanges))}),this.openedChange=new Fe,this._openedStream=this.openedChange.pipe(Mt(W=>W),ze(()=>{})),this._closedStream=this.openedChange.pipe(Mt(W=>!W),ze(()=>{})),this.selectionChange=new Fe,this.valueChange=new Fe,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=O?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=O.typeaheadDebounceInterval),this._scrollStrategyFactory=x,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(y)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Kd(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe($s(),nt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(nt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Wi(null),nt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;const i=`${this.id}-panel`;this._trackedModal&&Gc(this._trackedModal,"aria-owns",i),Hm(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(Gc(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(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(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.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 i=e.keyCode,o=40===i||38===i||37===i||39===i,r=13===i||32===i,a=this._keyManager;if(!a.isTyping()&&r&&!fn(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;a.onKeydown(e);const c=this.selected;c&&s!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,o=e.keyCode,r=40===o||38===o,a=i.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(a||13!==o&&32!==o||!i.activeItem||fn(e))if(!a&&this._multiple&&65===o&&e.ctrlKey){e.preventDefault();const s=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(s?c.select():c.deselect())})}else{const s=i.activeItemIndex;i.onKeydown(e),this._multiple&&r&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Pt(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.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return null!=o.value&&this._compareWith(o.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_skipPredicate(e){return e.disabled}_initKeyManager(){this._keyManager=new PT(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.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=yi(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(nt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),yi(...this.options.map(i=>i._stateChanges)).pipe(nt(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){const o=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,o)=>this.sortComparator?this.sortComparator(i,o,e):e.indexOf(i)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(o=>o.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}static#e=this.\u0275fac=function(i){return new(i||t)(_(ea),_(Nt),_(We),_(Km),_(Le),_(en,8),_(Ha,8),_(fi,8),_(nu,8),_(ar,10),zn("tabindex"),_(gE),_(Vv),_(xq,8))};static#t=this.\u0275dir=X({type:t,viewQuery:function(i,o){if(1&i&&(bt(uq,5),bt(hq,5),bt(pE,5)),2&i){let r;Ee(r=Oe())&&(o.trigger=r.first),Ee(r=Oe())&&(o.panel=r.first),Ee(r=Oe())&&(o._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],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:[_e,si]})}return t})(),An=(()=>{class t extends Mq{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=e=>!this.panelOpen&&e.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(nt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const i=this.options.toArray()[e];if(i){const o=this.panel.nativeElement,r=YT(e,this.options,this.optionGroups),a=i._getHostElement();o.scrollTop=0===e&&1===r?0:QT(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Dq(this,e)}_getOverlayWidth(e){return"auto"===this.panelWidth?(e instanceof Oy?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=Ue(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-select"]],contentQueries:function(i,o,r){if(1&i&&(ft(r,Sq,5),ft(r,un,5),ft(r,Ym,5)),2&i){let a;Ee(a=Oe())&&(o.customTrigger=a.first),Ee(a=Oe())&&(o.options=a),Ee(a=Oe())&&(o.optionGroups=a)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,o){1&i&&P("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),2&i&&(Qe("id",o.id)("tabindex",o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),Xe("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[Ze([{provide:yp,useExisting:t},{provide:Zm,useExisting:t}]),_e],ngContentSelectors:vq,decls:11,vars:10,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(i,o){if(1&i&&(Vt(bq),d(0,"div",0,1),P("click",function(){return o.toggle()}),d(3,"div",2),g(4,mq,2,1,"span",3),g(5,gq,3,2,"span",4),l(),d(6,"div",5)(7,"div",6),Zt(),d(8,"svg",7),S(9,"path",8),l()()()(),g(10,_q,3,9,"ng-template",9),P("backdropClick",function(){return o.close()})("attach",function(){return o._onAttached()})("detach",function(){return o.close()})),2&i){const r=At(1);m(3),p("ngSwitch",o.empty),Qe("id",o._valueId),m(1),p("ngSwitchCase",!0),m(1),p("ngSwitchCase",!1),m(5),p("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[nr,zc,pm,rM,pE,Oy],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[yq.transformPanel]},changeDetection:0})}return t})(),Ay=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({providers:[wq],imports:[xn,As,Qm,wt,Ua,ou,Qm,wt]})}return t})();function kp(t){return ze(()=>t)}function _E(t,n){return n?e=>Vd(n.pipe(Pt(1),function Tq(){return at((t,n)=>{t.subscribe(dt(n,D))})}()),e.pipe(_E(t))):an((e,i)=>Mn(t(e,i)).pipe(Pt(1),kp(e)))}function Py(t,n=Bd){const e=Cp(t,n);return _E(()=>e)}const Iq=["mat-menu-item",""];function Eq(t,n){1&t&&(Zt(),d(0,"svg",3),S(1,"polygon",4),l())}const Oq=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Aq=["mat-icon, [matMenuItemIcon]","*"];function Pq(t,n){if(1&t){const e=ge();d(0,"div",0),P("keydown",function(o){return ne(e),oe(C()._handleKeydown(o))})("click",function(){return ne(e),oe(C().closed.emit("click"))})("@transformMenu.start",function(o){return ne(e),oe(C()._onAnimationStart(o))})("@transformMenu.done",function(o){return ne(e),oe(C()._onAnimationDone(o))}),d(1,"div",1),Ke(2),l()()}if(2&t){const e=C();p("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Qe("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Rq=["*"],Ry=new se("MAT_MENU_PANEL"),Fq=Ra(Sr(class{}));let na=(()=>{class t extends Fq{constructor(e,i,o,r,a){super(),this._elementRef=e,this._document=i,this._focusMonitor=o,this._parentMenu=r,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new te,this._focused=new te,this._highlighted=!1,this._triggersSubmenu=!1,r?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o enter",ji("120ms cubic-bezier(0, 0, 0.2, 1)",$t({opacity:1,transform:"scale(1)"}))),zi("* => void",ji("100ms 25ms linear",$t({opacity:0})))]),fadeInItems:xo("fadeInItems",[Xi("showing",$t({opacity:1})),zi("void => *",[$t({opacity:0}),ji("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Lq=0;const bE=new se("mat-menu-default-options",{providedIn:"root",factory:function Bq(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let lu=(()=>{class t{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ue(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ue(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,i,o,r){this._elementRef=e,this._ngZone=i,this._changeDetectorRef=r,this._directDescendantItems=new $r,this._classList={},this._panelAnimationState="void",this._animationDone=new te,this.closed=new Fe,this.close=this.closed,this.panelId="mat-menu-panel-"+Lq++,this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this._overlapTrigger=o.overlapTrigger,this._hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Gm(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Wi(this._directDescendantItems),Yi(e=>yi(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const i=this._keyManager;if("enter"===this._panelAnimationState&&i.activeItem?._hasFocus()){const o=e.toArray(),r=Math.max(0,Math.min(o.length-1,i.activeItemIndex||0));o[r]&&!o[r].disabled?i.setActiveItem(r):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(Wi(this._directDescendantItems),Yi(i=>yi(...i.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,o=this._keyManager;switch(i){case 27:fn(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(Pt(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),o=`${this._elevationPrefix}${i}`,r=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(e=this.xPosition,i=this.yPosition){const o=this._classList;o["mat-menu-before"]="before"===e,o["mat-menu-after"]="after"===e,o["mat-menu-above"]="above"===i,o["mat-menu-below"]="below"===i,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Wi(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(We),_(bE),_(Nt))};static#t=this.\u0275dir=X({type:t,contentQueries:function(i,o,r){if(1&i&&(ft(r,Nq,5),ft(r,na,5),ft(r,na,4)),2&i){let a;Ee(a=Oe())&&(o.lazyContent=a.first),Ee(a=Oe())&&(o._allItems=a),Ee(a=Oe())&&(o.items=a)}},viewQuery:function(i,o){if(1&i&&bt(ci,5),2&i){let r;Ee(r=Oe())&&(o.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}})}return t})(),ol=(()=>{class t extends lu{constructor(e,i,o,r){super(e,i,o,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(We),_(bE),_(Nt))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:3,hostBindings:function(i,o){2&i&&Qe("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Ze([{provide:Ry,useExisting:t}]),_e],ngContentSelectors:Rq,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content"]],template:function(i,o){1&i&&(Vt(),g(0,Pq,3,6,"ng-template"))},dependencies:[nr],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{--mat-menu-container-shape:4px;min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Mp.transformMenu,Mp.fadeInItems]},changeDetection:0})}return t})();const vE=new se("mat-menu-scroll-strategy"),jq={provide:vE,deps:[On],useFactory:function Vq(t){return()=>t.scrollStrategies.reposition()}},yE=Oa({passive:!0});let zq=(()=>{class t{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,i,o,r,a,s,c,h,f){this._overlay=e,this._element=i,this._viewContainerRef=o,this._menuItemInstance=s,this._dir=c,this._focusMonitor=h,this._ngZone=f,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=T.EMPTY,this._hoverSubscription=T.EMPTY,this._menuCloseSubscription=T.EMPTY,this._changeDetectorRef=Ne(Nt),this._handleTouchStart=b=>{Bv(b)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Fe,this.onMenuOpen=this.menuOpened,this.menuClosed=new Fe,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=a instanceof lu?a:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,yE)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,yE),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),o=i.getConfig(),r=o.positionStrategy;this._setPosition(e,r),o.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof lu&&(e._startAnimation(),e._directDescendantItems.changes.pipe(nt(e.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof lu?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(Mt(o=>"void"===o.toState),Pt(1),nt(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,o=e.parentMenu;for(;o;)i++,o=o.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new il({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(o=>{const r="start"===o.connectionPair.overlayX?"after":"before",a="top"===o.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(r,a)):e.setPositionClasses(r,a)})}_setPosition(e,i){let[o,r]="before"===e.xPosition?["end","start"]:["start","end"],[a,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[c,h]=[a,s],[f,b]=[o,r],y=0;if(this.triggersSubmenu()){if(b=o="before"===e.xPosition?"start":"end",r=f="end"===o?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const x=this._parentMaterialMenu.items.first;this._parentInnerPadding=x?x._getHostElement().offsetTop:0}y="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c="top"===a?"bottom":"top",h="top"===s?"bottom":"top");i.withPositions([{originX:o,originY:c,overlayX:f,overlayY:a,offsetY:y},{originX:r,originY:c,overlayX:b,overlayY:a,offsetY:y},{originX:o,originY:h,overlayX:f,overlayY:s,offsetY:-y},{originX:r,originY:h,overlayX:b,overlayY:s,offsetY:-y}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return yi(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:qe(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Mt(a=>a!==this._menuItemInstance),Mt(()=>this._menuOpen)):qe(),i)}_handleMousedown(e){Lv(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Mt(e=>e===this._menuItemInstance&&!e.disabled),Py(0,My)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof lu&&this.menu._isAnimating?this.menu._animationDone.pipe(Pt(1),Py(0,My),nt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new ta(e.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(i){return new(i||t)(_(On),_(Le),_(hi),_(vE),_(Ry,8),_(na,10),_(en,8),_(Do),_(We))};static#t=this.\u0275dir=X({type:t,hostVars:3,hostBindings:function(i,o){1&i&&P("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),2&i&&Qe("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}})}return t})(),rl=(()=>{class t extends zq{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[_e]})}return t})(),CE=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({providers:[jq],imports:[xn,La,wt,As,Ua,wt]})}return t})();function Tp(t){return!!t&&(t instanceof Ye||z(t.lift)&&z(t.subscribe))}const Hq=[[["caption"]],[["colgroup"],["col"]]],Uq=["caption","colgroup, col"];function Fy(t){return class extends t{get sticky(){return this._sticky}set sticky(n){const e=this._sticky;this._sticky=Ue(n),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const n=this._hasStickyChanged;return this._hasStickyChanged=!1,n}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...n){super(...n),this._sticky=!1,this._hasStickyChanged=!1}}}const al=new se("CDK_TABLE");let sl=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(ci))};static#t=this.\u0275dir=X({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),cl=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(ci))};static#t=this.\u0275dir=X({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),Ip=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(ci))};static#t=this.\u0275dir=X({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})();class Wq{}const Kq=Fy(Wq);let oa=(()=>{class t extends Kq{get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=Ue(e),this._hasStickyChanged=i!==this._stickyEnd}constructor(e){super(),this._table=e,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static#e=this.\u0275fac=function(i){return new(i||t)(_(al,8))};static#t=this.\u0275dir=X({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,o,r){if(1&i&&(ft(r,sl,5),ft(r,cl,5),ft(r,Ip,5)),2&i){let a;Ee(a=Oe())&&(o.cell=a.first),Ee(a=Oe())&&(o.headerCell=a.first),Ee(a=Oe())&&(o.footerCell=a.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Ze([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),_e]})}return t})();class Ny{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}}let Ly=(()=>{class t extends Ny{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(_(oa),_(Le))};static#t=this.\u0275dir=X({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[_e]})}return t})(),By=(()=>{class t extends Ny{constructor(e,i){if(super(e,i),1===e._table?._elementRef.nativeElement.nodeType){const o=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===o||"treegrid"===o?"gridcell":"cell")}}static#e=this.\u0275fac=function(i){return new(i||t)(_(oa),_(Le))};static#t=this.\u0275dir=X({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[_e]})}return t})();class wE{constructor(){this.tasks=[],this.endTasks=[]}}const Vy=new se("_COALESCED_STYLE_SCHEDULER");let SE=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new te}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new wE,this._getScheduleObservable().pipe(nt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new wE;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Hi(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Pt(1))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(We))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})(),jy=(()=>{class t{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof du?e.headerCell.template:this instanceof uu?e.footerCell.template:e.cell.template}static#e=this.\u0275fac=function(i){return new(i||t)(_(ci),_(Bo))};static#t=this.\u0275dir=X({type:t,features:[si]})}return t})();class Zq extends jy{}const Yq=Fy(Zq);let du=(()=>{class t extends Yq{constructor(e,i,o){super(e,i),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(ci),_(Bo),_(al,8))};static#t=this.\u0275dir=X({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[_e,si]})}return t})();class Qq extends jy{}const Xq=Fy(Qq);let uu=(()=>{class t extends Xq{constructor(e,i,o){super(e,i),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(ci),_(Bo),_(al,8))};static#t=this.\u0275dir=X({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[_e,si]})}return t})(),Ep=(()=>{class t extends jy{constructor(e,i,o){super(e,i),this._table=o}static#e=this.\u0275fac=function(i){return new(i||t)(_(ci),_(Bo),_(al,8))};static#t=this.\u0275dir=X({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[_e]})}return t})(),ra=(()=>{class t{static#e=this.mostRecentCellOutlet=null;constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static#t=this.\u0275fac=function(i){return new(i||t)(_(hi))};static#i=this.\u0275dir=X({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),zy=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Me({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){1&i&&Hn(0,0)},dependencies:[ra],encapsulation:2})}return t})(),Uy=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Me({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){1&i&&Hn(0,0)},dependencies:[ra],encapsulation:2})}return t})(),Op=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(i){return new(i||t)(_(ci))};static#t=this.\u0275dir=X({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})();const DE=["top","bottom","left","right"];class Jq{constructor(n,e,i,o,r=!0,a=!0,s){this._isNativeHtmlTable=n,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=r,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){const i=[];for(const o of n)if(o.nodeType===o.ELEMENT_NODE){i.push(o);for(let r=0;r{for(const o of i)this._removeStickyStyle(o,e)})}updateStickyColumns(n,e,i,o=!0){if(!n.length||!this._isBrowser||!e.some(y=>y)&&!i.some(y=>y))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const r=n[0],a=r.children.length,s=this._getCellWidths(r,o),c=this._getStickyStartColumnPositions(s,e),h=this._getStickyEndColumnPositions(s,i),f=e.lastIndexOf(!0),b=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const y="rtl"===this.direction,x=y?"right":"left",I=y?"left":"right";for(const O of n)for(let W=0;We[W]?O:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===b?[]:s.slice(b).map((O,W)=>i[W+b]?O:null).reverse()}))})}stickRows(n,e,i){if(!this._isBrowser)return;const o="bottom"===i?n.slice().reverse():n,r="bottom"===i?e.slice().reverse():e,a=[],s=[],c=[];for(let f=0,b=0;f{for(let f=0;f{e.some(o=>!o)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(n,e){for(const o of e)n.style[o]="",n.classList.remove(this._borderCellCss[o]);DE.some(o=>-1===e.indexOf(o)&&n.style[o])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,o){n.classList.add(this._stickCellCss),o&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const o of DE)n.style[o]&&(i+=e[o]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],o=n.children;for(let r=0;r0;r--)e[r]&&(i[r]=o,o+=n[r]);return i}}const $y=new se("CDK_SPL");let Ap=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(hi),_(Le))};static#t=this.\u0275dir=X({type:t,selectors:[["","rowOutlet",""]]})}return t})(),Pp=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(hi),_(Le))};static#t=this.\u0275dir=X({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),Rp=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(hi),_(Le))};static#t=this.\u0275dir=X({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),Fp=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(hi),_(Le))};static#t=this.\u0275dir=X({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),Np=(()=>{class t{get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Ue(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Ue(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,i,o,r,a,s,c,h,f,b,y,x){this._differs=e,this._changeDetectorRef=i,this._elementRef=o,this._dir=a,this._platform=c,this._viewRepeater=h,this._coalescedStyleScheduler=f,this._viewportRuler=b,this._stickyPositioningListener=y,this._ngZone=x,this._onDestroy=new te,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new Fe,this.viewChange=new pt({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(nt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),cp(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(o,r,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{1===o.operation&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{i.get(o.currentIndex).context.$implicit=o.item.data}),this._updateNoDataRow(),this._ngZone&&We.isInAngularZone()?this._ngZone.onStable.pipe(Pt(1),nt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),o=this._elementRef.nativeElement.querySelector("thead");o&&(o.style.display=e.length?"":"none");const r=this._headerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,r,"top"),this._headerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),o=this._elementRef.nativeElement.querySelector("tfoot");o&&(o.style.display=e.length?"":"none");const r=this._footerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{const a=[];for(let s=0;s{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{const s=o&&o.has(a)?o.get(a):[];if(s.length){const c=s.shift();return c.dataIndex=i,c}return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Lp(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Lp(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Lp(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Lp(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(a,s)=>a||!!s.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();const r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),i||o||r}_switchDataSource(e){this._data=[],cp(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;cp(this.dataSource)?e=this.dataSource.connect(this):Tp(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=qe(this.dataSource)),this._renderChangeSubscription=e.pipe(nt(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const o=Array.from(i.columns||[]).map(s=>this._columnDefsByName.get(s)),r=o.map(s=>s.sticky),a=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let o=0;o!r.when||r.when(i,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;r&&o.push(r)}return o}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,o,r={}){const a=e.viewContainer.createEmbeddedView(i.template,r,o);return this._renderCellTemplateForItem(i,r),a}_renderCellTemplateForItem(e,i){for(let o of this._getCellTemplates(e))ra.mostRecentCellOutlet&&ra.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,o=e.length;i{const o=this._columnDefsByName.get(i);return e.extractCellTemplate(o)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const o of i){const r=this._document.createElement(o.tag);r.setAttribute("role","rowgroup");for(const a of o.outlets)r.appendChild(a.elementRef.nativeElement);e.appendChild(r)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,o)=>i||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Jq(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:qe()).pipe(nt(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const o=this._noDataRowOutlet.viewContainer;if(i){const r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];1===r.rootNodes.length&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Bo),_(Nt),_(Le),zn("role"),_(en,8),_(ct),_(ti),_(Zd),_(Vy),_(ea),_($y,12),_(We,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,o,r){if(1&i&&(ft(r,Op,5),ft(r,oa,5),ft(r,Ep,5),ft(r,du,5),ft(r,uu,5)),2&i){let a;Ee(a=Oe())&&(o._noDataRow=a.first),Ee(a=Oe())&&(o._contentColumnDefs=a),Ee(a=Oe())&&(o._contentRowDefs=a),Ee(a=Oe())&&(o._contentHeaderRowDefs=a),Ee(a=Oe())&&(o._contentFooterRowDefs=a)}},viewQuery:function(i,o){if(1&i&&(bt(Ap,7),bt(Pp,7),bt(Rp,7),bt(Fp,7)),2&i){let r;Ee(r=Oe())&&(o._rowOutlet=r.first),Ee(r=Oe())&&(o._headerRowOutlet=r.first),Ee(r=Oe())&&(o._footerRowOutlet=r.first),Ee(r=Oe())&&(o._noDataRowOutlet=r.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(i,o){2&i&&Xe("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Ze([{provide:al,useExisting:t},{provide:Zd,useClass:V2},{provide:Vy,useClass:SE},{provide:$y,useValue:null}])],ngContentSelectors:Uq,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){1&i&&(Vt(Hq),Ke(0),Ke(1,1),Hn(2,0)(3,1)(4,2)(5,3))},dependencies:[Ap,Pp,Rp,Fp],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return t})();function Lp(t,n){return t.concat(Array.from(n))}let tW=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[Ty]})}return t})();const iW=[[["caption"]],[["colgroup"],["col"]]],nW=["caption","colgroup, col"];let $a=(()=>{class t extends Np{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,o){2&i&&Xe("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[Ze([{provide:Np,useExisting:t},{provide:al,useExisting:t},{provide:Vy,useClass:SE},{provide:Zd,useClass:V2},{provide:$y,useValue:null}]),_e],ngContentSelectors:nW,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){1&i&&(Vt(iW),Ke(0),Ke(1,1),Hn(2,0)(3,1)(4,2)(5,3))},dependencies:[Ap,Pp,Rp,Fp],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{--mat-table-row-item-outline-width:1px;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return t})(),aa=(()=>{class t extends sl{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["","matCellDef",""]],features:[Ze([{provide:sl,useExisting:t}]),_e]})}return t})(),sa=(()=>{class t extends cl{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ze([{provide:cl,useExisting:t}]),_e]})}return t})(),ca=(()=>{class t extends oa{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Ze([{provide:oa,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),_e]})}return t})(),la=(()=>{class t extends Ly{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[_e]})}return t})(),da=(()=>{class t extends By{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[_e]})}return t})(),Ga=(()=>{class t extends du{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Ze([{provide:du,useExisting:t}]),_e]})}return t})(),qa=(()=>{class t extends Ep{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Ze([{provide:Ep,useExisting:t}]),_e]})}return t})(),Wa=(()=>{class t extends zy{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ze([{provide:zy,useExisting:t}]),_e],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){1&i&&Hn(0,0)},dependencies:[ra],encapsulation:2})}return t})(),Ka=(()=>{class t extends Uy{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ze([{provide:Uy,useExisting:t}]),_e],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){1&i&&Hn(0,0)},dependencies:[ra],encapsulation:2})}return t})(),ME=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[wt,tW,wt]})}return t})();class hW extends B2{get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}constructor(n=[]){super(),this._renderData=new pt([]),this._filter=new pt(""),this._internalPageChanges=new te,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const o=e[i];if(CT(o)){const r=Number(o);return r<9007199254740991?r:o}return o},this.sortData=(e,i)=>{const o=i.active,r=i.direction;return o&&""!=r?e.sort((a,s)=>{let c=this.sortingDataAccessor(a,o),h=this.sortingDataAccessor(s,o);const f=typeof c,b=typeof h;f!==b&&("number"===f&&(c+=""),"number"===b&&(h+=""));let y=0;return null!=c&&null!=h?c>h?y=1:c{const o=Object.keys(e).reduce((a,s)=>a+e[s]+"\u25ec","").toLowerCase(),r=i.trim().toLowerCase();return-1!=o.indexOf(r)},this._data=new pt(n),this._updateChangeSubscription()}_updateChangeSubscription(){const n=this._sort?yi(this._sort.sortChange,this._sort.initialized):qe(null),e=this._paginator?yi(this._paginator.page,this._internalPageChanges,this._paginator.initialized):qe(null),o=Cs([this._data,this._filter]).pipe(ze(([s])=>this._filterData(s))),r=Cs([o,n]).pipe(ze(([s])=>this._orderData(s))),a=Cs([r,e]).pipe(ze(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(n){return this.filteredData=null==this.filter||""===this.filter?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;const e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,i);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class TE extends hW{}const IE=new se("CdkAccordion");let mW=0,pW=(()=>{class t{get expanded(){return this._expanded}set expanded(e){e=Ue(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Ue(e)}constructor(e,i,o){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=o,this._openCloseAllSubscription=T.EMPTY,this.closed=new Fe,this.opened=new Fe,this.destroyed=new Fe,this.expandedChange=new Fe,this.id="cdk-accordion-child-"+mW++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((r,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==r&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static#e=this.\u0275fac=function(i){return new(i||t)(_(IE,12),_(Nt),_(iy))};static#t=this.\u0275dir=X({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ze([{provide:IE,useValue:void 0}])]})}return t})(),fW=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({})}return t})();const gW=["body"];function _W(t,n){}const bW=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],vW=["mat-expansion-panel-header","*","mat-action-row"];function yW(t,n){1&t&&S(0,"span",2),2&t&&p("@indicatorRotate",C()._getExpandedState())}const CW=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],xW=["mat-panel-title","mat-panel-description","*"],EE=new se("MAT_ACCORDION"),OE="225ms cubic-bezier(0.4,0.0,0.2,1)",AE={indicatorRotate:xo("indicatorRotate",[Xi("collapsed, void",$t({transform:"rotate(0deg)"})),Xi("expanded",$t({transform:"rotate(180deg)"})),zi("expanded <=> collapsed, void => collapsed",ji(OE))]),bodyExpansion:xo("bodyExpansion",[Xi("collapsed, void",$t({height:"0px",visibility:"hidden"})),Xi("expanded",$t({height:"*",visibility:""})),zi("expanded <=> collapsed, void => collapsed",ji(OE))])},PE=new se("MAT_EXPANSION_PANEL");let wW=(()=>{class t{constructor(e,i){this._template=e,this._expansionPanel=i}static#e=this.\u0275fac=function(i){return new(i||t)(_(ci),_(PE,8))};static#t=this.\u0275dir=X({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),SW=0;const RE=new se("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Gy=(()=>{class t extends pW{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Ue(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}constructor(e,i,o,r,a,s,c){super(e,i,o),this._viewContainerRef=r,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new Fe,this.afterCollapse=new Fe,this._inputChanges=new te,this._headerId="mat-expansion-panel-header-"+SW++,this._bodyAnimationDone=new te,this.accordion=e,this._document=a,this._bodyAnimationDone.pipe($s((h,f)=>h.fromState===f.fromState&&h.toState===f.toState)).subscribe(h=>{"void"!==h.fromState&&("expanded"===h.toState?this.afterExpand.emit():"collapsed"===h.toState&&this.afterCollapse.emit())}),c&&(this.hideToggle=c.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Wi(null),Mt(()=>this.expanded&&!this._portal),Pt(1)).subscribe(()=>{this._portal=new ta(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}static#e=this.\u0275fac=function(i){return new(i||t)(_(EE,12),_(Nt),_(iy),_(hi),_(ct),_(oi,8),_(RE,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,o,r){if(1&i&&ft(r,wW,5),2&i){let a;Ee(a=Oe())&&(o._lazyContent=a.first)}},viewQuery:function(i,o){if(1&i&&bt(gW,5),2&i){let r;Ee(r=Oe())&&(o._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(i,o){2&i&&Xe("mat-expanded",o.expanded)("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-expansion-panel-spacing",o._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ze([{provide:EE,useValue:void 0},{provide:PE,useExisting:t}]),_e,si],ngContentSelectors:vW,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(i,o){1&i&&(Vt(bW),Ke(0),d(1,"div",0,1),P("@bodyExpansion.done",function(a){return o._bodyAnimationDone.next(a)}),d(3,"div",2),Ke(4,1),g(5,_W,0,0,"ng-template",3),l(),Ke(6,2),l()),2&i&&(m(1),p("@bodyExpansion",o._getExpandedState())("id",o.id),Qe("aria-labelledby",o._headerId),m(4),p("cdkPortalOutlet",o._portal))},dependencies:[ia],styles:['.mat-expansion-panel{--mat-expansion-container-shape:4px;box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[AE.bodyExpansion]},changeDetection:0})}return t})();class DW{}const kW=Fa(DW);let FE=(()=>{class t extends kW{constructor(e,i,o,r,a,s,c){super(),this.panel=e,this._element=i,this._focusMonitor=o,this._changeDetectorRef=r,this._animationMode=s,this._parentChangeSubscription=T.EMPTY;const h=e.accordion?e.accordion._stateChanges.pipe(Mt(f=>!(!f.hideToggle&&!f.togglePosition))):ho;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=yi(e.opened,e.closed,h,e._inputChanges.pipe(Mt(f=>!!(f.hideToggle||f.disabled||f.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Mt(()=>e._containsFocus())).subscribe(()=>o.focusVia(i,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:fn(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Gy,1),_(Le),_(Do),_(Nt),_(RE,8),_(oi,8),zn("tabindex"))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(i,o){1&i&&P("click",function(){return o._toggle()})("keydown",function(a){return o._keydown(a)}),2&i&&(Qe("id",o.panel._headerId)("tabindex",o.tabIndex)("aria-controls",o._getPanelId())("aria-expanded",o._isExpanded())("aria-disabled",o.panel.disabled),dn("height",o._getHeaderHeight()),Xe("mat-expanded",o._isExpanded())("mat-expansion-toggle-indicator-after","after"===o._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===o._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===o._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[_e],ngContentSelectors:xW,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(i,o){1&i&&(Vt(CW),d(0,"span",0),Ke(1),Ke(2,1),Ke(3,2),l(),g(4,yW,1,1,"span",1)),2&i&&(Xe("mat-content-hide-toggle",!o._showToggle()),m(4),p("ngIf",o._showToggle()))},dependencies:[kt],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[AE.indicatorRotate]},changeDetection:0})}return t})(),MW=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})(),NE=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[xn,wt,fW,Es]})}return t})();function TW(t,n){1&t&&(d(0,"span",7),Ke(1,1),l())}function IW(t,n){1&t&&(d(0,"span",8),Ke(1,2),l())}const LE=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],BE=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function AW(t,n){1&t&&(ue(0),S(1,"span",8),he())}function PW(t,n){1&t&&(d(0,"span",9),Ke(1),l())}function RW(t,n){1&t&&(ue(0),Ke(1,1),he())}function FW(t,n){1&t&&Ke(0,2,["*ngIf","contentEditInput; else defaultMatChipEditInput"])}function NW(t,n){1&t&&S(0,"span",12)}function LW(t,n){if(1&t&&(ue(0),g(1,FW,1,0,"ng-content",10),g(2,NW,1,0,"ng-template",null,11,tr),he()),2&t){const e=At(3),i=C();m(1),p("ngIf",i.contentEditInput)("ngIfElse",e)}}function BW(t,n){1&t&&(d(0,"span",13),Ke(1,3),l())}const VW=[[["mat-chip-avatar"],["","matChipAvatar",""]],"*",[["","matChipEditInput",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],jW=["mat-chip-avatar, [matChipAvatar]","*","[matChipEditInput]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],qy=["*"],Bp=new se("mat-chips-default-options"),Wy=new se("MatChipAvatar"),Ky=new se("MatChipTrailingIcon"),Zy=new se("MatChipRemove"),Vp=new se("MatChip");class zW{}const HW=Fa(zW,-1);let ll=(()=>{class t extends HW{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(e){this._disabled=Ue(e)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(e,i){super(),this._elementRef=e,this._parentChip=i,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(Vp))};static#t=this.\u0275dir=X({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(i,o){1&i&&P("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),2&i&&(Qe("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),Xe("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[_e]})}return t})(),zE=(()=>{class t extends ll{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(i,o){2&i&&Qe("aria-hidden",null)},features:[Ze([{provide:Zy,useExisting:t}]),_e]})}return t})(),GW=0;const qW=Fa(Pa(Ra(Sr(class{constructor(t){this._elementRef=t}})),"primary"),-1);let Ps=(()=>{class t extends qW{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}get removable(){return this._removable}set removable(e){this._removable=Ue(e)}get highlighted(){return this._highlighted}set highlighted(e){this._highlighted=Ue(e)}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}constructor(e,i,o,r,a,s,c,h){super(i),this._changeDetectorRef=e,this._ngZone=o,this._focusMonitor=r,this._globalRippleOptions=c,this._onFocus=new te,this._onBlur=new te,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+GW++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new Fe,this.destroyed=new Fe,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=Ne(t2),this._document=a,this._animationsDisabled="NoopAnimations"===s,null!=h&&(this.tabIndex=parseInt(h)??this.defaultTabIndex),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const e=this._elementRef.nativeElement;this._isBasicChip=e.hasAttribute(this.basicChipAttrName)||e.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=yi(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(e){(8===e.keyCode||46===e.keyCode)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{const o=i._elementRef.nativeElement;return o===e||o.contains(e)})}_getActions(){const e=[];return this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=null!==e;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe(Pt(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Nt),_(Le),_(We),_(Do),_(ct),_(oi,8),_(Wc,8),zn("tabindex"))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,o,r){if(1&i&&(ft(r,Wy,5),ft(r,Ky,5),ft(r,Zy,5),ft(r,Wy,5),ft(r,Ky,5),ft(r,Zy,5)),2&i){let a;Ee(a=Oe())&&(o.leadingIcon=a.first),Ee(a=Oe())&&(o.trailingIcon=a.first),Ee(a=Oe())&&(o.removeIcon=a.first),Ee(a=Oe())&&(o._allLeadingIcons=a),Ee(a=Oe())&&(o._allTrailingIcons=a),Ee(a=Oe())&&(o._allRemoveIcons=a)}},viewQuery:function(i,o){if(1&i&&bt(ll,5),2&i){let r;Ee(r=Oe())&&(o.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(i,o){1&i&&P("keydown",function(a){return o._handleKeydown(a)}),2&i&&(Un("id",o.id),Qe("role",o.role)("tabindex",o.role?o.tabIndex:null)("aria-label",o.ariaLabel),Xe("mdc-evolution-chip",!o._isBasicChip)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-basic-chip",o._isBasicChip)("mat-mdc-standard-chip",!o._isBasicChip)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon())("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ze([{provide:Vp,useExisting:t}]),_e],ngContentSelectors:BE,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,o){1&i&&(Vt(LE),S(0,"span",0),d(1,"span",1)(2,"span",2),g(3,TW,2,0,"span",3),d(4,"span",4),Ke(5),S(6,"span",5),l()()(),g(7,IW,2,0,"span",6)),2&i&&(m(2),p("isInteractive",!1),m(1),p("ngIf",o.leadingIcon),m(4),p("ngIf",o._hasTrailingIcon()))},dependencies:[kt,ll],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})(),jp=(()=>{class t{constructor(e,i){this._elementRef=e,this._document=i}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);const i=window.getSelection();i.removeAllRanges(),i.addRange(e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(ct))};static#t=this.\u0275dir=X({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return t})(),Yy=(()=>{class t extends Ps{constructor(e,i,o,r,a,s,c,h){super(e,i,o,r,a,s,c,h),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new Fe,this._isEditing=!1,this.role="row",this._onBlur.pipe(nt(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(e){13!==e.keyCode||this.disabled?this._isEditing?e.stopPropagation():super._handleKeydown(e):this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e)}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_startEditing(e){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(e.target)===this.removeIcon)return;const i=this.value;this._isEditing=this._editStartPending=!0,this._changeDetectorRef.detectChanges(),setTimeout(()=>{this._getEditInput().initialize(i),this._editStartPending=!1})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}static#e=this.\u0275fac=function(i){return new(i||t)(_(Nt),_(Le),_(We),_(Do),_(ct),_(oi,8),_(Wc,8),zn("tabindex"))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(i,o,r){if(1&i&&ft(r,jp,5),2&i){let a;Ee(a=Oe())&&(o.contentEditInput=a.first)}},viewQuery:function(i,o){if(1&i&&bt(jp,5),2&i){let r;Ee(r=Oe())&&(o.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(i,o){1&i&&P("focus",function(a){return o._handleFocus(a)})("dblclick",function(a){return o._handleDoubleclick(a)}),2&i&&(Un("id",o.id),Qe("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),Xe("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-chip-editing",o._isEditing)("mat-mdc-chip-editable",o.editable)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[Ze([{provide:Ps,useExisting:t},{provide:Vp,useExisting:t}]),_e],ngContentSelectors:jW,decls:10,vars:12,consts:[[4,"ngIf"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label",3,"ngSwitch"],[4,"ngSwitchCase"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[4,"ngIf","ngIfElse"],["defaultMatChipEditInput",""],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,o){1&i&&(Vt(VW),g(0,AW,2,0,"ng-container",0),d(1,"span",1),g(2,PW,2,0,"span",2),d(3,"span",3),g(4,RW,2,0,"ng-container",4),g(5,LW,4,2,"ng-container",4),S(6,"span",5),l()(),g(7,BW,2,0,"span",6),d(8,"span",7),u(9),l()),2&i&&(p("ngIf",!o._isEditing),m(1),p("tabIndex",o.tabIndex)("disabled",o.disabled),Qe("aria-label",o.ariaLabel)("aria-describedby",o._ariaDescriptionId),m(1),p("ngIf",o.leadingIcon),m(1),p("ngSwitch",o._isEditing),m(1),p("ngSwitchCase",!1),m(1),p("ngSwitchCase",!0),m(2),p("ngIf",o._hasTrailingIcon()),m(1),p("id",o._ariaDescriptionId),m(1),Ie(o.ariaDescription))},dependencies:[kt,zc,pm,ll,jp],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})();class WW{constructor(n){}}const KW=Fa(WW);let Qy=(()=>{class t extends KW{get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get disabled(){return this._disabled}set disabled(e){this._disabled=Ue(e),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(e){this._explicitRole=e}get focused(){return this._hasFocusedChip()}constructor(e,i,o){super(e),this._elementRef=e,this._changeDetectorRef=i,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new te,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new $r}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(e=>{e.disabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis.tabIndex=e)}}_getChipStream(e){return this._chips.changes.pipe(Wi(null),Yi(()=>yi(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Wi(this._chips)).subscribe(e=>{const i=[];e.forEach(o=>o._getActions().forEach(r=>i.push(r))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new Gm(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(nt(this._destroyed)).subscribe(({chip:e})=>{const i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(nt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Wi(null),nt(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(nt(this._destroyed)).subscribe(e=>{const o=this._chips.toArray().indexOf(e.chip);this._isValidIndex(o)&&e.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(Nt),_(en,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-chip-set"]],contentQueries:function(i,o,r){if(1&i&&ft(r,Ps,5),2&i){let a;Ee(a=Oe())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,o){1&i&&P("keydown",function(a){return o._handleKeydown(a)}),2&i&&Qe("role",o.role)},inputs:{disabled:"disabled",role:"role"},features:[_e],ngContentSelectors:qy,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,o){1&i&&(Vt(),d(0,"div",0),Ke(1),l())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return t})();class QW{constructor(n,e){this.source=n,this.value=e}}class XW extends Qy{constructor(n,e,i,o,r,a,s){super(n,e,i),this._defaultErrorStateMatcher=o,this._parentForm=r,this._parentFormGroup=a,this.ngControl=s,this.stateChanges=new te}}const JW=Hv(XW);let $E=(()=>{class t extends JW{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ue(e),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(J.required)??!1}set required(e){this._required=Ue(e),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}constructor(e,i,o,r,a,s,c){super(e,i,o,s,r,a,c),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new Fe,this.valueChange=new Fe,this._chips=void 0,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe(nt(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),yi(this.chipFocusChanges,this._chips.changes).pipe(nt(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?.setDescribedByIds(e)}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(e){9===e.keyCode?this._chipInput.focused&&fn(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(e),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const e=this._chips.length?this._chips.toArray().map(i=>i.value):[];this._value=e,this.change.emit(new QW(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(Nt),_(en,8),_(Ha,8),_(fi,8),_(Km),_(ar,10))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(i,o,r){if(1&i&&ft(r,Yy,5),2&i){let a;Ee(a=Oe())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(i,o){1&i&&P("focus",function(){return o.focus()})("blur",function(){return o._blur()}),2&i&&(Un("tabIndex",o._chips&&0===o._chips.length?-1:o.tabIndex),Qe("role",o.role)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),Xe("mat-mdc-chip-list-disabled",o.disabled)("mat-mdc-chip-list-invalid",o.errorState)("mat-mdc-chip-list-required",o.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Ze([{provide:yp,useExisting:t}]),_e],ngContentSelectors:qy,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,o){1&i&&(Vt(),d(0,"div",0),Ke(1),l())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return t})(),eK=0,GE=(()=>{class t{set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=Ue(e)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=Ue(e)}get empty(){return!this.inputElement.value}constructor(e,i,o){this._elementRef=e,this.focused=!1,this._addOnBlur=!1,this.chipEnd=new Fe,this.placeholder="",this.id="mat-mdc-chip-list-input-"+eK++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=i.separatorKeyCodes,o&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),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._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(e){(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(e){const i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.removeAttribute("aria-describedby")}_isSeparatorKey(e){return!fn(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(Bp),_(nu,8))};static#t=this.\u0275dir=X({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(i,o){1&i&&P("keydown",function(a){return o._keydown(a)})("keyup",function(a){return o._keyup(a)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),2&i&&(Un("id",o.id),Qe("disabled",o.disabled||null)("placeholder",o.placeholder||null)("aria-invalid",o._chipGrid&&o._chipGrid.ngControl?o._chipGrid.ngControl.invalid:null)("aria-required",o._chipGrid&&o._chipGrid.required||null)("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:["matChipInputFor","chipGrid"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[si]})}return t})(),Xy=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({providers:[Km,{provide:Bp,useValue:{separatorKeyCodes:[13]}}],imports:[wt,xn,La,wt]})}return t})();class tK{constructor(){this.expansionModel=new Kd(!0)}toggle(n){this.expansionModel.toggle(this._trackByValue(n))}expand(n){this.expansionModel.select(this._trackByValue(n))}collapse(n){this.expansionModel.deselect(this._trackByValue(n))}isExpanded(n){return this.expansionModel.isSelected(this._trackByValue(n))}toggleDescendants(n){this.expansionModel.isSelected(this._trackByValue(n))?this.collapseDescendants(n):this.expandDescendants(n)}collapseAll(){this.expansionModel.clear()}expandDescendants(n){let e=[n];e.push(...this.getDescendants(n)),this.expansionModel.select(...e.map(i=>this._trackByValue(i)))}collapseDescendants(n){let e=[n];e.push(...this.getDescendants(n)),this.expansionModel.deselect(...e.map(i=>this._trackByValue(i)))}_trackByValue(n){return this.trackBy?this.trackBy(n):n}}class qE extends tK{constructor(n,e,i){super(),this.getLevel=n,this.isExpandable=e,this.options=i,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(n){const i=[];for(let o=this.dataNodes.indexOf(n)+1;othis._trackByValue(n)))}}let aK=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({})}return t})(),WE=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[aK,wt,wt]})}return t})();class hK{constructor(n,e,i,o){this.transformFunction=n,this.getLevel=e,this.isExpandable=i,this.getChildren=o}_flattenNode(n,e,i,o){const r=this.transformFunction(n,e);if(i.push(r),this.isExpandable(r)){const a=this.getChildren(n);a&&(Array.isArray(a)?this._flattenChildren(a,e,i,o):a.pipe(Pt(1)).subscribe(s=>{this._flattenChildren(s,e,i,o)}))}return i}_flattenChildren(n,e,i,o){n.forEach((r,a)=>{let s=o.slice();s.push(a!=n.length-1),this._flattenNode(r,e+1,i,s)})}flattenNodes(n){let e=[];return n.forEach(i=>this._flattenNode(i,0,e,[])),e}expandFlattenedNodes(n,e){let i=[],o=[];return o[0]=!0,n.forEach(r=>{let a=!0;for(let s=0;s<=this.getLevel(r);s++)a=a&&o[s];a&&i.push(r),this.isExpandable(r)&&(o[this.getLevel(r)+1]=e.isExpanded(r))}),i}}class KE extends B2{get data(){return this._data.value}set data(n){this._data.next(n),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}constructor(n,e,i){super(),this._treeControl=n,this._treeFlattener=e,this._flattenedData=new pt([]),this._expandedData=new pt([]),this._data=new pt([]),i&&(this.data=i)}connect(n){return yi(n.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(ze(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}function mK(t,n){}const pK=function(t){return{animationDuration:t}},fK=function(t,n){return{value:t,params:n}};function gK(t,n){1&t&&Ke(0)}const ZE=["*"],_K=["tabListContainer"],bK=["tabList"],vK=["tabListInner"],yK=["nextPaginator"],CK=["previousPaginator"],xK=["tabBodyWrapper"],wK=["tabHeader"];function SK(t,n){}function DK(t,n){1&t&&g(0,SK,0,0,"ng-template",14),2&t&&p("cdkPortalOutlet",C().$implicit.templateLabel)}function kK(t,n){1&t&&u(0),2&t&&Ie(C().$implicit.textLabel)}function MK(t,n){if(1&t){const e=ge();d(0,"div",6,7),P("click",function(){const o=ne(e),r=o.$implicit,a=o.index,s=C(),c=At(1);return oe(s._handleClick(r,c,a))})("cdkFocusChange",function(o){const a=ne(e).index;return oe(C()._tabFocusChanged(o,a))}),S(2,"span",8)(3,"div",9),d(4,"span",10)(5,"span",11),g(6,DK,1,1,"ng-template",12),g(7,kK,1,1,"ng-template",null,13,tr),l()()()}if(2&t){const e=n.$implicit,i=n.index,o=At(1),r=At(8),a=C();Xe("mdc-tab--active",a.selectedIndex===i),p("id",a._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),Qe("tabIndex",a._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(i))("aria-selected",a.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(3),p("matRippleTrigger",o)("matRippleDisabled",e.disabled||a.disableRipple),m(3),p("ngIf",e.templateLabel)("ngIfElse",r)}}function TK(t,n){if(1&t){const e=ge();d(0,"mat-tab-body",15),P("_onCentered",function(){return ne(e),oe(C()._removeTabBodyWrapperHeight())})("_onCentering",function(o){return ne(e),oe(C()._setTabBodyWrapperHeight(o))}),l()}if(2&t){const e=n.$implicit,i=n.index,o=C();Xe("mat-mdc-tab-body-active",o.selectedIndex===i),p("id",o._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),Qe("tabindex",null!=o.contentTabIndex&&o.selectedIndex===i?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(i))("aria-hidden",o.selectedIndex!==i)}}const IK={translateTab:xo("translateTab",[Xi("center, void, left-origin-center, right-origin-center",$t({transform:"none"})),Xi("left",$t({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Xi("right",$t({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),zi("* => left, * => right, left => center, right => center",ji("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),zi("void => left-origin-center",[$t({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),ji("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),zi("void => right-origin-center",[$t({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),ji("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let EK=(()=>{class t extends ia{constructor(e,i,o,r){super(e,i,r),this._host=o,this._centeringSub=T.EMPTY,this._leavingSub=T.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Wi(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(_(ls),_(hi),_(qt(()=>YE)),_(ct))};static#t=this.\u0275dir=X({type:t,selectors:[["","matTabBodyHost",""]],features:[_e]})}return t})(),OK=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,o){this._elementRef=e,this._dir=i,this._dirChangeSubscription=T.EMPTY,this._translateTabComplete=new te,this._onCentering=new Fe,this._beforeCentering=new Fe,this._afterLeavingCenter=new Fe,this._onCentered=new Fe(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(r=>{this._computePositionAnimationState(r),o.markForCheck()})),this._translateTabComplete.pipe($s((r,a)=>r.fromState===a.fromState&&r.toState===a.toState)).subscribe(r=>{this._isCenterPosition(r.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(r.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(en,8),_(Nt))};static#t=this.\u0275dir=X({type:t,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}})}return t})(),YE=(()=>{class t extends OK{constructor(e,i,o){super(e,i,o)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(en,8),_(Nt))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,o){if(1&i&&bt(ia,5),2&i){let r;Ee(r=Oe())&&(o._portalHost=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[_e],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(i,o){1&i&&(d(0,"div",0,1),P("@translateTab.start",function(a){return o._onTranslateTabStarted(a)})("@translateTab.done",function(a){return o._translateTabComplete.next(a)}),g(2,mK,0,0,"ng-template",2),l()),2&i&&p("@translateTab",CD(3,fK,o._position,ri(1,pK,o.animationDuration)))},dependencies:[EK],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[IK.translateTab]}})}return t})();const AK=new se("MatTabContent");let PK=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(_(ci))};static#t=this.\u0275dir=X({type:t,selectors:[["","matTabContent",""]],features:[Ze([{provide:AK,useExisting:t}])]})}return t})();const RK=new se("MatTabLabel"),QE=new se("MAT_TAB");let o0=(()=>{class t extends ZG{constructor(e,i,o){super(e,i),this._closestTab=o}static#e=this.\u0275fac=function(i){return new(i||t)(_(ci),_(hi),_(QE,8))};static#t=this.\u0275dir=X({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ze([{provide:RK,useExisting:t}]),_e]})}return t})();const r0="mdc-tab-indicator--active",XE="mdc-tab-indicator--no-transition";class FK{constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar())}alignToElement(n){const e=this._items.find(o=>o.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){const o=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(o),this._currentItem=e}}}function NK(t){return class extends t{constructor(...n){super(...n),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(n){const e=Ue(n);this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(n){const e=this.elementRef.nativeElement;if(!n||!e.getBoundingClientRect||!this._inkBarContentElement)return void e.classList.add(r0);const i=e.getBoundingClientRect(),o=n.width/i.width,r=n.left-i.left;e.classList.add(XE),this._inkBarContentElement.style.setProperty("transform",`translateX(${r}px) scaleX(${o})`),e.getBoundingClientRect(),e.classList.remove(XE),e.classList.add(r0),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(r0)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const n=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=n.createElement("span"),this._inkBarContentElement=n.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const BK=Sr(class{}),VK=NK((()=>{class t extends BK{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le))};static#t=this.\u0275dir=X({type:t,features:[_e]})}return t})());let JE=(()=>{class t extends VK{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,o){2&i&&(Qe("aria-disabled",!!o.disabled),Xe("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[_e]})}return t})();const jK=Sr(class{}),eO=new se("MAT_TAB_GROUP");let zK=(()=>{class t extends jK{get content(){return this._contentPortal}constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new te,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new ta(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static#e=this.\u0275fac=function(i){return new(i||t)(_(hi),_(eO,8))};static#t=this.\u0275dir=X({type:t,viewQuery:function(i,o){if(1&i&&bt(ci,7),2&i){let r;Ee(r=Oe())&&(o._implicitContent=r.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[_e,si]})}return t})(),Up=(()=>{class t extends zK{constructor(){super(...arguments),this._explicitContent=void 0}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-tab"]],contentQueries:function(i,o,r){if(1&i&&(ft(r,PK,7,ci),ft(r,o0,5)),2&i){let a;Ee(a=Oe())&&(o._explicitContent=a.first),Ee(a=Oe())&&(o.templateLabel=a.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[Ze([{provide:QE,useExisting:t}]),_e],ngContentSelectors:ZE,decls:1,vars:0,template:function(i,o){1&i&&(Vt(),g(0,gK,1,0,"ng-template"))},encapsulation:2})}return t})();const tO=Oa({passive:!0});let $K=(()=>{class t{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ue(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=mi(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}constructor(e,i,o,r,a,s,c){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=o,this._dir=r,this._ngZone=a,this._platform=s,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new te,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new te,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Fe,this.indexFocused=new Fe,a.runOutsideAngular(()=>{Uo(e.nativeElement,"mouseleave").pipe(nt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Uo(this._previousPaginator.nativeElement,"touchstart",tO).pipe(nt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Uo(this._nextPaginator.nativeElement,"touchstart",tO).pipe(nt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:qe("ltr"),i=this._viewportRuler.change(150),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Gm(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(Pt(1)).subscribe(o),yi(e,i,this._items.changes,this._itemsResized()).pipe(nt(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(r=>{this.indexFocused.emit(r),this._setTabFocus(r)})}_itemsResized(){return"function"!=typeof ResizeObserver?ho:this._items.changes.pipe(Wi(this._items),Yi(e=>new Ye(i=>this._ngZone.runOutsideAngular(()=>{const o=new ResizeObserver(r=>i.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),Av(1),Mt(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!fn(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return!this._items||!!this._items.toArray()[e]}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:a}=i.elementRef.nativeElement;let s,c;"ltr"==this._getLayoutDirection()?(s=r,c=s+a):(c=this._tabListInner.nativeElement.offsetWidth-r,s=c-a);const h=this.scrollDistance,f=this.scrollDistance+o;sf&&(this.scrollDistance+=Math.min(c-f,s-h))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),Cp(650,100).pipe(nt(yi(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:o,distance:r}=this._scrollHeader(e);(0===r||r>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(Nt),_(ea),_(en,8),_(We),_(ti),_(oi,8))};static#t=this.\u0275dir=X({type:t,inputs:{disablePagination:"disablePagination"}})}return t})(),GK=(()=>{class t extends $K{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ue(e)}constructor(e,i,o,r,a,s,c){super(e,i,o,r,a,s,c),this._disableRipple=!1}_itemSelected(e){e.preventDefault()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(Nt),_(ea),_(en,8),_(We),_(ti),_(oi,8))};static#t=this.\u0275dir=X({type:t,inputs:{disableRipple:"disableRipple"},features:[_e]})}return t})(),qK=(()=>{class t extends GK{constructor(e,i,o,r,a,s,c){super(e,i,o,r,a,s,c)}ngAfterContentInit(){this._inkBar=new FK(this._items),super.ngAfterContentInit()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(Nt),_(ea),_(en,8),_(We),_(ti),_(oi,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,o,r){if(1&i&&ft(r,JE,4),2&i){let a;Ee(a=Oe())&&(o._items=a)}},viewQuery:function(i,o){if(1&i&&(bt(_K,7),bt(bK,7),bt(vK,7),bt(yK,5),bt(CK,5)),2&i){let r;Ee(r=Oe())&&(o._tabListContainer=r.first),Ee(r=Oe())&&(o._tabList=r.first),Ee(r=Oe())&&(o._tabListInner=r.first),Ee(r=Oe())&&(o._nextPaginator=r.first),Ee(r=Oe())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,o){2&i&&Xe("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==o._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[_e],ngContentSelectors:ZE,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(i,o){1&i&&(Vt(),d(0,"button",0,1),P("click",function(){return o._handlePaginatorClick("before")})("mousedown",function(a){return o._handlePaginatorPress("before",a)})("touchend",function(){return o._stopInterval()}),S(2,"div",2),l(),d(3,"div",3,4),P("keydown",function(a){return o._handleKeydown(a)}),d(5,"div",5,6),P("cdkObserveContent",function(){return o._onContentChanges()}),d(7,"div",7,8),Ke(9),l()()(),d(10,"button",9,10),P("mousedown",function(a){return o._handlePaginatorPress("after",a)})("click",function(){return o._handlePaginatorClick("after")})("touchend",function(){return o._stopInterval()}),S(12,"div",2),l()),2&i&&(Xe("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),p("matRippleDisabled",o._disableScrollBefore||o.disableRipple)("disabled",o._disableScrollBefore||null),m(3),Xe("_mat-animation-noopable","NoopAnimations"===o._animationMode),m(7),Xe("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),p("matRippleDisabled",o._disableScrollAfter||o.disableRipple)("disabled",o._disableScrollAfter||null))},dependencies:[Na,wT],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0;--mdc-tab-indicator-active-indicator-height:2px;--mdc-tab-indicator-active-indicator-shape:0;--mdc-secondary-navigation-tab-container-height:48px}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}return t})();const iO=new se("MAT_TABS_CONFIG");let WK=0;const KK=Pa(Ra(class{constructor(t){this._elementRef=t}}),"primary");let ZK=(()=>{class t extends KK{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Ue(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=mi(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=mi(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ue(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=Ue(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,o,r){super(e),this._changeDetectorRef=i,this._animationMode=r,this._tabs=new $r,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=T.EMPTY,this._tabLabelSubscription=T.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Fe,this.focusChange=new Fe,this.animationDone=new Fe,this.selectedTabChange=new Fe(!0),this._groupId=WK++,this.animationDuration=o&&o.animationDuration?o.animationDuration:"500ms",this.disablePagination=!(!o||null==o.disablePagination)&&o.disablePagination,this.dynamicHeight=!(!o||null==o.dynamicHeight)&&o.dynamicHeight,this.contentTabIndex=o?.contentTabIndex??null,this.preserveContent=!!o?.preserveContent}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,r)=>o.isActive=r===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,o)=>{i.position=o-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const i=this._tabs.toArray();let o;for(let r=0;r{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Wi(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new YK;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=yi(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,o){i.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(Nt),_(iO,8),_(oi,8))};static#t=this.\u0275dir=X({type:t,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[_e]})}return t})(),a0=(()=>{class t extends ZK{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=Ue(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=Ue(e)}constructor(e,i,o,r){super(e,i,o,r),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!o||null==o.fitInkBarToContent)&&o.fitInkBarToContent,this.stretchTabs=!o||null==o.stretchTabs||o.stretchTabs}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(Nt),_(iO,8),_(oi,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,o,r){if(1&i&&ft(r,Up,5),2&i){let a;Ee(a=Oe())&&(o._allTabs=a)}},viewQuery:function(i,o){if(1&i&&(bt(xK,5),bt(wK,5)),2&i){let r;Ee(r=Oe())&&(o._tabBodyWrapper=r.first),Ee(r=Oe())&&(o._tabHeader=r.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(i,o){2&i&&(dn("--mat-tab-animation-duration",o.animationDuration),Xe("mat-mdc-tab-group-dynamic-height",o.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===o.headerPosition)("mat-mdc-tab-group-stretch-tabs",o.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[Ze([{provide:eO,useExisting:t}]),_e],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(i,o){1&i&&(d(0,"mat-tab-header",0,1),P("indexFocused",function(a){return o._focusChanged(a)})("selectFocusedIndex",function(a){return o.selectedIndex=a}),g(2,MK,9,17,"div",2),l(),d(3,"div",3,4),g(5,TK,1,12,"mat-tab-body",5),l()),2&i&&(p("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),m(2),p("ngForOf",o._tabs),m(1),Xe("_mat-animation-noopable","NoopAnimations"===o._animationMode),m(2),p("ngForOf",o._tabs))},dependencies:[nr,qi,kt,ia,Na,PH,YE,JE,qK],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return t})();class YK{}let nO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[xn,wt,Es,La,zm,zv,wt]})}return t})();function QK(t,n){if(1&t){const e=ge();d(0,"div",2)(1,"button",3),P("click",function(){return ne(e),oe(C().action())}),u(2),l()()}if(2&t){const e=C();m(2),ye(" ",e.data.action," ")}}const XK=["label"];function JK(t,n){}const eZ=Math.pow(2,31)-1;class s0{constructor(n,e){this._overlayRef=e,this._afterDismissed=new te,this._afterOpened=new te,this._onAction=new te,this._dismissedByAction=!1,this.containerInstance=n,n._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(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,eZ))}_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}}const oO=new se("MatSnackBarData");class $p{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let tZ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),iZ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),nZ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),oZ=(()=>{class t{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#e=this.\u0275fac=function(i){return new(i||t)(_(s0),_(oO))};static#t=this.\u0275cmp=Me({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0),u(1),l(),g(2,QK,3,1,"div",1)),2&i&&(m(1),ye(" ",o.data.message,"\n"),m(1),p("ngIf",o.hasAction))},dependencies:[kt,Gt,tZ,iZ,nZ],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return t})();const rZ={snackBarState:xo("state",[Xi("void, hidden",$t({transform:"scale(0.8)",opacity:0})),Xi("visible",$t({transform:"scale(1)",opacity:1})),zi("* => visible",ji("150ms cubic-bezier(0, 0, 0.2, 1)")),zi("* => void, * => hidden",ji("75ms cubic-bezier(0.4, 0.0, 1, 1)",$t({opacity:0})))])};let aZ=0,sZ=(()=>{class t extends Sp{constructor(e,i,o,r,a){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=o,this._platform=r,this.snackBarConfig=a,this._document=Ne(ct),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new te,this._onExit=new te,this._onEnter=new te,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+aZ++,this.attachDomPortal=s=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(s);return this._afterPortalAttached(),c},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:o}=e;if(("void"===o&&"void"!==i||"hidden"===o)&&this._completeExit(),"visible"===o){const r=this._onEnter;this._ngZone.run(()=>{r.next(),r.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Pt(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(o=>e.classList.add(o)):e.classList.add(i)),this._exposeToModals()}_exposeToModals(){const e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{const i=e.getAttribute("aria-owns");if(i){const o=i.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(o=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#e=this.\u0275fac=function(i){return new(i||t)(_(We),_(Le),_(Nt),_(ti),_($p))};static#t=this.\u0275dir=X({type:t,viewQuery:function(i,o){if(1&i&&bt(ia,7),2&i){let r;Ee(r=Oe())&&(o._portalOutlet=r.first)}},features:[_e]})}return t})(),cZ=(()=>{class t extends sZ{_afterPortalAttached(){super._afterPortalAttached();const e=this._label.nativeElement,i="mdc-snackbar__label";e.classList.toggle(i,!e.querySelector(`.${i}`))}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,o){if(1&i&&bt(XK,7),2&i){let r;Ee(r=Oe())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(i,o){1&i&&jh("@state.done",function(a){return o.onAnimationEnd(a)}),2&i&&Uh("@state",o._animationState)},features:[_e],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1,2)(3,"div",3),g(4,JK,0,0,"ng-template",4),l(),S(5,"div"),l()()),2&i&&(m(5),Qe("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[ia],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;--mdc-snackbar-container-shape:4px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[rZ.snackBarState]}})}return t})(),c0=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[As,Es,xn,Jm,wt,wt]})}return t})();const rO=new se("mat-snack-bar-default-options",{providedIn:"root",factory:function lZ(){return new $p}});let dZ=(()=>{class t{get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,i,o,r,a,s){this._overlay=e,this._live=i,this._injector=o,this._breakpointObserver=r,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",o){const r={...this._defaultConfig,...o};return r.data={message:e,action:i},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const r=Oi.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:$p,useValue:i}]}),a=new tl(this.snackBarContainerComponent,i.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(e,i){const o={...new $p,...this._defaultConfig,...i},r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new s0(a,r);if(e instanceof ci){const c=new ta(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{const c=this._createInjector(o,s),h=new tl(e,void 0,c),f=a.attachComponentPortal(h);s.instance=f.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(nt(r.detachments())).subscribe(c=>{r.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new il;i.direction=e.direction;let o=this._overlay.position().global();const r="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!r||"end"===e.horizontalPosition&&r,s=!a&&"center"!==e.horizontalPosition;return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),"top"===e.verticalPosition?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}_createInjector(e,i){return Oi.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:s0,useValue:i},{provide:oO,useValue:e.data}]})}static#e=this.\u0275fac=function(i){return new(i||t)(Y(On),Y(Vv),Y(Oi),Y(Rv),Y(t,12),Y(rO))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})(),uZ=(()=>{class t extends dZ{constructor(e,i,o,r,a,s){super(e,i,o,r,a,s),this.simpleSnackBarComponent=oZ,this.snackBarContainerComponent=cZ,this.handsetCssClass="mat-mdc-snack-bar-handset"}static#e=this.\u0275fac=function(i){return new(i||t)(Y(On),Y(Vv),Y(Oi),Y(Rv),Y(t,12),Y(rO))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:c0})}return t})();function hZ(t,n){}class Gp{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let aO=(()=>{class t extends Sp{constructor(e,i,o,r,a,s,c,h){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=r,this._interactivityChecker=a,this._ngZone=s,this._overlayRef=c,this._focusMonitor=h,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=f=>{this._portalOutlet.hasAttached();const b=this._portalOutlet.attachDomPortal(f);return this._contentAttached(),b},this._document=o,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_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(i=>{i||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._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const o=Rm(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Rm();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Rm())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(qm),_(ct,8),_(Gp),_(jd),_(We),_(cu),_(Do))};static#t=this.\u0275cmp=Me({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,o){if(1&i&&bt(ia,7),2&i){let r;Ee(r=Oe())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,o){2&i&&Qe("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},features:[_e],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,o){1&i&&g(0,hZ,0,0,"ng-template",0)},dependencies:[ia],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return t})();class l0{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new te,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!fn(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{!1!==e.closeOnOverlayDetachments&&this.close()})}close(n,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}}const sO=new se("DialogScrollStrategy"),mZ=new se("DialogData"),pZ=new se("DefaultDialogConfig"),gZ={provide:sO,deps:[On],useFactory:function fZ(t){return()=>t.scrollStrategies.block()}};let _Z=0,cO=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,o,r,a,s){this._overlay=e,this._injector=i,this._defaultOptions=o,this._parentDialog=r,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new te,this._afterOpenedAtThisLevel=new te,this._ariaHiddenElements=new Map,this.afterAllClosed=nl(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Wi(void 0))),this._scrollStrategy=s}open(e,i){(i={...this._defaultOptions||new Gp,...i}).id=i.id||"cdk-dialog-"+_Z++,i.id&&this.getDialogById(i.id);const r=this._getOverlayConfig(i),a=this._overlay.create(r),s=new l0(a,i),c=this._attachContainer(a,s,i);return s.containerInstance=c,this._attachDialogContent(e,s,c,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){d0(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){d0(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),d0(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new il({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),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,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,o){const r=o.injector||o.viewContainerRef?.injector,a=[{provide:Gp,useValue:o},{provide:l0,useValue:i},{provide:cu,useValue:e}];let s;o.container?"function"==typeof o.container?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=aO;const c=new tl(s,o.viewContainerRef,Oi.create({parent:r||this._injector,providers:a}),o.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,i,o,r){if(e instanceof ci){const a=this._createInjector(r,i,o,void 0);let s={$implicit:r.data,dialogRef:i};r.templateContext&&(s={...s,..."function"==typeof r.templateContext?r.templateContext():r.templateContext}),o.attachTemplatePortal(new ta(e,null,s,a))}else{const a=this._createInjector(r,i,o,this._injector),s=o.attachComponentPortal(new tl(e,r.viewContainerRef,a,r.componentFactoryResolver));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(e,i,o,r){const a=e.injector||e.viewContainerRef?.injector,s=[{provide:mZ,useValue:e.data},{provide:l0,useValue:i}];return e.providers&&("function"==typeof e.providers?s.push(...e.providers(i,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(en,null,{optional:!0}))&&s.push({provide:en,useValue:{value:e.direction,change:qe()}}),Oi.create({parent:a||r,providers:s})}_removeOpenDialog(e,i){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let o=i.length-1;o>-1;o--){const r=i[o];r!==e&&"SCRIPT"!==r.nodeName&&"STYLE"!==r.nodeName&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(i){return new(i||t)(Y(On),Y(Oi),Y(pZ,8),Y(t,12),Y(Dp),Y(sO))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();function d0(t,n){let e=t.length;for(;e--;)n(t[e])}let bZ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({providers:[cO,gZ],imports:[As,Es,zv,Es]})}return t})();function vZ(t,n){}class qp{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.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const u0="mdc-dialog--open",lO="mdc-dialog--opening",dO="mdc-dialog--closing";let xZ=(()=>{class t extends aO{constructor(e,i,o,r,a,s,c,h){super(e,i,o,r,a,s,c,h),this._animationStateChanged=new Fe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(qm),_(ct,8),_(qp),_(jd),_(We),_(cu),_(Do))};static#t=this.\u0275cmp=Me({type:t,selectors:[["ng-component"]],features:[_e],decls:0,vars:0,template:function(i,o){},encapsulation:2})}return t})();const uO="--mat-dialog-transition-duration";function hO(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?mi(t.substring(0,t.length-2)):t.endsWith("s")?1e3*mi(t.substring(0,t.length-1)):"0"===t?0:null}let wZ=(()=>{class t extends xZ{constructor(e,i,o,r,a,s,c,h,f){super(e,i,o,r,a,s,c,f),this._animationMode=h,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?hO(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?hO(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(uO,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(lO,u0)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(u0),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(u0),this._animationsEnabled?(this._hostElement.style.setProperty(uO,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(dO)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(lO,dO)}_waitForAnimationToComplete(e,i){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(qm),_(ct,8),_(qp),_(jd),_(We),_(cu),_(oi,8),_(Do))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(i,o){2&i&&(Un("id",o._config.id),Qe("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),Xe("_mat-animation-noopable",!o._animationsEnabled))},features:[_e],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1),g(2,vZ,0,0,"ng-template",2),l()())},dependencies:[ia],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return t})();class nn{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new te,this._beforeClosed=new te,this._state=0,this.disableClose=e.disableClose,this.id=n.id,i._animationStateChanged.pipe(Mt(o=>"opened"===o.state),Pt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Mt(o=>"closed"===o.state),Pt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),yi(this.backdropClick(),this.keydownEvents().pipe(Mt(o=>27===o.keyCode&&!this.disableClose&&!fn(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),mO(this,"keydown"===o.type?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(Mt(e=>"closing"===e.state),Pt(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function mO(t,n,e){return t._closeInteractionType=n,t.close(e)}const Zn=new se("MatMdcDialogData"),SZ=new se("mat-mdc-dialog-default-options"),pO=new se("mat-mdc-dialog-scroll-strategy"),kZ={provide:pO,deps:[On],useFactory:function DZ(t){return()=>t.scrollStrategies.block()}};let MZ=0,TZ=(()=>{class t{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}constructor(e,i,o,r,a,s,c,h,f,b){this._overlay=e,this._defaultOptions=o,this._parentDialog=r,this._dialogRefConstructor=c,this._dialogContainerType=h,this._dialogDataToken=f,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new te,this._afterOpenedAtThisLevel=new te,this._idPrefix="mat-dialog-",this.dialogConfigClass=qp,this.afterAllClosed=nl(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Wi(void 0))),this._scrollStrategy=s,this._dialog=i.get(cO)}open(e,i){let o;(i={...this._defaultOptions||new qp,...i}).id=i.id||`${this._idPrefix}${MZ++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const r=this._dialog.open(e,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:Gp,useValue:i}]},templateContext:()=>({dialogRef:o}),providers:(a,s,c)=>(o=new this._dialogRefConstructor(a,i,c),o.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])});return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{const a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static#e=this.\u0275fac=function(i){_r()};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})(),Mr=(()=>{class t extends TZ{constructor(e,i,o,r,a,s,c,h){super(e,i,r,s,c,a,nn,wZ,Zn,h),this._idPrefix="mat-mdc-dialog-"}static#e=this.\u0275fac=function(i){return new(i||t)(Y(On),Y(Oi),Y(Sd,8),Y(SZ,8),Y(pO),Y(t,12),Y(Dp),Y(oi,8))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})(),IZ=0,Sn=(()=>{class t{constructor(e,i,o){this.dialogRef=e,this._elementRef=i,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=fO(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){mO(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(i){return new(i||t)(_(nn,8),_(Le),_(Mr))};static#t=this.\u0275dir=X({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,o){1&i&&P("click",function(a){return o._onButtonClick(a)}),2&i&&Qe("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[si]})}return t})(),EZ=(()=>{class t{constructor(e,i,o){this._dialogRef=e,this._elementRef=i,this._dialog=o,this.id="mat-mdc-dialog-title-"+IZ++}ngOnInit(){this._dialogRef||(this._dialogRef=fO(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const e=this._dialogRef?._containerInstance?._ariaLabelledByQueue;e&&Promise.resolve().then(()=>{const i=e.indexOf(this.id);i>-1&&e.splice(i,1)})}static#e=this.\u0275fac=function(i){return new(i||t)(_(nn,8),_(Le),_(Mr))};static#t=this.\u0275dir=X({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,o){2&i&&Un("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]})}return t})(),co=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]})}return t})(),lo=(()=>{class t{constructor(){this.align="start"}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(i,o){2&i&&Xe("mat-mdc-dialog-actions-align-center","center"===o.align)("mat-mdc-dialog-actions-align-end","end"===o.align)},inputs:{align:"align"}})}return t})();function fO(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}let gO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({providers:[Mr,kZ],imports:[bZ,As,Es,wt,wt]})}return t})();const OZ=["tooltip"],bO=new se("mat-tooltip-scroll-strategy"),RZ={provide:bO,deps:[On],useFactory:function PZ(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},NZ=new se("mat-tooltip-default-options",{providedIn:"root",factory:function FZ(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),vO="tooltip-panel",yO=Oa({passive:!0});let HZ=(()=>{class t{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Ue(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ue(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=mi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=mi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,o,r,a,s,c,h,f,b,y,x){this._overlay=e,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=r,this._ngZone=a,this._platform=s,this._ariaDescriber=c,this._focusMonitor=h,this._dir=b,this._defaultOptions=y,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new te,this._scrollStrategy=f,this._document=x,y&&(this._showDelay=y.showDelay,this._hideDelay=y.hideDelay,y.position&&(this.position=y.position),y.positionAtOrigin&&(this.positionAtOrigin=y.positionAtOrigin),y.touchGestures&&(this.touchGestures=y.touchGestures)),b.change.pipe(nt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(nt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,o])=>{e.removeEventListener(i,o,yO)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const o=this._createOverlay(i);this._detach(),this._portal=this._portal||new tl(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(nt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&r._origin instanceof Le)return this._overlayRef;this._detach()}const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(nt(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${vO}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(nt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(nt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(nt(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!fn(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();i.withPositions([this._addOffset({...o.main,...r.main}),this._addOffset({...o.fallback,...r.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i||"below"==i?o={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={originX:"end",originY:"center"});const{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i?o={overlayX:"center",overlayY:"bottom"}:"below"==i?o={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={overlayX:"start",overlayY:"center"});const{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Pt(1),nt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:o,originY:r}=e;let a;if(a="center"===i?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===i&&"top"===r?"above":"below",a!==this._currentPosition){const s=this._overlayRef;if(s){const c=`${this._cssClassPrefix}-${vO}-`;s.removePanelClass(c+this._currentPosition),s.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(i=e),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const i=e.targetTouches?.[0],o=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{const o=i.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,o])=>{this._elementRef.nativeElement.addEventListener(i,o,yO)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,o=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(i){_r()};static#t=this.\u0275dir=X({type:t,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}})}return t})(),on=(()=>{class t extends HZ{constructor(e,i,o,r,a,s,c,h,f,b,y,x){super(e,i,o,r,a,s,c,h,f,b,y,x),this._tooltipComponent=$Z,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(e){const o=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=o?-8:8:"end"===e.originX&&(e.offsetX=o?8:-8),e}static#e=this.\u0275fac=function(i){return new(i||t)(_(On),_(Le),_(au),_(hi),_(We),_(ti),_(mH),_(Do),_(bO),_(en,8),_(NZ,8),_(ct))};static#t=this.\u0275dir=X({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,o){2&i&&Xe("mat-mdc-tooltip-disabled",o.disabled)},exportAs:["matTooltip"],features:[_e]})}return t})(),UZ=(()=>{class t{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new te,this._animationsDisabled="NoopAnimations"===i}show(e){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(i.classList.remove(e?r:o),i.classList.add(e?o:r),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(i);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static#e=this.\u0275fac=function(i){return new(i||t)(_(Nt),_(oi,8))};static#t=this.\u0275dir=X({type:t})}return t})(),$Z=(()=>{class t extends UZ{constructor(e,i,o){super(e,o),this._elementRef=i,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}static#e=this.\u0275fac=function(i){return new(i||t)(_(Nt),_(Le),_(oi,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,o){if(1&i&&bt(OZ,7),2&i){let r;Ee(r=Oe())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,o){1&i&&P("mouseleave",function(a){return o._handleMouseLeave(a)}),2&i&&dn("zoom",o.isVisible()?1:null)},features:[_e],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(i,o){1&i&&(d(0,"div",0,1),P("animationend",function(a){return o._handleAnimationEnd(a)}),d(2,"div",2),u(3),l()()),2&i&&(Xe("mdc-tooltip--multiline",o._isMultiline),p("ngClass",o.tooltipClass),m(3),Ie(o.message))},dependencies:[nr],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return t})(),h0=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({providers:[RZ],imports:[zv,xn,As,wt,wt,Ua]})}return t})();const GZ=["input"],qZ=["label"],WZ=["*"],KZ=new se("mat-checkbox-default-options",{providedIn:"root",factory:CO});function CO(){return{color:"accent",clickAction:"check-indeterminate"}}const ZZ={provide:Wn,useExisting:qt(()=>Wp),multi:!0};class YZ{}let QZ=0;const xO=CO(),XZ=Fa(Pa(Ra(Sr(class{constructor(t){this._elementRef=t}}))));let JZ=(()=>{class t extends XZ{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Ue(e)}constructor(e,i,o,r,a,s,c){super(i),this._changeDetectorRef=o,this._ngZone=r,this._animationMode=s,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Fe,this.indeterminateChange=new Fe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||xO,this.color=this.defaultColor=this._options.color||xO.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${e}${++QZ}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=Ue(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=Ue(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=Ue(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_transitionCheckState(e){let i=this._currentCheckState,o=this._getAnimationTargetElement();if(i!==e&&o&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);const r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===i)return this._animationClasses.uncheckedToChecked;if(3==i)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===i?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===i?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===i?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}static#e=this.\u0275fac=function(i){_r()};static#t=this.\u0275dir=X({type:t,viewQuery:function(i,o){if(1&i&&(bt(GZ,5),bt(qZ,5),bt(Na,5)),2&i){let r;Ee(r=Oe())&&(o._inputElement=r.first),Ee(r=Oe())&&(o._labelElement=r.first),Ee(r=Oe())&&(o.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[_e]})}return t})(),Wp=(()=>{class t extends JZ{constructor(e,i,o,r,a,s){super("mat-mdc-checkbox-",e,i,o,r,a,s),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const i=new YZ;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(Nt),_(We),zn("tabindex"),_(oi,8),_(KZ,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(i,o){2&i&&(Un("id",o.id),Qe("tabindex",null)("aria-label",null)("aria-labelledby",null),Xe("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[Ze([ZZ]),_e],ngContentSelectors:WZ,decls:15,vars:20,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"],["label",""]],template:function(i,o){if(1&i&&(Vt(),d(0,"div",0),P("click",function(a){return o._preventBubblingFromLabel(a)}),d(1,"div",1,2)(3,"div",3),P("click",function(){return o._onTouchTargetClick()}),l(),d(4,"input",4,5),P("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(a){return o._onInteractionEvent(a)}),l(),S(6,"div",6),d(7,"div",7),Zt(),d(8,"svg",8),S(9,"path",9),l(),Xo(),S(10,"div",10),l(),S(11,"div",11),l(),d(12,"label",12,13),Ke(14),l()()),2&i){const r=At(2);Xe("mdc-form-field--align-end","before"==o.labelPosition),m(4),Xe("mdc-checkbox--selected",o.checked),p("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled)("id",o.inputId)("required",o.required)("tabIndex",o.tabIndex),Qe("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("name",o.name)("value",o.value),m(7),p("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(1),p("for",o.inputId)}},dependencies:[Na],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}html{--mdc-checkbox-disabled-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-state-layer-opacity:0.16;--mdc-checkbox-selected-hover-state-layer-opacity:0.04;--mdc-checkbox-selected-pressed-state-layer-opacity:0.16;--mdc-checkbox-unselected-focus-state-layer-opacity:0.16;--mdc-checkbox-unselected-hover-state-layer-opacity:0.04;--mdc-checkbox-unselected-pressed-state-layer-opacity:0.16}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})(),wO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({})}return t})(),SO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[wt,La,wO,wt,wO]})}return t})();const Kp=["*"],iY=["content"];function nY(t,n){if(1&t){const e=ge();d(0,"div",2),P("click",function(){return ne(e),oe(C()._onBackdropClicked())}),l()}2&t&&Xe("mat-drawer-shown",C()._isShowingBackdrop())}function oY(t,n){1&t&&(d(0,"mat-drawer-content"),Ke(1,2),l())}const rY=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],aY=["mat-drawer","mat-drawer-content","*"];function sY(t,n){if(1&t){const e=ge();d(0,"div",2),P("click",function(){return ne(e),oe(C()._onBackdropClicked())}),l()}2&t&&Xe("mat-drawer-shown",C()._isShowingBackdrop())}function cY(t,n){1&t&&(d(0,"mat-sidenav-content"),Ke(1,2),l())}const lY=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],dY=["mat-sidenav","mat-sidenav-content","*"],DO={transformDrawer:xo("transform",[Xi("open, open-instant",$t({transform:"none",visibility:"visible"})),Xi("void",$t({"box-shadow":"none",visibility:"hidden"})),zi("void => open-instant",ji("0ms")),zi("void <=> open, open-instant => void",ji("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},hY=new se("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function mY(){return!1}}),m0=new se("MAT_DRAWER_CONTAINER");let Zp=(()=>{class t extends su{constructor(e,i,o,r,a){super(o,r,a),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Nt),_(qt(()=>MO)),_(Le),_(au),_(We))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-drawer-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content"],hostVars:4,hostBindings:function(i,o){2&i&&dn("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},features:[Ze([{provide:su,useExisting:t}]),_e],ngContentSelectors:Kp,decls:1,vars:0,template:function(i,o){1&i&&(Vt(),Ke(0))},encapsulation:2,changeDetection:0})}return t})(),kO=(()=>{class t{get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Ue(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Ue(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Ue(e))}constructor(e,i,o,r,a,s,c,h){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=o,this._platform=r,this._ngZone=a,this._interactivityChecker=s,this._doc=c,this._container=h,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new te,this._animationEnd=new te,this._animationState="void",this.openedChange=new Fe(!0),this._openedStream=this.openedChange.pipe(Mt(f=>f),ze(()=>{})),this.openedStart=this._animationStarted.pipe(Mt(f=>f.fromState!==f.toState&&0===f.toState.indexOf("open")),kp(void 0)),this._closedStream=this.openedChange.pipe(Mt(f=>!f),ze(()=>{})),this.closedStart=this._animationStarted.pipe(Mt(f=>f.fromState!==f.toState&&"void"===f.toState),kp(void 0)),this._destroyed=new te,this.onPositionChanged=new Fe,this._modeChanged=new te,this.openedChange.subscribe(f=>{f?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Uo(this._elementRef.nativeElement,"keydown").pipe(Mt(f=>27===f.keyCode&&!this.disableClose&&!fn(f)),nt(this._destroyed)).subscribe(f=>this._ngZone.run(()=>{this.close(),f.stopPropagation(),f.preventDefault()}))}),this._animationEnd.pipe($s((f,b)=>f.fromState===b.fromState&&f.toState===b.toState)).subscribe(f=>{const{fromState:b,toState:y}=f;(0===y.indexOf("open")&&"void"===b||"void"===y&&0===b.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{!i&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);const o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,i,o){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(r=>{this.openedChange.pipe(Pt(1)).subscribe(a=>r(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(e){const i=this._elementRef.nativeElement,o=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(qm),_(Do),_(ti),_(We),_(jd),_(ct,8),_(m0,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,o){if(1&i&&bt(iY,5),2&i){let r;Ee(r=Oe())&&(o._content=r.first)}},hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer"],hostVars:12,hostBindings:function(i,o){1&i&&jh("@transform.start",function(a){return o._animationStarted.next(a)})("@transform.done",function(a){return o._animationEnd.next(a)}),2&i&&(Qe("align",null),Uh("@transform",o._animationState),Xe("mat-drawer-end","end"===o.position)("mat-drawer-over","over"===o.mode)("mat-drawer-push","push"===o.mode)("mat-drawer-side","side"===o.mode)("mat-drawer-opened",o.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Kp,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(i,o){1&i&&(Vt(),d(0,"div",0,1),Ke(2),l())},dependencies:[su],encapsulation:2,data:{animation:[DO.transformDrawer]},changeDetection:0})}return t})(),MO=(()=>{class t{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Ue(e)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=null==e?null:Ue(e)}get scrollable(){return this._userContent||this._content}constructor(e,i,o,r,a,s=!1,c){this._dir=e,this._element=i,this._ngZone=o,this._changeDetectorRef=r,this._animationMode=c,this._drawers=new $r,this.backdropClick=new Fe,this._destroyed=new te,this._doCheckSubject=new te,this._contentMargins={left:null,right:null},this._contentMarginChanges=new te,e&&e.change.pipe(nt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(nt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}ngAfterContentInit(){this._allDrawers.changes.pipe(Wi(this._allDrawers),nt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Wi(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Vm(10),nt(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const o=this._left._getWidth();e+=o,i-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const o=this._right._getWidth();i+=o,e-=o}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Mt(i=>i.fromState!==i.toState),nt(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(nt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(nt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Pt(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(nt(yi(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?i.add(o):i.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return null!=e&&e.opened}_drawerHasBackdrop(e){return null==this._backdropOverride?!!e&&"side"!==e.mode:this._backdropOverride}static#e=this.\u0275fac=function(i){return new(i||t)(_(en,8),_(Le),_(We),_(Nt),_(ea),_(hY),_(oi,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,o,r){if(1&i&&(ft(r,Zp,5),ft(r,kO,5)),2&i){let a;Ee(a=Oe())&&(o._content=a.first),Ee(a=Oe())&&(o._allDrawers=a)}},viewQuery:function(i,o){if(1&i&&bt(Zp,5),2&i){let r;Ee(r=Oe())&&(o._userContent=r.first)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,o){2&i&&Xe("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ze([{provide:m0,useExisting:t}])],ngContentSelectors:aY,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,o){1&i&&(Vt(rY),g(0,nY,1,2,"div",0),Ke(1),Ke(2,1),g(3,oY,2,0,"mat-drawer-content",1)),2&i&&(p("ngIf",o.hasBackdrop),m(3),p("ngIf",!o._content))},dependencies:[kt,Zp],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return t})(),p0=(()=>{class t extends Zp{constructor(e,i,o,r,a){super(e,i,o,r,a)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Nt),_(qt(()=>IO)),_(Le),_(au),_(We))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(i,o){2&i&&dn("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},features:[Ze([{provide:su,useExisting:t}]),_e],ngContentSelectors:Kp,decls:1,vars:0,template:function(i,o){1&i&&(Vt(),Ke(0))},encapsulation:2,changeDetection:0})}return t})(),TO=(()=>{class t extends kO{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Ue(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=mi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=mi(e)}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(i,o){2&i&&(Qe("align",null),dn("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),Xe("mat-drawer-end","end"===o.position)("mat-drawer-over","over"===o.mode)("mat-drawer-push","push"===o.mode)("mat-drawer-side","side"===o.mode)("mat-drawer-opened",o.opened)("mat-sidenav-fixed",o.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[_e],ngContentSelectors:Kp,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(i,o){1&i&&(Vt(),d(0,"div",0,1),Ke(2),l())},dependencies:[su],encapsulation:2,data:{animation:[DO.transformDrawer]},changeDetection:0})}return t})(),IO=(()=>{class t extends MO{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(i,o,r){if(1&i&&(ft(r,p0,5),ft(r,TO,5)),2&i){let a;Ee(a=Oe())&&(o._content=a.first),Ee(a=Oe())&&(o._allDrawers=a)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,o){2&i&&Xe("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ze([{provide:m0,useExisting:t}]),_e],ngContentSelectors:dY,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,o){1&i&&(Vt(lY),g(0,sY,1,2,"div",0),Ke(1),Ke(2,1),g(3,cY,2,0,"mat-sidenav-content",1)),2&i&&(p("ngIf",o.hasBackdrop),m(3),p("ngIf",!o._content))},dependencies:[kt,p0],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return t})(),EO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[xn,wt,Ua,Ua,wt]})}return t})();const pY=["panel"];function fY(t,n){if(1&t){const e=ge();d(0,"div",0,1),P("@panelAnimation.done",function(o){return ne(e),oe(C()._animationDone.next(o))}),Ke(2),l()}if(2&t){const e=n.id,i=C();p("id",i.id)("ngClass",i._classList)("@panelAnimation",i.isOpen?"visible":"hidden"),Qe("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const gY=["*"],_Y=xo("panelAnimation",[Xi("void, hidden",$t({opacity:0,transform:"scaleY(0.8)"})),zi(":enter, hidden => visible",[Qb([ji("0.03s linear",$t({opacity:1})),ji("0.12s cubic-bezier(0, 0, 0.2, 1)",$t({transform:"scaleY(1)"}))])]),zi(":leave, visible => hidden",[ji("0.075s linear",$t({opacity:0}))])]);let bY=0;class vY{constructor(n,e){this.source=n,this.option=e}}const yY=Ra(class{}),OO=new se("mat-autocomplete-default-options",{providedIn:"root",factory:function CY(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let xY=(()=>{class t extends yY{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=Ue(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=Ue(e)}get requireSelection(){return this._requireSelection}set requireSelection(e){this._requireSelection=Ue(e)}set classList(e){this._classList=e&&e.length?function X7(t,n=/\s+/){const e=[];if(null!=t){const i=Array.isArray(t)?t:`${t}`.split(n);for(const o of i){const r=`${o}`.trim();r&&e.push(r)}}return e}(e).reduce((i,o)=>(i[o]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(e,i,o,r){super(),this._changeDetectorRef=e,this._elementRef=i,this._defaults=o,this._activeOptionChanges=T.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Fe,this.opened=new Fe,this.closed=new Fe,this.optionActivated=new Fe,this._classList={},this.id="mat-autocomplete-"+bY++,this.inertGroups=r?.SAFARI||!1,this._autoActiveFirstOption=!!o.autoActiveFirstOption,this._autoSelectActiveOption=!!o.autoSelectActiveOption,this._requireSelection=!!o.requireSelection}ngAfterContentInit(){this._keyManager=new PT(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new vY(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}_setThemeClasses(e){e["mat-primary"]="primary"===this._color,e["mat-warn"]="warn"===this._color,e["mat-accent"]="accent"===this._color}_skipPredicate(e){return e.disabled}static#e=this.\u0275fac=function(i){return new(i||t)(_(Nt),_(Le),_(OO),_(ti))};static#t=this.\u0275dir=X({type:t,viewQuery:function(i,o){if(1&i&&(bt(ci,7),bt(pY,5)),2&i){let r;Ee(r=Oe())&&(o.template=r.first),Ee(r=Oe())&&(o.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",requireSelection:"requireSelection",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[_e]})}return t})(),wY=(()=>{class t extends xY{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new Fe,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=Ue(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}ngOnDestroy(){super.ngOnDestroy(),this._animationDone.complete()}_skipPredicate(e){return!1}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,o,r){if(1&i&&(ft(r,Ym,5),ft(r,un,5)),2&i){let a;Ee(a=Oe())&&(o.optionGroups=a),Ee(a=Oe())&&(o.options=a)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[Ze([{provide:Zm,useExisting:t}]),_e],ngContentSelectors:gY,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(i,o){1&i&&(Vt(),g(0,fY,3,5,"ng-template"))},dependencies:[nr],styles:["div.mat-mdc-autocomplete-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[_Y]},changeDetection:0})}return t})();const SY={provide:Wn,useExisting:qt(()=>PO),multi:!0},AO=new se("mat-autocomplete-scroll-strategy"),kY={provide:AO,deps:[On],useFactory:function DY(t){return()=>t.scrollStrategies.reposition()}};let MY=(()=>{class t{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=Ue(e)}constructor(e,i,o,r,a,s,c,h,f,b,y){this._element=e,this._overlay=i,this._viewContainerRef=o,this._zone=r,this._changeDetectorRef=a,this._dir=c,this._formField=h,this._document=f,this._viewportRuler=b,this._defaults=y,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=T.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new te,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=nl(()=>{const x=this.autocomplete?this.autocomplete.options:null;return x?x.changes.pipe(Wi(x),Yi(()=>yi(...x.map(I=>I.onSelectionChange)))):this._zone.onStable.pipe(Pt(1),Yi(()=>this.optionSelections))}),this._handlePanelKeydown=x=>{(27===x.keyCode&&!fn(x)||38===x.keyCode&&fn(x,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),x.stopPropagation(),x.preventDefault())},this._trackedModal=null,this._scrollStrategy=s}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel(),this._trackedModal&&Hm(this._trackedModal,"aria-owns",this.autocomplete.id)}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal)&&Gc(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return yi(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Mt(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Mt(()=>this._overlayAttached)):qe()).pipe(ze(e=>e instanceof ZT?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return yi(Uo(this._document,"click"),Uo(this._document,"auxclick"),Uo(this._document,"touchend")).pipe(Mt(e=>{const i=Yr(e),o=this._formField?this._formField._elementRef.nativeElement:null,r=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(i))&&(!r||!r.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,o=fn(e);if(27===i&&!o&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const r=this.autocomplete._keyManager.activeItem,a=38===i||40===i;9===i||a&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==r)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,o=i.value;"number"===i.type&&(o=""==o?null:parseFloat(o)),this._previousValue!==o&&(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),o||this._clearPreviousSelectedOption(null,!1),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return yi(this._zone.onStable.pipe(Pt(1)),this.autocomplete.options.changes.pipe(Ut(()=>this._positionStrategy.reapplyLastPosition()),Py(0))).pipe(Yi(()=>(this._zone.run(()=>{const o=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?(this._captureValueOnAttach(),this._emitOpened()):this.autocomplete.closed.emit())}),this.panelClosingActions)),Pt(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_captureValueOnAttach(){this._valueOnAttach=this._element.nativeElement.value}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const i=this.autocomplete,o=e?e.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),i._emitSelectEvent(o),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),i._animationDone?i._animationDone.pipe(Pt(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(i)})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new ta(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const i=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this._captureValueOnAttach(),this.panelOpen&&i!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new il({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}];let a;a="above"===this.position?r:"below"===this.position?i:[...i,...r],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;const i=this.autocomplete.id;this._trackedModal&&Gc(this._trackedModal,"aria-owns",i),Hm(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(Gc(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(On),_(hi),_(We),_(Nt),_(AO),_(en,8),_(nu,9),_(ct,8),_(ea),_(OO,8))};static#t=this.\u0275dir=X({type:t,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[si]})}return t})(),PO=(()=>{class t extends MY{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,o){1&i&&P("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),2&i&&Qe("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||null==o.autocomplete?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[Ze([SY]),_e]})}return t})(),RO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({providers:[kY],imports:[As,Qm,wt,xn,Ua,Qm,wt]})}return t})();function TY(t,n){if(1&t&&(d(0,"mat-option",19),u(1),l()),2&t){const e=n.$implicit;p("value",e),m(1),ye(" ",e," ")}}function IY(t,n){if(1&t){const e=ge();d(0,"mat-form-field",16)(1,"mat-select",17),P("selectionChange",function(o){return ne(e),oe(C(2)._changePageSize(o.value))}),g(2,TY,2,2,"mat-option",18),l()()}if(2&t){const e=C(2);p("appearance",e._formFieldAppearance)("color",e.color),m(1),p("value",e.pageSize)("disabled",e.disabled)("aria-labelledby",e._pageSizeLabelId)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),m(1),p("ngForOf",e._displayedPageSizeOptions)}}function EY(t,n){if(1&t&&(d(0,"div",20),u(1),l()),2&t){const e=C(2);m(1),Ie(e.pageSize)}}function OY(t,n){if(1&t&&(d(0,"div",12)(1,"div",13),u(2),l(),g(3,IY,3,8,"mat-form-field",14),g(4,EY,2,1,"div",15),l()),2&t){const e=C();m(1),A_("id",e._pageSizeLabelId),m(1),ye(" ",e._intl.itemsPerPageLabel," "),m(1),p("ngIf",e._displayedPageSizeOptions.length>1),m(1),p("ngIf",e._displayedPageSizeOptions.length<=1)}}function AY(t,n){if(1&t){const e=ge();d(0,"button",21),P("click",function(){return ne(e),oe(C().firstPage())}),Zt(),d(1,"svg",7),S(2,"path",22),l()()}if(2&t){const e=C();p("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Qe("aria-label",e._intl.firstPageLabel)}}function PY(t,n){if(1&t){const e=ge();Zt(),Xo(),d(0,"button",23),P("click",function(){return ne(e),oe(C().lastPage())}),Zt(),d(1,"svg",7),S(2,"path",24),l()()}if(2&t){const e=C();p("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Qe("aria-label",e._intl.lastPageLabel)}}let Yp=(()=>{class t{constructor(){this.changes=new te,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,i,o)=>{if(0==o||0==i)return`0 of ${o}`;const r=e*i;return`${r+1} \u2013 ${r<(o=Math.max(o,0))?Math.min(r+i,o):r+i} of ${o}`}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const FY={provide:Yp,deps:[[new Ca,new dc,Yp]],useFactory:function RY(t){return t||new Yp}},LY=new se("MAT_PAGINATOR_DEFAULT_OPTIONS"),BY=Sr(KH(class{}));let VY=(()=>{class t extends BY{get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(mi(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=mi(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(mi(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>mi(i)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Ue(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Ue(e)}constructor(e,i,o){if(super(),this._intl=e,this._changeDetectorRef=i,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new Fe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),o){const{pageSize:r,pageSizeOptions:a,hidePageSize:s,showFirstLastButtons:c}=o;null!=r&&(this._pageSize=r),null!=a&&(this._pageSizeOptions=a),null!=s&&(this._hidePageSize=s),null!=c&&(this._showFirstLastButtons=c)}}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static#e=this.\u0275fac=function(i){_r()};static#t=this.\u0275dir=X({type:t,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[_e]})}return t})(),jY=0,f0=(()=>{class t extends VY{constructor(e,i,o){super(e,i,o),this._pageSizeLabelId="mat-paginator-page-size-label-"+jY++,this._formFieldAppearance=o?.formFieldAppearance||"outline"}static#e=this.\u0275fac=function(i){return new(i||t)(_(Yp),_(Nt),_(LY,8))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[_e],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size",4,"ngIf"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label",3,"id"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-mdc-paginator-page-size-value",4,"ngIf"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1),g(2,OY,5,4,"div",2),d(3,"div",3)(4,"div",4),u(5),l(),g(6,AY,3,5,"button",5),d(7,"button",6),P("click",function(){return o.previousPage()}),Zt(),d(8,"svg",7),S(9,"path",8),l()(),Xo(),d(10,"button",9),P("click",function(){return o.nextPage()}),Zt(),d(11,"svg",7),S(12,"path",10),l()(),g(13,PY,3,5,"button",11),l()()()),2&i&&(m(2),p("ngIf",!o.hidePageSize),m(3),ye(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),m(1),p("ngIf",o.showFirstLastButtons),m(1),p("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("matTooltipPosition","above")("disabled",o._previousButtonsDisabled()),Qe("aria-label",o._intl.previousPageLabel),m(3),p("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("matTooltipPosition","above")("disabled",o._nextButtonsDisabled()),Qe("aria-label",o._intl.nextPageLabel),m(3),p("ngIf",o.showFirstLastButtons))},dependencies:[qi,kt,Jr,_i,An,un,on],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return t})(),FO=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({providers:[FY],imports:[xn,Jm,Ay,h0]})}return t})();const zY=[n2,Jm,O2,P2,N2,UI,ou,nE,Ay,BI,CE,ME,NE,Xy,FO,WE,nO,c0,gO,Jv,h0,SO,EO,RO];let HY=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[zY,n2,Jm,O2,P2,N2,UI,ou,nE,Ay,BI,CE,ME,NE,Xy,FO,WE,nO,c0,gO,Jv,h0,SO,EO,RO]})}return t})();const UY=["input"],$Y=["*"];let NO=0;class LO{constructor(n,e){this.source=n,this.value=e}}const GY={provide:Wn,useExisting:qt(()=>Qp),multi:!0},BO=new se("MatRadioGroup"),qY=new se("mat-radio-default-options",{providedIn:"root",factory:function WY(){return{color:"accent"}}});let KY=(()=>{class t{get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=Ue(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=Ue(e),this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+NO++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new Fe}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new LO(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Nt))};static#t=this.\u0275dir=X({type:t,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}})}return t})();class ZY{constructor(n){this._elementRef=n}}const YY=Ra(Fa(ZY));let QY=(()=>{class t extends YY{get checked(){return this._checked}set checked(e){const i=Ue(e);this._checked!==i&&(this._checked=i,i&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!i&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),i&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(Ue(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=Ue(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,o,r,a,s,c,h){super(i),this._changeDetector=o,this._focusMonitor=r,this._radioDispatcher=a,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++NO,this.id=this._uniqueId,this.change=new Fe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,h&&(this.tabIndex=mi(h,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new LO(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let i;if(i=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,i!==this._previousTabIndex){const o=this._inputElement?.nativeElement;o&&(o.setAttribute("tabindex",i+""),this._previousTabIndex=i)}}static#e=this.\u0275fac=function(i){_r()};static#t=this.\u0275dir=X({type:t,viewQuery:function(i,o){if(1&i&&bt(UY,5),2&i){let r;Ee(r=Oe())&&(o._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[_e]})}return t})(),Qp=(()=>{class t extends KY{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275dir=X({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,o,r){if(1&i&&ft(r,Xp,5),2&i){let a;Ee(a=Oe())&&(o._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[Ze([GY,{provide:BO,useExisting:t}]),_e]})}return t})(),Xp=(()=>{class t extends QY{constructor(e,i,o,r,a,s,c,h){super(e,i,o,r,a,s,c,h)}static#e=this.\u0275fac=function(i){return new(i||t)(_(BO,8),_(Le),_(Nt),_(Do),_(iy),_(oi,8),_(qY,8),zn("tabindex"))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(i,o){1&i&&P("focus",function(){return o._inputElement.nativeElement.focus()}),2&i&&(Qe("id",o.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Xe("mat-primary","primary"===o.color)("mat-accent","accent"===o.color)("mat-warn","warn"===o.color)("mat-mdc-radio-checked",o.checked)("_mat-animation-noopable",o._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[_e],ngContentSelectors:$Y,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,o){if(1&i&&(Vt(),d(0,"div",0,1)(2,"div",2)(3,"div",3),P("click",function(a){return o._onTouchTargetClick(a)}),l(),d(4,"input",4,5),P("change",function(a){return o._onInputInteraction(a)}),l(),d(6,"div",6),S(7,"div",7)(8,"div",8),l(),d(9,"div",9),S(10,"div",10),l()(),d(11,"label",11),Ke(12),l()()),2&i){const r=At(1);Xe("mdc-form-field--align-end","before"==o.labelPosition),m(2),Xe("mdc-radio--disabled",o.disabled),m(2),p("id",o.inputId)("checked",o.checked)("disabled",o.disabled)("required",o.required),Qe("name",o.name)("value",o.value)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby),m(5),p("matRippleTrigger",r)("matRippleDisabled",o._isRippleDisabled())("matRippleCentered",!0),m(2),p("for",o.inputId)}},dependencies:[Na],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{--mdc-radio-disabled-selected-icon-opacity:0.38;--mdc-radio-disabled-unselected-icon-opacity:0.38;--mdc-radio-state-layer-size:40px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}return t})(),XY=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[wt,xn,La,wt]})}return t})();class JY{constructor(n,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),o=i.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",i.setAttribute("aria-hidden","true"),i.value=n,i.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(i)}copy(){const n=this._textarea;let e=!1;try{if(n){const i=this._document.activeElement;n.select(),n.setSelectionRange(0,n.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch{}return e}destroy(){const n=this._textarea;n&&(n.remove(),this._textarea=void 0)}}let eQ=(()=>{class t{constructor(e){this._document=e}copy(e){const i=this.beginCopy(e),o=i.copy();return i.destroy(),o}beginCopy(e){return new JY(e,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ct))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const tQ=new se("CDK_COPY_TO_CLIPBOARD_CONFIG");let g0=(()=>{class t{constructor(e,i,o){this._clipboard=e,this._ngZone=i,this.text="",this.attempts=1,this.copied=new Fe,this._pending=new Set,o&&null!=o.attempts&&(this.attempts=o.attempts)}copy(e=this.attempts){if(e>1){let i=e;const o=this._clipboard.beginCopy(this.text);this._pending.add(o);const r=()=>{const a=o.copy();a||! --i||this._destroyed?(this._currentTimeout=null,this._pending.delete(o),o.destroy(),this.copied.emit(a)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(r,1))};r()}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}static#e=this.\u0275fac=function(i){return new(i||t)(_(eQ),_(We),_(tQ,8))};static#t=this.\u0275dir=X({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(i,o){1&i&&P("click",function(){return o.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}})}return t})(),iQ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({})}return t})();const Jp=N(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ef(t){return at((n,e)=>{let i=!1;n.subscribe(dt(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function VO(t=nQ){return at((n,e)=>{let i=!1;n.subscribe(dt(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function nQ(){return new Jp}function Rs(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Mt((o,r)=>t(o,r,i)):Ae,Pt(1),e?ef(n):VO(()=>new Jp))}function _0(t){return t<=0?()=>ho:at((n,e)=>{let i=[];n.subscribe(dt(e,o=>{i.push(o),t{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}const Ft="primary",mu=Symbol("RouteTitle");class sQ{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function dl(t){return new sQ(t)}function cQ(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===o)}return t===n}function zO(t){return t.length>0?t[t.length-1]:null}function Za(t){return Tp(t)?t:dd(t)?Hi(Promise.resolve(t)):qe(t)}const dQ={exact:function $O(t,n,e){if(!Fs(t.segments,n.segments)||!tf(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!$O(t.children[i],n.children[i],e))return!1;return!0},subset:GO},HO={exact:function uQ(t,n){return Tr(t,n)},subset:function hQ(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>jO(t[e],n[e]))},ignored:()=>!0};function UO(t,n,e){return dQ[e.paths](t.root,n.root,e.matrixParams)&&HO[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function GO(t,n,e){return qO(t,n,n.segments,e)}function qO(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Fs(o,e)||n.hasChildren()||!tf(o,e,i))}if(t.segments.length===e.length){if(!Fs(t.segments,e)||!tf(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!GO(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Fs(t.segments,o)&&tf(t.segments,o,i)&&t.children[Ft])&&qO(t.children[Ft],n,r,i)}}function tf(t,n,e){return n.every((i,o)=>HO[e](t[o].parameters,i.parameters))}class ul{constructor(n=new di([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=dl(this.queryParams)),this._queryParamMap}toString(){return fQ.serialize(this)}}class di{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return nf(this)}}class pu{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=dl(this.parameters)),this._parameterMap}toString(){return ZO(this)}}function Fs(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let fu=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:function(){return new b0},providedIn:"root"})}return t})();class b0{parse(n){const e=new kQ(n);return new ul(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${gu(n.root,!0)}`,i=function bQ(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(o=>`${rf(e)}=${rf(o)}`).join("&"):`${rf(e)}=${rf(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function gQ(t){return encodeURI(t)}(n.fragment)}`:""}`}}const fQ=new b0;function nf(t){return t.segments.map(n=>ZO(n)).join("/")}function gu(t,n){if(!t.hasChildren())return nf(t);if(n){const e=t.children[Ft]?gu(t.children[Ft],!1):"",i=[];return Object.entries(t.children).forEach(([o,r])=>{o!==Ft&&i.push(`${o}:${gu(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function pQ(t,n){let e=[];return Object.entries(t.children).forEach(([i,o])=>{i===Ft&&(e=e.concat(n(o,i)))}),Object.entries(t.children).forEach(([i,o])=>{i!==Ft&&(e=e.concat(n(o,i)))}),e}(t,(i,o)=>o===Ft?[gu(t.children[Ft],!1)]:[`${o}:${gu(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ft]?`${nf(t)}/${e[0]}`:`${nf(t)}/(${e.join("//")})`}}function WO(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rf(t){return WO(t).replace(/%3B/gi,";")}function v0(t){return WO(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function af(t){return decodeURIComponent(t)}function KO(t){return af(t.replace(/\+/g,"%20"))}function ZO(t){return`${v0(t.path)}${function _Q(t){return Object.keys(t).map(n=>`;${v0(n)}=${v0(t[n])}`).join("")}(t.parameters)}`}const vQ=/^[^\/()?;#]+/;function y0(t){const n=t.match(vQ);return n?n[0]:""}const yQ=/^[^\/()?;=#]+/,xQ=/^[^=?&#]+/,SQ=/^[^&#]+/;class kQ{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new di([],{}):new di([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Ft]=new di(n,e)),i}parseSegment(){const n=y0(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new pe(4009,!1);return this.capture(n),new pu(af(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function CQ(t){const n=t.match(yQ);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=y0(this.remaining);o&&(i=o,this.capture(i))}n[af(e)]=af(i)}parseQueryParam(n){const e=function wQ(t){const n=t.match(xQ);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function DQ(t){const n=t.match(SQ);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const o=KO(e),r=KO(i);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=y0(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new pe(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=Ft);const a=this.parseChildren();e[r]=1===Object.keys(a).length?a[Ft]:new di([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new pe(4011,!1)}}function YO(t){return t.segments.length>0?new di([],{[Ft]:t}):t}function QO(t){const n={};for(const i of Object.keys(t.children)){const r=QO(t.children[i]);if(i===Ft&&0===r.segments.length&&r.hasChildren())for(const[a,s]of Object.entries(r.children))n[a]=s;else(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function MQ(t){if(1===t.numberOfChildren&&t.children[Ft]){const n=t.children[Ft];return new di(t.segments.concat(n.segments),n.children)}return t}(new di(t.segments,n))}function Ns(t){return t instanceof ul}function XO(t){let n;const o=YO(function e(r){const a={};for(const c of r.children){const h=e(c);a[c.outlet]=h}const s=new di(r.url,a);return r===t&&(n=s),s}(t.root));return n??o}function JO(t,n,e,i){let o=t;for(;o.parent;)o=o.parent;if(0===n.length)return C0(o,o,o,e,i);const r=function IQ(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new tA(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,a)=>{if("object"==typeof r&&null!=r){if(r.outlets){const s={};return Object.entries(r.outlets).forEach(([c,h])=>{s[c]="string"==typeof h?h.split("/"):h}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===a?(r.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?e=!0:".."===s?n++:""!=s&&o.push(s))}),o):[...o,r]},[]);return new tA(e,n,i)}(n);if(r.toRoot())return C0(o,o,new di([],{}),e,i);const a=function EQ(t,n,e){if(t.isAbsolute)return new cf(n,!0,0);if(!e)return new cf(n,!1,NaN);if(null===e.parent)return new cf(e,!0,0);const i=sf(t.commands[0])?0:1;return function OQ(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new pe(4005,!1);o=i.segments.length}return new cf(i,!1,o-r)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(r,o,t),s=a.processChildren?bu(a.segmentGroup,a.index,r.commands):iA(a.segmentGroup,a.index,r.commands);return C0(o,a.segmentGroup,s,e,i)}function sf(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function _u(t){return"object"==typeof t&&null!=t&&t.outlets}function C0(t,n,e,i,o){let a,r={};i&&Object.entries(i).forEach(([c,h])=>{r[c]=Array.isArray(h)?h.map(f=>`${f}`):`${h}`}),a=t===n?e:eA(t,n,e);const s=YO(QO(a));return new ul(s,r,o)}function eA(t,n,e){const i={};return Object.entries(t.children).forEach(([o,r])=>{i[o]=r===n?e:eA(r,n,e)}),new di(t.segments,i)}class tA{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&sf(i[0]))throw new pe(4003,!1);const o=i.find(_u);if(o&&o!==zO(i))throw new pe(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class cf{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function iA(t,n,e){if(t||(t=new di([],{})),0===t.segments.length&&t.hasChildren())return bu(t,n,e);const i=function PQ(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;const a=t.segments[o],s=e[i];if(_u(s))break;const c=`${s}`,h=i0&&void 0===c)break;if(c&&h&&"object"==typeof h&&void 0===h.outlets){if(!oA(c,h,a))return r;i+=2}else{if(!oA(c,{},a))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndexr!==Ft)&&t.children[Ft]&&1===t.numberOfChildren&&0===t.children[Ft].segments.length){const r=bu(t.children[Ft],n,e);return new di(t.segments,r.children)}return Object.entries(i).forEach(([r,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(o[r]=iA(t.children[r],n,a))}),Object.entries(t.children).forEach(([r,a])=>{void 0===i[r]&&(o[r]=a)}),new di(t.segments,o)}}function x0(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=x0(new di([],{}),0,i))}),n}function nA(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function oA(t,n,e){return t==e.path&&Tr(n,e.parameters)}const vu="imperative";class Ir{constructor(n,e){this.id=n,this.url=e}}class lf extends Ir{constructor(n,e,i="imperative",o=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ya extends Ir{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class yu extends Ir{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class hl extends Ir{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=16}}class df extends Ir{constructor(n,e,i,o){super(n,e),this.error=i,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class rA extends Ir{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class FQ extends Ir{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NQ extends Ir{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class LQ extends Ir{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class BQ extends Ir{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class VQ{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class jQ{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class zQ{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class HQ{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class UQ{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $Q{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class aA{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class w0{}class S0{constructor(n){this.url=n}}class GQ{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Cu,this.attachRef=null}}let Cu=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new GQ,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class sA{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=D0(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=D0(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=k0(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return k0(n,this._root).map(e=>e.value)}}function D0(t,n){if(t===n.value)return n;for(const e of n.children){const i=D0(t,e);if(i)return i}return null}function k0(t,n){if(t===n.value)return[n];for(const e of n.children){const i=k0(t,e);if(i.length)return i.unshift(n),i}return[]}class ha{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function ml(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class cA extends sA{constructor(n,e){super(n),this.snapshot=e,M0(this,n)}toString(){return this.snapshot.toString()}}function lA(t,n){const e=function qQ(t,n){const a=new uf([],{},{},"",{},Ft,n,null,{});return new uA("",new ha(a,[]))}(0,n),i=new pt([new pu("",{})]),o=new pt({}),r=new pt({}),a=new pt({}),s=new pt(""),c=new pl(i,o,a,s,r,Ft,n,e.root);return c.snapshot=e.root,new cA(new ha(c,[]),e)}class pl{constructor(n,e,i,o,r,a,s,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(ze(h=>h[mu]))??qe(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r}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(ze(n=>dl(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ze(n=>dl(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function dA(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const o=e[i],r=e[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(r.component)break;i--}}return function WQ(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class uf{get title(){return this.data?.[mu]}constructor(n,e,i,o,r,a,s,c,h){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=c,this._resolve=h}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=dl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=dl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class uA extends sA{constructor(n,e){super(e),this.url=n,M0(this,e)}toString(){return hA(this._root)}}function M0(t,n){n.value._routerState=t,n.children.forEach(e=>M0(t,e))}function hA(t){const n=t.children.length>0?` { ${t.children.map(hA).join(", ")} } `:"";return`${t.value}${n}`}function T0(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Tr(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Tr(n.params,e.params)||t.paramsSubject.next(e.params),function lQ(t,n){if(t.length!==n.length)return!1;for(let e=0;eTr(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||I0(t.parent,n.parent))}let hf=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ft,this.activateEvents=new Fe,this.deactivateEvents=new Fe,this.attachEvents=new Fe,this.detachEvents=new Fe,this.parentContexts=Ne(Cu),this.location=Ne(hi),this.changeDetector=Ne(Nt),this.environmentInjector=Ne(bo),this.inputBinder=Ne(mf,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:o}=e.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new pe(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new pe(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new pe(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),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,i){if(this.isActivated)throw new pe(4013,!1);this._activatedRoute=e;const o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new KQ(e,s,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=X({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[si]})}return t})();class KQ{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===pl?this.route:n===Cu?this.childContexts:this.parent.get(n,e)}}const mf=new se("");let mA=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,o=Cs([i.queryParams,i.params,i.data]).pipe(Yi(([r,a,s],c)=>(s={...r,...a,...s},0===c?qe(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const a=function yB(t){const n=Wt(t);if(!n)return null;const e=new rd(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(a)for(const{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();function xu(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function YQ(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return xu(t,i,o);return xu(t,i)})}(t,n,e);return new ha(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const a=r.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>xu(t,s)),a}}const i=function QQ(t){return new pl(new pt(t.url),new pt(t.params),new pt(t.queryParams),new pt(t.fragment),new pt(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>xu(t,r));return new ha(i,o)}}const E0="ngNavigationCancelingError";function pA(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=Ns(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=fA(!1,0,n);return o.url=e,o.navigationBehaviorOptions=i,o}function fA(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[E0]=!0,i.cancellationCode=n,e&&(i.url=e),i}function gA(t){return t&&t[E0]}let _A=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Me({type:t,selectors:[["ng-component"]],standalone:!0,features:[pD],decls:1,vars:0,template:function(i,o){1&i&&S(0,"router-outlet")},dependencies:[hf],encapsulation:2})}return t})();function O0(t){const n=t.children&&t.children.map(O0),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Ft&&(e.component=_A),e}function cr(t){return t.outlet||Ft}function wu(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class rX{constructor(n,e,i,o,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),T0(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=ml(e);n.children.forEach(r=>{const a=r.value.outlet;this.deactivateRoutes(r,o[a],i),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const a=i.getContext(o.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=ml(n);for(const a of Object.keys(r))this.deactivateRouteAndItsChildren(r[a],o);if(i&&i.outlet){const a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=ml(n);for(const a of Object.keys(r))this.deactivateRouteAndItsChildren(r[a],o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){const o=ml(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new $Q(r.value.snapshot))}),n.children.length&&this.forwardEvent(new HQ(n.value.snapshot))}activateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(T0(o),o===r)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),T0(s.route.value),this.activateChildRoutes(n,null,a.children)}else{const s=wu(o.snapshot);a.attachRef=null,a.route=o,a.injector=s,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class bA{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class pf{constructor(n,e){this.component=n,this.route=e}}function aX(t,n,e){const i=t._root;return Su(i,n?n._root:null,e,[i.value])}function fl(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function FP(t){return null!==Fu(t)}(t)?n.get(t):t:i}function Su(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=ml(n);return t.children.forEach(a=>{(function cX(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const c=function lX(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Fs(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Fs(t.url,n.url)||!Tr(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!I0(t,n)||!Tr(t.queryParams,n.queryParams);default:return!I0(t,n)}}(a,r,r.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new bA(i)):(r.data=a.data,r._resolvedData=a._resolvedData),Su(t,n,r.component?s?s.children:null:e,i,o),c&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new pf(s.outlet.component,a))}else a&&Du(n,s,o),o.canActivateChecks.push(new bA(i)),Su(t,null,r.component?s?s.children:null:e,i,o)})(a,r[a.value.outlet],e,i.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>Du(s,e.getContext(a),o)),o}function Du(t,n,e){const i=ml(t),o=t.value;Object.entries(i).forEach(([r,a])=>{Du(a,o.component?n?n.children.getContext(r):null:n,e)}),e.canDeactivateChecks.push(new pf(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function ku(t){return"function"==typeof t}function vA(t){return t instanceof Jp||"EmptyError"===t?.name}const ff=Symbol("INITIAL_VALUE");function gl(){return Yi(t=>Cs(t.map(n=>n.pipe(Pt(1),Wi(ff)))).pipe(ze(n=>{for(const e of n)if(!0!==e){if(e===ff)return ff;if(!1===e||e instanceof ul)return e}return!0}),Mt(n=>n!==ff),Pt(1)))}function yA(t){return function Lt(...t){return Ve(t)}(Ut(n=>{if(Ns(n))throw pA(0,n)}),ze(n=>!0===n))}class gf{constructor(n){this.segmentGroup=n||null}}class CA{constructor(n){this.urlTree=n}}function _l(t){return Kc(new gf(t))}function xA(t){return Kc(new CA(t))}class IX{constructor(n,e){this.urlSerializer=n,this.urlTree=e}noMatchError(n){return new pe(4002,!1)}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return qe(i);if(o.numberOfChildren>1||!o.children[Ft])return Kc(new pe(4e3,!1));o=o.children[Ft]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new ul(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([o,r])=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);i[o]=e[s]}else i[o]=r}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let a={};return Object.entries(e.children).forEach(([s,c])=>{a[s]=this.createSegmentGroup(n,c,i,o)}),new di(r,a)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new pe(4001,!1);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}const A0={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function EX(t,n,e,i,o){const r=P0(t,n,e);return r.matched?(i=function JQ(t,n){return t.providers&&!t._injector&&(t._injector=K_(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function kX(t,n,e,i){const o=n.canMatch;return o&&0!==o.length?qe(o.map(a=>{const s=fl(a,t);return Za(function fX(t){return t&&ku(t.canMatch)}(s)?s.canMatch(n,e):t.runInContext(()=>s(n,e)))})).pipe(gl(),yA()):qe(!0)}(i,n,e).pipe(ze(a=>!0===a?r:{...A0}))):qe(r)}function P0(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...A0}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||cQ)(e,t,n);if(!o)return{...A0};const r={};Object.entries(o.posParams??{}).forEach(([s,c])=>{r[s]=c.path});const a=o.consumed.length>0?{...r,...o.consumed[o.consumed.length-1].parameters}:r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function wA(t,n,e,i){return e.length>0&&function PX(t,n,e){return e.some(i=>_f(t,n,i)&&cr(i)!==Ft)}(t,e,i)?{segmentGroup:new di(n,AX(i,new di(e,t.children))),slicedSegments:[]}:0===e.length&&function RX(t,n,e){return e.some(i=>_f(t,n,i))}(t,e,i)?{segmentGroup:new di(t.segments,OX(t,0,e,i,t.children)),slicedSegments:e}:{segmentGroup:new di(t.segments,t.children),slicedSegments:e}}function OX(t,n,e,i,o){const r={};for(const a of i)if(_f(t,e,a)&&!o[cr(a)]){const s=new di([],{});r[cr(a)]=s}return{...o,...r}}function AX(t,n){const e={};e[Ft]=n;for(const i of t)if(""===i.path&&cr(i)!==Ft){const o=new di([],{});e[cr(i)]=o}return e}function _f(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class BX{constructor(n,e,i,o,r,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.allowRedirects=!0,this.applyRedirects=new IX(this.urlSerializer,this.urlTree)}noMatchError(n){return new pe(4002,!1)}recognize(){const n=wA(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Ft).pipe(Di(e=>{if(e instanceof CA)return this.allowRedirects=!1,this.urlTree=e.urlTree,this.match(e.urlTree);throw e instanceof gf?this.noMatchError(e):e}),ze(e=>{const i=new uf([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ft,this.rootComponentType,null,{}),o=new ha(i,e),r=new uA("",o),a=function TQ(t,n,e=null,i=null){return JO(XO(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root),{state:r,tree:a}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,Ft).pipe(Di(i=>{throw i instanceof gf?this.noMatchError(i):i}))}inheritParamsAndData(n){const e=n.value,i=dA(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,o,!0)}processChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return Hi(o).pipe(Zc(r=>{const a=i.children[r],s=function nX(t,n){const e=t.filter(i=>cr(i)===n);return e.push(...t.filter(i=>cr(i)!==n)),e}(e,r);return this.processSegmentGroup(n,s,a,r)}),function rQ(t,n){return at(function oQ(t,n,e,i,o){return(r,a)=>{let s=e,c=n,h=0;r.subscribe(dt(a,f=>{const b=h++;c=s?t(c,f,b):(s=!0,f),i&&a.next(c)},o&&(()=>{s&&a.next(c),a.complete()})))}}(t,n,arguments.length>=2,!0))}((r,a)=>(r.push(...a),r)),ef(null),function aQ(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Mt((o,r)=>t(o,r,i)):Ae,_0(1),e?ef(n):VO(()=>new Jp))}(),an(r=>{if(null===r)return _l(i);const a=SA(r);return function VX(t){t.sort((n,e)=>n.value.outlet===Ft?-1:e.value.outlet===Ft?1:n.value.outlet.localeCompare(e.value.outlet))}(a),qe(a)}))}processSegment(n,e,i,o,r,a){return Hi(e).pipe(Zc(s=>this.processSegmentAgainstRoute(s._injector??n,e,s,i,o,r,a).pipe(Di(c=>{if(c instanceof gf)return qe(null);throw c}))),Rs(s=>!!s),Di(s=>{if(vA(s))return function NX(t,n,e){return 0===n.length&&!t.children[e]}(i,o,r)?qe([]):_l(i);throw s}))}processSegmentAgainstRoute(n,e,i,o,r,a,s){return function FX(t,n,e,i){return!!(cr(t)===i||i!==Ft&&_f(n,e,t))&&("**"===t.path||P0(n,t,e).matched)}(i,o,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,o,i,r,a,s):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,i,r,a):_l(o):_l(o)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,o,a):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,o){const r=this.applyRedirects.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?xA(r):this.applyRedirects.lineralizeSegments(i,r).pipe(an(a=>{const s=new di(a,{});return this.processSegment(n,e,s,a,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){const{matched:s,consumedSegments:c,remainingSegments:h,positionalParamSegments:f}=P0(e,o,r);if(!s)return _l(e);const b=this.applyRedirects.applyRedirectCommands(c,o.redirectTo,f);return o.redirectTo.startsWith("/")?xA(b):this.applyRedirects.lineralizeSegments(o,b).pipe(an(y=>this.processSegment(n,i,e,y.concat(h),a,!1)))}matchSegmentAgainstRoute(n,e,i,o,r,a){let s;if("**"===i.path){const c=o.length>0?zO(o).parameters:{};s=qe({snapshot:new uf(o,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,DA(i),cr(i),i.component??i._loadedComponent??null,i,kA(i)),consumedSegments:[],remainingSegments:[]}),e.children={}}else s=EX(e,i,o,n).pipe(ze(({matched:c,consumedSegments:h,remainingSegments:f,parameters:b})=>c?{snapshot:new uf(h,b,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,DA(i),cr(i),i.component??i._loadedComponent??null,i,kA(i)),consumedSegments:h,remainingSegments:f}:null));return s.pipe(Yi(c=>null===c?_l(e):this.getChildConfig(n=i._injector??n,i,o).pipe(Yi(({routes:h})=>{const f=i._loadedInjector??n,{snapshot:b,consumedSegments:y,remainingSegments:x}=c,{segmentGroup:I,slicedSegments:O}=wA(e,y,x,h);if(0===O.length&&I.hasChildren())return this.processChildren(f,h,I).pipe(ze(de=>null===de?null:[new ha(b,de)]));if(0===h.length&&0===O.length)return qe([new ha(b,[])]);const W=cr(i)===r;return this.processSegment(f,h,I,O,W?Ft:r,!0).pipe(ze(de=>[new ha(b,de)]))}))))}getChildConfig(n,e,i){return e.children?qe({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?qe({routes:e._loadedRoutes,injector:e._loadedInjector}):function DX(t,n,e,i){const o=n.canLoad;return void 0===o||0===o.length?qe(!0):qe(o.map(a=>{const s=fl(a,t);return Za(function uX(t){return t&&ku(t.canLoad)}(s)?s.canLoad(n,e):t.runInContext(()=>s(n,e)))})).pipe(gl(),yA())}(n,e,i).pipe(an(o=>o?this.configLoader.loadChildren(n,e).pipe(Ut(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):function TX(t){return Kc(fA(!1,3))}())):qe({routes:[],injector:n})}}function jX(t){const n=t.value.routeConfig;return n&&""===n.path}function SA(t){const n=[],e=new Set;for(const i of t){if(!jX(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=SA(i.children);n.push(new ha(i.value,o))}return n.filter(i=>!e.has(i))}function DA(t){return t.data||{}}function kA(t){return t.resolve||{}}function MA(t){return"string"==typeof t.title||null===t.title}function R0(t){return Yi(n=>{const e=t(n);return e?Hi(e).pipe(ze(()=>n)):qe(n)})}const bl=new se("ROUTES");let F0=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Ne(sk)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return qe(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Za(e.loadComponent()).pipe(ze(TA),Ut(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),ws(()=>{this.componentLoaders.delete(e)})),o=new ty(i,()=>new te).pipe(ey());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return qe({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=function WX(t,n,e,i){return Za(t.loadChildren()).pipe(ze(TA),an(o=>o instanceof hD||Array.isArray(o)?qe(o):Hi(n.compileModuleAsync(o))),ze(o=>{i&&i(t);let r,a,s=!1;return Array.isArray(o)?(a=o,!0):(r=o.create(e).injector,a=r.get(bl,[],{optional:!0,self:!0}).flat()),{routes:a.map(O0),injector:r}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(ws(()=>{this.childrenLoaders.delete(i)})),a=new ty(r,()=>new te).pipe(ey());return this.childrenLoaders.set(i,a),a}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function TA(t){return function KX(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let bf=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new te,this.transitionAbortSubject=new te,this.configLoader=Ne(F0),this.environmentInjector=Ne(bo),this.urlSerializer=Ne(fu),this.rootContexts=Ne(Cu),this.inputBindingEnabled=null!==Ne(mf,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>qe(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new jQ(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new VQ(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,o){return this.transitions=new pt({id:0,currentUrlTree:i,currentRawUrl:i,currentBrowserUrl:i,extractedUrl:e.urlHandlingStrategy.extract(i),urlAfterRedirects:e.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:vu,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Mt(r=>0!==r.id),ze(r=>({...r,extractedUrl:e.urlHandlingStrategy.extract(r.rawUrl)})),Yi(r=>{this.currentTransition=r;let a=!1,s=!1;return qe(r).pipe(Ut(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Yi(c=>{const h=c.currentBrowserUrl.toString(),f=!e.navigated||c.extractedUrl.toString()!==h||h!==c.currentUrlTree.toString();if(!f&&"reload"!==(c.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const y="";return this.events.next(new hl(c.id,this.urlSerializer.serialize(c.rawUrl),y,0)),c.resolve(null),ho}if(e.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return qe(c).pipe(Yi(y=>{const x=this.transitions?.getValue();return this.events.next(new lf(y.id,this.urlSerializer.serialize(y.extractedUrl),y.source,y.restoredState)),x!==this.transitions?.getValue()?ho:Promise.resolve(y)}),function zX(t,n,e,i,o,r){return an(a=>function LX(t,n,e,i,o,r,a="emptyOnly"){return new BX(t,n,e,i,o,a,r).recognize()}(t,n,e,i,a.extractedUrl,o,r).pipe(ze(({state:s,tree:c})=>({...a,targetSnapshot:s,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),Ut(y=>{r.targetSnapshot=y.targetSnapshot,r.urlAfterRedirects=y.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:y.urlAfterRedirects};const x=new rA(y.id,this.urlSerializer.serialize(y.extractedUrl),this.urlSerializer.serialize(y.urlAfterRedirects),y.targetSnapshot);this.events.next(x)}));if(f&&e.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:y,extractedUrl:x,source:I,restoredState:O,extras:W}=c,de=new lf(y,this.urlSerializer.serialize(x),I,O);this.events.next(de);const re=lA(0,this.rootComponentType).snapshot;return this.currentTransition=r={...c,targetSnapshot:re,urlAfterRedirects:x,extras:{...W,skipLocationChange:!1,replaceUrl:!1}},qe(r)}{const y="";return this.events.next(new hl(c.id,this.urlSerializer.serialize(c.extractedUrl),y,1)),c.resolve(null),ho}}),Ut(c=>{const h=new FQ(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}),ze(c=>(this.currentTransition=r={...c,guards:aX(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},r)),function _X(t,n){return an(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return 0===a.length&&0===r.length?qe({...e,guardsResult:!0}):function bX(t,n,e,i){return Hi(t).pipe(an(o=>function SX(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?qe(r.map(s=>{const c=wu(n)??o,h=fl(s,c);return Za(function pX(t){return t&&ku(t.canDeactivate)}(h)?h.canDeactivate(t,n,e,i):c.runInContext(()=>h(t,n,e,i))).pipe(Rs())})).pipe(gl()):qe(!0)}(o.component,o.route,e,n,i)),Rs(o=>!0!==o,!0))}(a,i,o,t).pipe(an(s=>s&&function dX(t){return"boolean"==typeof t}(s)?function vX(t,n,e,i){return Hi(n).pipe(Zc(o=>Vd(function CX(t,n){return null!==t&&n&&n(new zQ(t)),qe(!0)}(o.route.parent,i),function yX(t,n){return null!==t&&n&&n(new UQ(t)),qe(!0)}(o.route,i),function wX(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(a=>function sX(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>nl(()=>qe(a.guards.map(c=>{const h=wu(a.node)??e,f=fl(c,h);return Za(function mX(t){return t&&ku(t.canActivateChild)}(f)?f.canActivateChild(i,t):h.runInContext(()=>f(i,t))).pipe(Rs())})).pipe(gl())));return qe(r).pipe(gl())}(t,o.path,e),function xX(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return qe(!0);const o=i.map(r=>nl(()=>{const a=wu(n)??e,s=fl(r,a);return Za(function hX(t){return t&&ku(t.canActivate)}(s)?s.canActivate(n,t):a.runInContext(()=>s(n,t))).pipe(Rs())}));return qe(o).pipe(gl())}(t,o.route,e))),Rs(o=>!0!==o,!0))}(i,r,t,n):qe(s)),ze(s=>({...e,guardsResult:s})))})}(this.environmentInjector,c=>this.events.next(c)),Ut(c=>{if(r.guardsResult=c.guardsResult,Ns(c.guardsResult))throw pA(0,c.guardsResult);const h=new NQ(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(h)}),Mt(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",3),!1)),R0(c=>{if(c.guards.canActivateChecks.length)return qe(c).pipe(Ut(h=>{const f=new LQ(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}),Yi(h=>{let f=!1;return qe(h).pipe(function HX(t,n){return an(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return qe(e);let r=0;return Hi(o).pipe(Zc(a=>function UX(t,n,e,i){const o=t.routeConfig,r=t._resolve;return void 0!==o?.title&&!MA(o)&&(r[mu]=o.title),function $X(t,n,e,i){const o=function GX(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return qe({});const r={};return Hi(o).pipe(an(a=>function qX(t,n,e,i){const o=wu(n)??i,r=fl(t,o);return Za(r.resolve?r.resolve(n,e):o.runInContext(()=>r(n,e)))}(t[a],n,e,i).pipe(Rs(),Ut(s=>{r[a]=s}))),_0(1),kp(r),Di(a=>vA(a)?ho:Kc(a)))}(r,t,n,i).pipe(ze(a=>(t._resolvedData=a,t.data=dA(t,e).resolve,o&&MA(o)&&(t.data[mu]=o.title),null)))}(a.route,i,t,n)),Ut(()=>r++),_0(1),an(a=>r===o.length?qe(e):ho))})}(e.paramsInheritanceStrategy,this.environmentInjector),Ut({next:()=>f=!0,complete:()=>{f||this.cancelNavigationTransition(h,"",2)}}))}),Ut(h=>{const f=new BQ(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}))}),R0(c=>{const h=f=>{const b=[];f.routeConfig?.loadComponent&&!f.routeConfig._loadedComponent&&b.push(this.configLoader.loadComponent(f.routeConfig).pipe(Ut(y=>{f.component=y}),ze(()=>{})));for(const y of f.children)b.push(...h(y));return b};return Cs(h(c.targetSnapshot.root)).pipe(ef(),Pt(1))}),R0(()=>this.afterPreactivation()),ze(c=>{const h=function ZQ(t,n,e){const i=xu(t,n._root,e?e._root:void 0);return new cA(i,n)}(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=r={...c,targetRouterState:h},r}),Ut(()=>{this.events.next(new w0)}),((t,n,e,i)=>ze(o=>(new rX(n,o.targetRouterState,o.currentRouterState,e,i).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Pt(1),Ut({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ya(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),e.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),nt(this.transitionAbortSubject.pipe(Ut(c=>{throw c}))),ws(()=>{a||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Di(c=>{if(s=!0,gA(c))this.events.next(new yu(r.id,this.urlSerializer.serialize(r.extractedUrl),c.message,c.cancellationCode)),function XQ(t){return gA(t)&&Ns(t.url)}(c)?this.events.next(new S0(c.url)):r.resolve(!1);else{this.events.next(new df(r.id,this.urlSerializer.serialize(r.extractedUrl),c,r.targetSnapshot??void 0));try{r.resolve(e.errorHandler(c))}catch(h){r.reject(h)}}return ho}))}))}cancelNavigationTransition(e,i,o){const r=new yu(e.id,this.urlSerializer.serialize(e.extractedUrl),i,o);this.events.next(r),e.resolve(!1)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function IA(t){return t!==vu}let EA=(()=>{class t{buildTitle(e){let i,o=e.root;for(;void 0!==o;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(r=>r.outlet===Ft);return i}getResolvedTitleForRoute(e){return e.data[mu]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:function(){return Ne(ZX)},providedIn:"root"})}return t})(),ZX=(()=>{class t extends EA{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(OM))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),YX=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:function(){return Ne(XX)},providedIn:"root"})}return t})();class QX{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let XX=(()=>{class t extends QX{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=ht(t)))(o||t)}}();static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const vf=new se("",{providedIn:"root",factory:()=>({})});let JX=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:function(){return Ne(eJ)},providedIn:"root"})}return t})(),eJ=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Mu=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Mu||{});function OA(t,n){t.events.pipe(Mt(e=>e instanceof Ya||e instanceof yu||e instanceof df||e instanceof hl),ze(e=>e instanceof Ya||e instanceof hl?Mu.COMPLETE:e instanceof yu&&(0===e.code||1===e.code)?Mu.REDIRECTING:Mu.FAILED),Mt(e=>e!==Mu.REDIRECTING),Pt(1)).subscribe(()=>{n()})}function tJ(t){throw t}function iJ(t,n,e){return n.parse("/")}const nJ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},oJ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let hn=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Ne(ak),this.isNgZoneEnabled=!1,this._events=new te,this.options=Ne(vf,{optional:!0})||{},this.pendingTasks=Ne(Qh),this.errorHandler=this.options.errorHandler||tJ,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||iJ,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Ne(JX),this.routeReuseStrategy=Ne(YX),this.titleStrategy=Ne(EA),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=Ne(bl,{optional:!0})?.flat()??[],this.navigationTransitions=Ne(bf),this.urlSerializer=Ne(fu),this.location=Ne(Sd),this.componentInputBindingEnabled=!!Ne(mf,{optional:!0}),this.eventsSubscription=new T,this.isNgZoneEnabled=Ne(We)instanceof We&&We.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new ul,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lA(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const{currentTransition:o}=this.navigationTransitions;if(null===o)return void(AA(i)&&this._events.next(i));if(i instanceof lf)IA(o.source)&&(this.browserUrlTree=o.extractedUrl);else if(i instanceof hl)this.rawUrlTree=o.rawUrl;else if(i instanceof rA){if("eager"===this.urlUpdateStrategy){if(!o.extras.skipLocationChange){const r=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl);this.setBrowserUrl(r,o)}this.browserUrlTree=o.urlAfterRedirects}}else if(i instanceof w0)this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects);else if(i instanceof yu)0!==i.code&&1!==i.code&&(this.navigated=!0),(3===i.code||2===i.code)&&this.restoreHistory(o);else if(i instanceof S0){const r=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),a={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||IA(o.source)};this.scheduleNavigation(r,vu,null,a,{resolve:o.resolve,reject:o.reject,promise:o.promise})}i instanceof df&&this.restoreHistory(o,!0),i instanceof Ya&&(this.navigated=!0),AA(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),vu,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,o){const r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const c={...o};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(r.state=c)}const s=this.parseUrl(e);this.scheduleNavigation(s,i,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(O0),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:c}=i,h=c?this.currentUrlTree.fragment:a;let b,f=null;switch(s){case"merge":f={...this.currentUrlTree.queryParams,...r};break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=r||null}null!==f&&(f=this.removeEmptyProps(f));try{b=XO(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),b=this.currentUrlTree.root}return JO(b,e,f,h??null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=Ns(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,vu,null,i)}navigate(e,i={skipLocationChange:!1}){return function rJ(t){for(let n=0;n{const r=e[o];return null!=r&&(i[o]=r),i},{})}scheduleNavigation(e,i,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,c,h;a?(s=a.resolve,c=a.reject,h=a.promise):h=new Promise((b,y)=>{s=b,c=y});const f=this.pendingTasks.add();return OA(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:e,extras:r,resolve:s,reject:c,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(b=>Promise.reject(b))}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){const a={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const r={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(o,"",r)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-this.browserPageId;0!==r?this.location.historyGo(r):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&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))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function AA(t){return!(t instanceof w0||t instanceof S0)}let Er=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.route=i,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s,this.href=null,this.commands=null,this.onChanges=new te,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=e.events.subscribe(h=>{h instanceof Ya&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,o,r,a){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||o||r||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function Sx(t,n,e){return function HN(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?wx:Fo}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const o=this.renderer,r=this.el.nativeElement;null!==i?o.setAttribute(r,e,i):o.removeAttribute(r,e)}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:this.preserveFragment})}static#e=this.\u0275fac=function(i){return new(i||t)(_(hn),_(pl),zn("tabindex"),_(zr),_(Le),_(gs))};static#t=this.\u0275dir=X({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){1&i&&P("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&i&&Qe("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",Vc],skipLocationChange:["skipLocationChange","skipLocationChange",Vc],replaceUrl:["replaceUrl","replaceUrl",Vc],routerLink:"routerLink"},standalone:!0,features:[Rw,si]})}return t})();class PA{}let cJ=(()=>{class t{constructor(e,i,o,r,a){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Mt(e=>e instanceof Ya),Zc(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i){r.providers&&!r._injector&&(r._injector=K_(r.providers,e,`Route: ${r.path}`));const a=r._injector??e,s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&void 0===r.canLoad||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return Hi(o).pipe(Us())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):qe(null);const r=o.pipe(an(a=>null===a?qe(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return i.loadComponent&&!i._loadedComponent?Hi([r,this.loader.loadComponent(i)]).pipe(Us()):r})}static#e=this.\u0275fac=function(i){return new(i||t)(Y(hn),Y(sk),Y(bo),Y(PA),Y(F0))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const N0=new se("");let RA=(()=>{class t{constructor(e,i,o,r,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=o,this.zone=r,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof lf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Ya?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof hl&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof aA&&(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,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new aA(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){_r()};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac})}return t})();function ma(t,n){return{\u0275kind:t,\u0275providers:n}}function NA(){const t=Ne(Oi);return n=>{const e=t.get(ka);if(n!==e.components[0])return;const i=t.get(hn),o=t.get(LA);1===t.get(L0)&&i.initialNavigation(),t.get(BA,null,zt.Optional)?.setUpPreloading(),t.get(N0,null,zt.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const LA=new se("",{factory:()=>new te}),L0=new se("",{providedIn:"root",factory:()=>1}),BA=new se("");function hJ(t){return ma(0,[{provide:BA,useExisting:cJ},{provide:PA,useExisting:t}])}const VA=new se("ROUTER_FORROOT_GUARD"),pJ=[Sd,{provide:fu,useClass:b0},hn,Cu,{provide:pl,useFactory:function FA(t){return t.routerState.root},deps:[hn]},F0,[]];function fJ(){return new pk("Router",hn)}let jA=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[pJ,[],{provide:bl,multi:!0,useValue:e},{provide:VA,useFactory:vJ,deps:[[hn,new Ca,new dc]]},{provide:vf,useValue:i||{}},i?.useHash?{provide:gs,useClass:DB}:{provide:gs,useClass:$k},{provide:N0,useFactory:()=>{const t=Ne(VV),n=Ne(We),e=Ne(vf),i=Ne(bf),o=Ne(fu);return e.scrollOffset&&t.setOffset(e.scrollOffset),new RA(o,i,t,n,e)}},i?.preloadingStrategy?hJ(i.preloadingStrategy).\u0275providers:[],{provide:pk,multi:!0,useFactory:fJ},i?.initialNavigation?yJ(i):[],i?.bindToComponentInputs?ma(8,[mA,{provide:mf,useExisting:mA}]).\u0275providers:[],[{provide:zA,useFactory:NA},{provide:fb,multi:!0,useExisting:zA}]]}}static forChild(e){return{ngModule:t,providers:[{provide:bl,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(VA,8))};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({})}return t})();function vJ(t){return"guarded"}function yJ(t){return["disabled"===t.initialNavigation?ma(3,[{provide:sb,multi:!0,useFactory:()=>{const n=Ne(hn);return()=>{n.setUpLocationChangeListener()}}},{provide:L0,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?ma(2,[{provide:L0,useValue:0},{provide:sb,multi:!0,deps:[Oi],useFactory:n=>{const e=n.get(wB,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const o=n.get(hn),r=n.get(LA);OA(o,()=>{i(!0)}),n.get(bf).afterPreactivation=()=>(i(!0),r.closed?qe(void 0):r),o.initialNavigation()}))}}]).\u0275providers:[]]}const zA=new se("");var Pn=function(t){return t.DirectConnect="directConnect",t.DumpFile="dumpFile",t.SessionFile="sessionFile",t.ResumeSession="resumeSession",t}(Pn||{}),Ni=function(t){return t.Type="inputType",t.Config="config",t.SourceDbName="sourceDbName",t}(Ni||{}),$o=function(t){return t.MySQL="MySQL",t.Postgres="Postgres",t.SQLServer="SQL Server",t.Oracle="Oracle",t}($o||{}),Bt=function(t){return t.DbName="databaseName",t.Tables="tables",t.Table="tableName",t.Indexes="indexes",t.Index="indexName",t.Sequences="sequences",t.Sequence="sequenceName",t}(Bt||{}),Or=function(t){return t.schemaOnly="Schema",t.dataOnly="Data",t.schemaAndData="Schema And Data",t}(Or||{}),Qa=function(t){return t.Table="table",t.Index="index",t.Sequence="sequence",t}(Qa||{}),Dn=function(t){return t.bulkMigration="bulk",t.lowDowntimeMigration="lowdt",t}(Dn||{}),le=function(t){return t.MigrationMode="migrationMode",t.MigrationType="migrationType",t.IsTargetDetailSet="isTargetDetailSet",t.IsSourceConnectionProfileSet="isSourceConnectionProfileSet",t.IsSourceDetailsSet="isSourceDetailsSet",t.IsTargetConnectionProfileSet="isTargetConnectionProfileSet",t.IsMigrationDetailSet="isMigrationDetailSet",t.IsMigrationInProgress="isMigrationInProgress",t.HasDataMigrationStarted="hasDataMigrationStarted",t.HasSchemaMigrationStarted="hasSchemaMigrationStarted",t.SchemaProgressMessage="schemaProgressMessage",t.DataProgressMessage="dataProgressMessage",t.DataMigrationProgress="dataMigrationProgress",t.SchemaMigrationProgress="schemaMigrationProgress",t.HasForeignKeyUpdateStarted="hasForeignKeyUpdateStarted",t.ForeignKeyProgressMessage="foreignKeyProgressMessage",t.ForeignKeyUpdateProgress="foreignKeyUpdateProgress",t.GeneratingResources="generatingResources",t.NumberOfShards="numberOfShards",t.NumberOfInstances="numberOfInstances",t.isForeignKeySkipped="isForeignKeySkipped",t.IsGcsMetadataPathSet="isGcsMetadataPathSet",t}(le||{}),vt=function(t){return t.TargetDB="targetDb",t.Dialect="dialect",t.SourceConnProfile="sourceConnProfile",t.TargetConnProfile="targetConnProfile",t.ReplicationSlot="replicationSlot",t.Publication="publication",t.GcsMetadataName="gcsName",t.GcsMetadataRootPath="gcsRootPath",t}(vt||{});var vl=function(t){return t[t.SchemaMigrationComplete=1]="SchemaMigrationComplete",t[t.SchemaCreationInProgress=2]="SchemaCreationInProgress",t[t.DataMigrationComplete=3]="DataMigrationComplete",t[t.DataWriteInProgress=4]="DataWriteInProgress",t[t.ForeignKeyUpdateInProgress=5]="ForeignKeyUpdateInProgress",t[t.ForeignKeyUpdateComplete=6]="ForeignKeyUpdateComplete",t}(vl||{});const HA=[{value:"google_standard_sql",displayName:"Google Standard SQL Dialect"},{value:"postgresql",displayName:"PostgreSQL Dialect"}],mn={StorageMaxLength:0x8000000000000000,StringMaxLength:2621440,ByteMaxLength:10485760,DataTypes:["STRING","BYTES","VARCHAR"]},UA_GoogleStandardSQL=["BOOL","BYTES","DATE","FLOAT64","INT64","STRING","TIMESTAMP","NUMERIC","JSON"],UA_PostgreSQL=["BOOL","BYTEA","DATE","FLOAT8","INT8","VARCHAR","TIMESTAMPTZ","NUMERIC","JSONB"];var Ar=function(t){return t.DirectConnectForm="directConnectForm",t.IsConnectionSuccessful="isConnectionSuccessful",t}(Ar||{});const $A=["MySQL"],GA={width:"50%",minWidth:"40%",maxWidth:"70%"},wJ={width:"100%",minWidth:"50%",maxWidth:"75%"},SJ={width:"30vw",minWidth:"400px",maxWidth:"500px"};function yl(t){return"mysql"==t||"mysqldump"==t?$o.MySQL:"postgres"===t||"pgdump"===t||"pg_dump"===t?$o.Postgres:"oracle"===t?$o.Oracle:"sqlserver"===t?$o.SQLServer:t}function qA(t){var n=document.createElement("a");let e=JSON.stringify(t).replace(/9223372036854776000/g,"9223372036854775807");n.href="data:text/json;charset=utf-8,"+encodeURIComponent(e),n.download=`${t.SessionName}_${t.DatabaseType}_${t.DatabaseName}.json`,n.click()}function WA(t){const n={};return Object.keys(t).forEach(e=>{n[e]=function DJ(t){return t.reduce((n,e)=>{const i=e.GenerationType;return n[i]||(n[i]=[]),n[i].push(e),n},{})}(t[e])}),n}function KA(t,n){return e=>{const i=e,o=i.get(t),r=i.get(n);return o&&r&&(o.value&&!r.value||!o.value&&r.value)?{linkedError:"Both Skip Range Min and Max are required"}:null}}let pn=(()=>{class t{constructor(e){this.http=e,this.url=window.location.origin}connectTodb(e,i){const{dbEngine:o,isSharded:r,hostName:a,port:s,dbName:c,userName:h,password:f}=e;return this.http.post(`${this.url}/connect`,{Driver:o,IsSharded:r,Host:a,Port:s,Database:c,User:h,Password:f,Dialect:i},{observe:"response"})}getLastSessionDetails(){return this.http.get(`${this.url}/GetLatestSessionDetails`)}getSchemaConversionFromDirectConnect(){return this.http.get(`${this.url}/convert/infoschema`)}getSchemaConversionFromDump(e){return this.http.post(`${this.url}/convert/dump`,e)}setSourceDBDetailsForDump(e){return this.http.post(`${this.url}/SetSourceDBDetailsForDump`,e)}setSourceDBDetailsForDirectConnect(e){const{dbEngine:i,hostName:o,port:r,dbName:a,userName:s,password:c}=e;return this.http.post(`${this.url}/SetSourceDBDetailsForDirectConnect`,{Driver:i,Host:o,Port:r,Database:a,User:s,Password:c})}setShardsSourceDBDetailsForBulk(e){const{dbConfigs:i,isRestoredSession:o}=e;let r=[];return i.forEach(a=>{r.push({Driver:a.dbEngine,Host:a.hostName,Port:a.port,Database:a.dbName,User:a.userName,Password:a.password,DataShardId:a.shardId})}),this.http.post(`${this.url}/SetShardsSourceDBDetailsForBulk`,{DbConfigs:r,IsRestoredSession:o})}setShardsSourceDBDetailsForDataflow(e){return this.http.post(`${this.url}/SetShardsSourceDBDetailsForDataflow`,{MigrationProfile:e})}setDatastreamDetailsForShardedMigrations(e){return this.http.post(`${this.url}/SetDatastreamDetailsForShardedMigrations`,e)}setGcsDetailsForShardedMigrations(e){return this.http.post(`${this.url}/SetGcsDetailsForShardedMigrations`,e)}setDataflowDetailsForShardedMigrations(e){return this.http.post(`${this.url}/SetDataflowDetailsForShardedMigrations`,e)}getSourceProfile(){return this.http.get(`${this.url}/GetSourceProfileConfig`)}getSchemaConversionFromSessionFile(e){return this.http.post(`${this.url}/convert/session`,e)}getDStructuredReport(){return this.http.get(`${this.url}/downloadStructuredReport`)}getDTextReport(){return this.http.get(`${this.url}/downloadTextReport`)}getDSpannerDDL(){return this.http.get(`${this.url}/downloadDDL`)}getIssueDescription(){return this.http.get(`${this.url}/issueDescription`)}getConversionRate(){return this.http.get(`${this.url}/conversion`)}getConnectionProfiles(e){return this.http.get(`${this.url}/GetConnectionProfiles?source=${e}`)}getGeneratedResources(){return this.http.get(`${this.url}/GetGeneratedResources`)}getStaticIps(){return this.http.get(`${this.url}/GetStaticIps`)}createConnectionProfile(e){return this.http.post(`${this.url}/CreateConnectionProfile`,e)}verifyJsonConfiguration(e){return this.http.post(`${this.url}/VerifyJsonConfiguration`,{MigrationProfile:e})}getSummary(){return this.http.get(`${this.url}/summary`)}getDdl(){return this.http.get(`${this.url}/ddl`)}getSequenceDdl(){return this.http.get(`${this.url}/seqDdl`)}getTypeMap(){return this.http.get(`${this.url}/typemap`)}getAutoGenMap(){return this.http.get(`${this.url}/autoGenMap`)}getSequenceKind(){return this.http.get(`${this.url}/getSequenceKind`)}getSpannerDefaultTypeMap(){return this.http.get(`${this.url}/spannerDefaultTypeMap`)}reviewTableUpdate(e,i){return this.http.post(`${this.url}/typemap/reviewTableSchema?table=${e}`,i)}updateTable(e,i){return this.http.post(`${this.url}/typemap/table?table=${e}`,i)}removeInterleave(e){return this.http.post(`${this.url}/removeParent?tableId=${e}`,{})}restoreTables(e){return this.http.post(`${this.url}/restore/tables`,e)}restoreTable(e){return this.http.post(`${this.url}/restore/table?table=${e}`,{})}dropTable(e){return this.http.post(`${this.url}/drop/table?table=${e}`,{})}dropTables(e){return this.http.post(`${this.url}/drop/tables`,e)}updatePk(e){return this.http.post(`${this.url}/primaryKey`,e)}updateFk(e,i){return this.http.post(`${this.url}/update/fks?table=${e}`,i)}addColumn(e,i){return this.http.post(`${this.url}/AddColumn?table=${e}`,i)}addSequence(e){return this.http.post(`${this.url}/AddSequence`,e)}removeFk(e,i){return this.http.post(`${this.url}/drop/fk?table=${e}`,{Id:i})}getTableWithErrors(){return this.http.get(`${this.url}/GetTableWithErrors`)}getSessions(){return this.http.get(`${this.url}/GetSessions`)}getConvForSession(e){return this.http.get(`${this.url}/GetSession/${e}`,{responseType:"blob"})}resumeSession(e){return this.http.post(`${this.url}/ResumeSession/${e}`,{})}saveSession(e){return this.http.post(`${this.url}/SaveRemoteSession`,e)}getSpannerConfig(){return this.http.get(`${this.url}/GetConfig`)}setSpannerConfig(e){return this.http.post(`${this.url}/SetSpannerConfig`,e)}getIsOffline(){return this.http.get(`${this.url}/IsOffline`)}updateIndex(e,i){return this.http.post(`${this.url}/update/indexes?table=${e}`,i)}updateSequence(e){return this.http.post(`${this.url}/UpdateSequence`,e)}dropIndex(e,i){return this.http.post(`${this.url}/drop/secondaryindex?table=${e}`,{Id:i})}dropSequence(e){return this.http.post(`${this.url}/drop/sequence?sequence=${e}`,{})}restoreIndex(e,i){return this.http.post(`${this.url}/restore/secondaryIndex?tableId=${e}&indexId=${i}`,{})}getInterleaveStatus(e){return this.http.get(`${this.url}/setparent?table=${e}&update=false`)}setInterleave(e){return this.http.get(`${this.url}/setparent?table=${e}&update=true`)}getSourceDestinationSummary(){return this.http.get(`${this.url}/GetSourceDestinationSummary`)}migrate(e){return this.http.post(`${this.url}/Migrate`,e)}getProgress(){return this.http.get(`${this.url}/GetProgress`)}uploadFile(e){return this.http.post(`${this.url}/uploadFile`,e)}cleanUpStreamingJobs(){return this.http.post(`${this.url}/CleanUpStreamingJobs`,{})}applyRule(e){return this.http.post(`${this.url}/applyrule`,e)}dropRule(e){return this.http.post(`${this.url}/dropRule?id=${e}`,{})}getStandardTypeToPGSQLTypemap(){return this.http.get(`${this.url}/typemap/GetStandardTypeToPGSQLTypemap`)}getPGSQLToStandardTypeTypemap(){return this.http.get(`${this.url}/typemap/GetPGSQLToStandardTypeTypemap`)}checkBackendHealth(){return this.http.get(`${this.url}/ping`)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(np))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Go=(()=>{class t{constructor(e){this.snackBar=e}openSnackBar(e,i,o){o||(o=10),this.snackBar.open(e,i,{duration:1e3*o})}openSnackBarWithoutTimeout(e,i){this.snackBar.open(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(uZ))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qo=(()=>{class t{constructor(){this.spannerConfigSub=new pt(!1),this.datebaseLoaderSub=new pt({type:"",databaseName:""}),this.viewAssesmentSub=new pt({srcDbType:"",connectionDetail:"",conversionRates:{good:0,ok:0,bad:0}}),this.tabToSpannerSub=new pt(!1),this.cancelDbLoadSub=new pt(!1),this.spannerConfig=this.spannerConfigSub.asObservable(),this.databaseLoader=this.datebaseLoaderSub.asObservable(),this.viewAssesment=this.viewAssesmentSub.asObservable(),this.tabToSpanner=this.tabToSpannerSub.asObservable(),this.cancelDbLoad=this.cancelDbLoadSub.asObservable()}openSpannerConfig(){this.spannerConfigSub.next(!0)}openDatabaseLoader(e,i){this.datebaseLoaderSub.next({type:e,databaseName:i})}closeDatabaseLoader(){this.datebaseLoaderSub.next({type:"",databaseName:""})}setViewAssesmentData(e){this.viewAssesmentSub.next(e)}setTabToSpanner(){this.tabToSpannerSub.next(!0)}cancelDbLoading(){this.cancelDbLoadSub.next(!0)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),B0=(()=>{class t{constructor(){this.reviewTableChangesSub=new pt({Changes:[],DDL:""}),this.tableUpdateDetailSub=new pt({tableName:"",tableId:"",updateDetail:{UpdateCols:{}}}),this.reviewTableChanges=this.reviewTableChangesSub.asObservable(),this.tableUpdateDetail=this.tableUpdateDetailSub.asObservable()}setTableReviewChanges(e){this.reviewTableChangesSub.next(e)}setTableUpdateDetail(e){this.tableUpdateDetailSub.next(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ls=(()=>{class t{constructor(e){this.fetch=e,this.standardTypeToPGSQLTypeMapSub=new pt(new Map),this.pgSQLToStandardTypeTypeMapSub=new pt(new Map),this.standardTypeToPGSQLTypeMap=this.standardTypeToPGSQLTypeMapSub.asObservable(),this.pgSQLToStandardTypeTypeMap=this.pgSQLToStandardTypeTypeMapSub.asObservable(),this.srcDbName=localStorage.getItem(Ni.SourceDbName)}getStandardTypeToPGSQLTypemap(){return this.fetch.getStandardTypeToPGSQLTypemap().subscribe({next:e=>{this.standardTypeToPGSQLTypeMapSub.next(new Map(Object.entries(e)))}})}getPGSQLToStandardTypeTypemap(){return this.fetch.getPGSQLToStandardTypeTypemap().subscribe({next:e=>{this.pgSQLToStandardTypeTypeMapSub.next(new Map(Object.entries(e)))}})}createTreeNode(e,i,o="",r=""){e.DatabaseType&&(this.srcDbName=yl(e.DatabaseType));let a=Object.keys(e.SpSchema).filter(x=>e.SpSchema[x].Name.toLocaleLowerCase().includes(o.toLocaleLowerCase())),s=Object.keys(e.SpSequences).filter(x=>e.SpSequences[x].Name.toLocaleLowerCase().includes(o.toLocaleLowerCase())),c=Object.keys(e.SrcSchema).filter(x=>-1==a.indexOf(x)&&e.SrcSchema[x].Name.replace(/[^A-Za-z0-9_]/g,"_").includes(o.toLocaleLowerCase())),h=this.getDeletedIndexes(e),f={name:`Tables (${a.length})`,type:Bt.Tables,parent:"",pos:-1,isSpannerNode:!0,id:"",parentId:"",children:a.map(x=>{let I=e.SpSchema[x];return{name:I.Name,status:i[x],type:Bt.Table,parent:""!=I.ParentTable.Id?e.SpSchema[I.ParentTable.Id]?.Name:"",pos:-1,isSpannerNode:!0,id:x,parentId:I.ParentTable.Id,children:[{name:`Indexes (${I.Indexes?I.Indexes.length:0})`,status:"",type:Bt.Indexes,parent:e.SpSchema[x].Name,pos:-1,isSpannerNode:!0,id:"",parentId:x,children:I.Indexes?I.Indexes.map((O,W)=>({name:O.Name,type:Bt.Index,parent:e.SpSchema[x].Name,pos:W,isSpannerNode:!0,id:O.Id,parentId:x})):[]}]}})};c.forEach(x=>{f.children?.push({name:e.SrcSchema[x].Name.replace(/[^A-Za-z0-9_]/g,"_"),status:"DARK",type:Bt.Table,pos:-1,isSpannerNode:!0,children:[],isDeleted:!0,id:x,parent:"",parentId:""})}),f.children?.forEach((x,I)=>{h[x.id]&&h[x.id].forEach(O=>{f.children[I].children[0].children?.push({name:O.Name.replace(/[^A-Za-z0-9_]/g,"_"),type:Bt.Index,parent:e.SpSchema[x.name]?.Name,pos:I,isSpannerNode:!0,isDeleted:!0,id:O.Id,parentId:x.id})})});let b={name:`Sequences (${s.length})`,type:Bt.Sequences,parent:"",pos:-1,isSpannerNode:!0,id:"",parentId:"",children:s.map(x=>({name:e.SpSequences[x].Name,status:"",type:Bt.Sequence,parent:"",pos:-1,isSpannerNode:!0,id:x,parentId:"",children:[]}))};this.sortNodeChildren(f,r),this.sortNodeChildren(b,r);let y=[f];return $A.includes(this.srcDbName)&&y.push(b),[{name:e.DatabaseName,children:y,type:Bt.DbName,parent:"",pos:-1,isSpannerNode:!0,id:"",parentId:""}]}sortNodeChildren(e,i){"asc"===i||""===i?e.children?.sort((o,r)=>o.name>r.name?1:r.name>o.name?-1:0):"desc"===i&&e.children?.sort((o,r)=>r.name>o.name?1:o.name>r.name?-1:0)}createTreeNodeForSource(e,i,o="",r=""){let a=Object.keys(e.SrcSchema).filter(c=>e.SrcSchema[c].Name.toLocaleLowerCase().includes(o.toLocaleLowerCase())),s={name:`Tables (${a.length})`,type:Bt.Tables,pos:-1,isSpannerNode:!1,id:"",parent:"",parentId:"",children:a.map(c=>{let h=e.SrcSchema[c];return{name:h.Name,status:i[c]?i[c]:"NONE",type:Bt.Table,parent:"",pos:-1,isSpannerNode:!1,id:c,parentId:"",parentOnDelete:"",children:[{name:`Indexes (${h.Indexes?.length||"0"})`,status:"",type:Bt.Indexes,parent:"",pos:-1,isSpannerNode:!1,id:"",parentId:"",parentOnDelete:"",children:h.Indexes?h.Indexes.map((f,b)=>({name:f.Name,type:Bt.Index,parent:e.SrcSchema[c].Name,isSpannerNode:!1,pos:b,id:f.Id,parentId:c})):[]}]}})};return"asc"===r||""===r?s.children?.sort((c,h)=>c.name>h.name?1:h.name>c.name?-1:0):"desc"===r&&s.children?.sort((c,h)=>h.name>c.name?1:c.name>h.name?-1:0),[{name:e.DatabaseName,children:[s],type:Bt.DbName,isSpannerNode:!1,parent:"",pos:-1,id:"",parentId:""}]}getColumnMapping(e,i){let h,o=this.getSpannerTableNameFromId(e,i),r=i.SrcSchema[e].ColIds,a=i.SpSchema[e]?i.SpSchema[e].ColIds:null,s=i.SrcSchema[e].PrimaryKeys,c=a?i.SpSchema[e].PrimaryKeys:null;this.standardTypeToPGSQLTypeMap.subscribe(y=>{h=y});const f=mn.StorageMaxLength,b=i.SrcSchema[e].ColIds.map((y,x)=>{let I;o&&i.SpSchema[e].PrimaryKeys.forEach(de=>{de.ColId==y&&(I=de.Order)});let O=o?i.SpSchema[e]?.ColDefs[y]:null,W=O?h.get(O.T.Name):"";return{spOrder:O?x+1:"",srcOrder:x+1,spColName:O?O.Name:"",spDataType:O?"postgresql"===i.SpDialect?void 0===W?O.T.Name:W:O.T.Name:"",srcColName:i.SrcSchema[e].ColDefs[y].Name,srcDataType:i.SrcSchema[e].ColDefs[y].Type.Name,spIsPk:!(!O||!o)&&-1!==i.SpSchema[e].PrimaryKeys?.map(de=>de.ColId).indexOf(y),srcIsPk:!!s&&-1!==s.map(de=>de.ColId).indexOf(y),spIsNotNull:!(!O||!o)&&O.NotNull,srcIsNotNull:i.SrcSchema[e].ColDefs[y].NotNull,srcId:y,spId:O?y:"",spColMaxLength:0!=O?.T.Len?O?.T.Len!=f?O?.T.Len:"MAX":"",srcColMaxLength:null!=i.SrcSchema[e].ColDefs[y].Type.Mods?i.SrcSchema[e].ColDefs[y].Type.Mods[0]:"",spAutoGen:null!=O?.AutoGen?O?.AutoGen:{Name:"",GenerationType:""},srcAutoGen:i.SrcSchema[e].ColDefs[y].AutoGen?i.SrcSchema[e].ColDefs[y].AutoGen:{Name:"",GenerationType:""}}});return a&&a.forEach((y,x)=>{if(r.indexOf(y)<0){let I=i.SpSchema[e].ColDefs[y],O=o?i.SpSchema[e]?.ColDefs[y]:null,W=O?h.get(O.T.Name):"";b.push({spOrder:x+1,srcOrder:"",spColName:I.Name,spDataType:O?"postgresql"===i.SpDialect?void 0===W?O.T.Name:W:O.T.Name:"",srcColName:"",srcDataType:"",spIsPk:!!c&&-1!==c.map(de=>de.ColId).indexOf(y),srcIsPk:!1,spIsNotNull:I.NotNull,srcIsNotNull:!1,srcId:"",spId:y,srcColMaxLength:"",spColMaxLength:O?.T.Len,spAutoGen:I.AutoGen,srcAutoGen:{Name:"",GenerationType:""}})}}),b}getPkMapping(e){let i=e.filter(o=>o.spIsPk||o.srcIsPk);return JSON.parse(JSON.stringify(i))}getFkMapping(e,i){let o=i.SrcSchema[e]?.ForeignKeys;return o?o.map(r=>{let a=this.getSpannerFkFromId(i,e,r.Id),s=a?a.ColIds.map(x=>i.SpSchema[e].ColDefs[x].Name):[],c=a?a.ColIds:[],h=r.ColIds.map(x=>i.SrcSchema[e].ColDefs[x].Name),f=a?a.ReferColumnIds.map(x=>i.SpSchema[r.ReferTableId].ColDefs[x].Name):[],b=a?a.ReferColumnIds:[],y=r.ReferColumnIds.map(x=>i.SrcSchema[r.ReferTableId].ColDefs[x].Name);return{srcFkId:r.Id,spFkId:a?.Id,spName:a?a.Name:"",srcName:r.Name,spColumns:s,srcColumns:h,spReferTable:a?i.SpSchema[a.ReferTableId].Name:"",srcReferTable:i.SrcSchema[r.ReferTableId].Name,spReferColumns:f,srcReferColumns:y,spColIds:c,spReferColumnIds:b,spReferTableId:a?a.ReferTableId:"",srcOnDelete:r.OnDelete,spOnDelete:a?a.OnDelete:"",srcOnUpdate:r.OnUpdate,spOnUpdate:a?a.OnUpdate:""}}):[]}getIndexMapping(e,i,o){let r=this.getSourceIndexFromId(i,e,o),a=this.getSpannerIndexFromId(i,e,o),s=r?r.Keys.map(f=>f.ColId):[],c=a?a.Keys.map(f=>f.ColId):[],h=r?r.Keys.map(f=>{let b=this.getSpannerIndexKeyFromColId(i,e,o,f.ColId);return{srcColId:f.ColId,spColId:b?b.ColId:void 0,srcColName:i.SrcSchema[e].ColDefs[f.ColId].Name,srcOrder:f.Order,srcDesc:f.Desc,spColName:b?i.SpSchema[e].ColDefs[b.ColId].Name:"",spOrder:b?b.Order:void 0,spDesc:b?b.Desc:void 0}}):[];return c.forEach(f=>{if(-1==s.indexOf(f)){let b=this.getSpannerIndexKeyFromColId(i,e,o,f);h.push({srcColName:"",srcOrder:"",srcColId:void 0,srcDesc:void 0,spColName:i.SpSchema[e].ColDefs[f].Name,spOrder:b?b.Order:void 0,spDesc:b?b.Desc:void 0,spColId:b?b.ColId:void 0})}}),h}getSequenceMapping(e,i){let a={};if(null!=this.getSpannerSequenceNameFromId(e,i)){let s=i.SpSequences[e];a.spSeqName=s.Name,a.spSequenceKind=s.SequenceKind,a.spSkipRangeMax=s.SkipRangeMax,a.spSkipRangeMin=s.SkipRangeMin,a.spStartWithCounter=s.StartWithCounter}return a}getSpannerFkFromId(e,i,o){let r=null;return e.SpSchema[i]?.ForeignKeys?.forEach(a=>{a.Id==o&&(r=a)}),r}getSourceIndexFromId(e,i,o){let r=null;return e.SrcSchema[i]?.Indexes?.forEach(a=>{a.Id==o&&(r=a)}),r}getSpannerIndexFromId(e,i,o){let r=null;return e.SpSchema[i]?.Indexes?.forEach(a=>{a.Id==o&&(r=a)}),r}getSpannerSequenceNameFromId(e,i){let o=null;return Object.keys(i.SpSequences).forEach(r=>{i.SpSequences[r].Id===e&&(o=i.SpSequences[r].Name)}),o}getSpannerIndexKeyFromColId(e,i,o,r){let a=null,s=e.SpSchema[i]?.Indexes?e.SpSchema[i].Indexes.filter(c=>c.Id==o):null;if(s&&s.length>0){let c=s[0].Keys.filter(h=>h.ColId==r);a=c.length>0?c[0]:null}return a}getSourceIndexKeyFromColId(e,i,o,r){let a=null,s=e.SrcSchema[i]?.Indexes?e.SrcSchema[i].Indexes.filter(c=>c.Id==o):null;if(s&&s.length>0){let c=s[0].Keys.filter(h=>h.ColId==r);a=c.length>0?c[0]:null}return a}getSpannerColDefFromId(e,i,o){let r=null;return Object.keys(o.SpSchema[e].ColDefs).forEach(a=>{o.SpSchema[e].ColDefs[a].Id==i&&(r=o.SpSchema[e].ColDefs[a])}),r}getSourceTableNameFromId(e,i){let o="";return Object.keys(i.SrcSchema).forEach(r=>{i.SrcSchema[r].Id===e&&(o=i.SrcSchema[r].Name)}),o}getSpannerTableNameFromId(e,i){let o=null;return Object.keys(i.SpSchema).forEach(r=>{i.SpSchema[r].Id===e&&(o=i.SpSchema[r].Name)}),o}getTableIdFromSpName(e,i){let o="";return Object.keys(i.SpSchema).forEach(r=>{i.SpSchema[r].Name===e&&(o=i.SpSchema[r].Id)}),o}getColIdFromSpannerColName(e,i,o){let r="";return Object.keys(o.SpSchema[i].ColDefs).forEach(a=>{o.SpSchema[i].ColDefs[a].Name===e&&(r=o.SpSchema[i].ColDefs[a].Id)}),r}getDeletedIndexes(e){let i={};return Object.keys(e.SpSchema).forEach(o=>{let r=e.SpSchema[o],a=e.SrcSchema[o],s=r&&r.Indexes?r.Indexes.map(h=>h.Id):[],c=a&&a.Indexes?a.Indexes?.filter(h=>!s.includes(h.Id)):null;r&&a&&c&&c.length>0&&(i[o]=c)}),i}static#e=this.\u0275fac=function(i){return new(i||t)(Y(pn))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pi=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.snackbar=i,this.clickEvent=o,this.tableUpdatePubSub=r,this.conversion=a,this.convSubject=new pt({}),this.conversionRateSub=new pt({}),this.typeMapSub=new pt({}),this.defaultTypeMapSub=new pt({}),this.autoGenMapSub=new pt({}),this.summarySub=new pt(new Map),this.ddlSub=new pt({}),this.seqDdlSub=new pt({}),this.tableInterleaveStatusSub=new pt({}),this.sessionsSub=new pt({}),this.configSub=new pt({}),this.currentSessionSub=new pt({}),this.isOfflineSub=new pt(!1),this.ruleMapSub=new pt([]),this.treeUpdatedSub=new te,this.rule=this.ruleMapSub.asObservable(),this.conv=this.convSubject.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.conversionRate=this.conversionRateSub.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.typeMap=this.typeMapSub.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.defaultTypeMap=this.defaultTypeMapSub.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.autoGenMap=this.autoGenMapSub.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.treeUpdate=this.treeUpdatedSub.asObservable(),this.summary=this.summarySub.asObservable(),this.ddl=this.ddlSub.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.seqDdl=this.seqDdlSub.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.tableInterleaveStatus=this.tableInterleaveStatusSub.asObservable(),this.sessions=this.sessionsSub.asObservable(),this.config=this.configSub.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.isOffline=this.isOfflineSub.asObservable(),this.currentSession=this.currentSessionSub.asObservable().pipe(Mt(s=>0!==Object.keys(s).length)),this.getLastSessionDetails(),this.getConfig(),this.updateIsOffline()}resetStore(){this.convSubject.next({}),this.conversionRateSub.next({}),this.typeMapSub.next({}),this.defaultTypeMapSub.next({}),this.autoGenMapSub.next({}),this.summarySub.next(new Map),this.ddlSub.next({}),this.tableInterleaveStatusSub.next({})}getDdl(){this.fetch.getDdl().subscribe(e=>{this.ddlSub.next(e)})}getSequenceDdl(){this.fetch.getSequenceDdl().subscribe(e=>{this.seqDdlSub.next(e)})}getAutoGenMap(){this.fetch.getAutoGenMap().subscribe(e=>{this.autoGenMapSub.next(e)})}notifyTreeUpdate(){this.treeUpdatedSub.next()}getSchemaConversionFromDb(){this.fetch.getSchemaConversionFromDirectConnect().subscribe({next:e=>{this.convSubject.next(e),this.ruleMapSub.next(e?.Rules)},error:e=>{this.clickEvent.closeDatabaseLoader(),this.snackbar.openSnackBar(e.error,"Close")}})}getAllSessions(){this.fetch.getSessions().subscribe({next:e=>{this.sessionsSub.next(e)},error:e=>{this.snackbar.openSnackBar("Unable to fetch sessions.","Close")}})}getLastSessionDetails(){this.fetch.getLastSessionDetails().subscribe({next:e=>{this.convSubject.next(e),this.ruleMapSub.next(e?.Rules)},error:e=>{this.snackbar.openSnackBar(e.error,"Close")}})}getSchemaConversionFromDump(e){return this.fetch.getSchemaConversionFromDump(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules)},error:i=>{this.clickEvent.closeDatabaseLoader(),this.snackbar.openSnackBar(i.error,"Close")}})}getSchemaConversionFromSession(e){return this.fetch.getSchemaConversionFromSessionFile(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules)},error:i=>{this.snackbar.openSnackBar(i.error,"Close"),this.clickEvent.closeDatabaseLoader()}})}getSchemaConversionFromResumeSession(e){this.fetch.resumeSession(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules)},error:i=>{this.snackbar.openSnackBar(i.error,"Close")}})}getConversionRate(){this.fetch.getConversionRate().subscribe(e=>{this.conversionRateSub.next(e)})}getRateTypemapAndSummary(){return qv({rates:this.fetch.getConversionRate(),typeMap:this.fetch.getTypeMap(),defaultTypeMap:this.fetch.getSpannerDefaultTypeMap(),summary:this.fetch.getSummary(),ddl:this.fetch.getDdl(),seqDdl:this.fetch.getSequenceDdl(),autoGenMap:this.fetch.getAutoGenMap()}).pipe(Di(e=>qe(e))).subscribe(({rates:e,typeMap:i,defaultTypeMap:o,summary:r,ddl:a,seqDdl:s,autoGenMap:c})=>{this.conversionRateSub.next(e),this.typeMapSub.next(i),this.defaultTypeMapSub.next(o),this.summarySub.next(new Map(Object.entries(r))),this.ddlSub.next(a),this.seqDdlSub.next(s),this.autoGenMapSub.next(c)})}getSummary(){return this.fetch.getSummary().subscribe({next:e=>{this.summarySub.next(new Map(Object.entries(e)))}})}reviewTableUpdate(e,i){return this.fetch.reviewTableUpdate(e,i).pipe(Di(o=>qe({error:o.error})),Ut(console.log),ze(o=>{if(o.error)return o.error;{let r;return this.conversion.standardTypeToPGSQLTypeMap.subscribe(a=>{r=a}),this.conv.subscribe(a=>{o.Changes.forEach(s=>{s.InterleaveColumnChanges.forEach(c=>{if("postgresql"===a.SpDialect){let h=r.get(c.Type),f=r.get(c.UpdateType);c.Type=void 0===h?c.Type:h,c.UpdateType=void 0===f?c.UpdateType:f}mn.DataTypes.indexOf(c.Type.toString())>-1&&(c.Type+=this.updateColumnSize(c.Size)),mn.DataTypes.indexOf(c.UpdateType.toString())>-1&&(c.UpdateType+=this.updateColumnSize(c.UpdateSize))})})}),this.tableUpdatePubSub.setTableReviewChanges(o),""}}))}updateColumnSize(e){return e===mn.StorageMaxLength?"(MAX)":"("+e+")"}updateTable(e,i){return this.fetch.updateTable(e,i).pipe(Di(o=>qe({error:o.error})),Ut(console.log),ze(o=>o.error?o.error:(this.convSubject.next(o),this.getDdl(),"")))}removeInterleave(e){return this.fetch.removeInterleave(e).pipe(Di(i=>qe({error:i.error})),Ut(console.log),ze(i=>(this.getDdl(),i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),""))))}restoreTables(e){return this.fetch.restoreTables(e).pipe(Di(i=>qe({error:i.error})),Ut(console.log),ze(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.snackbar.openSnackBar("Selected tables restored successfully","Close",5),"")))}restoreTable(e){return this.fetch.restoreTable(e).pipe(Di(i=>qe({error:i.error})),Ut(console.log),ze(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.snackbar.openSnackBar("Table restored successfully","Close",5),"")))}dropTable(e){return this.fetch.dropTable(e).pipe(Di(i=>qe({error:i.error})),Ut(console.log),ze(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.snackbar.openSnackBar("Table skipped successfully","Close",5),"")))}dropTables(e){return this.fetch.dropTables(e).pipe(Di(i=>qe({error:i.error})),Ut(console.log),ze(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.snackbar.openSnackBar("Selected tables skipped successfully","Close",5),"")))}updatePk(e){return this.fetch.updatePk(e).pipe(Di(i=>qe({error:i.error})),Ut(console.log),ze(i=>i.error?i.error:(this.convSubject.next(i),this.getDdl(),"")))}updateFkNames(e,i){return this.fetch.updateFk(e,i).pipe(Di(o=>qe({error:o.error})),Ut(console.log),ze(o=>o.error?o.error:(this.convSubject.next(o),this.getDdl(),"")))}dropFk(e,i){return this.fetch.removeFk(e,i).pipe(Di(o=>qe({error:o.error})),Ut(console.log),ze(o=>o.error?o.error:(this.convSubject.next(o),this.getDdl(),"")))}getConfig(){this.fetch.getSpannerConfig().subscribe(e=>{this.configSub.next(e)})}updateConfig(e){this.configSub.next(e)}updateIsOffline(){this.fetch.getIsOffline().subscribe(e=>{this.isOfflineSub.next(e)})}addColumn(e,i){this.fetch.addColumn(e,i).subscribe({next:o=>{this.convSubject.next(o),this.getDdl(),this.snackbar.openSnackBar("Added new column.","Close",5)},error:o=>{this.snackbar.openSnackBar(o.error,"Close")}})}addSequence(e){this.fetch.addSequence(e).subscribe({next:i=>{this.convSubject.next(i),this.getSequenceDdl(),this.getAutoGenMap(),this.notifyTreeUpdate(),this.snackbar.openSnackBar("Added new sequence.","Close",5)},error:i=>{this.snackbar.openSnackBar(i.error,"Close")}})}applyRule(e){this.fetch.applyRule(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules),this.getDdl(),this.snackbar.openSnackBar("Added new rule.","Close",5)},error:i=>{this.snackbar.openSnackBar(i.error,"Close")}})}updateIndex(e,i){return this.fetch.updateIndex(e,i).pipe(Di(o=>qe({error:o.error})),Ut(console.log),ze(o=>o.error?o.error:(this.convSubject.next(o),this.getDdl(),"")))}updateSequence(e){return this.fetch.updateSequence(e).pipe(Di(i=>qe({error:i.error})),Ut(console.log),ze(i=>i.error?i.error:(this.convSubject.next(i),this.getSequenceDdl(),this.notifyTreeUpdate(),"")))}dropIndex(e,i){return this.fetch.dropIndex(e,i).pipe(Di(o=>qe({error:o.error})),Ut(console.log),ze(o=>o.error?(this.snackbar.openSnackBar(o.error,"Close"),o.error):(this.convSubject.next(o),this.getDdl(),this.ruleMapSub.next(o?.Rules),this.snackbar.openSnackBar("Index skipped successfully","Close",5),"")))}dropSequence(e){return this.fetch.dropSequence(e).pipe(Di(i=>qe({error:i.error})),Ut(console.log),ze(i=>i.error?(this.snackbar.openSnackBar(i.error,"Close"),i.error):(this.convSubject.next(i),this.getDdl(),this.getAutoGenMap(),this.notifyTreeUpdate(),this.snackbar.openSnackBar("Sequence Deleted successfully","Close",5),"")))}restoreIndex(e,i){return this.fetch.restoreIndex(e,i).pipe(Di(o=>qe({error:o.error})),Ut(console.log),ze(o=>o.error?(this.snackbar.openSnackBar(o.error,"Close"),o.error):(this.convSubject.next(o),this.snackbar.openSnackBar("Index restored successfully","Close",5),"")))}getInterleaveConversionForATable(e){this.fetch.getInterleaveStatus(e).subscribe(i=>{this.tableInterleaveStatusSub.next(i)})}setInterleave(e){this.fetch.setInterleave(e).subscribe(i=>{this.convSubject.next(i.sessionState),this.getDdl(),i.sessionState&&this.convSubject.next(i.sessionState)})}uploadFile(e){return this.fetch.uploadFile(e).pipe(Di(i=>qe({error:i.error})),Ut(console.log),ze(i=>i.error?(this.snackbar.openSnackBar("File upload failed","Close"),i.error):(this.snackbar.openSnackBar("File uploaded successfully","Close",5),"")))}dropRule(e){return this.fetch.dropRule(e).subscribe({next:i=>{this.convSubject.next(i),this.ruleMapSub.next(i?.Rules),this.getDdl(),this.snackbar.openSnackBar("Rule deleted successfully","Close",5)},error:i=>{this.snackbar.openSnackBar(i.error,"Close")}})}static#e=this.\u0275fac=function(i){return new(i||t)(Y(pn),Y(Go),Y(qo),Y(B0),Y(Ls))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yf=(()=>{class t{constructor(){this.isLoadingSub=new pt(!1),this.isLoading=this.isLoadingSub.asObservable()}startLoader(){this.isLoadingSub.next(!0)}stopLoader(){this.isLoadingSub.next(!1)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kJ(t,n){if(1&t&&(d(0,"mat-option",18),u(1),l()),2&t){const e=n.$implicit;p("value",e.value),m(1),ye(" ",e.displayName," ")}}function MJ(t,n){if(1&t&&(d(0,"mat-option",18),u(1),l()),2&t){const e=n.$implicit;p("value",e.value),m(1),ye(" ",e.displayName," ")}}function TJ(t,n){1&t&&(d(0,"b"),u(1,"Note: For sharded migrations, please enter below the details of the shard you want Spanner migration tool to read the schema from. The complete connection configuration of all the shards will be taken in later, during data migration."),l())}function IJ(t,n){if(1&t&&(d(0,"div",19)(1,"div",20)(2,"mat-form-field",21)(3,"mat-label"),u(4,"Sharded Migration"),l(),d(5,"mat-select",22),g(6,MJ,2,2,"mat-option",6),l()(),d(7,"mat-icon",23),u(8,"info"),l(),d(9,"mat-chip",24),u(10," Preview "),l()(),S(11,"br"),g(12,TJ,2,0,"b",25),l()),2&t){const e=C();m(6),p("ngForOf",e.shardedResponseList),m(3),p("removable",!1),m(3),p("ngIf",e.connectForm.value.isSharded)}}function EJ(t,n){if(1&t&&(d(0,"mat-option",18),u(1),l()),2&t){const e=n.$implicit;p("value",e.value),m(1),ye(" ",e.displayName," ")}}function OJ(t,n){1&t&&(d(0,"mat-icon",26),u(1," check_circle "),l())}let AJ=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.fetch=i,this.data=o,this.loader=r,this.snackbarService=a,this.clickEvent=s,this.connectForm=new Yt({dbEngine:new U("",[J.required]),isSharded:new U(!1),hostName:new U("",[J.required]),port:new U("",[J.required,J.pattern("^[0-9]+$")]),userName:new U("",[J.required]),password:new U(""),dbName:new U("",[J.required]),dialect:new U("",[J.required])}),this.dbEngineList=[{value:"mysql",displayName:"MySQL"},{value:"sqlserver",displayName:"SQL Server"},{value:"oracle",displayName:"Oracle"},{value:"postgres",displayName:"PostgreSQL"}],this.isTestConnectionSuccessful=!1,this.connectRequest=null,this.getSchemaRequest=null,this.shardedResponseList=[{value:!1,displayName:"No"},{value:!0,displayName:"Yes"}],this.dialect=HA}ngOnInit(){null!=localStorage.getItem(Ar.DirectConnectForm)&&this.connectForm.setValue(JSON.parse(localStorage.getItem(Ar.DirectConnectForm))),null!=localStorage.getItem(Ar.IsConnectionSuccessful)&&(this.isTestConnectionSuccessful="true"===localStorage.getItem(Ar.IsConnectionSuccessful)),this.clickEvent.cancelDbLoad.subscribe({next:e=>{e&&this.connectRequest&&(this.connectRequest.unsubscribe(),this.getSchemaRequest&&this.getSchemaRequest.unsubscribe())}})}testConn(){this.clickEvent.openDatabaseLoader("test-connection",this.connectForm.value.dbName);const{dbEngine:e,isSharded:i,hostName:o,port:r,userName:a,password:s,dbName:c,dialect:h}=this.connectForm.value;localStorage.setItem(Ar.DirectConnectForm,JSON.stringify(this.connectForm.value)),this.connectRequest=this.fetch.connectTodb({dbEngine:e,isSharded:i,hostName:o,port:r,userName:a,password:s,dbName:c},h).subscribe({next:()=>{this.snackbarService.openSnackBar("SUCCESS! Spanner migration tool was able to successfully ping source database","Close",3),localStorage.setItem(Ar.IsConnectionSuccessful,"true"),this.clickEvent.closeDatabaseLoader()},error:b=>{this.isTestConnectionSuccessful=!1,this.snackbarService.openSnackBar(b.error,"Close"),localStorage.setItem(Ar.IsConnectionSuccessful,"false"),this.clickEvent.closeDatabaseLoader()}})}connectToDb(){this.clickEvent.openDatabaseLoader("direct",this.connectForm.value.dbName),window.scroll(0,0),this.data.resetStore(),localStorage.clear();const{dbEngine:e,isSharded:i,hostName:o,port:r,userName:a,password:s,dbName:c,dialect:h}=this.connectForm.value;localStorage.setItem(Ar.DirectConnectForm,JSON.stringify(this.connectForm.value)),this.connectRequest=this.fetch.connectTodb({dbEngine:e,isSharded:i,hostName:o,port:r,userName:a,password:s,dbName:c},h).subscribe({next:()=>{this.getSchemaRequest=this.data.getSchemaConversionFromDb(),this.data.conv.subscribe(b=>{localStorage.setItem(Ni.Config,JSON.stringify({dbEngine:e,hostName:o,port:r,userName:a,password:s,dbName:c})),localStorage.setItem(Ni.Type,Pn.DirectConnect),localStorage.setItem(Ni.SourceDbName,yl(e)),this.clickEvent.closeDatabaseLoader(),localStorage.removeItem(Ar.DirectConnectForm),this.router.navigate(["/workspace"])})},error:b=>{this.snackbarService.openSnackBar(b.error,"Close"),this.clickEvent.closeDatabaseLoader()}})}refreshDbSpecifcConnectionOptions(){this.connectForm.value.isSharded=!1}static#e=this.\u0275fac=function(i){return new(i||t)(_(hn),_(pn),_(Pi),_(yf),_(Go),_(qo))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-direct-connection"]],decls:54,vars:8,consts:[["id","direct-connection-component",1,"connect-load-database-container"],[1,"form-container"],[3,"formGroup"],[1,"primary-header"],["appearance","outline",1,"full-width"],["formControlName","dbEngine","id","dbengine-input",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["class","shardingConfig",4,"ngIf"],["matInput","","placeholder","127.0.0.1","name","hostName","type","text","formControlName","hostName","id","hostname-input"],["matInput","","placeholder","3306","name","port","type","text","formControlName","port","id","port-input"],["matInput","","placeholder","root","name","userName","type","text","formControlName","userName","id","username-input"],["matInput","","name","password","type","password","formControlName","password","id","password-input"],["matInput","","name","dbname","type","text","formControlName","dbName","id","dbname-input"],["matSelect","","name","dialect","formControlName","dialect","appearance","outline","id","spanner-dialect-input"],["class","success","matTooltip","Source Connection Successful","matTooltipPosition","above",4,"ngIf"],["mat-raised-button","","id","test-connect-btn","type","submit","color","accent",3,"disabled","click"],["mat-raised-button","","id","connect-btn","type","submit","color","primary",3,"disabled","click"],["mat-raised-button","",3,"routerLink"],[3,"value"],[1,"shardingConfig"],[1,"flex-container"],["appearance","outline",1,"flex-item"],["formControlName","isSharded"],["matTooltip","Configure multiple source database instances (shards) and consolidate them by migrating to a single Cloud Spanner instance to take advantage of Spanner's horizontal scalability and consistency semantics.",1,"flex-item","configure"],[1,"flex-item","rounded-chip",3,"removable"],[4,"ngIf"],["matTooltip","Source Connection Successful","matTooltipPosition","above",1,"success"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"form",2)(3,"h3",3),u(4,"Connect to Source Database"),l(),d(5,"mat-form-field",4)(6,"mat-label"),u(7,"Database Engine"),l(),d(8,"mat-select",5),P("selectionChange",function(){return o.refreshDbSpecifcConnectionOptions()}),g(9,kJ,2,2,"mat-option",6),l()(),g(10,IJ,13,3,"div",7),S(11,"br"),d(12,"h3",3),u(13,"Connection Detail"),l(),d(14,"mat-form-field",4)(15,"mat-label"),u(16,"Hostname"),l(),S(17,"input",8),l(),d(18,"mat-form-field",4)(19,"mat-label"),u(20,"Port"),l(),S(21,"input",9),d(22,"mat-error"),u(23," Only numbers are allowed. "),l()(),S(24,"br"),d(25,"mat-form-field",4)(26,"mat-label"),u(27,"User name"),l(),S(28,"input",10),l(),d(29,"mat-form-field",4)(30,"mat-label"),u(31,"Password"),l(),S(32,"input",11),l(),S(33,"br"),d(34,"mat-form-field",4)(35,"mat-label"),u(36,"Database Name"),l(),S(37,"input",12),l(),S(38,"br"),d(39,"h3",3),u(40,"Spanner Dialect"),l(),d(41,"mat-form-field",4)(42,"mat-label"),u(43,"Spanner dialect"),l(),d(44,"mat-select",13),g(45,EJ,2,2,"mat-option",6),l()(),S(46,"br"),g(47,OJ,2,0,"mat-icon",14),d(48,"button",15),P("click",function(){return o.testConn()}),u(49," Test Connection "),l(),d(50,"button",16),P("click",function(){return o.connectToDb()}),u(51," Connect "),l(),d(52,"button",17),u(53,"Cancel"),l()()()()),2&i&&(m(2),p("formGroup",o.connectForm),m(7),p("ngForOf",o.dbEngineList),m(1),p("ngIf","mysql"===o.connectForm.value.dbEngine),m(35),p("ngForOf",o.dialect),m(2),p("ngIf",o.isTestConnectionSuccessful),m(1),p("disabled",!o.connectForm.valid),m(2),p("disabled",!o.connectForm.valid||!o.isTestConnectionSuccessful),m(2),p("routerLink","/"))},dependencies:[qi,kt,Er,Gt,vi,_i,gi,wy,Fi,An,un,tn,pi,li,Mi,fi,Ai,Ps,on],styles:[".connect-load-database-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:0}.configure[_ngcontent-%COMP%]{color:#1967d2}.flex-container[_ngcontent-%COMP%]{display:flex;align-items:center}.flex-item[_ngcontent-%COMP%]{margin-right:8px;align-self:baseline}.rounded-chip[_ngcontent-%COMP%]{background-color:#fff!important;color:#0f33ab!important;border-radius:16px;padding:6px 12px;border:1px solid black;cursor:not-allowed;pointer-events:none}"]})}return t})();function PJ(t,n){if(1&t){const e=ge();d(0,"button",7),P("click",function(){return ne(e),oe(C().onConfirm())}),u(1," Continue "),l()}}let Mo=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,void 0===i.title&&(i.title="Update can not be saved")}ngOnInit(){}onConfirm(){this.dialogRef.close(!0)}onDismiss(){this.dialogRef.close(!1)}getIconFromMessageType(){switch(this.data.type){case"warning":return"warning";case"error":return"error";case"success":return"check_circle";default:return"message"}}static#e=this.\u0275fac=function(i){return new(i||t)(_(nn),_(Zn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-infodialog"]],decls:9,vars:3,consts:[[1,"dialog-container"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"dialog-message",3,"innerHtml"],["mat-dialog-actions","",1,"dialog-action"],["mat-button","","color","primary","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h1",1),u(2),l(),d(3,"div",2),S(4,"p",3),l(),d(5,"div",4)(6,"button",5),u(7,"CANCEL"),l(),g(8,PJ,2,0,"button",6),l()()),2&i&&(m(2),Ie(o.data.title),m(2),p("innerHtml",o.data.message,xx),m(4),p("ngIf","error"!=o.data.type))},dependencies:[kt,Gt,Sn,EZ,co,lo]})}return t})();function ZA(t=0,n=Bd){return t<0&&(t=0),Cp(t,t,n)}let RJ=(()=>{class t{constructor(e,i){this.fetch=e,this.dialog=i,this.healthCheckSubscription=new T,this.unHealthyCheckCount=0,this.MAX_UNHEALTHY_CHECK_ATTEMPTS=5}startHealthCheck(){this.healthCheckSubscription=ZA(5e3).subscribe(()=>{this.checkBackendHealth()})}stopHealthCheck(){this.healthCheckSubscription&&this.healthCheckSubscription.unsubscribe()}checkBackendHealth(){this.checkHealth().subscribe(e=>{e?this.unHealthyCheckCount=0:(this.unHealthyCheckCount==this.MAX_UNHEALTHY_CHECK_ATTEMPTS&&this.openHealthDialog(),this.unHealthyCheckCount++)})}openHealthDialog(){let e=this.dialog.open(Mo,{width:"500px",data:{message:"Please check terminal logs for more details. In case of a crash please file a github issue with all the details.",type:"error",title:"Spanner migration tool unresponsive"}});this.stopHealthCheck(),e.afterClosed().subscribe(()=>{this.startHealthCheck()})}checkHealth(){return Hi(this.fetch.checkBackendHealth()).pipe(ze(()=>!0),Di(()=>qe(!1)))}ngOnDestroy(){this.stopHealthCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(pn),Y(Mr))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function FJ(t,n){1&t&&(d(0,"mat-icon"),u(1,"keyboard_arrow_up"),l())}function NJ(t,n){1&t&&(d(0,"mat-icon"),u(1,"filter_list"),l())}function LJ(t,n){if(1&t){const e=ge();d(0,"mat-form-field",24)(1,"mat-label"),u(2,"Filter"),l(),d(3,"input",25),P("ngModelChange",function(o){return ne(e),oe(C(3).filterColumnsValue.sessionName=o)})("keyup",function(o){return ne(e),oe(C(3).updateFilterValue(o,"sessionName"))}),l()()}if(2&t){const e=C(3);m(3),p("ngModel",e.filterColumnsValue.sessionName)}}function BJ(t,n){if(1&t){const e=ge();d(0,"th",19)(1,"div",20)(2,"span"),u(3,"Session Name"),l(),d(4,"button",21),P("click",function(){return ne(e),oe(C(2).toggleFilterDisplay("sessionName"))}),g(5,FJ,2,0,"mat-icon",22),g(6,NJ,2,0,"mat-icon",22),l()(),g(7,LJ,4,1,"mat-form-field",23),l()}if(2&t){const e=C(2);m(5),p("ngIf",e.displayFilter.sessionName),m(1),p("ngIf",!e.displayFilter.sessionName),m(1),p("ngIf",e.displayFilter.sessionName)}}function VJ(t,n){if(1&t&&(d(0,"td",26),u(1),l()),2&t){const e=n.$implicit;m(1),Ie(e.SessionName)}}function jJ(t,n){1&t&&(d(0,"mat-icon"),u(1,"keyboard_arrow_up"),l())}function zJ(t,n){1&t&&(d(0,"mat-icon"),u(1,"filter_list"),l())}function HJ(t,n){if(1&t){const e=ge();d(0,"mat-form-field",28)(1,"mat-label"),u(2,"Filter"),l(),d(3,"input",25),P("ngModelChange",function(o){return ne(e),oe(C(3).filterColumnsValue.editorName=o)})("keyup",function(o){return ne(e),oe(C(3).updateFilterValue(o,"editorName"))}),l()()}if(2&t){const e=C(3);m(3),p("ngModel",e.filterColumnsValue.editorName)}}function UJ(t,n){if(1&t){const e=ge();d(0,"th",19)(1,"div",20)(2,"span"),u(3,"Editor"),l(),d(4,"button",21),P("click",function(){return ne(e),oe(C(2).toggleFilterDisplay("editorName"))}),g(5,jJ,2,0,"mat-icon",22),g(6,zJ,2,0,"mat-icon",22),l()(),g(7,HJ,4,1,"mat-form-field",27),l()}if(2&t){const e=C(2);m(5),p("ngIf",e.displayFilter.editorName),m(1),p("ngIf",!e.displayFilter.editorName),m(1),p("ngIf",e.displayFilter.editorName)}}function $J(t,n){if(1&t&&(d(0,"td",26),u(1),l()),2&t){const e=n.$implicit;m(1),Ie(e.EditorName)}}function GJ(t,n){1&t&&(d(0,"mat-icon"),u(1,"keyboard_arrow_up"),l())}function qJ(t,n){1&t&&(d(0,"mat-icon"),u(1,"filter_list"),l())}function WJ(t,n){if(1&t){const e=ge();d(0,"mat-form-field",28)(1,"mat-label"),u(2,"Filter"),l(),d(3,"input",25),P("ngModelChange",function(o){return ne(e),oe(C(3).filterColumnsValue.databaseType=o)})("keyup",function(o){return ne(e),oe(C(3).updateFilterValue(o,"databaseType"))}),l()()}if(2&t){const e=C(3);m(3),p("ngModel",e.filterColumnsValue.databaseType)}}function KJ(t,n){if(1&t){const e=ge();d(0,"th",19)(1,"div",20)(2,"span"),u(3,"Database Type"),l(),d(4,"button",21),P("click",function(){return ne(e),oe(C(2).toggleFilterDisplay("databaseType"))}),g(5,GJ,2,0,"mat-icon",22),g(6,qJ,2,0,"mat-icon",22),l()(),g(7,WJ,4,1,"mat-form-field",27),l()}if(2&t){const e=C(2);m(5),p("ngIf",e.displayFilter.databaseType),m(1),p("ngIf",!e.displayFilter.databaseType),m(1),p("ngIf",e.displayFilter.databaseType)}}function ZJ(t,n){if(1&t&&(d(0,"td",26),u(1),l()),2&t){const e=n.$implicit;m(1),Ie(e.DatabaseType)}}function YJ(t,n){1&t&&(d(0,"mat-icon"),u(1,"keyboard_arrow_up"),l())}function QJ(t,n){1&t&&(d(0,"mat-icon"),u(1,"filter_list"),l())}function XJ(t,n){if(1&t){const e=ge();d(0,"mat-form-field",28)(1,"mat-label"),u(2,"Filter"),l(),d(3,"input",25),P("ngModelChange",function(o){return ne(e),oe(C(3).filterColumnsValue.databaseName=o)})("keyup",function(o){return ne(e),oe(C(3).updateFilterValue(o,"databaseName"))}),l()()}if(2&t){const e=C(3);m(3),p("ngModel",e.filterColumnsValue.databaseName)}}function JJ(t,n){if(1&t){const e=ge();d(0,"th",19)(1,"div",20)(2,"span"),u(3,"Database Name"),l(),d(4,"button",21),P("click",function(){return ne(e),oe(C(2).toggleFilterDisplay("databaseName"))}),g(5,YJ,2,0,"mat-icon",22),g(6,QJ,2,0,"mat-icon",22),l()(),g(7,XJ,4,1,"mat-form-field",27),l()}if(2&t){const e=C(2);m(5),p("ngIf",e.displayFilter.databaseName),m(1),p("ngIf",!e.displayFilter.databaseName),m(1),p("ngIf",e.displayFilter.databaseName)}}function eee(t,n){if(1&t&&(d(0,"td",26),u(1),l()),2&t){const e=n.$implicit;m(1),Ie(e.DatabaseName)}}function tee(t,n){1&t&&(d(0,"mat-icon"),u(1,"keyboard_arrow_up"),l())}function iee(t,n){1&t&&(d(0,"mat-icon"),u(1,"filter_list"),l())}function nee(t,n){if(1&t){const e=ge();d(0,"mat-form-field",28)(1,"mat-label"),u(2,"Filter"),l(),d(3,"input",25),P("ngModelChange",function(o){return ne(e),oe(C(3).filterColumnsValue.dialect=o)})("keyup",function(o){return ne(e),oe(C(3).updateFilterValue(o,"dialect"))}),l()()}if(2&t){const e=C(3);m(3),p("ngModel",e.filterColumnsValue.dialect)}}function oee(t,n){if(1&t){const e=ge();d(0,"th",19)(1,"div",20)(2,"span"),u(3,"Spanner Dialect"),l(),d(4,"button",21),P("click",function(){return ne(e),oe(C(2).toggleFilterDisplay("dialect"))}),g(5,tee,2,0,"mat-icon",22),g(6,iee,2,0,"mat-icon",22),l()(),g(7,nee,4,1,"mat-form-field",27),l()}if(2&t){const e=C(2);m(5),p("ngIf",e.displayFilter.dialect),m(1),p("ngIf",!e.displayFilter.dialect),m(1),p("ngIf",e.displayFilter.dialect)}}function ree(t,n){if(1&t&&(d(0,"td",26),u(1),l()),2&t){const e=n.$implicit;m(1),Ie(e.Dialect)}}function aee(t,n){1&t&&(d(0,"th",19),u(1,"Notes"),l())}function see(t,n){if(1&t){const e=ge();d(0,"button",34),P("click",function(){ne(e);const o=C(2).index,r=C(2);return oe(r.notesToggle[o]=!r.notesToggle[o])}),u(1," ... "),l()}}function cee(t,n){if(1&t&&(d(0,"p"),u(1),l()),2&t){const e=n.$implicit;m(1),Ie(e)}}function lee(t,n){if(1&t&&(d(0,"div"),g(1,cee,2,1,"p",35),l()),2&t){const e=C(2).$implicit;m(1),p("ngForOf",e.Notes)}}function dee(t,n){if(1&t&&(d(0,"p"),u(1),l()),2&t){const e=C(2).$implicit;m(1),Ie(null==e.Notes||null==e.Notes[0]?null:e.Notes[0].substring(0,20))}}function uee(t,n){if(1&t&&(d(0,"div",30),g(1,see,2,0,"button",31),g(2,lee,2,1,"div",32),g(3,dee,2,1,"ng-template",null,33,tr),l()),2&t){const e=At(4),i=C(),o=i.$implicit,r=i.index,a=C(2);m(1),p("ngIf",(null==o.Notes?null:o.Notes.length)>1||(null==o.Notes[0]?null:o.Notes[0].length)>20),m(1),p("ngIf",a.notesToggle[r])("ngIfElse",e)}}function hee(t,n){if(1&t&&(d(0,"td",26),g(1,uee,5,3,"div",29),l()),2&t){const e=n.$implicit;m(1),p("ngIf",e.Notes)}}function mee(t,n){1&t&&(d(0,"th",19),u(1,"Created At"),l())}function pee(t,n){if(1&t&&(d(0,"td",26),u(1),l()),2&t){const e=n.$implicit,i=C(2);m(1),Ie(i.convertDateTime(e.CreateTimestamp))}}function fee(t,n){1&t&&S(0,"th",19)}function gee(t,n){if(1&t){const e=ge();d(0,"td",26)(1,"button",36),P("click",function(){const r=ne(e).$implicit;return oe(C(2).resumeFromSessionFile(r.VersionId))}),u(2," Resume "),l(),d(3,"button",36),P("click",function(){const r=ne(e).$implicit;return oe(C(2).downloadSessionFile(r.VersionId,r.SessionName,r.DatabaseType,r.DatabaseName))}),u(4," Download "),l()()}}function _ee(t,n){1&t&&S(0,"tr",37)}function bee(t,n){1&t&&S(0,"tr",38)}function vee(t,n){if(1&t&&(d(0,"div",5)(1,"table",6),ue(2,7),g(3,BJ,8,3,"th",8),g(4,VJ,2,1,"td",9),he(),ue(5,10),g(6,UJ,8,3,"th",8),g(7,$J,2,1,"td",9),he(),ue(8,11),g(9,KJ,8,3,"th",8),g(10,ZJ,2,1,"td",9),he(),ue(11,12),g(12,JJ,8,3,"th",8),g(13,eee,2,1,"td",9),he(),ue(14,13),g(15,oee,8,3,"th",8),g(16,ree,2,1,"td",9),he(),ue(17,14),g(18,aee,2,0,"th",8),g(19,hee,2,1,"td",9),he(),ue(20,15),g(21,mee,2,0,"th",8),g(22,pee,2,1,"td",9),he(),ue(23,16),g(24,fee,1,0,"th",8),g(25,gee,5,0,"td",9),he(),g(26,_ee,1,0,"tr",17),g(27,bee,1,0,"tr",18),l()()),2&t){const e=C();m(1),p("dataSource",e.filteredDataSource),m(25),p("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",!0),m(1),p("matRowDefColumns",e.displayedColumns)}}function yee(t,n){if(1&t){const e=ge();d(0,"div",39),Zt(),d(1,"svg",40),S(2,"rect",41)(3,"path",42),l(),Xo(),d(4,"button",43),P("click",function(){return ne(e),oe(C().openSpannerConfigDialog())}),u(5," Configure Spanner Details "),l(),d(6,"span"),u(7,"Do not have any previous session to display. "),d(8,"u"),u(9," OR "),l(),S(10,"br"),u(11," Invalid Spanner configuration. "),l()()}}let Cee=(()=>{class t{constructor(e,i,o,r){this.fetch=e,this.data=i,this.router=o,this.clickEvent=r,this.displayedColumns=["SessionName","EditorName","DatabaseType","DatabaseName","Dialect","Notes","CreateTimestamp","Action"],this.notesToggle=[],this.dataSource=[],this.filteredDataSource=[],this.filterColumnsValue={sessionName:"",editorName:"",databaseType:"",databaseName:"",dialect:""},this.displayFilter={sessionName:!1,editorName:!1,databaseType:!1,databaseName:!1,dialect:!1}}ngOnInit(){this.data.getAllSessions(),this.data.sessions.subscribe({next:e=>{null!=e?(this.filteredDataSource=e,this.dataSource=e):(this.filteredDataSource=[],this.dataSource=[])}})}toggleFilterDisplay(e){this.displayFilter[e]=!this.displayFilter[e]}updateFilterValue(e,i){e.stopPropagation(),this.filterColumnsValue[i]=e.target.value,this.applyFilter()}applyFilter(){this.filteredDataSource=this.dataSource.filter(e=>!!e.SessionName.toLowerCase().includes(this.filterColumnsValue.sessionName.toLowerCase())).filter(e=>!!e.EditorName.toLowerCase().includes(this.filterColumnsValue.editorName.toLowerCase())).filter(e=>!!e.DatabaseType.toLowerCase().includes(this.filterColumnsValue.databaseType.toLowerCase())).filter(e=>!!e.DatabaseName.toLowerCase().includes(this.filterColumnsValue.databaseName.toLowerCase())).filter(e=>!!e.Dialect.toLowerCase().includes(this.filterColumnsValue.dialect.toLowerCase()))}downloadSessionFile(e,i,o,r){this.fetch.getConvForSession(e).subscribe(a=>{var s=document.createElement("a");s.href=URL.createObjectURL(a),s.download=`${i}_${o}_${r}.json`,s.click()})}resumeFromSessionFile(e){this.data.resetStore(),this.data.getSchemaConversionFromResumeSession(e),this.data.conv.subscribe(i=>{localStorage.setItem(Ni.Config,e),localStorage.setItem(Ni.Type,Pn.ResumeSession),this.router.navigate(["/workspace"])})}openSpannerConfigDialog(){this.clickEvent.openSpannerConfig()}convertDateTime(e){return(e=(e=new Date(e).toString()).substring(e.indexOf(" ")+1)).substring(0,e.indexOf("("))}static#e=this.\u0275fac=function(i){return new(i||t)(_(pn),_(Pi),_(hn),_(qo))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-session-listing"]],decls:8,vars:2,consts:[[1,"sessions-wrapper"],[1,"primary-header"],[1,"summary"],["class","session-container mat-elevation-z3",4,"ngIf"],["class","mat-elevation-z3 warning-container",4,"ngIf"],[1,"session-container","mat-elevation-z3"],["mat-table","",3,"dataSource"],["matColumnDef","SessionName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","EditorName"],["matColumnDef","DatabaseType"],["matColumnDef","DatabaseName"],["matColumnDef","Dialect"],["matColumnDef","Notes"],["matColumnDef","CreateTimestamp"],["matColumnDef","Action"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[1,"table-header-container"],["mat-icon-button","",3,"click"],[4,"ngIf"],["appearance","outline","class","full-width",4,"ngIf"],["appearance","outline",1,"full-width"],["matInput","","autocomplete","off",3,"ngModel","ngModelChange","keyup"],["mat-cell",""],["appearance","outline",4,"ngIf"],["appearance","outline"],["class","notes-wrapper",4,"ngIf"],[1,"notes-wrapper"],["class","notes-toggle-button",3,"click",4,"ngIf"],[4,"ngIf","ngIfElse"],["short",""],[1,"notes-toggle-button",3,"click"],[4,"ngFor","ngForOf"],["mat-button","","color","primary",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-elevation-z3","warning-container"],["width","49","height","48","viewBox","0 0 49 48","fill","none","xmlns","http://www.w3.org/2000/svg"],["x","0.907227","width","48","height","48","rx","4","fill","#E6ECFA"],["fill-rule","evenodd","clip-rule","evenodd","d","M17.9072 15C16.8027 15 15.9072 15.8954 15.9072 17V31C15.9072 32.1046 16.8027 33 17.9072 33H31.9072C33.0118 33 33.9072 32.1046 33.9072 31V17C33.9072 15.8954 33.0118 15 31.9072 15H17.9072ZM20.9072 18H18.9072V20H20.9072V18ZM21.9072 18H23.9072V20H21.9072V18ZM20.9072 23H18.9072V25H20.9072V23ZM21.9072 23H23.9072V25H21.9072V23ZM20.9072 28H18.9072V30H20.9072V28ZM21.9072 28H23.9072V30H21.9072V28ZM30.9072 18H24.9072V20H30.9072V18ZM24.9072 23H30.9072V25H24.9072V23ZM30.9072 28H24.9072V30H30.9072V28Z","fill","#3367D6"],["mat-button","","color","primary",1,"spanner-config-button",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h3",1),u(2,"Session history"),l(),d(3,"div",2),u(4," Choose a session to resume an existing migration session, or download the session file. "),l(),S(5,"br"),g(6,vee,28,4,"div",3),g(7,yee,12,0,"div",4),l()),2&i&&(m(6),p("ngIf",o.dataSource.length>0),m(1),p("ngIf",0===o.dataSource.length))},dependencies:[qi,kt,Gt,Jr,vi,_i,gi,Fi,pi,li,$a,sa,Ga,ca,aa,qa,la,da,Wa,Ka,Jc],styles:[".session-container[_ngcontent-%COMP%]{max-height:500px;overflow:auto}.session-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:13px}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .table-header-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center}.sessions-wrapper[_ngcontent-%COMP%]{margin-top:20px}.sessions-wrapper[_ngcontent-%COMP%] .warning-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:57vh;text-align:center}.sessions-wrapper[_ngcontent-%COMP%] .warning-container[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-bottom:10px}.sessions-wrapper[_ngcontent-%COMP%] .warning-container[_ngcontent-%COMP%] .spanner-config-button[_ngcontent-%COMP%]{text-decoration:underline}.mat-mdc-column-Notes[_ngcontent-%COMP%]{max-width:200px;padding-right:10px}.notes-toggle-button[_ngcontent-%COMP%]{float:right;margin-right:32px;background-color:#f5f5f5;border:none;border-radius:2px;padding:0 5px 5px}.notes-toggle-button[_ngcontent-%COMP%]:hover{background-color:#ebe7e7;cursor:pointer}.notes-wrapper[_ngcontent-%COMP%]{margin-top:10px}.mat-mdc-column-SessionName[_ngcontent-%COMP%], .mat-mdc-column-EditorName[_ngcontent-%COMP%], .mat-mdc-column-DatabaseType[_ngcontent-%COMP%], .mat-mdc-column-DatabaseName[_ngcontent-%COMP%], .mat-mdc-column-Dialect[_ngcontent-%COMP%]{width:13vw;min-width:150px}.mat-mdc-column-Action[_ngcontent-%COMP%], .mat-mdc-column-Notes[_ngcontent-%COMP%], .mat-mdc-column-CreateTimestamp[_ngcontent-%COMP%]{width:15vw;min-width:150px}.mat-mdc-form-field[_ngcontent-%COMP%]{width:80%}"]})}return t})(),xee=(()=>{class t{constructor(e,i,o){this.dialog=e,this.router=i,this.healthCheckService=o}ngOnInit(){this.healthCheckService.startHealthCheck(),null!=localStorage.getItem(le.IsMigrationInProgress)&&"true"===localStorage.getItem(le.IsMigrationInProgress)&&(this.dialog.open(Mo,{data:{title:"Redirecting to prepare migration page",message:"Another migration already in progress",type:"error"},maxWidth:"500px"}),this.router.navigate(["/prepare-migration"]))}static#e=this.\u0275fac=function(i){return new(i||t)(_(Mr),_(hn),_(RJ))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-home"]],decls:21,vars:4,consts:[[1,"container"],[1,"primary-header"],[1,"summary","global-font-color","body-font-size"],["href","https://github.com/GoogleCloudPlatform/spanner-migration-tool#readme","target","_blank"],[1,"btn-source-select"],["mat-raised-button","","color","primary","id","connect-to-database-btn",1,"split-button-left",3,"routerLink"],["mat-raised-button","","color","primary",1,"split-button-right",3,"matMenuTriggerFor"],["aria-hidden","false","aria-label","More options"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"]],template:function(i,o){if(1&i&&(d(0,"div",0)(1,"h3",1),u(2,"Get started with Spanner migration tool"),l(),d(3,"div",2),u(4," Spanner migration tool (formerly known as HarbourBridge) is a stand-alone open source tool for Cloud Spanner evaluation and migration, using data from an existing PostgreSQL, MySQL, SQL Server, Oracle or DynamoDB database. "),d(5,"a",3),u(6,"Learn More"),l(),u(7,". "),l(),d(8,"div",4)(9,"button",5),u(10," Connect to database "),l(),d(11,"button",6)(12,"mat-icon",7),u(13,"expand_more"),l()(),d(14,"mat-menu",8,9)(16,"button",10),u(17,"Load database dump"),l(),d(18,"button",10),u(19,"Load session file"),l()()(),S(20,"app-session-listing"),l()),2&i){const r=At(15);m(9),p("routerLink","/source/direct-connection"),m(2),p("matMenuTriggerFor",r),m(5),p("routerLink","/source/load-dump"),m(2),p("routerLink","/source/load-session")}},dependencies:[Er,Gt,vi,ol,na,rl,Cee],styles:[".container[_ngcontent-%COMP%]{padding:7px 27px}.container[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%]{width:500px;font-weight:lighter}.container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 5px}.container[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-color:#fff;margin-bottom:20px}.container[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%]{margin:20px 0;padding-bottom:5px}.container[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .split-button-left[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.container[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .split-button-right[_ngcontent-%COMP%]{width:30px!important;min-width:unset!important;padding:0 2px;border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid #fafafa}"]})}return t})(),Rn=(()=>{class t{constructor(){this.sidenavOpenSub=new pt(!1),this.sidenavComponentSub=new pt(""),this.sidenavRuleTypeSub=new pt(""),this.sidenavAddIndexTableSub=new pt(""),this.setSidenavDatabaseNameSub=new pt(""),this.ruleDataSub=new pt({}),this.displayRuleFlagSub=new pt(!1),this.setMiddleColumn=new pt(!1),this.isSidenav=this.sidenavOpenSub.asObservable(),this.sidenavComponent=this.sidenavComponentSub.asObservable(),this.sidenavRuleType=this.sidenavRuleTypeSub.asObservable(),this.sidenavAddIndexTable=this.sidenavAddIndexTableSub.asObservable(),this.sidenavDatabaseName=this.setSidenavDatabaseNameSub.asObservable(),this.ruleData=this.ruleDataSub.asObservable(),this.displayRuleFlag=this.displayRuleFlagSub.asObservable(),this.setMiddleColumnComponent=this.setMiddleColumn.asObservable()}openSidenav(){this.sidenavOpenSub.next(!0)}closeSidenav(){this.sidenavOpenSub.next(!1)}setSidenavComponent(e){this.sidenavComponentSub.next(e)}setSidenavRuleType(e){this.sidenavRuleTypeSub.next(e)}setSidenavAddIndexTable(e){this.sidenavAddIndexTableSub.next(e)}setSidenavDatabaseName(e){this.setSidenavDatabaseNameSub.next(e)}setRuleData(e){this.ruleDataSub.next(e)}setDisplayRuleFlag(e){this.displayRuleFlagSub.next(e)}setMiddleColComponent(e){this.setMiddleColumn.next(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),YA=(()=>{class t{constructor(e){this.sidenav=e}ngOnInit(){}closeInstructionSidenav(){this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Rn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-instruction"]],decls:150,vars:0,consts:[[1,"instructions-div"],[1,"instruction-header-div"],["mat-icon-button","",3,"click"],["src","../../../assets/icons/google-spanner-logo.png",1,"instructions-icon"],[1,"textCenter"],[1,"instructions-main-heading"],[1,"instructions-sub-heading"],[1,"instructions-command"],["href","https://github.com/GoogleCloudPlatform/spanner-migration-tool",1,"instructionsLink"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"button",2),P("click",function(){return o.closeInstructionSidenav()}),d(3,"mat-icon"),u(4,"close"),l()()(),S(5,"img",3),d(6,"h1",4),u(7,"Spanner migration tool User Manual"),l(),S(8,"br")(9,"br"),d(10,"h3",5),u(11,"1 \xa0 \xa0 \xa0Introduction"),l(),d(12,"p"),u(13," Spanner migration tool (formerly known as HarbourBridge) is a stand-alone open source tool for Cloud Spanner evaluation, using data from an existing PostgreSQL or MySQL database. The tool ingests schema and data from either a pg_dump/mysqldump file or directly from the source database, automatically builds a Spanner schema, and creates a new Spanner database populated with data from the source database. "),S(14,"br")(15,"br")(16,"br"),u(17," Spanner migration tool is designed to simplify Spanner evaluation, and in particular to bootstrap the process by getting moderate-size PostgreSQL/MySQL datasets into Spanner (up to a few tens of GB). Many features of PostgreSQL/MySQL, especially those that don't map directly to Spanner features, are ignored, e.g. (non-primary) indexes, functions, and sequences. Types such as integers, floats, char/text, bools, timestamps, and (some) array types, map fairly directly to Spanner, but many other types do not and instead are mapped to Spanner's STRING(MAX). "),l(),S(18,"br"),d(19,"h4",6),u(20,"1.1 \xa0 \xa0 \xa0Spanner migration tool UI"),l(),d(21,"p"),u(22," Spanner migration tool UI is designed to focus on generating spanner schema from either a pg_dump/mysqldump file or directly from the source database and providing edit functionality to the spanner schema and thereby creating a new spanner database populated with new data. UI gives the provision to edit column name, edit data type, edit constraints, drop foreign key and drop secondary index of spanner schema. "),l(),S(23,"br"),d(24,"h3",5),u(25,"2 \xa0 \xa0 \xa0Key Features of UI"),l(),d(26,"ul")(27,"li"),u(28,"Connecting to a new database"),l(),d(29,"li"),u(30,"Load dump file"),l(),d(31,"li"),u(32,"Load session file"),l(),d(33,"li"),u(34,"Storing session for each conversion"),l(),d(35,"li"),u(36,"Edit data type globally for each table in schema"),l(),d(37,"li"),u(38,"Edit data type, column name, constraint for a particular table"),l(),d(39,"li"),u(40,"Edit foreign key and secondary index name"),l(),d(41,"li"),u(42,"Drop a column from a table"),l(),d(43,"li"),u(44,"Drop foreign key from a table"),l(),d(45,"li"),u(46,"Drop secondary index from a table"),l(),d(47,"li"),u(48,"Convert foreign key into interleave table"),l(),d(49,"li"),u(50,"Search a table"),l(),d(51,"li"),u(52,"Download schema, report and session files"),l()(),S(53,"br"),d(54,"h3",5),u(55,"3 \xa0 \xa0 \xa0UI Setup"),l(),d(56,"ul")(57,"li"),u(58,"Install go in local"),l(),d(59,"li"),u(60," Clone Spanner migration tool project and run following command in the terminal: "),S(61,"br"),d(62,"span",7),u(63,"go run main.go --web"),l()(),d(64,"li"),u(65,"Open "),d(66,"span",7),u(67,"http://localhost:8080"),l(),u(68,"in browser"),l()(),S(69,"br"),d(70,"h3",5),u(71," 4 \xa0 \xa0 \xa0Different modes to select source database "),l(),d(72,"h4",6),u(73,"4.1 \xa0 \xa0 \xa0Connect to Database"),l(),d(74,"ul")(75,"li"),u(76,"Enter database details in connect to database dialog box"),l(),d(77,"li"),u(78," Input Fields: database type, database host, database port, database user, database name, database password "),l()(),d(79,"h4",6),u(80,"4.2 \xa0 \xa0 \xa0Load Database Dump"),l(),d(81,"ul")(82,"li"),u(83,"Enter dump file path in load database dialog box"),l(),d(84,"li"),u(85,"Input Fields: database type, file path"),l()(),d(86,"h4",6),u(87,"4.3 \xa0 \xa0 \xa0Import Schema File"),l(),d(88,"ul")(89,"li"),u(90,"Enter session file path in load session dialog box"),l(),d(91,"li"),u(92,"Input Fields: database type, session file path"),l()(),d(93,"h3",5),u(94,"5 \xa0 \xa0 \xa0Session Table"),l(),d(95,"ul")(96,"li"),u(97,"Session table is used to store the previous sessions of schema conversion"),l()(),d(98,"h3",5),u(99,"6 \xa0 \xa0 \xa0Edit Global Data Type"),l(),d(100,"ul")(101,"li"),u(102,"Click on edit global data type button on the screen"),l(),d(103,"li"),u(104,"Select required spanner data type from the dropdown available for each source data type"),l(),d(105,"li"),u(106,"Click on next button after making all the changes"),l()(),d(107,"h3",5),u(108," 7 \xa0 \xa0 \xa0Edit Spanner Schema for a particular table "),l(),d(109,"ul")(110,"li"),u(111,"Expand any table"),l(),d(112,"li"),u(113,"Click on edit spanner schema button"),l(),d(114,"li"),u(115,"Edit column name/ data type/ constraint of spanner schema"),l(),d(116,"li"),u(117,"Edit name of secondary index or foreign key"),l(),d(118,"li"),u(119,"Select to convert foreign key to interleave or use as is (if option is available)"),l(),d(120,"li"),u(121,"Drop a column by unselecting any checkbox"),l(),d(122,"li"),u(123," Drop a foreign key or secondary index by expanding foreign keys or secondary indexes tab inside table "),l(),d(124,"li"),u(125,"Click on save changes button to save the changes"),l(),d(126,"li"),u(127," If current table is involved in foreign key/secondary indexes relationship with other table then user will be prompt to delete foreign key or secondary indexes and then proceed with save changes "),l()(),d(128,"p"),u(129,"- Warning before deleting secondary index from a table"),l(),d(130,"p"),u(131,"- Error on saving changes"),l(),d(132,"p"),u(133,"- Changes saved successfully after resolving all errors"),l(),d(134,"h3",5),u(135,"8 \xa0 \xa0 \xa0Download Session File"),l(),d(136,"ul")(137,"li"),u(138,"Save all the changes done in spanner schema table wise or globally"),l(),d(139,"li"),u(140,"Click on download session file button on the top right corner"),l(),d(141,"li"),u(142,"Save the generated session file with all the changes in local machine"),l()(),d(143,"h3",5),u(144,"9 \xa0 \xa0 \xa0How to use Session File"),l(),d(145,"p"),u(146," Please refer below link to get more information on how to use session file with Spanner migration tool "),l(),d(147,"a",8),u(148,"Refer this to use Session File"),l(),S(149,"br"),l())},dependencies:[Jr,vi],styles:[".instructions-div[_ngcontent-%COMP%]{padding:5px 20px 20px}.instructions-div[_ngcontent-%COMP%] .instruction-header-div[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.instructions-icon[_ngcontent-%COMP%]{height:200px;display:block;margin-left:auto;margin-right:auto}.textCenter[_ngcontent-%COMP%]{text-align:center}.instructions-main-heading[_ngcontent-%COMP%]{font-size:1.25rem;color:#4285f4;font-weight:700}.instructions-sub-heading[_ngcontent-%COMP%]{font-size:1rem;color:#4285f4;font-weight:700}.instructions-command[_ngcontent-%COMP%]{background-color:#8080806b;border-radius:5px;padding:0 5px}.instructions-img-width[_ngcontent-%COMP%]{width:800px}.instructionsLink[_ngcontent-%COMP%]{color:#4285f4;text-decoration:underline}"]})}return t})();const wee=["determinateSpinner"];function See(t,n){if(1&t&&(Zt(),d(0,"svg",11),S(1,"circle",12),l()),2&t){const e=C();Qe("viewBox",e._viewBox()),m(1),dn("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),Qe("r",e._circleRadius())}}const Dee=Pa(class{constructor(t){this._elementRef=t}},"primary"),kee=new se("mat-progress-spinner-default-options",{providedIn:"root",factory:function Mee(){return{diameter:QA}}}),QA=100;let Cl=(()=>{class t extends Dee{constructor(e,i,o){super(e),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=QA,this._noopAnimations="NoopAnimations"===i&&!!o&&!o._forceAnimations,o&&(o.color&&(this.color=this.defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,mi(e)))}get diameter(){return this._diameter}set diameter(e){this._diameter=mi(e)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=mi(e)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const e=2*this._circleRadius()+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static#e=this.\u0275fac=function(i){return new(i||t)(_(Le),_(oi,8),_(kee))};static#t=this.\u0275cmp=Me({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,o){if(1&i&&bt(wee,5),2&i){let r;Ee(r=Oe())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:16,hostBindings:function(i,o){2&i&&(Qe("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===o.mode?o.value:null)("mode",o.mode),dn("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),Xe("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===o.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[_e],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(i,o){if(1&i&&(g(0,See,2,8,"ng-template",null,0,tr),d(2,"div",1,2),Zt(),d(4,"svg",3),S(5,"circle",4),l()(),Xo(),d(6,"div",5)(7,"div",6)(8,"div",7),Hn(9,8),l(),d(10,"div",9),Hn(11,8),l(),d(12,"div",10),Hn(13,8),l()()()),2&i){const r=At(1);m(4),Qe("viewBox",o._viewBox()),m(1),dn("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),Qe("r",o._circleRadius()),m(4),p("ngTemplateOutlet",r),m(2),p("ngTemplateOutlet",r),m(2),p("ngTemplateOutlet",r)}},dependencies:[fm],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{--mdc-circular-progress-active-indicator-width:4px;--mdc-circular-progress-size:48px}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}return t})(),Iee=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[xn,wt]})}return t})();function Eee(t,n){if(1&t&&(d(0,"mat-option",17),u(1),l()),2&t){const e=n.$implicit;p("value",e.value),m(1),ye(" ",e.displayName," ")}}function Oee(t,n){1&t&&S(0,"mat-spinner",18),2&t&&p("diameter",25)}function Aee(t,n){1&t&&(d(0,"mat-icon",19),u(1,"check_circle"),l())}function Pee(t,n){1&t&&(d(0,"mat-icon",20),u(1,"cancel"),l())}function Ree(t,n){if(1&t&&(d(0,"mat-option",17),u(1),l()),2&t){const e=n.$implicit;p("value",e.value),m(1),ye(" ",e.displayName," ")}}let Fee=(()=>{class t{constructor(e,i,o){this.data=e,this.router=i,this.clickEvent=o,this.connectForm=new Yt({dbEngine:new U("mysqldump",[J.required]),filePath:new U("",[J.required]),dialect:new U("",[J.required])}),this.dbEngineList=[{value:"mysqldump",displayName:"MySQL"},{value:"pg_dump",displayName:"PostgreSQL"}],this.dialect=HA,this.fileToUpload=null,this.uploadStart=!1,this.uploadSuccess=!1,this.uploadFail=!1,this.getSchemaRequest=null}ngOnInit(){this.clickEvent.cancelDbLoad.subscribe({next:e=>{e&&this.getSchemaRequest&&this.getSchemaRequest.unsubscribe()}})}convertFromDump(){this.clickEvent.openDatabaseLoader("dump",""),this.data.resetStore(),localStorage.clear();const{dbEngine:e,filePath:i,dialect:o}=this.connectForm.value,s={Config:{Driver:e,Path:i},SpannerDetails:{Dialect:o}};this.getSchemaRequest=this.data.getSchemaConversionFromDump(s),this.data.conv.subscribe(c=>{localStorage.setItem(Ni.Config,JSON.stringify(s)),localStorage.setItem(Ni.Type,Pn.DumpFile),localStorage.setItem(Ni.SourceDbName,yl(e)),this.clickEvent.closeDatabaseLoader(),this.router.navigate(["/workspace"])})}handleFileInput(e){let i=e.target.files;i&&(this.fileToUpload=i.item(0),this.connectForm.patchValue({filePath:this.fileToUpload?.name}),this.fileToUpload&&this.uploadFile())}uploadFile(){if(this.fileToUpload){this.uploadStart=!0,this.uploadFail=!1,this.uploadSuccess=!1;const e=new FormData;e.append("myFile",this.fileToUpload,this.fileToUpload?.name),this.data.uploadFile(e).subscribe(i=>{""==i?this.uploadSuccess=!0:this.uploadFail=!0})}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Pi),_(hn),_(qo))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-load-dump"]],decls:36,vars:8,consts:[[1,"connect-load-database-container"],[1,"form-container"],[3,"formGroup","ngSubmit"],[1,"primary-header"],["appearance","outline",1,"full-width"],["matSelect","","name","dbEngine","formControlName","dbEngine","appearance","outline"],[3,"value",4,"ngFor","ngForOf"],["matInput","","placeholder","File path","name","filePath","type","text","formControlName","filePath","readonly","",3,"click"],["matSuffix","",3,"diameter",4,"ngIf"],["matSuffix","","class","success",4,"ngIf"],["matSuffix","","class","danger",4,"ngIf"],["mat-stroked-button","","type","button",3,"click"],["hidden","","type","file",3,"change"],["file",""],["matSelect","","name","dialect","formControlName","dialect","appearance","outline"],["mat-raised-button","","type","submit","color","primary",3,"disabled"],["mat-raised-button","",3,"routerLink"],[3,"value"],["matSuffix","",3,"diameter"],["matSuffix","",1,"success"],["matSuffix","",1,"danger"]],template:function(i,o){if(1&i){const r=ge();d(0,"div",0)(1,"div",1)(2,"form",2),P("ngSubmit",function(){return o.convertFromDump()}),d(3,"h3",3),u(4,"Load from database dump"),l(),d(5,"mat-form-field",4)(6,"mat-label"),u(7,"Database Engine"),l(),d(8,"mat-select",5),g(9,Eee,2,2,"mat-option",6),l()(),d(10,"h3",3),u(11,"Dump File"),l(),d(12,"mat-form-field",4)(13,"mat-label"),u(14,"File path"),l(),d(15,"input",7),P("click",function(){return ne(r),oe(At(22).click())}),l(),g(16,Oee,1,1,"mat-spinner",8),g(17,Aee,2,0,"mat-icon",9),g(18,Pee,2,0,"mat-icon",10),l(),d(19,"button",11),P("click",function(){return ne(r),oe(At(22).click())}),u(20,"Upload File"),l(),d(21,"input",12,13),P("change",function(s){return o.handleFileInput(s)}),l(),S(23,"br"),d(24,"h3",3),u(25,"Spanner Dialect"),l(),d(26,"mat-form-field",4)(27,"mat-label"),u(28,"Select a spanner dialect"),l(),d(29,"mat-select",14),g(30,Ree,2,2,"mat-option",6),l()(),S(31,"br"),d(32,"button",15),u(33," Convert "),l(),d(34,"button",16),u(35,"Cancel"),l()()()()}2&i&&(m(2),p("formGroup",o.connectForm),m(7),p("ngForOf",o.dbEngineList),m(7),p("ngIf",o.uploadStart&&!o.uploadSuccess&&!o.uploadFail),m(1),p("ngIf",o.uploadStart&&o.uploadSuccess),m(1),p("ngIf",o.uploadStart&&o.uploadFail),m(12),p("ngForOf",o.dialect),m(2),p("disabled",!o.connectForm.valid||!o.uploadSuccess),m(2),p("routerLink","/"))},dependencies:[qi,kt,Er,Gt,vi,_i,gi,Sy,Fi,An,un,tn,pi,li,Mi,fi,Ai,Cl]})}return t})();function Nee(t,n){if(1&t&&(d(0,"mat-option",16),u(1),l()),2&t){const e=n.$implicit;p("value",e.value),m(1),ye(" ",e.displayName," ")}}function Lee(t,n){1&t&&S(0,"mat-spinner",17),2&t&&p("diameter",25)}function Bee(t,n){1&t&&(d(0,"mat-icon",18),u(1,"check_circle"),l())}function Vee(t,n){1&t&&(d(0,"mat-icon",19),u(1,"cancel"),l())}let jee=(()=>{class t{constructor(e,i,o){this.data=e,this.router=i,this.clickEvent=o,this.connectForm=new Yt({dbEngine:new U("mysql",[J.required]),filePath:new U("",[J.required])}),this.dbEngineList=[{value:"mysql",displayName:"MySQL"},{value:"sqlserver",displayName:"SQL Server"},{value:"oracle",displayName:"Oracle"},{value:"postgres",displayName:"PostgreSQL"}],this.fileToUpload=null,this.uploadStart=!1,this.uploadSuccess=!1,this.uploadFail=!1,this.getSchemaRequest=null}ngOnInit(){this.clickEvent.cancelDbLoad.subscribe({next:e=>{e&&this.getSchemaRequest&&this.getSchemaRequest.unsubscribe()}})}convertFromSessionFile(){this.clickEvent.openDatabaseLoader("session",""),this.data.resetStore(),localStorage.clear();const{dbEngine:e,filePath:i}=this.connectForm.value,o={driver:e,filePath:i};this.getSchemaRequest=this.data.getSchemaConversionFromSession(o),this.data.conv.subscribe(r=>{localStorage.setItem(Ni.Config,JSON.stringify(o)),localStorage.setItem(Ni.Type,Pn.SessionFile),localStorage.setItem(Ni.SourceDbName,yl(e)),this.clickEvent.closeDatabaseLoader(),this.router.navigate(["/workspace"])})}handleFileInput(e){let i=e.target.files;i&&(this.fileToUpload=i.item(0),this.connectForm.patchValue({filePath:this.fileToUpload?.name}),this.fileToUpload&&this.uploadFile())}uploadFile(){if(this.fileToUpload){this.uploadStart=!0,this.uploadFail=!1,this.uploadSuccess=!1;const e=new FormData;e.append("myFile",this.fileToUpload,this.fileToUpload?.name),this.data.uploadFile(e).subscribe(i=>{""==i?this.uploadSuccess=!0:this.uploadFail=!0})}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Pi),_(hn),_(qo))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-load-session"]],decls:28,vars:7,consts:[[1,"connect-load-database-container"],[1,"form-container"],[3,"formGroup","ngSubmit"],[1,"primary-header"],["appearance","outline",1,"full-width"],["matSelect","","name","dbEngine","formControlName","dbEngine","appearance","outline"],[3,"value",4,"ngFor","ngForOf"],["matInput","","placeholder","File path","name","filePath","type","text","formControlName","filePath","readonly","",3,"click"],["matSuffix","",3,"diameter",4,"ngIf"],["matSuffix","","class","success",4,"ngIf"],["matSuffix","","class","danger",4,"ngIf"],["mat-stroked-button","","type","button",3,"click"],["hidden","","type","file",3,"change"],["file",""],["mat-raised-button","","type","submit","color","primary",3,"disabled"],["mat-raised-button","",3,"routerLink"],[3,"value"],["matSuffix","",3,"diameter"],["matSuffix","",1,"success"],["matSuffix","",1,"danger"]],template:function(i,o){if(1&i){const r=ge();d(0,"div",0)(1,"div",1)(2,"form",2),P("ngSubmit",function(){return o.convertFromSessionFile()}),d(3,"h3",3),u(4,"Load from session"),l(),d(5,"mat-form-field",4)(6,"mat-label"),u(7,"Database Engine"),l(),d(8,"mat-select",5),g(9,Nee,2,2,"mat-option",6),l()(),d(10,"h3",3),u(11,"Session File"),l(),d(12,"mat-form-field",4)(13,"mat-label"),u(14,"File path"),l(),d(15,"input",7),P("click",function(){return ne(r),oe(At(22).click())}),l(),g(16,Lee,1,1,"mat-spinner",8),g(17,Bee,2,0,"mat-icon",9),g(18,Vee,2,0,"mat-icon",10),l(),d(19,"button",11),P("click",function(){return ne(r),oe(At(22).click())}),u(20,"Upload File"),l(),d(21,"input",12,13),P("change",function(s){return o.handleFileInput(s)}),l(),S(23,"br"),d(24,"button",14),u(25," Convert "),l(),d(26,"button",15),u(27,"Cancel"),l()()()()}2&i&&(m(2),p("formGroup",o.connectForm),m(7),p("ngForOf",o.dbEngineList),m(7),p("ngIf",o.uploadStart&&!o.uploadSuccess&&!o.uploadFail),m(1),p("ngIf",o.uploadStart&&o.uploadSuccess),m(1),p("ngIf",o.uploadStart&&o.uploadFail),m(6),p("disabled",!o.connectForm.valid||!o.uploadSuccess),m(2),p("routerLink","/"))},dependencies:[qi,kt,Er,Gt,vi,_i,gi,Sy,Fi,An,un,tn,pi,li,Mi,fi,Ai,Cl]})}return t})();function zee(t,n){if(1&t&&(d(0,"h3"),u(1),l()),2&t){const e=C();m(1),ye("Reading schema for ",e.databaseName," database. Please wait...")}}function Hee(t,n){1&t&&(d(0,"h4"),u(1,"Tip: Spanner migration tool will read the information schema at source and automatically map it to Cloud Spanner"),l())}function Uee(t,n){if(1&t&&(d(0,"h3"),u(1),l()),2&t){const e=C();m(1),ye("Testing connection to ",e.databaseName," database...")}}function $ee(t,n){1&t&&(d(0,"h4"),u(1,"Tip: Spanner migration tool is attempting to ping the source database, it will retry a couple of times before timing out."),l())}function Gee(t,n){1&t&&(d(0,"h3"),u(1,"Loading the dump file..."),l())}function qee(t,n){1&t&&(d(0,"h3"),u(1,"Loading the session file..."),l())}let Wee=(()=>{class t{constructor(e,i){this.router=e,this.clickEvent=i,this.loaderType="",this.databaseName="",this.timeElapsed=0,this.timeElapsedInterval=setInterval(()=>{this.timeElapsed+=1},1e3)}ngOnInit(){this.timeElapsed=0}ngOnDestroy(){clearInterval(this.timeElapsedInterval)}cancelDbLoad(){this.clickEvent.cancelDbLoading(),this.clickEvent.closeDatabaseLoader(),this.router.navigate(["/"])}static#e=this.\u0275fac=function(i){return new(i||t)(_(hn),_(qo))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-database-loader"]],inputs:{loaderType:"loaderType",databaseName:"databaseName"},decls:12,vars:7,consts:[[1,"container","content-height"],["src","../../../assets/gifs/database-loader.gif","alt","database-loader-gif",1,"loader-gif"],[4,"ngIf"],["mat-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0),S(1,"img",1),g(2,zee,2,1,"h3",2),g(3,Hee,2,0,"h4",2),g(4,Uee,2,1,"h3",2),g(5,$ee,2,0,"h4",2),g(6,Gee,2,0,"h3",2),g(7,qee,2,0,"h3",2),d(8,"h5"),u(9),l(),d(10,"button",3),P("click",function(){return o.cancelDbLoad()}),u(11,"Cancel"),l()()),2&i&&(m(2),p("ngIf","direct"===o.loaderType),m(1),p("ngIf","direct"===o.loaderType),m(1),p("ngIf","test-connection"===o.loaderType),m(1),p("ngIf","test-connection"===o.loaderType),m(1),p("ngIf","dump"===o.loaderType),m(1),p("ngIf","session"===o.loaderType),m(2),ye("",o.timeElapsed," seconds have elapsed"))},dependencies:[kt,Gt],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.container[_ngcontent-%COMP%] .loader-gif[_ngcontent-%COMP%]{width:10rem;height:10rem}"]})}return t})();function Kee(t,n){1&t&&(d(0,"div"),S(1,"router-outlet"),l())}function Zee(t,n){if(1&t&&(d(0,"div"),S(1,"app-database-loader",1),l()),2&t){const e=C();m(1),p("loaderType",e.loaderType)("databaseName",e.databaseName)}}let Yee=(()=>{class t{constructor(e){this.clickevent=e,this.isDatabaseLoading=!1,this.loaderType="",this.databaseName=""}ngOnInit(){this.clickevent.databaseLoader.subscribe(e=>{this.loaderType=e.type,this.databaseName=e.databaseName,this.isDatabaseLoading=""!==this.loaderType})}static#e=this.\u0275fac=function(i){return new(i||t)(_(qo))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-source-selection"]],decls:2,vars:2,consts:[[4,"ngIf"],[3,"loaderType","databaseName"]],template:function(i,o){1&i&&(g(0,Kee,2,0,"div",0),g(1,Zee,2,2,"div",0)),2&i&&(p("ngIf",!o.isDatabaseLoading),m(1),p("ngIf",o.isDatabaseLoading))},dependencies:[kt,hf,Wee],styles:[".mat-card-class[_ngcontent-%COMP%]{padding:0 20px}"]})}return t})();var XA=Re(965);function Qee(t,n){if(1&t){const e=ge();d(0,"mat-chip-row",16),P("removed",function(){const r=ne(e).$implicit;return oe(C().removeFilter(r))}),u(1),d(2,"button",17)(3,"mat-icon"),u(4,"cancel"),l()()()}if(2&t){const e=n.$implicit;m(1),ye(" ",e," ")}}function Xee(t,n){if(1&t){const e=ge();d(0,"mat-option",18),P("click",function(){const r=ne(e).$implicit;return oe(C().addFilter(r))}),u(1),l()}if(2&t){const e=n.$implicit;p("value",e),m(1),ye(" ",e," ")}}function Jee(t,n){1&t&&(d(0,"mat-icon",31),u(1," error "),l())}function ete(t,n){1&t&&(d(0,"mat-icon",32),u(1," warning "),l())}function tte(t,n){1&t&&(d(0,"mat-icon",33),u(1," wb_incandescent "),l())}function ite(t,n){1&t&&(d(0,"mat-icon",34),u(1," check_circle "),l())}function nte(t,n){if(1&t){const e=ge();d(0,"button",35),P("click",function(){ne(e);const o=C().$implicit;return oe(C(2).toggleRead(o))}),d(1,"span"),u(2,"Mark as read"),l()()}}function ote(t,n){if(1&t){const e=ge();d(0,"button",35),P("click",function(){ne(e);const o=C().$implicit;return oe(C(2).toggleRead(o))}),d(1,"span"),u(2,"Mark as unread"),l()()}}function rte(t,n){if(1&t&&(d(0,"section",21)(1,"div",2)(2,"div",3),g(3,Jee,2,0,"mat-icon",22),g(4,ete,2,0,"mat-icon",23),g(5,tte,2,0,"mat-icon",24),g(6,ite,2,0,"mat-icon",25),l(),d(7,"div",26),u(8),l(),d(9,"div",6)(10,"mat-icon",27),u(11,"more_vert"),l(),d(12,"mat-menu",28,29),g(14,nte,3,0,"button",30),g(15,ote,3,0,"button",30),l()()()()),2&t){const e=n.$implicit,i=At(13);m(3),p("ngIf","error"==e.type),m(1),p("ngIf","warning"==e.type),m(1),p("ngIf","suggestion"==e.type),m(1),p("ngIf","note"==e.type),m(2),Ie(e.content),m(2),p("matMenuTriggerFor",i),m(4),p("ngIf",!e.isRead),m(1),p("ngIf",e.isRead)}}function ate(t,n){if(1&t&&(d(0,"div",19),g(1,rte,16,8,"section",20),l()),2&t){const e=C();m(1),p("ngForOf",e.filteredSummaryRows)}}function ste(t,n){1&t&&(d(0,"div",36)(1,"div",37),Zt(),d(2,"svg",38),S(3,"path",39),l()(),Xo(),d(4,"div",40),u(5," Woohoo! No issues or suggestions"),S(6,"br"),u(7,"found. "),l()())}let cte=(()=>{class t{constructor(e,i){this.data=e,this.clickEvent=i,this.changeIssuesLabel=new Fe,this.summaryRows=[],this.summary=new Map,this.filteredSummaryRows=[],this.separatorKeysCodes=[],this.summaryCount=0,this.totalNoteCount=0,this.totalWarningCount=0,this.totalSuggestionCount=0,this.totalErrorCount=0,this.filterInput=new U,this.options=["read","unread","warning","suggestion","note","error"],this.obsFilteredOptions=new Ye,this.searchFilters=["unread","warning","note","suggestion","error"],this.currentObject=null}ngOnInit(){this.data.summary.subscribe({next:e=>{if(this.summary=e,this.currentObject){let i=this.currentObject.id;"indexName"==this.currentObject.type&&(i=this.currentObject.parentId);let o=this.summary.get(i);o?(this.summaryRows=[],this.initiateSummaryCollection(o),this.applyFilters(),this.summaryCount=o.NotesCount+o.WarningsCount+o.ErrorsCount+o.SuggestionsCount,this.changeIssuesLabel.emit(o.NotesCount+o.WarningsCount+o.ErrorsCount+o.SuggestionsCount)):(this.summaryCount=0,this.changeIssuesLabel.emit(0))}else this.initialiseSummaryCollectionForAllTables(this.summary),this.summaryCount=this.totalNoteCount+this.totalErrorCount+this.totalSuggestionCount+this.totalWarningCount,this.changeIssuesLabel.emit(this.summaryCount)}}),this.registerAutoCompleteChange()}initialiseSummaryCollectionForAllTables(e){this.summaryRows=[],this.totalErrorCount=0,this.totalNoteCount=0,this.totalSuggestionCount=0,this.totalWarningCount=0;for(const i of e.values())this.initiateSummaryCollection(i);this.applyFilters()}ngOnChanges(e){if(this.currentObject=e?.currentObject?.currentValue||this.currentObject,this.summaryRows=[],this.currentObject){let i=this.currentObject.id;"indexName"==this.currentObject.type&&(i=this.currentObject.parentId);let o=this.summary.get(i);o?(this.summaryRows=[],this.initiateSummaryCollection(o),this.applyFilters(),this.summaryCount=o.NotesCount+o.WarningsCount+o.ErrorsCount+o.SuggestionsCount,this.changeIssuesLabel.emit(o.NotesCount+o.WarningsCount+o.ErrorsCount+o.SuggestionsCount)):(this.summaryCount=0,this.changeIssuesLabel.emit(0))}else this.summaryCount=0,this.changeIssuesLabel.emit(0)}initiateSummaryCollection(e){this.totalErrorCount+=e.ErrorsCount,this.totalNoteCount+=e.NotesCount,this.totalWarningCount+=e.WarningsCount,this.totalSuggestionCount+=e.SuggestionsCount,e.Errors.forEach(i=>{this.summaryRows.push({type:"error",content:i.description,isRead:!1})}),e.Warnings.forEach(i=>{this.summaryRows.push({type:"warning",content:i.description,isRead:!1})}),e.Suggestions.forEach(i=>{this.summaryRows.push({type:"suggestion",content:i.description,isRead:!1})}),e.Notes.forEach(i=>{this.summaryRows.push({type:"note",content:i.description,isRead:!1})})}applyFilters(){let e=[],i=[];this.searchFilters.includes("read")&&i.push(o=>o.isRead),this.searchFilters.includes("unread")&&i.push(o=>!o.isRead),this.searchFilters.includes("warning")&&e.push(o=>"warning"==o.type),this.searchFilters.includes("note")&&e.push(o=>"note"==o.type),this.searchFilters.includes("suggestion")&&e.push(o=>"suggestion"==o.type),this.searchFilters.includes("error")&&e.push(o=>"error"==o.type),this.filteredSummaryRows=this.summaryRows.filter(o=>(!i.length||i.some(r=>r(o)))&&(!e.length||e.some(r=>r(o))))}addFilter(e){e&&!this.searchFilters.includes(e)&&this.searchFilters.push(e),this.applyFilters(),this.registerAutoCompleteChange()}removeFilter(e){const i=this.searchFilters.indexOf(e);i>=0&&this.searchFilters.splice(i,1),this.applyFilters()}toggleRead(e){e.isRead=!e.isRead,this.applyFilters()}registerAutoCompleteChange(){this.obsFilteredOptions=this.filterInput.valueChanges.pipe(Wi(""),ze(e=>this.autoCompleteOnChangeFilter(e)))}autoCompleteOnChangeFilter(e){return this.options.filter(i=>i.toLowerCase().includes(e))}spannerTab(){this.clickEvent.setTabToSpanner()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Pi),_(qo))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-summary"]],inputs:{currentObject:"currentObject"},outputs:{changeIssuesLabel:"changeIssuesLabel"},features:[si],decls:29,vars:11,consts:[[1,"container"],[1,"filter"],[1,"columns"],[1,"left"],[1,"material-icons","filter-icon"],[1,"filter-text"],[1,"right"],[1,"chip-list"],["chipGrid",""],["class","primary",3,"removed",4,"ngFor","ngForOf"],["placeholder","New Filter...",3,"formControl","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matAutocomplete"],["auto","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[1,"header"],["class","content",4,"ngIf"],["class","no-issue-container",4,"ngIf"],[1,"primary",3,"removed"],["matChipRemove",""],[3,"value","click"],[1,"content"],["class","summary-row",4,"ngFor","ngForOf"],[1,"summary-row"],["matTooltip","Error: Please resolve them to proceed with the migration","matTooltipPosition","above","class","danger",4,"ngIf"],["matTooltip","Warning : Changes made because of differences in source and spanner capabilities.","matTooltipPosition","above","class","warning",4,"ngIf"],["matTooltip","Suggestion : We highly recommend you make these changes or else it will impact your DB performance.","matTooltipPosition","above","class","suggestion",4,"ngIf"],["matTooltip","Note : This is informational and you dont need to do anything.","matTooltipPosition","above","class","success",4,"ngIf"],[1,"middle"],[3,"matMenuTriggerFor"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["matTooltip","Error: Please resolve them to proceed with the migration","matTooltipPosition","above",1,"danger"],["matTooltip","Warning : Changes made because of differences in source and spanner capabilities.","matTooltipPosition","above",1,"warning"],["matTooltip","Suggestion : We highly recommend you make these changes or else it will impact your DB performance.","matTooltipPosition","above",1,"suggestion"],["matTooltip","Note : This is informational and you dont need to do anything.","matTooltipPosition","above",1,"success"],["mat-menu-item","",3,"click"],[1,"no-issue-container"],[1,"no-issue-icon-container"],["width","36","height","36","viewBox","0 0 24 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.8332 0.69873C16.0051 7.45842 16.2492 9.44782 10.4672 10.2012C16.1511 11.1242 16.2329 13.2059 16.8332 19.7037C17.6237 13.1681 17.4697 11.2106 23.1986 10.2012C17.4247 9.45963 17.6194 7.4505 16.8332 0.69873ZM4.23739 0.872955C3.79064 4.52078 3.92238 5.59467 0.802246 6.00069C3.86944 6.49885 3.91349 7.62218 4.23739 11.1284C4.66397 7.60153 4.581 6.54497 7.67271 6.00069C4.55696 5.60052 4.66178 4.51623 4.23739 0.872955ZM7.36426 11.1105C7.05096 13.6683 7.14331 14.4212 4.95554 14.7061C7.10612 15.0553 7.13705 15.8431 7.36426 18.3017C7.66333 15.8288 7.60521 15.088 9.77298 14.7061C7.58818 14.4255 7.66177 13.6653 7.36426 11.1105Z","fill","#3367D6"],[1,"no-issue-message"]],template:function(i,o){if(1&i&&(d(0,"div",0)(1,"div")(2,"div",1)(3,"div",2)(4,"div",3)(5,"span",4),u(6,"filter_list"),l(),d(7,"span",5),u(8,"Filter"),l()(),d(9,"div",6)(10,"mat-form-field",7)(11,"mat-chip-grid",null,8),g(13,Qee,5,1,"mat-chip-row",9),l(),S(14,"input",10),d(15,"mat-autocomplete",null,11),g(17,Xee,2,2,"mat-option",12),bd(18,"async"),l()()()()(),d(19,"div",13)(20,"div",2)(21,"div",3)(22,"span"),u(23," Status "),l()(),d(24,"div",6)(25,"span"),u(26," Summary "),l()()()(),g(27,ate,2,1,"div",14),g(28,ste,8,0,"div",15),l()()),2&i){const r=At(12),a=At(16);m(13),p("ngForOf",o.searchFilters),m(1),p("formControl",o.filterInput)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!1)("matAutocomplete",a),m(3),p("ngForOf",vd(18,9,o.obsFilteredOptions)),m(10),p("ngIf",0!==o.summaryCount),m(1),p("ngIf",0===o.summaryCount)}},dependencies:[qi,kt,vi,_i,un,pi,li,el,ol,na,rl,$E,GE,zE,Yy,on,wY,PO,cM],styles:[".container[_ngcontent-%COMP%]{height:calc(100vh - 271px);position:relative;overflow-y:auto;background-color:#fff}.container[_ngcontent-%COMP%] .no-object-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.container[_ngcontent-%COMP%] .no-object-container[_ngcontent-%COMP%] .no-object-icon-container[_ngcontent-%COMP%]{padding:10px;background-color:#3367d61f;border-radius:3px;margin:20px}.container[_ngcontent-%COMP%] .no-object-container[_ngcontent-%COMP%] .no-object-message[_ngcontent-%COMP%]{width:80%;max-width:500px;text-align:center}.container[_ngcontent-%COMP%] .no-issue-container[_ngcontent-%COMP%]{width:100%;position:absolute;top:50%;display:flex;flex-direction:column;justify-content:center;align-items:center}.container[_ngcontent-%COMP%] .no-issue-container[_ngcontent-%COMP%] .no-issue-icon-container[_ngcontent-%COMP%]{padding:10px;background-color:#3367d61f;border-radius:3px;margin:20px}.container[_ngcontent-%COMP%] .no-issue-container[_ngcontent-%COMP%] .no-issue-message[_ngcontent-%COMP%]{width:80%;max-width:500px;text-align:center}h3[_ngcontent-%COMP%]{margin-bottom:0;padding-left:15px}.filter[_ngcontent-%COMP%]{display:flex;flex:1;min-height:65px;padding:0 15px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{display:flex;flex:1}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{order:1;position:relative;padding-top:20px;width:100px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .filter-icon[_ngcontent-%COMP%]{position:absolute;font-size:20px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .filter-text[_ngcontent-%COMP%]{position:absolute;margin-left:30px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{order:2;width:100%}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%;min-height:22px}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .mat-mdc-chip-input[_ngcontent-%COMP%]{height:24px;flex:0}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .primary[_ngcontent-%COMP%]{background-color:#3f51b5;color:#fff}.filter[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .primary[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#fff;opacity:.4}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-underline{display:none}.filter[_ngcontent-%COMP%] .mat-mdc-chip[_ngcontent-%COMP%]{min-height:24px;font-weight:lighter}.header[_ngcontent-%COMP%]{display:flex;flex:1;padding:5px 0;background-color:#f5f5f5;text-align:center}.header[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{display:flex;flex:1}.header[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:60px;order:1}.header[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{flex:1;order:2}.summary-row[_ngcontent-%COMP%]{display:flex;flex:1;padding:10px 0;border-bottom:1px solid #ccc}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{display:flex;flex:1}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:60px;order:1;text-align:center;padding-top:5px}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .middle[_ngcontent-%COMP%]{flex:1;order:2}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:30px;order:3;cursor:pointer}.summary-row[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:18px}.chip-list[_ngcontent-%COMP%]{width:100%}.mat-mdc-standard-chip[_ngcontent-%COMP%]{--mdc-chip-label-text-color: #fff}"]})}return t})();function lte(t,n){if(1&t&&(d(0,"h2"),u(1),l()),2&t){const e=C();m(1),ye("Skip ",e.eligibleTables.length," table(s)?")}}function dte(t,n){if(1&t&&(d(0,"h2"),u(1),l()),2&t){const e=C();m(1),ye("Restore ",e.eligibleTables.length," table(s) and all associated indexes?")}}function ute(t,n){1&t&&(d(0,"span",9),u(1," Confirm skip by typing the following below: "),d(2,"b"),u(3,"SKIP"),l(),S(4,"br"),l())}function hte(t,n){1&t&&(d(0,"span",9),u(1," Confirm restoration by typing the following below: "),d(2,"b"),u(3,"RESTORE"),l(),S(4,"br"),l())}function mte(t,n){if(1&t&&(d(0,"div")(1,"b"),u(2,"Note:"),l(),u(3),S(4,"br"),d(5,"b"),u(6,"Already skipped tables:"),l(),u(7),l()),2&t){const e=C();m(3),Rc(" You selected ",e.data.tables.length," tables. ",e.ineligibleTables.length," table(s) will not be skipped since they are already skipped."),m(4),ye(" ",e.ineligibleTables," ")}}function pte(t,n){if(1&t&&(d(0,"div")(1,"b"),u(2,"Note:"),l(),u(3),S(4,"br"),d(5,"b"),u(6,"Already active tables:"),l(),u(7),l()),2&t){const e=C();m(3),Rc(" You selected ",e.data.tables.length," tables. ",e.ineligibleTables.length," table(s) will not be restored since they are already active."),m(4),ye(" ",e.ineligibleTables," ")}}let JA=(()=>{class t{constructor(e,i){this.data=e,this.dialogRef=i,this.eligibleTables=[],this.ineligibleTables=[];let o="";"SKIP"==this.data.operation?(o="SKIP",this.data.tables.forEach(r=>{r.isDeleted?this.ineligibleTables.push(r.TableName):this.eligibleTables.push(r.TableName)})):(o="RESTORE",this.data.tables.forEach(r=>{r.isDeleted?this.eligibleTables.push(r.TableName):this.ineligibleTables.push(r.TableName)})),this.confirmationInput=new U("",[J.required,J.pattern(o)]),i.disableClose=!0}confirm(){this.dialogRef.close(this.data.operation)}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(Zn),_(nn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-bulk-drop-restore-table-dialog"]],decls:19,vars:8,consts:[["mat-dialog-content",""],[4,"ngIf"],[1,"form-container"],["class","form-custom-label",4,"ngIf"],["appearance","outline"],["matInput","","type","text",3,"formControl"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[1,"form-custom-label"]],template:function(i,o){1&i&&(d(0,"div",0),g(1,lte,2,1,"h2",1),g(2,dte,2,1,"h2",1),d(3,"mat-dialog-content")(4,"div",2)(5,"form"),g(6,ute,5,0,"span",3),g(7,hte,5,0,"span",3),d(8,"mat-form-field",4)(9,"mat-label"),u(10,"Confirm"),l(),S(11,"input",5),l(),g(12,mte,8,3,"div",1),g(13,pte,8,3,"div",1),l()()(),d(14,"div",6)(15,"button",7),u(16,"Cancel"),l(),d(17,"button",8),P("click",function(){return o.confirm()}),u(18," Confirm "),l()()()),2&i&&(m(1),p("ngIf","SKIP"==o.data.operation),m(1),p("ngIf","RESTORE"==o.data.operation),m(4),p("ngIf","SKIP"==o.data.operation),m(1),p("ngIf","RESTORE"==o.data.operation),m(4),p("formControl",o.confirmationInput),m(1),p("ngIf","SKIP"==o.data.operation&&0!=o.ineligibleTables.length),m(1),p("ngIf","RESTORE"==o.data.operation&&0!=o.ineligibleTables.length),m(4),p("disabled",!o.confirmationInput.valid))},dependencies:[kt,Gt,_i,gi,Fi,tn,pi,li,Mi,el,Sn,co,lo,Ha],styles:[".alert-container[_ngcontent-%COMP%]{padding:.5rem;display:flex;align-items:center;margin-bottom:1rem;background-color:#f8f4f4}.alert-container[_ngcontent-%COMP%] mat-mdc-icon[_ngcontent-%COMP%]{color:#f3b300;margin-right:20px}.form-container[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.buttons-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end}"]})}return t})();function fte(t,n){if(1&t&&(d(0,"mat-option",13),u(1),l()),2&t){const e=n.$implicit;p("value",e),m(1),Ie(e)}}let eP=(()=>{class t{constructor(e,i,o,r){this.formBuilder=e,this.dataService=i,this.fetchSerice=o,this.dialogRef=r,this.selectedSequenceKind="",this.sequenceKinds=[],this.addNewSequenceForm=this.formBuilder.group({name:["",[J.required,J.minLength(1),J.maxLength(128),J.pattern("^[a-zA-Z][a-zA-Z0-9_]*$")]],sequenceKind:["",J.required],skipRangeMin:["",J.pattern("^[0-9]+$")],skipRangeMax:["",J.pattern("^[0-9]+$")],startWithCounter:["",J.pattern("^[0-9]+$")]},{validator:KA("skipRangeMin","skipRangeMax")}),this.fetchSerice.getSequenceKind().subscribe(a=>{this.sequenceKinds=a})}ngOnInit(){}addNewSequence(){let e=this.addNewSequenceForm.value;this.dataService.addSequence({Name:e.name,SequenceKind:this.selectedSequenceKind,SkipRangeMin:e.skipRangeMin,SkipRangeMax:e.skipRangeMax,StartWithCounter:e.startWithCounter}),this.dialogRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(sr),_(Pi),_(pn),_(nn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-add-new-sequence"]],decls:35,vars:4,consts:[["mat-dialog-content",""],[1,"add-new-sequence-form",3,"formGroup"],["appearance","outline",1,"full-width"],["matInput","","placeholder","Sequence Name","type","text","formControlName","name"],["appearance","outline"],["formControlName","sequenceKind","required","true",1,"input-field",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","placeholder","Skip Range Min","type","text","formControlName","skipRangeMin"],["matInput","","placeholder","Skip Range Max","type","text","formControlName","skipRangeMax"],["matInput","","placeholder","Start With Counter","type","text","formControlName","startWithCounter"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[3,"value"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),u(3,"Sequence Details"),l(),d(4,"mat-form-field",2)(5,"mat-label"),u(6,"Name"),l(),S(7,"input",3),l(),S(8,"br"),d(9,"mat-form-field",4)(10,"mat-label"),u(11,"Sequence Type"),l(),d(12,"mat-select",5),P("ngModelChange",function(a){return o.selectedSequenceKind=a}),g(13,fte,2,2,"mat-option",6),l()(),S(14,"br"),d(15,"mat-form-field",2)(16,"mat-label"),u(17,"Skip Range Minimum"),l(),S(18,"input",7),l(),S(19,"br"),d(20,"mat-form-field",2)(21,"mat-label"),u(22,"Skip Range Maximum"),l(),S(23,"input",8),l(),S(24,"br"),d(25,"mat-form-field",2)(26,"mat-label"),u(27,"Start With Counter"),l(),S(28,"input",9),l(),S(29,"br"),l(),d(30,"div",10)(31,"button",11),u(32,"CANCEL"),l(),d(33,"button",12),P("click",function(){return o.addNewSequence()}),u(34," ADD "),l()()()),2&i&&(m(1),p("formGroup",o.addNewSequenceForm),m(11),p("ngModel",o.selectedSequenceKind),m(1),p("ngForOf",o.sequenceKinds),m(20),p("disabled",!o.addNewSequenceForm.valid))},dependencies:[qi,Gt,_i,gi,Fi,An,un,tn,pi,li,Mi,so,fi,Ai,Sn,co,lo]})}return t})();const tP=function(t){return{"blue-font-color":t}};function gte(t,n){if(1&t&&(d(0,"span",25),u(1),l()),2&t){const e=C();p("ngClass",ri(2,tP,"source"===e.selectedTab)),m(1),ye(" ",e.srcDbName.toUpperCase()," ")}}function _te(t,n){1&t&&(d(0,"th",26),u(1,"Status"),l())}function bte(t,n){1&t&&(Zt(),d(0,"svg",31),S(1,"path",32),l())}function vte(t,n){1&t&&(d(0,"mat-icon",33),u(1," work "),l())}function yte(t,n){1&t&&(d(0,"mat-icon",34),u(1," work_history "),l())}function Cte(t,n){if(1&t&&(d(0,"td",27),g(1,bte,2,0,"svg",28),g(2,vte,2,0,"mat-icon",29),g(3,yte,2,0,"mat-icon",30),l()),2&t){const e=n.$implicit;m(1),p("ngIf","EXCELLENT"===e.status||"NONE"===e.status),m(1),p("ngIf","OK"===e.status||"GOOD"===e.status),m(1),p("ngIf","POOR"===e.status)}}function xte(t,n){1&t&&(d(0,"mat-icon",38),u(1,"arrow_upward"),l())}function wte(t,n){1&t&&(d(0,"mat-icon",39),u(1,"arrow_upward"),l())}function Ste(t,n){1&t&&(d(0,"mat-icon",39),u(1,"arrow_downward"),l())}function Dte(t,n){if(1&t){const e=ge();d(0,"th",35),P("click",function(){return ne(e),oe(C().srcTableSort())}),d(1,"div")(2,"span"),u(3," Object Name "),l(),g(4,xte,2,0,"mat-icon",36),g(5,wte,2,0,"mat-icon",37),g(6,Ste,2,0,"mat-icon",37),l()()}if(2&t){const e=C();m(4),p("ngIf",""===e.srcSortOrder),m(1),p("ngIf","asc"===e.srcSortOrder),m(1),p("ngIf","desc"===e.srcSortOrder)}}function kte(t,n){1&t&&(Zt(),d(0,"svg",48),S(1,"path",49),l())}function Mte(t,n){1&t&&(Zt(),d(0,"svg",50),S(1,"path",51),l())}function Tte(t,n){1&t&&(Zt(),d(0,"svg",52),S(1,"path",53),l())}function Ite(t,n){1&t&&(Zt(),d(0,"svg",54),S(1,"path",55),l())}function Ete(t,n){if(1&t&&(d(0,"span",56)(1,"mat-icon",57),u(2,"more_vert"),l(),d(3,"mat-menu",null,58)(5,"button",59)(6,"span"),u(7,"Add Index"),l()()()()),2&t){const e=At(4);m(1),p("matMenuTriggerFor",e)}}function Ote(t,n){if(1&t){const e=ge();d(0,"td",40)(1,"button",41),P("click",function(){const r=ne(e).$implicit;return oe(C().srcTreeControl.toggle(r))}),g(2,kte,2,0,"svg",42),g(3,Mte,2,0,"ng-template",null,43,tr),l(),d(5,"span",44),P("click",function(){const r=ne(e).$implicit;return oe(C().objectSelected(r))}),d(6,"span"),g(7,Tte,2,0,"svg",45),g(8,Ite,2,0,"svg",46),d(9,"span"),u(10),l()(),g(11,Ete,8,1,"span",47),l()()}if(2&t){const e=n.$implicit,i=At(4),o=C();m(1),dn("visibility",e.expandable?"":"hidden")("margin-left",10*e.level,"px"),m(1),p("ngIf",o.srcTreeControl.isExpanded(e))("ngIfElse",i),m(5),p("ngIf",o.isTableNode(e.type)),m(1),p("ngIf",o.isIndexNode(e.type)),m(2),Ie(e.name),m(1),p("ngIf",o.isIndexNode(e.type)&&e.isSpannerNode)}}function Ate(t,n){1&t&&S(0,"tr",60)}const iP=function(t){return{"selected-row":t}};function Pte(t,n){if(1&t&&S(0,"tr",61),2&t){const e=n.$implicit,i=C();p("ngClass",ri(1,iP,i.shouldHighlight(e)))}}function Rte(t,n){if(1&t&&(d(0,"span",25),u(1," SPANNER DRAFT "),l()),2&t){const e=C();p("ngClass",ri(1,tP,"spanner"===e.selectedTab))}}function Fte(t,n){1&t&&(d(0,"th",26),u(1,"Status"),l())}function Nte(t,n){1&t&&(Zt(),d(0,"svg",31),S(1,"path",32),l())}function Lte(t,n){1&t&&(d(0,"mat-icon",33),u(1," work "),l())}function Bte(t,n){1&t&&(d(0,"mat-icon",34),u(1," work_history "),l())}function Vte(t,n){1&t&&(d(0,"mat-icon",63),u(1," delete "),l())}function jte(t,n){if(1&t&&(d(0,"td",27),g(1,Nte,2,0,"svg",28),g(2,Lte,2,0,"mat-icon",29),g(3,Bte,2,0,"mat-icon",30),g(4,Vte,2,0,"mat-icon",62),l()),2&t){const e=n.$implicit;m(1),p("ngIf","EXCELLENT"===e.status||"NONE"===e.status),m(1),p("ngIf","OK"===e.status||"GOOD"===e.status),m(1),p("ngIf","POOR"===e.status),m(1),p("ngIf","DARK"===e.status||1==e.isDeleted)}}function zte(t,n){1&t&&(d(0,"mat-icon",65),u(1,"arrow_upward"),l())}function Hte(t,n){1&t&&(d(0,"mat-icon",39),u(1,"arrow_upward"),l())}function Ute(t,n){1&t&&(d(0,"mat-icon",39),u(1,"arrow_downward"),l())}function $te(t,n){if(1&t){const e=ge();d(0,"th",35),P("click",function(){return ne(e),oe(C().spannerTableSort())}),d(1,"div")(2,"span"),u(3," Object Name "),l(),g(4,zte,2,0,"mat-icon",64),g(5,Hte,2,0,"mat-icon",37),g(6,Ute,2,0,"mat-icon",37),l()()}if(2&t){const e=C();m(4),p("ngIf",""===e.spannerSortOrder),m(1),p("ngIf","asc"===e.spannerSortOrder),m(1),p("ngIf","desc"===e.spannerSortOrder)}}function Gte(t,n){if(1&t){const e=ge();d(0,"mat-checkbox",70),P("change",function(){ne(e);const o=C().$implicit;return oe(C().selectionToggle(o))}),l()}if(2&t){const e=C().$implicit;p("checked",C().checklistSelection.isSelected(e))}}function qte(t,n){1&t&&(Zt(),d(0,"svg",48),S(1,"path",49),l())}function Wte(t,n){1&t&&(Zt(),d(0,"svg",50),S(1,"path",51),l())}function Kte(t,n){1&t&&(Zt(),d(0,"svg",52),S(1,"path",53),l())}function Zte(t,n){1&t&&(Zt(),d(0,"svg",54),S(1,"path",55),l())}function Yte(t,n){if(1&t){const e=ge();d(0,"span",56)(1,"mat-icon",71),u(2,"more_vert"),l(),d(3,"mat-menu",72,58)(5,"button",73),P("click",function(){ne(e);const o=C().$implicit;return oe(C().openAddIndexForm(o.parent))}),d(6,"span"),u(7,"Add Index"),l()()()()}if(2&t){const e=At(4);m(1),p("matMenuTriggerFor",e)}}function Qte(t,n){if(1&t){const e=ge();d(0,"span",56)(1,"mat-icon",74),u(2,"more_vert"),l(),d(3,"mat-menu",72,58)(5,"button",73),P("click",function(){return ne(e),oe(C(2).openAddSequenceForm())}),d(6,"span"),u(7,"Add Sequence"),l()()()()}if(2&t){const e=At(4);m(1),p("matMenuTriggerFor",e)}}const Xte=function(){return{sidebar_link:!0}},Jte=function(t){return{"gray-out":t}};function eie(t,n){if(1&t){const e=ge();d(0,"td",66),g(1,Gte,1,1,"mat-checkbox",67),d(2,"button",41),P("click",function(){const r=ne(e).$implicit;return oe(C().treeControl.toggle(r))}),g(3,qte,2,0,"svg",42),g(4,Wte,2,0,"ng-template",null,43,tr),l(),d(6,"span",68),P("click",function(){const r=ne(e).$implicit;return oe(C().objectSelected(r))}),d(7,"span"),g(8,Kte,2,0,"svg",45),g(9,Zte,2,0,"svg",46),d(10,"span",69),u(11),l()(),g(12,Yte,8,1,"span",47),g(13,Qte,8,1,"span",47),l()()}if(2&t){const e=n.$implicit,i=At(5),o=C();p("ngClass",yo(14,Xte)),m(1),p("ngIf",o.isTableLikeNode(e)),m(1),dn("visibility",e.expandable?"":"hidden")("margin-left",10*e.level,"px"),m(1),p("ngIf",o.treeControl.isExpanded(e))("ngIfElse",i),m(3),p("ngClass",ri(15,Jte,e.isDeleted)),m(2),p("ngIf",o.isTableNode(e.type)),m(1),p("ngIf",o.isIndexNode(e.type)),m(2),Ie(e.name),m(1),p("ngIf",o.isIndexNode(e.type)),m(1),p("ngIf",o.isSequenceNode(e.type))}}function tie(t,n){1&t&&S(0,"tr",60)}function iie(t,n){if(1&t&&S(0,"tr",61),2&t){const e=n.$implicit,i=C();p("ngClass",ri(1,iP,i.shouldHighlight(e)))}}const V0=function(t){return[t]};let nie=(()=>{class t{constructor(e,i,o,r,a){this.conversion=e,this.dialog=i,this.data=o,this.sidenav=r,this.clickEvent=a,this.isLeftColumnCollapse=!1,this.currentSelectedObject=null,this.srcSortOrder="",this.spannerSortOrder="",this.srcSearchText="",this.spannerSearchText="",this.selectedTab="spanner",this.selectedDatabase=new Fe,this.selectObject=new Fe,this.updateSpannerTable=new Fe,this.updateSrcTable=new Fe,this.leftCollaspe=new Fe,this.updateSidebar=new Fe,this.spannerTree=[],this.srcTree=[],this.srcDbName="",this.selectedIndex=1,this.transformer=(s,c)=>({expandable:!!s.children&&s.children.length>0,name:s.name,status:s.status,type:s.type,parent:s.parent,parentId:s.parentId,pos:s.pos,isSpannerNode:s.isSpannerNode,level:c,isDeleted:!!s.isDeleted,id:s.id}),this.treeControl=new qE(s=>s.level,s=>s.expandable),this.srcTreeControl=new qE(s=>s.level,s=>s.expandable),this.treeFlattener=new hK(this.transformer,s=>s.level,s=>s.expandable,s=>s.children),this.dataSource=new KE(this.treeControl,this.treeFlattener),this.srcDataSource=new KE(this.srcTreeControl,this.treeFlattener),this.checklistSelection=new Kd(!0,[]),this.displayedColumns=["status","name"]}ngOnInit(){this.clickEvent.tabToSpanner.subscribe({next:e=>{this.setSpannerTab()}})}ngOnChanges(e){let i=e?.spannerTree?.currentValue,o=e?.srcTree?.currentValue;o&&(this.srcDataSource.data=o,this.srcTreeControl.expand(this.srcTreeControl.dataNodes[0]),this.srcTreeControl.expand(this.srcTreeControl.dataNodes[1])),i&&(this.dataSource.data=i,this.treeControl.expand(this.treeControl.dataNodes[0]),this.treeControl.expand(this.treeControl.dataNodes[1]))}filterSpannerTable(){this.updateSpannerTable.emit({text:this.spannerSearchText,order:this.spannerSortOrder})}filterSrcTable(){this.updateSrcTable.emit({text:this.srcSearchText,order:this.srcSortOrder})}srcTableSort(){this.srcSortOrder=""===this.srcSortOrder?"asc":"asc"===this.srcSortOrder?"desc":"",this.updateSrcTable.emit({text:this.srcSearchText,order:this.srcSortOrder})}spannerTableSort(){this.spannerSortOrder=""===this.spannerSortOrder?"asc":"asc"===this.spannerSortOrder?"desc":"",this.updateSpannerTable.emit({text:this.spannerSearchText,order:this.spannerSortOrder})}objectSelected(e){this.currentSelectedObject=e,(e.type===Bt.Index||e.type===Bt.Table||e.type===Bt.Sequence)&&this.selectObject.emit(e)}leftColumnToggle(){this.isLeftColumnCollapse=!this.isLeftColumnCollapse,this.leftCollaspe.emit()}isTableNode(e){return new RegExp("^tables").test(e)}isIndexNode(e){return new RegExp("^indexes").test(e)}isSequenceNode(e){return new RegExp("^sequences").test(e)}isIndexLikeNode(e){return e.type==Bt.Index||e.type==Bt.Indexes}isTableLikeNode(e){return e.type==Bt.Table||e.type==Bt.Tables}isSequenceLikeNode(e){return e.type==Bt.Sequence||e.type==Bt.Sequences}openAddIndexForm(e){this.sidenav.setSidenavAddIndexTable(e),this.sidenav.setSidenavRuleType("addIndex"),this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("rule"),this.sidenav.setRuleData([]),this.sidenav.setDisplayRuleFlag(!1)}openAddSequenceForm(){this.dialog.open(eP,GA)}shouldHighlight(e){return e.name===this.currentSelectedObject?.name&&(e.type===Bt.Table||e.type===Bt.Index)}onTabChanged(){"spanner"==this.selectedTab?(this.selectedTab="source",this.selectedIndex=0):(this.selectedTab="spanner",this.selectedIndex=1),this.selectedDatabase.emit(this.selectedTab),this.currentSelectedObject=null,this.selectObject.emit(void 0)}setSpannerTab(){this.selectedIndex=1}checkDropSelection(){return 0!=this.countSelectionByCategory().eligibleForDrop}checkRestoreSelection(){return 0!=this.countSelectionByCategory().eligibleForRestore}countSelectionByCategory(){let i=0,o=0;return this.checklistSelection.selected.forEach(r=>{r.isDeleted?o+=1:i+=1}),{eligibleForDrop:i,eligibleForRestore:o}}dropSelected(){var i=[];this.checklistSelection.selected.forEach(a=>{""!=a.id&&a.type==Bt.Table&&i.push({TableId:a.id,TableName:a.name,isDeleted:a.isDeleted})});let o=this.dialog.open(JA,{width:"35vw",minWidth:"450px",maxWidth:"600px",maxHeight:"90vh",data:{tables:i,operation:"SKIP"}});var r={TableList:[]};i.forEach(a=>{r.TableList.push(a.TableId)}),o.afterClosed().subscribe(a=>{"SKIP"==a&&(this.data.dropTables(r).pipe(Pt(1)).subscribe(s=>{""===s&&(this.data.getConversionRate(),this.updateSidebar.emit(!0))}),this.checklistSelection.clear())})}restoreSelected(){var i=[];this.checklistSelection.selected.forEach(a=>{""!=a.id&&a.type==Bt.Table&&i.push({TableId:a.id,TableName:a.name,isDeleted:a.isDeleted})});let o=this.dialog.open(JA,{width:"35vw",minWidth:"450px",maxWidth:"600px",data:{tables:i,operation:"RESTORE"}});var r={TableList:[]};i.forEach(a=>{r.TableList.push(a.TableId)}),o.afterClosed().subscribe(a=>{"RESTORE"==a&&(this.data.restoreTables(r).pipe(Pt(1)).subscribe(s=>{this.data.getConversionRate(),this.data.getDdl()}),this.checklistSelection.clear())})}selectionToggle(e){this.checklistSelection.toggle(e);const i=this.treeControl.getDescendants(e);this.checklistSelection.isSelected(e)?this.checklistSelection.select(...i):this.checklistSelection.deselect(...i)}static#e=this.\u0275fac=function(i){return new(i||t)(_(Ls),_(Mr),_(Pi),_(Rn),_(qo))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-object-explorer"]],inputs:{spannerTree:"spannerTree",srcTree:"srcTree",srcDbName:"srcDbName"},outputs:{selectedDatabase:"selectedDatabase",selectObject:"selectObject",updateSpannerTable:"updateSpannerTable",updateSrcTable:"updateSrcTable",leftCollaspe:"leftCollaspe",updateSidebar:"updateSidebar"},features:[si],decls:59,vars:20,consts:[[1,"container"],[3,"ngClass","selectedIndex","selectedTabChange"],["mat-tab-label",""],[1,"filter-wrapper"],[1,"left"],[1,"material-icons","filter-icon"],[1,"filter-text"],[1,"right"],["placeholder","Filter by table name",3,"ngModel","ngModelChange"],[1,"explorer-table"],["mat-table","",3,"dataSource"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","class","mat-header-cell-name cursor-pointer",3,"click",4,"matHeaderCellDef"],["mat-cell","","class","sidebar_link",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["clas","delete-selected-btn"],["mat-button","","color","primary",1,"icon","drop",3,"disabled","click"],["clas","restore-selected-btn"],["mat-table","","id","schema-object-list",3,"dataSource"],["mat-cell","",3,"ngClass",4,"matCellDef"],["id","left-column-toggle-button",3,"click"],[3,"ngClass"],["mat-header-cell",""],["mat-cell",""],["class","icon success","matTooltip","Can be converted automatically","matTooltipPosition","above","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","black",4,"ngIf"],["class","work","matTooltip","Requires minimal conversion changes","matTooltipPosition","above",4,"ngIf"],["class","work_history","matTooltip","Requires high complexity conversion changes","matTooltipPosition","above",4,"ngIf"],["matTooltip","Can be converted automatically","matTooltipPosition","above","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","black",1,"icon","success"],["d","m10.4 17.6-2-4.4-4.4-2 4.4-2 2-4.4 2 4.4 4.4 2-4.4 2Zm6.4 1.6-1-2.2-2.2-1 2.2-1 1-2.2 1 2.2 2.2 1-2.2 1Z"],["matTooltip","Requires minimal conversion changes","matTooltipPosition","above",1,"work"],["matTooltip","Requires high complexity conversion changes","matTooltipPosition","above",1,"work_history"],["mat-header-cell","",1,"mat-header-cell-name","cursor-pointer",3,"click"],["class","src-unsorted-icon sort-icon",4,"ngIf"],["class","sort-icon",4,"ngIf"],[1,"src-unsorted-icon","sort-icon"],[1,"sort-icon"],["mat-cell","",1,"sidebar_link"],["mat-icon-button","",3,"click"],["width","12","height","6","viewBox","0 0 12 6","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf","ngIfElse"],["collaps",""],[1,"sidebar_link",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],["width","12","height","14","viewBox","0 0 12 14","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],["class","actions",4,"ngIf"],["width","12","height","6","viewBox","0 0 12 6","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 0L0 0L6 6L12 0Z","fill","black","fill-opacity","0.54"],["width","6","height","12","viewBox","0 0 6 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M-5.24537e-07 2.62268e-07L0 12L6 6L-5.24537e-07 2.62268e-07Z","fill","black","fill-opacity","0.54"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M0 0V18H18V0H0ZM16 2V6H2V2H16ZM7.33 11V8H10.66V11H7.33ZM10.67 13V16H7.34V13H10.67ZM5.33 11H2V8H5.33V11ZM12.67 8H16V11H12.67V8ZM2 13H5.33V16H2V13ZM12.67 16V13H16V16H12.67Z","fill","black","fill-opacity","0.54"],["width","12","height","14","viewBox","0 0 12 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.005 14C11.555 14 12 13.554 12 13.002V5L10 3V12H2V14H11.005ZM0 0.996C0 0.446 0.438 0 1.003 0H7L9 2.004V10.004C9 10.554 8.554 11 8.002 11H0.998C0.867035 11.0003 0.737304 10.9747 0.616233 10.9248C0.495162 10.8748 0.385128 10.8015 0.292428 10.709C0.199729 10.6165 0.126186 10.5066 0.0760069 10.3856C0.0258282 10.2646 -2.64036e-07 10.135 0 10.004V0.996ZM6 1L5 5.5H2L6 1ZM3 10L4 5.5H7L3 10Z","fill","black","fill-opacity","0.54"],[1,"actions"],[3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item",""],["mat-header-row",""],["mat-row","",3,"ngClass"],["class","icon dark","matTooltip","Deleted","matTooltipPosition","above",4,"ngIf"],["matTooltip","Deleted","matTooltipPosition","above",1,"icon","dark"],["class","spanner-unsorted-icon sort-icon",4,"ngIf"],[1,"spanner-unsorted-icon","sort-icon"],["mat-cell","",3,"ngClass"],["class","checklist-node",3,"checked","change",4,"ngIf"],[1,"sidebar_link",3,"ngClass","click"],[1,"object-name"],[1,"checklist-node",3,"checked","change"],[1,"add-index-icon",3,"matMenuTriggerFor"],["xPosition","before"],["mat-menu-item","",3,"click"],[1,"add-sequence-icon",3,"matMenuTriggerFor"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-tab-group",1),P("selectedTabChange",function(){return o.onTabChanged()}),d(2,"mat-tab"),g(3,gte,2,4,"ng-template",2),d(4,"div",3)(5,"div",4)(6,"span",5),u(7,"filter_list"),l(),d(8,"span",6),u(9,"Filter"),l()(),d(10,"div",7)(11,"input",8),P("ngModelChange",function(a){return o.srcSearchText=a})("ngModelChange",function(){return o.filterSrcTable()}),l()()(),d(12,"div",9)(13,"table",10),ue(14,11),g(15,_te,2,0,"th",12),g(16,Cte,4,3,"td",13),he(),ue(17,14),g(18,Dte,7,3,"th",15),g(19,Ote,12,10,"td",16),he(),g(20,Ate,1,0,"tr",17),g(21,Pte,1,3,"tr",18),l()()(),d(22,"mat-tab"),g(23,Rte,2,3,"ng-template",2),d(24,"div",3)(25,"div",4)(26,"span",5),u(27,"filter_list"),l(),d(28,"span",6),u(29,"Filter"),l()(),d(30,"div",7)(31,"input",8),P("ngModelChange",function(a){return o.spannerSearchText=a})("ngModelChange",function(){return o.filterSpannerTable()}),l()(),d(32,"div",19)(33,"button",20),P("click",function(){return o.dropSelected()}),d(34,"mat-icon"),u(35,"delete"),l(),d(36,"span"),u(37,"SKIP"),l()()(),d(38,"div",21)(39,"button",20),P("click",function(){return o.restoreSelected()}),d(40,"mat-icon"),u(41,"undo"),l(),d(42,"span"),u(43,"RESTORE"),l()()()(),d(44,"div",9)(45,"table",22),ue(46,11),g(47,Fte,2,0,"th",12),g(48,jte,5,4,"td",13),he(),ue(49,14),g(50,$te,7,3,"th",15),g(51,eie,14,17,"td",23),he(),g(52,tie,1,0,"tr",17),g(53,iie,1,3,"tr",18),l()()()(),d(54,"button",24),P("click",function(){return o.leftColumnToggle()}),d(55,"mat-icon",25),u(56,"first_page"),l(),d(57,"mat-icon",25),u(58,"last_page"),l()()()),2&i&&(m(1),p("ngClass",ri(14,V0,o.isLeftColumnCollapse?"hidden":"display"))("selectedIndex",o.selectedIndex),m(10),p("ngModel",o.srcSearchText),m(2),p("dataSource",o.srcDataSource),m(7),p("matHeaderRowDef",o.displayedColumns),m(1),p("matRowDefColumns",o.displayedColumns),m(10),p("ngModel",o.spannerSearchText),m(2),p("disabled",!o.checkDropSelection()),m(6),p("disabled",!o.checkRestoreSelection()),m(6),p("dataSource",o.dataSource),m(7),p("matHeaderRowDef",o.displayedColumns),m(1),p("matRowDefColumns",o.displayedColumns),m(2),p("ngClass",ri(16,V0,o.isLeftColumnCollapse?"hidden":"display")),m(2),p("ngClass",ri(18,V0,o.isLeftColumnCollapse?"display":"hidden")))},dependencies:[nr,kt,Gt,Jr,vi,pi,li,ol,na,rl,$a,sa,Ga,ca,aa,qa,la,da,Wa,Ka,o0,Up,a0,on,Wp,Jc],styles:[".container[_ngcontent-%COMP%]{position:relative;background-color:#fff}.container[_ngcontent-%COMP%] .filter-wrapper[_ngcontent-%COMP%]{padding:0 10px}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%]{height:35px}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%] .spanner-unsorted-icon[_ngcontent-%COMP%]{visibility:hidden}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%]:hover .spanner-unsorted-icon[_ngcontent-%COMP%]{visibility:visible;opacity:.7}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%] .src-unsorted-icon[_ngcontent-%COMP%]{visibility:hidden}.container[_ngcontent-%COMP%] .mat-mdc-header-cell-name[_ngcontent-%COMP%]:hover .src-unsorted-icon[_ngcontent-%COMP%]{visibility:visible;opacity:.7}.container[_ngcontent-%COMP%] .sort-icon[_ngcontent-%COMP%]{font-size:1.1rem;vertical-align:middle}.selected-row[_ngcontent-%COMP%]{background-color:#61b3ff4a}.explorer-table[_ngcontent-%COMP%]{height:calc(100vh - 320px);width:100%;overflow:auto}.mdc-data-table__cell[_ngcontent-%COMP%], .mdc-data-table__header-cell[_ngcontent-%COMP%]{padding:0 0 0 16px}.mat-mdc-table[_ngcontent-%COMP%]{width:100%;border:inset}.mat-mdc-table[_ngcontent-%COMP%] .sidebar_link[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:space-between;align-items:center;width:100%;height:40px}.mat-mdc-table[_ngcontent-%COMP%] .sidebar_link[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:10px}.mat-mdc-table[_ngcontent-%COMP%] .sidebar_link[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{height:40px;margin-left:14px}.mat-mdc-table[_ngcontent-%COMP%] .sidebar_link[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .add-index-icon[_ngcontent-%COMP%]{margin-top:7px}.mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%], .mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%]{height:29px}.mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-header-cell[_ngcontent-%COMP%]{font-family:Roboto;font-size:13px;font-style:normal;font-weight:500;line-height:18px;background:#f5f5f5}.mat-mdc-table[_ngcontent-%COMP%] .mat-column-status[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:medium}.mat-mdc-table[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-right:20px}.filter-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;height:48px}.filter-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:30%;display:flex;align-items:center}.filter-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:5px}.filter-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:70%}.filter-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:70%;border:none;outline:none;background-color:transparent}#left-column-toggle-button[_ngcontent-%COMP%]{z-index:100;position:absolute;right:4px;top:10px;border:none;background-color:inherit}#left-column-toggle-button[_ngcontent-%COMP%]:hover{cursor:pointer}.mat-mdc-column-status[_ngcontent-%COMP%]{width:80px} .column-left .mat-mdc-tab-label-container{margin-right:40px} .column-left .mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-label-container{margin-right:0} .column-left .mat-mdc-tab-header-pagination-after{margin-right:40px}"]})}return t})();function oie(t,n){1&t&&(d(0,"div",9)(1,"mat-icon"),u(2,"warning"),l(),d(3,"span"),u(4,"This operation cannot be undone"),l()())}let j0=(()=>{class t{constructor(e,i){this.data=e,this.dialogRef=i,this.ObjectDetailNodeType=Qa,this.confirmationInput=new U("",[J.required,J.pattern(`^${e.name}$`)]),i.disableClose=!0}delete(){this.dialogRef.close(this.data.type)}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(Zn),_(nn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-drop-index-dialog"]],decls:19,vars:7,consts:[["mat-dialog-content",""],["class","alert-container",4,"ngIf"],[1,"form-container"],[1,"form-custom-label"],["appearance","outline"],["matInput","","type","text",3,"formControl"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[1,"alert-container"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h2"),u(2),l(),g(3,oie,5,0,"div",1),d(4,"div",2)(5,"form")(6,"span",3),u(7," Confirm deletion by typing the following below: "),d(8,"b"),u(9),l()(),d(10,"mat-form-field",4)(11,"mat-label"),u(12),l(),S(13,"input",5),l()()()(),d(14,"div",6)(15,"button",7),u(16,"Cancel"),l(),d(17,"button",8),P("click",function(){return o.delete()}),u(18," Confirm "),l()()),2&i&&(m(2),Rc("Skip ",o.data.type," (",o.data.name,")?"),m(1),p("ngIf","Index"===o.data.type),m(6),Ie(o.data.name),m(3),ye("",o.data.type==o.ObjectDetailNodeType.Table?"Table":"Index"," Name"),m(1),p("formControl",o.confirmationInput),m(4),p("disabled",!o.confirmationInput.valid))},dependencies:[kt,Gt,vi,_i,gi,Fi,tn,pi,li,Mi,el,Sn,co,lo,Ha],styles:[".alert-container[_ngcontent-%COMP%]{padding:.5rem;display:flex;align-items:center;margin-bottom:1rem;background-color:#f8f4f4}.alert-container[_ngcontent-%COMP%] mat-mdc-icon[_ngcontent-%COMP%]{color:#f3b300;margin-right:20px}.form-container[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.buttons-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end}"]})}return t})();function rie(t,n){if(1&t&&(d(0,"mat-option",12),u(1),l()),2&t){const e=n.$implicit;p("value",e),m(1),Ie(e)}}function aie(t,n){1&t&&(d(0,"div")(1,"mat-form-field",2)(2,"mat-label"),u(3,"Length"),l(),S(4,"input",13),l(),S(5,"br"),l())}function sie(t,n){if(1&t&&(d(0,"mat-option",12),u(1),l()),2&t){const e=C().$implicit;p("value",e),m(1),ye(" ",""!==e.Name?e.Name:"None"," ")}}function cie(t,n){if(1&t&&(ue(0),g(1,sie,2,2,"mat-option",16),he()),2&t){const e=n.$implicit;m(1),p("ngIf",""===e.GenerationType)}}function lie(t,n){if(1&t&&(d(0,"mat-option",12),u(1),l()),2&t){const e=n.$implicit;p("value",e),m(1),ye(" ",e.Name," ")}}function die(t,n){if(1&t&&(d(0,"mat-optgroup",18),g(1,lie,2,2,"mat-option",6),l()),2&t){const e=C().$implicit;p("label",e.key),m(1),p("ngForOf",e.value)}}function uie(t,n){if(1&t&&(ue(0),g(1,die,2,2,"mat-optgroup",17),he()),2&t){const e=n.$implicit;m(1),p("ngIf",""!==e.key)}}function hie(t,n){if(1&t&&(ue(0),g(1,uie,2,1,"ng-container",15),bd(2,"keyvalue"),he()),2&t){const e=n.ngIf;m(1),p("ngForOf",vd(2,1,e))}}function mie(t,n){if(1&t){const e=ge();d(0,"div")(1,"mat-form-field",2)(2,"mat-label"),u(3,"Auto Generated"),l(),d(4,"mat-select",14),P("ngModelChange",function(o){return ne(e),oe(C().selectedAutoGen=o)}),g(5,cie,2,1,"ng-container",15),g(6,hie,3,3,"ng-container",7),l()(),S(7,"br"),l()}if(2&t){const e=C();m(4),p("ngModel",e.selectedAutoGen),m(1),p("ngForOf",e.autoGenMap[e.selectedDatatype]),m(1),p("ngIf",e.processedAutoGenMap[e.selectedDatatype])}}function pie(t,n){if(1&t&&(d(0,"mat-option",12),u(1),l()),2&t){const e=n.$implicit;p("value",e.value),m(1),ye(" ",e.displayName," ")}}let fie=(()=>{class t{constructor(e,i,o,r,a){this.formBuilder=e,this.dataService=i,this.fetchSerice=o,this.dialogRef=r,this.data=a,this.dialect="",this.datatypes=[],this.selectedDatatype="",this.tableId="",this.selectedNull=!0,this.dataTypesWithColLen=mn.DataTypes,this.autoGenMap={},this.selectedAutoGen={Name:"",GenerationType:""},this.processedAutoGenMap={},this.srcDbName=localStorage.getItem(Ni.SourceDbName),this.autoGenSupportedDbs=["MySQL"],this.autGenSupported=!1,this.isColumnNullable=[{value:!1,displayName:"No"},{value:!0,displayName:"Yes"}],this.dialect=a.dialect,this.tableId=a.tableId,this.addNewColumnForm=this.formBuilder.group({name:["",[J.required,J.minLength(1),J.maxLength(128),J.pattern("^[a-zA-Z][a-zA-Z0-9_]*$")]],datatype:["",J.required],length:["",J.pattern("^[0-9]+$")],isNullable:[],autoGen:[{Name:"",GenerationType:""}]}),this.fetchSerice.getAutoGenMap().subscribe(s=>{this.autoGenMap=s,this.processedAutoGenMap=WA(this.autoGenMap)}),this.autGenSupported=this.autoGenSupportedDbs.includes(this.srcDbName)}ngOnInit(){this.datatypes="google_standard_sql"==this.dialect?UA_GoogleStandardSQL:UA_PostgreSQL}changeValidator(){this.addNewColumnForm.controls.length.clearValidators(),"BYTES"===this.selectedDatatype?this.addNewColumnForm.get("length")?.addValidators([J.required,J.max(mn.ByteMaxLength)]):("VARCHAR"===this.selectedDatatype||"STRING"===this.selectedDatatype)&&this.addNewColumnForm.get("length")?.addValidators([J.required,J.max(mn.StringMaxLength)]),this.addNewColumnForm.controls.length.updateValueAndValidity()}addNewColumn(){let e=this.addNewColumnForm.value,i={Name:e.name,Datatype:this.selectedDatatype,Length:parseInt(e.length),IsNullable:this.selectedNull,AutoGen:this.selectedAutoGen};this.dataService.addColumn(this.tableId,i),this.dialogRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(sr),_(Pi),_(pn),_(nn),_(Zn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-add-new-column"]],decls:27,vars:8,consts:[["mat-dialog-content",""],[1,"add-new-column-form",3,"formGroup"],["appearance","outline",1,"full-width"],["matInput","","placeholder","Column Name","type","text","formControlName","name"],["appearance","outline"],["formControlName","datatype","required","true",1,"input-field",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["formControlName","isNullable","required","true",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[3,"value"],["matInput","","placeholder","Length","type","text","formControlName","length"],["formControlName","autoGen",1,"input-field",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"],[3,"label",4,"ngIf"],[3,"label"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),u(3,"Column Details"),l(),d(4,"mat-form-field",2)(5,"mat-label"),u(6,"Name"),l(),S(7,"input",3),l(),S(8,"br"),d(9,"mat-form-field",4)(10,"mat-label"),u(11,"Datatype"),l(),d(12,"mat-select",5),P("ngModelChange",function(a){return o.selectedDatatype=a})("selectionChange",function(){return o.changeValidator()}),g(13,rie,2,2,"mat-option",6),l()(),S(14,"br"),g(15,aie,6,0,"div",7),g(16,mie,8,3,"div",7),d(17,"mat-form-field",4)(18,"mat-label"),u(19,"IsNullable"),l(),d(20,"mat-select",8),P("ngModelChange",function(a){return o.selectedNull=a}),g(21,pie,2,2,"mat-option",6),l()()(),d(22,"div",9)(23,"button",10),u(24,"CANCEL"),l(),d(25,"button",11),P("click",function(){return o.addNewColumn()}),u(26," ADD "),l()()()),2&i&&(m(1),p("formGroup",o.addNewColumnForm),m(11),p("ngModel",o.selectedDatatype),m(1),p("ngForOf",o.datatypes),m(2),p("ngIf",o.dataTypesWithColLen.indexOf(o.selectedDatatype)>-1),m(1),p("ngIf",""!=o.selectedDatatype&&o.autoGenMap[o.selectedDatatype].length>1&&o.autGenSupported),m(4),p("ngModel",o.selectedNull),m(1),p("ngForOf",o.isColumnNullable),m(4),p("disabled",!o.addNewColumnForm.valid))},dependencies:[qi,kt,Gt,_i,gi,Fi,An,un,KT,tn,pi,li,Mi,so,fi,Ai,Sn,co,lo,Nb]})}return t})();function gie(t,n){1&t&&(d(0,"span"),u(1," To view and modify an object details, click on the object name on the Spanner draft panel. "),l())}function _ie(t,n){if(1&t&&(d(0,"span"),u(1),l()),2&t){const e=C(2);m(1),ye(" To view an object details, click on the object name on the ",e.srcDbName," panel. ")}}const Cf=function(t){return[t]};function bie(t,n){if(1&t){const e=ge();d(0,"div",2)(1,"div",3)(2,"h3",4),u(3,"OBJECT VIEWER"),l(),d(4,"button",5),P("click",function(){return ne(e),oe(C().middleColumnToggle())}),d(5,"mat-icon",6),u(6,"first_page"),l(),d(7,"mat-icon",6),u(8,"last_page"),l()()(),S(9,"mat-divider"),d(10,"div",7)(11,"div",8),Zt(),d(12,"svg",9),S(13,"path",10),l()(),Xo(),d(14,"div",11),g(15,gie,2,0,"span",12),g(16,_ie,2,1,"span",12),l()()()}if(2&t){const e=C();m(5),p("ngClass",ri(4,Cf,e.isMiddleColumnCollapse?"display":"hidden")),m(2),p("ngClass",ri(6,Cf,e.isMiddleColumnCollapse?"hidden":"display")),m(8),p("ngIf","spanner"==e.currentDatabase),m(1),p("ngIf","source"==e.currentDatabase)}}function vie(t,n){1&t&&(d(0,"mat-icon",24),u(1," table_chart"),l())}function yie(t,n){1&t&&(Zt(),d(0,"svg",25),S(1,"path",26),l())}function Cie(t,n){if(1&t&&(d(0,"span"),u(1),bd(2,"uppercase"),l()),2&t){const e=C(2);m(1),ye("( TABLE: ",vd(2,1,e.currentObject.parent)," ) ")}}function xie(t,n){if(1&t){const e=ge();d(0,"button",27),P("click",function(){return ne(e),oe(C(2).dropIndex())}),d(1,"mat-icon"),u(2,"delete"),l(),d(3,"span"),u(4,"SKIP INDEX"),l()()}}function wie(t,n){if(1&t){const e=ge();d(0,"button",27),P("click",function(){return ne(e),oe(C(2).dropSequence())}),d(1,"mat-icon"),u(2,"delete"),l(),d(3,"span"),u(4,"DELETE SEQUENCE"),l()()}}function Sie(t,n){if(1&t){const e=ge();d(0,"button",27),P("click",function(){return ne(e),oe(C(2).restoreIndex())}),d(1,"mat-icon"),u(2,"undo"),l(),d(3,"span"),u(4," RESTORE INDEX"),l()()}}function Die(t,n){if(1&t){const e=ge();d(0,"button",27),P("click",function(){return ne(e),oe(C(2).dropTable())}),d(1,"mat-icon"),u(2,"delete"),l(),d(3,"span"),u(4,"SKIP TABLE"),l()()}}function kie(t,n){if(1&t){const e=ge();d(0,"button",27),P("click",function(){return ne(e),oe(C(2).restoreSpannerTable())}),d(1,"mat-icon"),u(2,"undo"),l(),d(3,"span"),u(4," RESTORE TABLE"),l()()}}function Mie(t,n){if(1&t&&(d(0,"div",28),u(1," Interleaved: "),d(2,"div",29),u(3),l()()),2&t){const e=C(2);m(3),ye(" ",e.interleaveParentName," ")}}function Tie(t,n){1&t&&(d(0,"span"),u(1,"COLUMNS "),l())}function Iie(t,n){if(1&t&&(d(0,"th",82),u(1),l()),2&t){const e=C(3);m(1),Ie(e.srcDbName)}}function Eie(t,n){1&t&&(d(0,"th",83),u(1,"S No."),l())}function Oie(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcOrder").value," ")}}function Aie(t,n){1&t&&(d(0,"th",83),u(1,"Name"),l())}function Pie(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcColName").value," ")}}function Rie(t,n){1&t&&(d(0,"th",83),u(1,"Type"),l())}function Fie(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcDataType").value," ")}}function Nie(t,n){1&t&&(d(0,"th",83),u(1,"Max Length"),l())}function Lie(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcColMaxLength").value," ")}}function Bie(t,n){1&t&&(d(0,"th",83),u(1,"Auto-Generated"),l())}function Vie(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",""!==e.get("srcAutoGen").value.GenerationType?e.get("srcAutoGen").value.GenerationType:"None"," ")}}function jie(t,n){1&t&&(ue(0,85),g(1,Bie,2,0,"th",42),g(2,Vie,2,1,"td",39),he())}function zie(t,n){1&t&&(d(0,"th",83),u(1,"Pk"),l())}function Hie(t,n){1&t&&(d(0,"div"),Zt(),d(1,"svg",86),S(2,"path",87),l()())}function Uie(t,n){if(1&t&&(d(0,"td",84),g(1,Hie,3,0,"div",12),l()),2&t){const e=n.$implicit;m(1),p("ngIf",e.get("srcIsPk").value)}}function $ie(t,n){1&t&&(d(0,"th",83),u(1,"Nullable"),l())}function Gie(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcIsNotNull").value?"Not Null":""," ")}}function qie(t,n){1&t&&S(0,"tr",88)}function Wie(t,n){1&t&&S(0,"tr",88)}const Kie=function(t){return{"scr-column-data-edit-mode":t}};function Zie(t,n){if(1&t&&S(0,"tr",89),2&t){const e=C(3);p("ngClass",ri(1,Kie,e.isEditMode))}}function Yie(t,n){if(1&t){const e=ge();d(0,"button",93),P("click",function(){return ne(e),oe(C(5).toggleEdit())}),d(1,"mat-icon",94),u(2,"edit"),l(),u(3," EDIT "),l()}}function Qie(t,n){if(1&t&&(d(0,"div"),g(1,Yie,4,0,"button",92),l()),2&t){const e=C(4);m(1),p("ngIf",e.currentObject.isSpannerNode)}}function Xie(t,n){if(1&t){const e=ge();d(0,"button",93),P("click",function(){return ne(e),oe(C(5).addNewColumn())}),d(1,"mat-icon",94),u(2,"edit"),l(),u(3," ADD COLUMN "),l()}}function Jie(t,n){if(1&t&&(d(0,"div"),g(1,Xie,4,0,"button",92),l()),2&t){const e=C(4);m(1),p("ngIf",e.currentObject.isSpannerNode)}}function ene(t,n){if(1&t){const e=ge();d(0,"button",93),P("click",function(){return ne(e),oe(C(5).addNewSequence())}),d(1,"mat-icon",94),u(2,"edit"),l(),u(3," ADD SEQUENCE "),l()}}function tne(t,n){if(1&t&&(d(0,"div"),g(1,ene,4,0,"button",92),l()),2&t){const e=C(4);m(1),p("ngIf",e.currentObject.isSpannerNode)}}function ine(t,n){if(1&t&&(d(0,"th",90)(1,"div",91)(2,"span"),u(3,"Spanner"),l(),g(4,Qie,2,1,"div",12),g(5,Jie,2,1,"div",12),g(6,tne,2,1,"div",12),l()()),2&t){const e=C(3);m(4),p("ngIf",!e.isEditMode&&!e.currentObject.isDeleted),m(1),p("ngIf",!e.isEditMode&&!e.currentObject.isDeleted),m(1),p("ngIf",!e.isEditMode&&!e.currentObject.isDeleted&&e.autoGenSupported)}}function nne(t,n){1&t&&(d(0,"th",83),u(1,"Name"),l())}function one(t,n){if(1&t&&(d(0,"div"),S(1,"input",95),l()),2&t){const e=C().$implicit;let i;m(1),p("formControl",e.get("spColName"))("matTooltipDisabled",!(null!=(i=e.get("spColName"))&&i.hasError("pattern")))}}function rne(t,n){if(1&t&&(d(0,"p"),u(1),l()),2&t){const e=C().$implicit;m(1),Ie(e.get("spColName").value)}}function ane(t,n){if(1&t&&(d(0,"td",84),g(1,one,2,2,"div",12),g(2,rne,2,1,"p",12),l()),2&t){const e=n.$implicit,i=C(3);m(1),p("ngIf",i.isEditMode&&""!==e.get("spDataType").value&&""!==e.get("srcId").value),m(1),p("ngIf",!i.isEditMode||""===e.get("srcId").value)}}function sne(t,n){1&t&&(d(0,"th",83),u(1,"Type"),l())}function cne(t,n){if(1&t&&(d(0,"span",99),u(1,"warning"),l()),2&t){const e=C().index;p("matTooltip",C(3).spTableSuggestion[e])}}function lne(t,n){if(1&t&&(d(0,"mat-option",106),u(1),l()),2&t){const e=n.$implicit;p("value",e.DisplayT),m(1),ye(" ",e.DisplayT," ")}}function dne(t,n){1&t&&(d(0,"mat-option",107),u(1," STRING "),l())}function une(t,n){1&t&&(d(0,"mat-option",108),u(1," VARCHAR "),l())}function hne(t,n){if(1&t){const e=ge();d(0,"mat-form-field",100)(1,"mat-select",101,102),P("selectionChange",function(){ne(e);const o=At(2),r=C().index;return oe(C(3).spTableEditSuggestionHandler(r,o.value))}),g(3,lne,2,2,"mat-option",103),g(4,dne,2,0,"mat-option",104),g(5,une,2,0,"mat-option",105),l()()}if(2&t){const e=C().$implicit,i=C(3);m(1),p("formControl",e.get("spDataType")),m(2),p("ngForOf",i.typeMap[e.get("srcDataType").value]),m(1),p("ngIf",""==e.get("srcDataType").value&&!i.isPostgreSQLDialect),m(1),p("ngIf",""==e.get("srcDataType").value&&i.isPostgreSQLDialect)}}function mne(t,n){if(1&t&&(d(0,"p"),u(1),l()),2&t){const e=C().$implicit;m(1),Ie(e.get("spDataType").value)}}function pne(t,n){if(1&t&&(d(0,"td",84)(1,"div",96),g(2,cne,2,1,"span",97),g(3,hne,6,4,"mat-form-field",98),g(4,mne,2,1,"p",12),l()()),2&t){const e=n.$implicit,i=n.index,o=C(3);m(2),p("ngIf",o.isSpTableSuggesstionDisplay[i]&&""!==e.get("spDataType").value),m(1),p("ngIf",o.isEditMode&&""!==e.get("spDataType").value&&""!==e.get("srcId").value),m(1),p("ngIf",!o.isEditMode||""===e.get("srcId").value)}}function fne(t,n){1&t&&(d(0,"th",83),u(1,"Auto-Generated"),l())}function gne(t,n){if(1&t&&(d(0,"mat-option",106),u(1),l()),2&t){const e=C().$implicit;p("value",e),m(1),ye(" ",""!==e.Name?e.Name:"None"," ")}}function _ne(t,n){if(1&t&&(ue(0),g(1,gne,2,2,"mat-option",114),he()),2&t){const e=n.$implicit;m(1),p("ngIf",""===e.GenerationType)}}function bne(t,n){if(1&t&&(d(0,"mat-option",106),u(1),l()),2&t){const e=n.$implicit;p("value",e),m(1),ye(" ",e.Name," ")}}function vne(t,n){if(1&t&&(d(0,"mat-optgroup",116),g(1,bne,2,2,"mat-option",103),l()),2&t){const e=C().$implicit;p("label",e.key),m(1),p("ngForOf",e.value)}}function yne(t,n){if(1&t&&(ue(0),g(1,vne,2,2,"mat-optgroup",115),he()),2&t){const e=n.$implicit;m(1),p("ngIf",""!==e.key)}}function Cne(t,n){if(1&t&&(ue(0),g(1,yne,2,1,"ng-container",113),bd(2,"keyvalue"),he()),2&t){const e=n.ngIf,i=C(6);m(1),p("ngForOf",vd(2,1,i.processedAutoGenMap[e]))}}function xne(t,n){if(1&t&&(ue(0),d(1,"mat-form-field",100)(2,"mat-select",111,112),g(4,_ne,2,1,"ng-container",113),g(5,Cne,3,3,"ng-container",12),l()(),he()),2&t){const e=C().$implicit,i=C(4);m(2),p("formControl",e.get("spAutoGen"))("compareWith",i.compareAutoGen),m(2),p("ngForOf",i.autoGenMap[e.get("spDataType").value]),m(1),p("ngIf",e.get("spDataType").value)}}function wne(t,n){if(1&t&&(ue(0),d(1,"p"),u(2),l(),he()),2&t){const e=C().$implicit;m(2),Ie(""!==e.get("spAutoGen").value.Name?e.get("spAutoGen").value.Name:"None")}}function Sne(t,n){if(1&t&&(d(0,"td",84)(1,"div",110),g(2,xne,6,4,"ng-container",12),g(3,wne,3,1,"ng-container",12),l()()),2&t){const e=n.$implicit,i=C(4);m(2),p("ngIf",i.isEditMode&&""!==e.get("srcId").value),m(1),p("ngIf",!i.isEditMode)}}function Dne(t,n){1&t&&(ue(0,109),g(1,fne,2,0,"th",42),g(2,Sne,4,2,"td",39),he())}function kne(t,n){1&t&&(d(0,"th",83),u(1,"Max Length"),l())}function Mne(t,n){if(1&t&&(d(0,"div"),S(1,"input",117),l()),2&t){const e=C(2).$implicit;m(1),p("formControl",e.get("spColMaxLength"))}}function Tne(t,n){if(1&t&&(d(0,"p"),u(1),l()),2&t){const e=C(2).$implicit;m(1),ye(" ",e.get("spColMaxLength").value," ")}}function Ine(t,n){if(1&t&&(d(0,"div"),g(1,Mne,2,1,"div",12),g(2,Tne,2,1,"p",12),l()),2&t){const e=C().$implicit,i=C(3);m(1),p("ngIf",i.isEditMode&&""!=e.get("srcDataType").value&&e.get("spId").value!==i.shardIdCol),m(1),p("ngIf",!i.isEditMode||e.get("spId").value===i.shardIdCol)}}function Ene(t,n){if(1&t&&(d(0,"td",84),g(1,Ine,3,2,"div",12),l()),2&t){const e=n.$implicit,i=C(3);m(1),p("ngIf",i.dataTypesWithColLen.indexOf(e.get("spDataType").value)>-1)}}function One(t,n){1&t&&(d(0,"th",83),u(1,"Pk"),l())}function Ane(t,n){1&t&&(d(0,"div"),Zt(),d(1,"svg",86),S(2,"path",87),l()())}function Pne(t,n){if(1&t&&(d(0,"td",84),g(1,Ane,3,0,"div",12),l()),2&t){const e=n.$implicit;m(1),p("ngIf",e.get("spIsPk").value)}}function Rne(t,n){1&t&&(d(0,"span"),u(1,"Not Null"),l())}function Fne(t,n){1&t&&(d(0,"span"),u(1,"Nullable"),l())}function Nne(t,n){if(1&t&&(d(0,"th",83),g(1,Rne,2,0,"span",12),g(2,Fne,2,0,"span",12),l()),2&t){const e=C(3);m(1),p("ngIf",e.isEditMode),m(1),p("ngIf",!e.isEditMode)}}function Lne(t,n){if(1&t&&(d(0,"div"),S(1,"mat-checkbox",119),l()),2&t){const e=C().$implicit;m(1),p("formControl",e.get("spIsNotNull"))}}function Bne(t,n){if(1&t&&(d(0,"p"),u(1),l()),2&t){const e=C().$implicit;m(1),ye(" ",e.get("spIsNotNull").value?"Not Null":""," ")}}function Vne(t,n){if(1&t&&(d(0,"td",84)(1,"div",118),g(2,Lne,2,1,"div",12),g(3,Bne,2,1,"p",12),l()()),2&t){const e=n.$implicit,i=C(3);m(2),p("ngIf",i.isEditMode&&""!==e.get("spDataType").value&&e.get("spId").value!==i.shardIdCol),m(1),p("ngIf",!i.isEditMode||e.get("spId").value===i.shardIdCol)}}function jne(t,n){1&t&&S(0,"th",83)}function zne(t,n){if(1&t){const e=ge();d(0,"div",122)(1,"mat-icon",123),u(2,"more_vert"),l(),d(3,"mat-menu",124,125)(5,"button",126),P("click",function(){ne(e);const o=C().$implicit;return oe(C(3).dropColumn(o))}),d(6,"span"),u(7,"Drop Column"),l()()()()}if(2&t){const e=At(4);m(1),p("matMenuTriggerFor",e)}}const xf=function(t){return{"drop-button-left-border":t}};function Hne(t,n){if(1&t&&(d(0,"td",120),g(1,zne,8,1,"div",121),l()),2&t){const e=n.$implicit,i=C(3);p("ngClass",ri(2,xf,i.isEditMode)),m(1),p("ngIf",i.isEditMode&&i.currentObject.isSpannerNode&&""!==e.get("spDataType").value&&e.get("spId").value!==i.shardIdCol)}}function Une(t,n){1&t&&S(0,"tr",88)}function $ne(t,n){1&t&&S(0,"tr",88)}function Gne(t,n){1&t&&S(0,"tr",127)}function qne(t,n){if(1&t&&(d(0,"mat-option",106),u(1),l()),2&t){const e=n.$implicit;p("value",e),m(1),Ie(e)}}function Wne(t,n){if(1&t){const e=ge();d(0,"div",128)(1,"mat-form-field",129)(2,"mat-label"),u(3,"Column Name"),l(),d(4,"mat-select",130),P("selectionChange",function(o){return ne(e),oe(C(3).setColumn(o.value))}),g(5,qne,2,2,"mat-option",103),l()(),d(6,"button",131),P("click",function(){return ne(e),oe(C(3).restoreColumn())}),d(7,"mat-icon"),u(8,"add"),l(),u(9," RESTORE COLUMN "),l()()}if(2&t){const e=C(3);p("formGroup",e.addColumnForm),m(5),p("ngForOf",e.droppedSourceColumns)}}function Kne(t,n){1&t&&(d(0,"span"),u(1,"PRIMARY KEY "),l())}function Zne(t,n){if(1&t&&(d(0,"th",132),u(1),l()),2&t){const e=C(3);m(1),Ie(e.srcDbName)}}function Yne(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",93),P("click",function(){return ne(e),oe(C(4).togglePkEdit())}),d(2,"mat-icon",94),u(3,"edit"),l(),u(4," EDIT "),l()()}}function Qne(t,n){if(1&t&&(d(0,"th",133)(1,"div",91)(2,"span"),u(3,"Spanner"),l(),g(4,Yne,5,0,"div",12),l()()),2&t){const e=C(3);m(4),p("ngIf",!e.isPkEditMode&&e.pkDataSource.length>0&&e.currentObject.isSpannerNode&&!e.currentObject.isDeleted)}}function Xne(t,n){1&t&&(d(0,"th",83),u(1,"Order"),l())}function Jne(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcOrder").value," ")}}function eoe(t,n){1&t&&(d(0,"th",83),u(1,"Name"),l())}function toe(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcColName").value," ")}}function ioe(t,n){1&t&&(d(0,"th",83),u(1,"Type"),l())}function noe(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcDataType").value," ")}}function ooe(t,n){1&t&&(d(0,"th",83),u(1,"PK"),l())}function roe(t,n){1&t&&(d(0,"div"),Zt(),d(1,"svg",86),S(2,"path",87),l()())}function aoe(t,n){if(1&t&&(d(0,"td",84),g(1,roe,3,0,"div",12),l()),2&t){const e=n.$implicit;m(1),p("ngIf",e.get("srcIsPk").value)}}function soe(t,n){1&t&&(d(0,"th",83),u(1,"Nullable"),l())}function coe(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcIsNotNull").value?"Not Null":""," ")}}function loe(t,n){1&t&&(d(0,"th",83),u(1,"Auto-Generated"),l())}function doe(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",""!==e.get("srcAutoGen").value.GenerationType?e.get("srcAutoGen").value.GenerationType:"None"," ")}}function uoe(t,n){1&t&&(ue(0,85),g(1,loe,2,0,"th",42),g(2,doe,2,1,"td",39),he())}function hoe(t,n){1&t&&(d(0,"th",83),u(1,"Order"),l())}function moe(t,n){if(1&t&&(d(0,"div"),S(1,"input",134),l()),2&t){const e=C().$implicit;let i;m(1),p("formControl",e.get("spOrder"))("matTooltipDisabled",!(null!=(i=e.get("spOrder"))&&i.hasError("pattern")))}}function poe(t,n){if(1&t&&(d(0,"p"),u(1),l()),2&t){const e=C().$implicit;m(1),Ie(e.get("spOrder").value)}}function foe(t,n){if(1&t&&(d(0,"td",84),g(1,moe,2,2,"div",12),g(2,poe,2,1,"p",12),l()),2&t){const e=n.$implicit,i=C(3);m(1),p("ngIf",i.isPkEditMode&&""!==e.get("spColName").value),m(1),p("ngIf",!i.isPkEditMode)}}function goe(t,n){1&t&&(d(0,"th",83),u(1,"Name"),l())}function _oe(t,n){if(1&t&&(d(0,"td",84)(1,"p"),u(2),l()()),2&t){const e=n.$implicit;m(2),Ie(e.get("spColName").value)}}function boe(t,n){1&t&&(d(0,"th",83),u(1,"Type"),l())}function voe(t,n){if(1&t&&(d(0,"span",99),u(1,"warning"),l()),2&t){const e=C().index;p("matTooltip",C(3).spTableSuggestion[e])}}function yoe(t,n){if(1&t&&(d(0,"td",84)(1,"div",96),g(2,voe,2,1,"span",97),d(3,"p"),u(4),l()()()),2&t){const e=n.$implicit,i=n.index,o=C(3);m(2),p("ngIf",o.isSpTableSuggesstionDisplay[i]&&""!==e.get("spColName").value),m(2),Ie(e.get("spDataType").value)}}function Coe(t,n){1&t&&(d(0,"th",83),u(1,"Auto-Generated"),l())}function xoe(t,n){if(1&t&&(d(0,"td",84)(1,"p"),u(2),l()()),2&t){const e=n.$implicit;m(2),Ie(""!==e.get("spAutoGen").value.Name?e.get("spAutoGen").value.Name:"None")}}function woe(t,n){1&t&&(ue(0,109),g(1,Coe,2,0,"th",42),g(2,xoe,3,1,"td",39),he())}function Soe(t,n){1&t&&(d(0,"th",83),u(1,"Pk"),l())}function Doe(t,n){1&t&&(d(0,"div"),Zt(),d(1,"svg",86),S(2,"path",87),l()())}function koe(t,n){if(1&t&&(d(0,"td",84),g(1,Doe,3,0,"div",12),l()),2&t){const e=n.$implicit;m(1),p("ngIf",e.get("spIsPk").value)}}function Moe(t,n){1&t&&(d(0,"th",83),u(1,"Nullable"),l())}function Toe(t,n){if(1&t&&(d(0,"td",84)(1,"div",118)(2,"p"),u(3),l()()()),2&t){const e=n.$implicit;m(3),ye(" ",e.get("spIsNotNull").value?"Not Null":""," ")}}function Ioe(t,n){1&t&&S(0,"th",83)}function Eoe(t,n){if(1&t){const e=ge();d(0,"div",122)(1,"mat-icon",123),u(2,"more_vert"),l(),d(3,"mat-menu",124,125)(5,"button",135),P("click",function(){ne(e);const o=C().$implicit;return oe(C(3).dropPk(o))}),d(6,"span"),u(7,"Remove primary key"),l()()()()}if(2&t){const e=At(4),i=C(4);m(1),p("matMenuTriggerFor",e),m(4),p("disabled",!i.isPkEditMode)}}function Ooe(t,n){if(1&t&&(d(0,"td",120),g(1,Eoe,8,2,"div",121),l()),2&t){const e=n.$implicit,i=C(3);p("ngClass",ri(2,xf,i.isPkEditMode)),m(1),p("ngIf",i.isPkEditMode&&i.currentObject.isSpannerNode&&""!==e.get("spColName").value)}}function Aoe(t,n){1&t&&S(0,"tr",88)}function Poe(t,n){1&t&&S(0,"tr",88)}function Roe(t,n){1&t&&S(0,"tr",127)}function Foe(t,n){if(1&t&&(d(0,"mat-option",106),u(1),l()),2&t){const e=n.$implicit;p("value",e),m(1),Ie(e)}}function Noe(t,n){if(1&t){const e=ge();d(0,"div",136)(1,"mat-form-field",129)(2,"mat-label"),u(3,"Column Name"),l(),d(4,"mat-select",130),P("selectionChange",function(o){return ne(e),oe(C(3).setPkColumn(o.value))}),g(5,Foe,2,2,"mat-option",103),l()(),d(6,"button",131),P("click",function(){return ne(e),oe(C(3).addPkColumn())}),d(7,"mat-icon"),u(8,"add"),l(),u(9," ADD COLUMN "),l()()}if(2&t){const e=C(3);p("formGroup",e.addPkColumnForm),m(5),p("ngForOf",e.pkColumnNames)}}function Loe(t,n){1&t&&(d(0,"span"),u(1,"FOREIGN KEY"),l())}function Boe(t,n){if(1&t&&(d(0,"th",137),u(1),l()),2&t){const e=C(3);Qe("colspan",e.foreignKeyActionsSupported?6:4),m(1),Ie(e.srcDbName)}}function Voe(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",93),P("click",function(){return ne(e),oe(C(4).toggleFkEdit())}),d(2,"mat-icon",94),u(3,"edit"),l(),u(4," EDIT "),l()()}}function joe(t,n){if(1&t&&(d(0,"th",137)(1,"div",91)(2,"span"),u(3,"Spanner"),l(),g(4,Voe,5,0,"div",12),l()()),2&t){const e=C(3);Qe("colspan",e.foreignKeyActionsSupported?7:5),m(4),p("ngIf",!e.isFkEditMode&&e.fkDataSource.length>0&&e.currentObject.isSpannerNode&&!e.currentObject.isDeleted)}}function zoe(t,n){1&t&&(d(0,"th",83),u(1,"Name"),l())}function Hoe(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcName").value," ")}}function Uoe(t,n){1&t&&(d(0,"th",83),u(1,"Columns"),l())}function $oe(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcColumns").value," ")}}function Goe(t,n){1&t&&(d(0,"th",83),u(1,"Refer Table"),l())}function qoe(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcReferTable").value," ")}}function Woe(t,n){1&t&&(d(0,"th",83),u(1,"Refer Columns"),l())}function Koe(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcReferColumns").value," ")}}function Zoe(t,n){1&t&&(d(0,"th",83),u(1,"On Delete"),l())}function Yoe(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcOnDelete").value," ")}}function Qoe(t,n){1&t&&(ue(0,138),g(1,Zoe,2,0,"th",38),g(2,Yoe,2,1,"td",39),he())}function Xoe(t,n){1&t&&(d(0,"th",83),u(1,"On Update"),l())}function Joe(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcOnUpdate").value," ")}}function ere(t,n){1&t&&(ue(0,139),g(1,Xoe,2,0,"th",38),g(2,Joe,2,1,"td",39),he())}function tre(t,n){1&t&&(d(0,"th",83),u(1,"Name"),l())}function ire(t,n){if(1&t&&(d(0,"div"),S(1,"input",95),l()),2&t){const e=C().$implicit;let i;m(1),p("formControl",e.get("spName"))("matTooltipDisabled",!(null!=(i=e.get("spName"))&&i.hasError("pattern")))}}function nre(t,n){if(1&t&&(d(0,"p"),u(1),l()),2&t){const e=C().$implicit;m(1),Ie(e.get("spName").value)}}function ore(t,n){if(1&t&&(d(0,"td",84),g(1,ire,2,2,"div",12),g(2,nre,2,1,"p",12),l()),2&t){const e=n.$implicit,i=C(3);m(1),p("ngIf",i.isFkEditMode&&""!==e.get("spReferTable").value),m(1),p("ngIf",!i.isFkEditMode)}}function rre(t,n){1&t&&(d(0,"th",83),u(1,"Columns"),l())}function are(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("spColumns").value," ")}}function sre(t,n){1&t&&(d(0,"th",83),u(1,"Refer Table"),l())}function cre(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("spReferTable").value," ")}}function lre(t,n){1&t&&(d(0,"th",83),u(1,"Refer Columns"),l())}function dre(t,n){if(1&t&&(d(0,"td",84)(1,"div",140),u(2),l()()),2&t){const e=n.$implicit;m(2),ye(" ",e.get("spReferColumns").value," ")}}function ure(t,n){1&t&&(d(0,"th",83),u(1,"On Delete"),l())}function hre(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("spOnDelete").value," ")}}function mre(t,n){1&t&&(ue(0,141),g(1,ure,2,0,"th",38),g(2,hre,2,1,"td",39),he())}function pre(t,n){1&t&&(d(0,"th",83),u(1,"On Update"),l())}function fre(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("spOnUpdate").value," ")}}function gre(t,n){1&t&&(ue(0,142),g(1,pre,2,0,"th",38),g(2,fre,2,1,"td",39),he())}function _re(t,n){1&t&&S(0,"th",83)}function bre(t,n){if(1&t){const e=ge();d(0,"button",135),P("click",function(){return ne(e),oe(C(5).setInterleave())}),d(1,"span"),u(2,"Convert to interleave"),l()()}2&t&&p("disabled",""===C(2).$implicit.get("spName").value)}function vre(t,n){if(1&t){const e=ge();d(0,"div",122)(1,"mat-icon",123),u(2,"more_vert"),l(),d(3,"mat-menu",124,125)(5,"button",135),P("click",function(){ne(e);const o=C().$implicit;return oe(C(3).dropFk(o))}),d(6,"span"),u(7,"Drop Foreign Key"),l()(),g(8,bre,3,1,"button",143),l()()}if(2&t){const e=At(4),i=C().$implicit,o=C(3);m(1),p("matMenuTriggerFor",e),m(4),p("disabled",""===i.get("spName").value),m(3),p("ngIf",o.interleaveStatus.tableInterleaveStatus&&o.interleaveStatus.tableInterleaveStatus.Possible)}}function yre(t,n){if(1&t&&(d(0,"td",120),g(1,vre,9,3,"div",121),l()),2&t){const e=n.$implicit,i=C(3);p("ngClass",ri(2,xf,i.isFkEditMode)),m(1),p("ngIf",i.isFkEditMode&&i.currentObject.isSpannerNode&&""!==e.get("spReferTable").value)}}function Cre(t,n){1&t&&S(0,"tr",88)}function xre(t,n){1&t&&S(0,"tr",88)}function wre(t,n){1&t&&S(0,"tr",127)}function Sre(t,n){if(1&t){const e=ge();d(0,"button",147),P("click",function(){return ne(e),oe(C(4).setInterleave())}),u(1," Convert to Interleave "),l()}}function Dre(t,n){if(1&t){const e=ge();d(0,"button",147),P("click",function(){return ne(e),oe(C(4).removeInterleave())}),u(1," Convert Back to Foreign Key "),l()}}function kre(t,n){if(1&t&&(d(0,"div"),u(1," This table is interleaved with "),d(2,"span",148),u(3),l(),u(4,". Click on the above button to convert back to foreign key. "),l()),2&t){const e=C(4);m(3),Ie(e.interleaveParentName)}}function Mre(t,n){if(1&t&&(d(0,"mat-tab",144)(1,"div",145),g(2,Sre,2,0,"button",146),g(3,Dre,2,0,"button",146),S(4,"br"),g(5,kre,5,1,"div",12),l()()),2&t){const e=C(3);m(2),p("ngIf",e.interleaveStatus.tableInterleaveStatus&&e.interleaveStatus.tableInterleaveStatus.Possible&&null===e.interleaveParentName),m(1),p("ngIf",e.interleaveStatus.tableInterleaveStatus&&!e.interleaveStatus.tableInterleaveStatus.Possible||null!==e.interleaveParentName),m(2),p("ngIf",e.interleaveStatus.tableInterleaveStatus&&!e.interleaveStatus.tableInterleaveStatus.Possible||null!==e.interleaveParentName)}}function Tre(t,n){1&t&&(d(0,"span"),u(1,"SQL"),l())}function Ire(t,n){if(1&t&&(d(0,"mat-tab"),g(1,Tre,2,0,"ng-template",31),d(2,"div",149)(3,"pre")(4,"code"),u(5),l()()()()),2&t){const e=C(3);m(5),Ie(e.ddlStmts[e.currentObject.id])}}const Ere=function(t){return{"height-on-edit":t}},Ore=function(){return["srcDatabase"]},nP=function(){return["spDatabase"]},z0=function(){return["srcDatabase","spDatabase"]};function Are(t,n){if(1&t){const e=ge();d(0,"mat-tab-group",30),P("selectedTabChange",function(o){return ne(e),oe(C(2).tabChanged(o))}),d(1,"mat-tab"),g(2,Tie,2,0,"ng-template",31),d(3,"div",32)(4,"div",33)(5,"table",34),ue(6,35),g(7,Iie,2,1,"th",36),he(),ue(8,37),g(9,Eie,2,0,"th",38),g(10,Oie,2,1,"td",39),he(),ue(11,40),g(12,Aie,2,0,"th",38),g(13,Pie,2,1,"td",39),he(),ue(14,41),g(15,Rie,2,0,"th",42),g(16,Fie,2,1,"td",39),he(),ue(17,43),g(18,Nie,2,0,"th",42),g(19,Lie,2,1,"td",39),he(),g(20,jie,3,0,"ng-container",44),ue(21,45),g(22,zie,2,0,"th",38),g(23,Uie,2,1,"td",39),he(),ue(24,46),g(25,$ie,2,0,"th",42),g(26,Gie,2,1,"td",39),he(),g(27,qie,1,0,"tr",47),g(28,Wie,1,0,"tr",47),g(29,Zie,1,3,"tr",48),l(),d(30,"table",34),ue(31,49),g(32,ine,7,3,"th",50),he(),ue(33,51),g(34,nne,2,0,"th",42),g(35,ane,3,2,"td",39),he(),ue(36,52),g(37,sne,2,0,"th",42),g(38,pne,5,3,"td",39),he(),g(39,Dne,3,0,"ng-container",53),ue(40,54),g(41,kne,2,0,"th",42),g(42,Ene,2,1,"td",39),he(),ue(43,55),g(44,One,2,0,"th",38),g(45,Pne,2,1,"td",39),he(),ue(46,56),g(47,Nne,3,2,"th",42),g(48,Vne,4,2,"td",39),he(),ue(49,57),g(50,jne,1,0,"th",42),g(51,Hne,2,4,"td",58),he(),g(52,Une,1,0,"tr",47),g(53,$ne,1,0,"tr",47),g(54,Gne,1,0,"tr",59),l()(),g(55,Wne,10,2,"div",60),l()(),d(56,"mat-tab"),g(57,Kne,2,0,"ng-template",31),d(58,"div",61)(59,"table",34),ue(60,35),g(61,Zne,2,1,"th",62),he(),ue(62,49),g(63,Qne,5,1,"th",63),he(),ue(64,37),g(65,Xne,2,0,"th",38),g(66,Jne,2,1,"td",39),he(),ue(67,40),g(68,eoe,2,0,"th",38),g(69,toe,2,1,"td",39),he(),ue(70,41),g(71,ioe,2,0,"th",42),g(72,noe,2,1,"td",39),he(),ue(73,45),g(74,ooe,2,0,"th",38),g(75,aoe,2,1,"td",39),he(),ue(76,46),g(77,soe,2,0,"th",42),g(78,coe,2,1,"td",39),he(),g(79,uoe,3,0,"ng-container",44),ue(80,64),g(81,hoe,2,0,"th",38),g(82,foe,3,2,"td",39),he(),ue(83,51),g(84,goe,2,0,"th",42),g(85,_oe,3,1,"td",39),he(),ue(86,52),g(87,boe,2,0,"th",42),g(88,yoe,5,2,"td",39),he(),g(89,woe,3,0,"ng-container",53),ue(90,55),g(91,Soe,2,0,"th",38),g(92,koe,2,1,"td",39),he(),ue(93,56),g(94,Moe,2,0,"th",42),g(95,Toe,4,1,"td",39),he(),ue(96,57),g(97,Ioe,1,0,"th",42),g(98,Ooe,2,4,"td",58),he(),g(99,Aoe,1,0,"tr",47),g(100,Poe,1,0,"tr",47),g(101,Roe,1,0,"tr",59),l(),g(102,Noe,10,2,"div",65),l()(),d(103,"mat-tab"),g(104,Loe,2,0,"ng-template",31),d(105,"div",66)(106,"table",34),ue(107,35),g(108,Boe,2,2,"th",67),he(),ue(109,49),g(110,joe,5,2,"th",67),he(),ue(111,68),g(112,zoe,2,0,"th",38),g(113,Hoe,2,1,"td",39),he(),ue(114,69),g(115,Uoe,2,0,"th",38),g(116,$oe,2,1,"td",39),he(),ue(117,70),g(118,Goe,2,0,"th",38),g(119,qoe,2,1,"td",39),he(),ue(120,71),g(121,Woe,2,0,"th",38),g(122,Koe,2,1,"td",39),he(),g(123,Qoe,3,0,"ng-container",72),g(124,ere,3,0,"ng-container",73),ue(125,74),g(126,tre,2,0,"th",42),g(127,ore,3,2,"td",39),he(),ue(128,75),g(129,rre,2,0,"th",38),g(130,are,2,1,"td",39),he(),ue(131,76),g(132,sre,2,0,"th",38),g(133,cre,2,1,"td",39),he(),ue(134,77),g(135,lre,2,0,"th",38),g(136,dre,3,1,"td",39),he(),g(137,mre,3,0,"ng-container",78),g(138,gre,3,0,"ng-container",79),ue(139,80),g(140,_re,1,0,"th",42),g(141,yre,2,4,"td",58),he(),g(142,Cre,1,0,"tr",47),g(143,xre,1,0,"tr",47),g(144,wre,1,0,"tr",59),l()()(),g(145,Mre,6,3,"mat-tab",81),g(146,Ire,6,1,"mat-tab",12),l()}if(2&t){const e=C(2);p("ngClass",ri(29,Ere,e.isEditMode||e.isPkEditMode||e.isFkEditMode)),m(5),p("dataSource",e.srcDataSource),m(15),p("ngIf",e.autoGenSupported),m(7),p("matHeaderRowDef",yo(31,Ore)),m(1),p("matHeaderRowDef",e.srcDisplayedColumns),m(1),p("matRowDefColumns",e.srcDisplayedColumns),m(1),p("dataSource",e.spDataSource),m(9),p("ngIf",e.autoGenSupported),m(13),p("matHeaderRowDef",yo(32,nP)),m(1),p("matHeaderRowDef",e.spDisplayedColumns),m(1),p("matRowDefColumns",e.spDisplayedColumns),m(1),p("ngIf",e.isEditMode&&0!=e.droppedSourceColumns.length),m(4),p("dataSource",e.pkDataSource),m(20),p("ngIf",e.autoGenSupported),m(10),p("ngIf",e.autoGenSupported),m(10),p("matHeaderRowDef",yo(33,z0)),m(1),p("matHeaderRowDef",e.displayedPkColumns),m(1),p("matRowDefColumns",e.displayedPkColumns),m(1),p("ngIf",e.isPkEditMode),m(4),p("dataSource",e.fkDataSource),m(17),p("ngIf",e.foreignKeyActionsSupported),m(1),p("ngIf",e.foreignKeyActionsSupported),m(13),p("ngIf",e.foreignKeyActionsSupported),m(1),p("ngIf",e.foreignKeyActionsSupported),m(4),p("matHeaderRowDef",yo(34,z0)),m(1),p("matHeaderRowDef",e.displayedFkColumns),m(1),p("matRowDefColumns",e.displayedFkColumns),m(1),p("ngIf",(e.interleaveStatus.tableInterleaveStatus&&e.interleaveStatus.tableInterleaveStatus.Possible||null!==e.interleaveParentName)&&e.currentObject.isSpannerNode),m(1),p("ngIf",e.currentObject.isSpannerNode&&!e.currentObject.isDeleted)}}function Pre(t,n){if(1&t&&(d(0,"th",161),u(1),l()),2&t){const e=C(3);m(1),Ie(e.srcDbName)}}function Rre(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",93),P("click",function(){return ne(e),oe(C(4).toggleIndexEdit())}),d(2,"mat-icon",94),u(3,"edit"),l(),u(4," EDIT "),l()()}}function Fre(t,n){if(1&t&&(d(0,"th",162)(1,"div",91)(2,"span"),u(3,"Spanner"),l(),g(4,Rre,5,0,"div",12),l()()),2&t){const e=C(3);m(4),p("ngIf",!e.isIndexEditMode&&!e.currentObject.isDeleted&&e.currentObject.isSpannerNode)}}function Nre(t,n){1&t&&(d(0,"th",83),u(1,"Column"),l())}function Lre(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcColName").value," ")}}function Bre(t,n){1&t&&(d(0,"th",83),u(1,"Sort By"),l())}function Vre(t,n){1&t&&(d(0,"p"),u(1,"Desc"),l())}function jre(t,n){1&t&&(d(0,"p"),u(1,"Asc"),l())}function zre(t,n){if(1&t&&(d(0,"td",84),g(1,Vre,2,0,"p",12),g(2,jre,2,0,"p",12),l()),2&t){const e=n.$implicit;m(1),p("ngIf",e.get("srcDesc").value),m(1),p("ngIf",!1===e.get("srcDesc").value)}}function Hre(t,n){1&t&&(d(0,"th",83),u(1,"Column Order"),l())}function Ure(t,n){if(1&t&&(d(0,"td",84),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.get("srcOrder").value," ")}}function $re(t,n){1&t&&(d(0,"th",83),u(1,"Column"),l())}function Gre(t,n){if(1&t&&(d(0,"p"),u(1),l()),2&t){const e=C().$implicit;m(1),Ie(e.get("spColName").value)}}function qre(t,n){if(1&t&&(d(0,"td",84),g(1,Gre,2,1,"p",12),l()),2&t){const e=n.$implicit;m(1),p("ngIf",e.get("spColName").value)}}function Wre(t,n){1&t&&(d(0,"th",83),u(1,"Sort By"),l())}function Kre(t,n){1&t&&(d(0,"p"),u(1,"Desc"),l())}function Zre(t,n){1&t&&(d(0,"p"),u(1,"Asc"),l())}function Yre(t,n){if(1&t&&(d(0,"td",84),g(1,Kre,2,0,"p",12),g(2,Zre,2,0,"p",12),l()),2&t){const e=n.$implicit;m(1),p("ngIf",e.get("spDesc").value),m(1),p("ngIf",!1===e.get("spDesc").value)}}function Qre(t,n){1&t&&(d(0,"th",83),u(1,"Column Order"),l())}function Xre(t,n){if(1&t&&(d(0,"div"),S(1,"input",163),l()),2&t){const e=C().$implicit;m(1),p("formControl",e.get("spOrder"))}}function Jre(t,n){if(1&t&&(d(0,"p"),u(1),l()),2&t){const e=C().$implicit;m(1),Ie(e.get("spOrder").value)}}function eae(t,n){if(1&t&&(d(0,"td",84),g(1,Xre,2,1,"div",12),g(2,Jre,2,1,"p",12),l()),2&t){const e=n.$implicit,i=C(3);m(1),p("ngIf",i.isIndexEditMode&&e.get("spColName").value),m(1),p("ngIf",!i.isIndexEditMode)}}function tae(t,n){1&t&&S(0,"th",83)}function iae(t,n){if(1&t){const e=ge();d(0,"div")(1,"mat-icon",123),u(2,"more_vert"),l(),d(3,"mat-menu",124,125)(5,"button",126),P("click",function(){ne(e);const o=C().index;return oe(C(3).dropIndexKey(o))}),d(6,"span"),u(7,"Drop Index Key"),l()()()()}if(2&t){const e=At(4);m(1),p("matMenuTriggerFor",e)}}function nae(t,n){if(1&t&&(d(0,"td",120),g(1,iae,8,1,"div",12),l()),2&t){const e=n.$implicit,i=C(3);p("ngClass",ri(2,xf,i.isIndexEditMode)),m(1),p("ngIf",i.isIndexEditMode&&e.get("spColName").value)}}function oae(t,n){1&t&&S(0,"tr",88)}function rae(t,n){1&t&&S(0,"tr",88)}function aae(t,n){1&t&&S(0,"tr",164)}function sae(t,n){if(1&t&&(d(0,"mat-option",106),u(1),l()),2&t){const e=n.$implicit;p("value",e),m(1),Ie(e)}}function cae(t,n){if(1&t){const e=ge();d(0,"div",165)(1,"mat-form-field",166)(2,"mat-label"),u(3,"Column Name"),l(),d(4,"mat-select",167),g(5,sae,2,2,"mat-option",103),l()(),d(6,"mat-form-field",168)(7,"mat-label"),u(8,"Sort By"),l(),d(9,"mat-select",169)(10,"mat-option",170),u(11,"Ascending"),l(),d(12,"mat-option",171),u(13,"Descending"),l()()(),d(14,"button",172),P("click",function(){return ne(e),oe(C(3).addIndexKey())}),d(15,"mat-icon"),u(16,"add"),l(),d(17,"span"),u(18," ADD COLUMN"),l()()()}if(2&t){const e=C(3);p("formGroup",e.addIndexKeyForm),m(5),p("ngForOf",e.indexColumnNames),m(9),p("disabled",!e.addIndexKeyForm.valid)}}function lae(t,n){if(1&t&&(d(0,"div",150)(1,"table",34),ue(2,35),g(3,Pre,2,1,"th",151),he(),ue(4,49),g(5,Fre,5,1,"th",152),he(),ue(6,153),g(7,Nre,2,0,"th",38),g(8,Lre,2,1,"td",39),he(),ue(9,154),g(10,Bre,2,0,"th",42),g(11,zre,3,2,"td",39),he(),ue(12,155),g(13,Hre,2,0,"th",38),g(14,Ure,2,1,"td",39),he(),ue(15,156),g(16,$re,2,0,"th",42),g(17,qre,2,1,"td",39),he(),ue(18,157),g(19,Wre,2,0,"th",42),g(20,Yre,3,2,"td",39),he(),ue(21,158),g(22,Qre,2,0,"th",38),g(23,eae,3,2,"td",39),he(),ue(24,57),g(25,tae,1,0,"th",42),g(26,nae,2,4,"td",58),he(),g(27,oae,1,0,"tr",47),g(28,rae,1,0,"tr",47),g(29,aae,1,0,"tr",159),l(),g(30,cae,19,3,"div",160),l()),2&t){const e=C(2);m(1),p("dataSource",e.spDataSource),m(26),p("matHeaderRowDef",yo(5,z0)),m(1),p("matHeaderRowDef",e.indexDisplayedColumns),m(1),p("matRowDefColumns",e.indexDisplayedColumns),m(1),p("ngIf",e.isIndexEditMode&&e.indexColumnNames.length>0)}}function dae(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",93),P("click",function(){return ne(e),oe(C(4).toggleSequenceEdit())}),d(2,"mat-icon",94),u(3,"edit"),l(),u(4," EDIT "),l()()}}function uae(t,n){if(1&t&&(d(0,"th",132)(1,"div",91)(2,"span"),u(3,"Spanner"),l(),g(4,dae,5,0,"div",12),l()()),2&t){const e=C(3);m(4),p("ngIf",!e.isSequenceEditMode&&!e.currentObject.isDeleted&&e.currentObject.isSpannerNode)}}function hae(t,n){1&t&&(d(0,"th",83),u(1,"Name"),l())}function mae(t,n){if(1&t&&(d(0,"p"),u(1),l()),2&t){const e=C().$implicit;m(1),Ie(e.get("spSeqName").value)}}function pae(t,n){if(1&t&&(d(0,"td",84),g(1,mae,2,1,"p",12),l()),2&t){const e=n.$implicit;m(1),p("ngIf",e.get("spSeqName").value)}}function fae(t,n){1&t&&(d(0,"th",83),u(1,"Sequence Type"),l())}function gae(t,n){if(1&t&&(ue(0),d(1,"mat-option",106),u(2),l(),he()),2&t){const e=n.$implicit;m(1),p("value",e),m(1),ye(" ",e," ")}}function _ae(t,n){if(1&t&&(ue(0),d(1,"mat-form-field",181)(2,"mat-select",182,183),g(4,gae,3,2,"ng-container",113),l()(),he()),2&t){const e=C().$implicit,i=C(3);m(2),p("formControl",e.get("spSequenceKind")),m(2),p("ngForOf",i.sequenceKinds)}}function bae(t,n){if(1&t&&(ue(0),d(1,"p"),u(2),l(),he()),2&t){const e=C().$implicit;m(2),Ie(e.get("spSequenceKind").value)}}function vae(t,n){if(1&t&&(d(0,"td",84)(1,"div",180),g(2,_ae,5,2,"ng-container",12),g(3,bae,3,1,"ng-container",12),l()()),2&t){const e=n.$implicit,i=C(3);m(2),p("ngIf",i.isSequenceEditMode&&""!==e.get("spSequenceKind").value),m(1),p("ngIf",!i.isSequenceEditMode)}}function yae(t,n){1&t&&(d(0,"th",83),u(1,"Skip Range Min"),l())}function Cae(t,n){if(1&t&&(d(0,"div"),S(1,"input",184),l()),2&t){const e=C().$implicit;let i;m(1),p("formControl",e.get("spSkipRangeMin"))("matTooltipDisabled",!(null!=(i=e.get("spSkipRangeMin"))&&i.hasError("pattern")))}}function xae(t,n){if(1&t&&(d(0,"p"),u(1),l()),2&t){const e=C().$implicit;m(1),Ie(e.get("spSkipRangeMin").value)}}function wae(t,n){if(1&t&&(d(0,"td",84),g(1,Cae,2,2,"div",12),g(2,xae,2,1,"p",12),l()),2&t){const e=n.$implicit,i=C(3);m(1),p("ngIf",i.isSequenceEditMode),m(1),p("ngIf",!i.isSequenceEditMode&&e.get("spSkipRangeMin").value)}}function Sae(t,n){1&t&&(d(0,"th",83),u(1,"Skip Range Max"),l())}function Dae(t,n){if(1&t&&(d(0,"div"),S(1,"input",184),l()),2&t){const e=C().$implicit;let i;m(1),p("formControl",e.get("spSkipRangeMax"))("matTooltipDisabled",!(null!=(i=e.get("spSkipRangeMax"))&&i.hasError("pattern")))}}function kae(t,n){if(1&t&&(d(0,"p"),u(1),l()),2&t){const e=C().$implicit;m(1),Ie(e.get("spSkipRangeMax").value)}}function Mae(t,n){if(1&t&&(d(0,"td",84),g(1,Dae,2,2,"div",12),g(2,kae,2,1,"p",12),l()),2&t){const e=n.$implicit,i=C(3);m(1),p("ngIf",i.isSequenceEditMode),m(1),p("ngIf",!i.isSequenceEditMode&&e.get("spSkipRangeMax").value)}}function Tae(t,n){1&t&&(d(0,"th",83),u(1,"Start With Counter"),l())}function Iae(t,n){if(1&t&&(d(0,"div"),S(1,"input",185),l()),2&t){const e=C().$implicit;let i;m(1),p("formControl",e.get("spStartWithCounter"))("matTooltipDisabled",!(null!=(i=e.get("spStartWithCounter"))&&i.hasError("pattern")))}}function Eae(t,n){if(1&t&&(d(0,"p"),u(1),l()),2&t){const e=C().$implicit;m(1),Ie(e.get("spStartWithCounter").value)}}function Oae(t,n){if(1&t&&(d(0,"td",84),g(1,Iae,2,2,"div",12),g(2,Eae,2,1,"p",12),l()),2&t){const e=n.$implicit,i=C(3);m(1),p("ngIf",i.isSequenceEditMode),m(1),p("ngIf",!i.isSequenceEditMode&&e.get("spStartWithCounter").value)}}function Aae(t,n){1&t&&S(0,"tr",88)}function Pae(t,n){1&t&&S(0,"tr",88)}function Rae(t,n){1&t&&S(0,"tr",186)}function Fae(t,n){if(1&t&&(d(0,"div",173)(1,"table",34),ue(2,49),g(3,uae,5,1,"th",62),he(),ue(4,174),g(5,hae,2,0,"th",42),g(6,pae,2,1,"td",39),he(),ue(7,175),g(8,fae,2,0,"th",42),g(9,vae,4,2,"td",39),he(),ue(10,176),g(11,yae,2,0,"th",42),g(12,wae,3,2,"td",39),he(),ue(13,177),g(14,Sae,2,0,"th",42),g(15,Mae,3,2,"td",39),he(),ue(16,178),g(17,Tae,2,0,"th",42),g(18,Oae,3,2,"td",39),he(),g(19,Aae,1,0,"tr",47),g(20,Pae,1,0,"tr",47),g(21,Rae,1,0,"tr",179),l()()),2&t){const e=C(2);m(1),p("dataSource",e.spDataSource),m(18),p("matHeaderRowDef",yo(4,nP)),m(1),p("matHeaderRowDef",e.sequenceDisplayedColumns),m(1),p("matRowDefColumns",e.sequenceDisplayedColumns)}}function Nae(t,n){1&t&&S(0,"mat-divider")}function Lae(t,n){if(1&t){const e=ge();d(0,"button",190),P("click",function(){return ne(e),oe(C(3).toggleEdit())}),u(1," CANCEL "),l()}}function Bae(t,n){if(1&t){const e=ge();d(0,"div",187)(1,"button",188),P("click",function(){return ne(e),oe(C(2).saveColumnTable())}),u(2," SAVE & CONVERT "),l(),g(3,Lae,2,0,"button",189),l()}if(2&t){const e=C(2);m(1),p("disabled",!e.spRowArray.valid),m(2),p("ngIf",e.currentObject.isSpannerNode)}}function Vae(t,n){if(1&t){const e=ge();d(0,"button",190),P("click",function(){return ne(e),oe(C(3).togglePkEdit())}),u(1," CANCEL "),l()}}function jae(t,n){if(1&t){const e=ge();d(0,"div",187)(1,"button",188),P("click",function(){return ne(e),oe(C(2).savePk())}),u(2," SAVE & CONVERT "),l(),g(3,Vae,2,0,"button",189),l()}if(2&t){const e=C(2);m(1),p("disabled",!e.pkArray.valid),m(2),p("ngIf",e.currentObject.isSpannerNode)}}function zae(t,n){if(1&t){const e=ge();d(0,"button",190),P("click",function(){return ne(e),oe(C(3).toggleFkEdit())}),u(1," CANCEL "),l()}}function Hae(t,n){if(1&t){const e=ge();d(0,"div",187)(1,"button",147),P("click",function(){return ne(e),oe(C(2).saveFk())}),u(2,"SAVE & CONVERT"),l(),g(3,zae,2,0,"button",189),l()}if(2&t){const e=C(2);m(3),p("ngIf",e.currentObject.isSpannerNode)}}function Uae(t,n){if(1&t){const e=ge();d(0,"button",190),P("click",function(){return ne(e),oe(C(3).toggleIndexEdit())}),u(1," CANCEL "),l()}}function $ae(t,n){if(1&t){const e=ge();d(0,"div",187)(1,"button",147),P("click",function(){return ne(e),oe(C(2).saveIndex())}),u(2,"SAVE & CONVERT"),l(),g(3,Uae,2,0,"button",189),l()}if(2&t){const e=C(2);m(3),p("ngIf",e.currentObject.isSpannerNode)}}function Gae(t,n){if(1&t){const e=ge();d(0,"button",190),P("click",function(){return ne(e),oe(C(3).toggleSequenceEdit())}),u(1," CANCEL "),l()}}function qae(t,n){if(1&t){const e=ge();d(0,"div",187)(1,"button",188),P("click",function(){return ne(e),oe(C(2).saveSequence())}),u(2," SAVE & CONVERT "),l(),g(3,Gae,2,0,"button",189),l()}if(2&t){const e=C(2);m(1),p("disabled",!e.spRowArray.valid),m(2),p("ngIf",e.currentObject.isSpannerNode)}}function Wae(t,n){if(1&t){const e=ge();d(0,"div",13)(1,"div",3)(2,"span")(3,"h3",4),g(4,vie,2,0,"mat-icon",14),g(5,yie,2,0,"svg",15),d(6,"span",16),u(7),l(),g(8,Cie,3,3,"span",12),g(9,xie,5,0,"button",17),g(10,wie,5,0,"button",17),g(11,Sie,5,0,"button",17),g(12,Die,5,0,"button",17),g(13,kie,5,0,"button",17),l(),g(14,Mie,4,1,"div",18),l(),d(15,"button",5),P("click",function(){return ne(e),oe(C().middleColumnToggle())}),d(16,"mat-icon",6),u(17,"first_page"),l(),d(18,"mat-icon",6),u(19,"last_page"),l()()(),g(20,Are,147,35,"mat-tab-group",19),g(21,lae,31,6,"div",20),g(22,Fae,22,5,"div",21),d(23,"div",22),g(24,Nae,1,0,"mat-divider",12),g(25,Bae,4,2,"div",23),g(26,jae,4,2,"div",23),g(27,Hae,4,1,"div",23),g(28,$ae,4,1,"div",23),g(29,qae,4,2,"div",23),l()()}if(2&t){const e=C();m(4),p("ngIf",e.currentObject.type===e.ObjectExplorerNodeType.Table),m(1),p("ngIf",e.currentObject.type===e.ObjectExplorerNodeType.Index||e.currentObject.type===e.ObjectExplorerNodeType.Sequence),m(2),Ie(" "+e.currentObject.name+" "),m(1),p("ngIf",""!=e.currentObject.parent),m(1),p("ngIf",e.currentObject.isSpannerNode&&!e.currentObject.isDeleted&&"indexName"===e.currentObject.type),m(1),p("ngIf",e.currentObject.isSpannerNode&&!e.currentObject.isDeleted&&"sequenceName"===e.currentObject.type),m(1),p("ngIf",e.currentObject.isSpannerNode&&e.currentObject.isDeleted&&e.currentObject.type==e.ObjectExplorerNodeType.Index),m(1),p("ngIf",e.currentObject.isSpannerNode&&"indexName"!==e.currentObject.type&&"sequenceName"!==e.currentObject.type&&!e.currentObject.isDeleted),m(1),p("ngIf",e.currentObject.isSpannerNode&&e.currentObject.isDeleted&&e.currentObject.type==e.ObjectExplorerNodeType.Table),m(1),p("ngIf",e.interleaveParentName&&e.currentObject.isSpannerNode),m(2),p("ngClass",ri(21,Cf,e.isMiddleColumnCollapse?"display":"hidden")),m(2),p("ngClass",ri(23,Cf,e.isMiddleColumnCollapse?"hidden":"display")),m(2),p("ngIf","tableName"===e.currentObject.type),m(1),p("ngIf","indexName"===e.currentObject.type),m(1),p("ngIf","sequenceName"===e.currentObject.type&&e.autoGenSupported),m(2),p("ngIf",e.isEditMode||e.isPkEditMode||e.isFkEditMode),m(1),p("ngIf",e.isEditMode&&0===e.currentTabIndex),m(1),p("ngIf",e.isPkEditMode&&1===e.currentTabIndex),m(1),p("ngIf",e.isFkEditMode&&2===e.currentTabIndex),m(1),p("ngIf",e.isIndexEditMode&&-1===e.currentTabIndex),m(1),p("ngIf",e.isSequenceEditMode&&-1===e.currentTabIndex)}}let Kae=(()=>{class t{constructor(e,i,o,r,a,s,c,h){this.data=e,this.dialog=i,this.snackbar=o,this.conversion=r,this.sidenav=a,this.tableUpdatePubSub=s,this.fb=c,this.fetchSerice=h,this.currentObject=null,this.typeMap={},this.defaultTypeMap={},this.autoGenMap={},this.ddlStmts={},this.fkData=[],this.tableData=[],this.currentDatabase="spanner",this.indexData=[],this.sequenceData={},this.srcDbName=localStorage.getItem(Ni.SourceDbName),this.updateSidebar=new Fe,this.ObjectExplorerNodeType=Bt,this.conv={},this.interleaveParentName=null,this.localTableData=[],this.localIndexData=[],this.localSequenceData={},this.isMiddleColumnCollapse=!1,this.isPostgreSQLDialect=!1,this.processedAutoGenMap={},this.sequenceKinds=[],this.autoGenSupported=!1,this.foreignKeyActionsSupported=!1,this.srcDisplayedColumns=["srcOrder","srcColName","srcDataType","srcColMaxLength","srcIsPk","srcIsNotNull"],this.spDisplayedColumns=["spColName","spDataType","spColMaxLength","spIsPk","spIsNotNull","dropButton"],this.displayedFkColumns=["srcName","srcColumns","srcReferTable","srcReferColumns","spName","spColumns","spReferTable","spReferColumns","dropButton"],this.displayedPkColumns=["srcOrder","srcColName","srcDataType","srcIsPk","srcIsNotNull","spOrder","spColName","spDataType","spIsPk","spIsNotNull","dropButton"],this.indexDisplayedColumns=["srcIndexColName","srcSortBy","srcIndexOrder","spIndexColName","spSortBy","spIndexOrder","dropButton"],this.sequenceDisplayedColumns=["spSeqName","spSequenceKind","spSkipRangeMin","spSkipRangeMax","spStartWithCounter"],this.spDataSource=[],this.srcDataSource=[],this.fkDataSource=[],this.pkDataSource=[],this.pkData=[],this.isPkEditMode=!1,this.isEditMode=!1,this.isFkEditMode=!1,this.isIndexEditMode=!1,this.isSequenceEditMode=!1,this.isObjectSelected=!1,this.srcRowArray=this.fb.array([]),this.spRowArray=this.fb.array([]),this.pkArray=this.fb.array([]),this.fkArray=this.fb.array([]),this.isSpTableSuggesstionDisplay=[],this.spTableSuggestion=[],this.currentTabIndex=0,this.addedColumnName="",this.droppedColumns=[],this.droppedSourceColumns=[],this.pkColumnNames=[],this.indexColumnNames=[],this.shardIdCol="",this.addColumnForm=new Yt({columnName:new U("",[J.required])}),this.addIndexKeyForm=new Yt({columnName:new U("",[J.required]),ascOrDesc:new U("",[J.required])}),this.addedPkColumnName="",this.addPkColumnForm=new Yt({columnName:new U("",[J.required])}),this.pkObj={},this.dataTypesWithColLen=mn.DataTypes,this.spColspan=6,this.srcColspan=6}ngOnInit(){this.data.conv.subscribe({next:e=>{this.conv=e,this.isPostgreSQLDialect="postgresql"===this.conv.SpDialect}}),this.conv.DatabaseType&&(this.srcDbName=yl(this.conv.DatabaseType)),this.autoGenSupported=$A.includes(this.srcDbName),(this.srcDbName==$o.MySQL||this.srcDbName==$o.Postgres)&&(this.foreignKeyActionsSupported=!0)}ngOnChanges(e){this.fkData=e.fkData?.currentValue||this.fkData,this.currentObject=e.currentObject?.currentValue||this.currentObject,this.tableData=e.tableData?.currentValue||this.tableData,this.indexData=e.indexData?.currentValue||this.indexData,this.sequenceData=e.sequenceData?.currentValue||this.sequenceData,this.currentDatabase=e.currentDatabase?.currentValue||this.currentDatabase,this.currentTabIndex=this.currentObject?.type===Bt.Index||this.currentObject?.type===Bt.Sequence?-1:0,this.isObjectSelected=!!this.currentObject,this.pkData=this.conversion.getPkMapping(this.tableData),this.interleaveParentName=this.getInterleaveParentFromConv(),this.isEditMode=!1,this.isFkEditMode=!1,this.isIndexEditMode=!1,this.isSequenceEditMode=!1,this.isPkEditMode=!1,this.srcRowArray=this.fb.array([]),this.spRowArray=this.fb.array([]),this.droppedColumns=[],this.droppedSourceColumns=[],this.pkColumnNames=[],this.interleaveParentName=this.getInterleaveParentFromConv(),this.localTableData=JSON.parse(JSON.stringify(this.tableData)),this.localIndexData=JSON.parse(JSON.stringify(this.indexData)),this.localSequenceData=JSON.parse(JSON.stringify(this.sequenceData)),this.srcDbName==$o.MySQL&&!this.spDisplayedColumns.includes("spAutoGen")&&(this.spDisplayedColumns.splice(2,0,"spAutoGen"),this.displayedPkColumns.splice(8,0,"spAutoGen"),this.srcDisplayedColumns.splice(2,0,"srcAutoGen"),this.displayedPkColumns.splice(2,0,"srcAutoGen"),this.spColspan++,this.srcColspan++),this.foreignKeyActionsSupported&&!this.displayedFkColumns.includes("srcOnDelete")&&(this.displayedFkColumns.splice(4,0,"srcOnDelete","srcOnUpdate"),this.displayedFkColumns.splice(10,0,"spOnDelete","spOnUpdate")),this.currentObject?.type===Bt.Table?(this.checkIsInterleave(),this.interleaveObj=this.data.tableInterleaveStatus.subscribe(i=>{this.interleaveStatus=i}),this.setSrcTableRows(),this.setSpTableRows(),this.setColumnsToAdd(),this.setAddPkColumnList(),this.setPkOrder(),this.setPkRows(),this.setFkRows(),this.updateSpTableSuggestion(),this.setShardIdColumn(),this.processedAutoGenMap=WA(this.autoGenMap)):this.currentObject?.type===Bt.Index?(this.indexOrderValidation(),this.setIndexRows()):this.currentObject?.type===Bt.Sequence&&(this.setSequence(),this.fetchSerice.getSequenceKind().subscribe(i=>{this.sequenceKinds=i})),this.data.getSummary()}setSpTableRows(){this.spRowArray=this.fb.array([]),this.localTableData.forEach(e=>{if(e.spOrder){let i=new Yt({srcOrder:new U(e.srcOrder),srcColName:new U(e.srcColName),srcDataType:new U(e.srcDataType),srcIsPk:new U(e.srcIsPk),srcIsNotNull:new U(e.srcIsNotNull),srcColMaxLength:new U(e.srcColMaxLength),srcAutoGen:new U(e.srcAutoGen),spOrder:new U(e.srcOrder),spColName:new U(e.spColName,[J.required,J.pattern("^[a-zA-Z]([a-zA-Z0-9/_]*[a-zA-Z0-9])?")]),spDataType:new U(e.spDataType),spIsPk:new U(e.spIsPk),spIsNotNull:new U(e.spIsNotNull),spId:new U(e.spId),srcId:new U(e.srcId),spColMaxLength:new U(e.spColMaxLength,[J.required]),spAutoGen:new U(e.spAutoGen)});this.dataTypesWithColLen.indexOf(e.spDataType.toString())>-1?(i.get("spColMaxLength")?.setValidators([J.required,J.pattern("([1-9][0-9]*|MAX)")]),(void 0===e.spColMaxLength||"MAX"!==e.spColMaxLength&&(("STRING"===e.spDataType||"VARCHAR"===e.spDataType)&&"number"==typeof e.spColMaxLength&&e.spColMaxLength>mn.StringMaxLength||"BYTES"===e.spDataType&&"number"==typeof e.spColMaxLength&&e.spColMaxLength>mn.ByteMaxLength))&&i.get("spColMaxLength")?.setValue("MAX")):i.controls.spColMaxLength.clearValidators(),i.controls.spColMaxLength.updateValueAndValidity(),this.spRowArray.push(i)}}),this.spDataSource=this.spRowArray.controls}setSrcTableRows(){this.srcRowArray=this.fb.array([]),this.localTableData.forEach(e=>{if(""!=e.spColName)this.srcRowArray.push(new Yt({srcOrder:new U(e.srcOrder),srcColName:new U(e.srcColName),srcDataType:new U(e.srcDataType),srcIsPk:new U(e.srcIsPk),srcIsNotNull:new U(e.srcIsNotNull),srcColMaxLength:new U(e.srcColMaxLength),srcAutoGen:new U(e.srcAutoGen),spOrder:new U(e.spOrder),spColName:new U(e.spColName),spDataType:new U(e.spDataType),spIsPk:new U(e.spIsPk),spIsNotNull:new U(e.spIsNotNull),spId:new U(e.spId),srcId:new U(e.srcId),spColMaxLength:new U(e.spColMaxLength),spAutoGen:new U(e.spAutoGen)}));else{let i="",o=e.srcColMaxLength;void 0===this.defaultTypeMap[e.srcDataType]?(i="STRING",o="MAX"):i=this.defaultTypeMap[e.srcDataType].Name,""==o&&("STRING"==i||"BYTES"==i)&&(o="MAX"),this.srcRowArray.push(new Yt({srcOrder:new U(e.srcOrder),srcColName:new U(e.srcColName),srcDataType:new U(e.srcDataType),srcIsPk:new U(e.srcIsPk),srcIsNotNull:new U(e.srcIsNotNull),srcColMaxLength:new U(e.srcColMaxLength),srcAutoGen:new U(e.srcAutoGen),spOrder:new U(e.srcOrder),spColName:new U(e.srcColName),spDataType:new U(i),spIsPk:new U(e.srcIsPk),spIsNotNull:new U(e.srcIsNotNull),spColMaxLength:new U(o),spAutoGen:new U(e.spAutoGen)}))}}),this.srcDataSource=this.srcRowArray.controls}setColumnsToAdd(){this.localTableData.forEach(e=>{e.spColName||this.srcRowArray.value.forEach(i=>{e.srcColName==i.srcColName&&""!=i.srcColName&&(this.droppedColumns.push(i),this.droppedSourceColumns.push(i.srcColName))})})}toggleEdit(){this.currentTabIndex=0,this.isEditMode?(this.localTableData=JSON.parse(JSON.stringify(this.tableData)),this.setSpTableRows(),this.isEditMode=!1):this.isEditMode=!0}saveColumnTable(){this.isEditMode=!1;let i,e={UpdateCols:{}};this.conversion.pgSQLToStandardTypeTypeMap.subscribe(o=>{i=o}),this.spRowArray.value.forEach((o,r)=>{for(let a=0;amn.StringMaxLength||"BYTES"===o.spDataType&&"number"==typeof o.spColMaxLength&&o.spColMaxLength>mn.ByteMaxLength)&&(o.spColMaxLength="MAX"),"number"==typeof o.spColMaxLength&&(o.spColMaxLength=o.spColMaxLength.toString()),"STRING"!=o.spDataType&&"BYTES"!=o.spDataType&&"VARCHAR"!=o.spDataType&&(o.spColMaxLength=""),o.srcId==this.tableData[a].srcId&&""!=this.tableData[a].srcId){e.UpdateCols[this.tableData[a].srcId]={Add:""==this.tableData[a].spId,Rename:s.spColName!==o.spColName?o.spColName:"",NotNull:o.spIsNotNull?"ADDED":"REMOVED",Removed:!1,ToType:"postgresql"===this.conv.SpDialect?void 0===c?o.spDataType:c:o.spDataType,MaxColLength:o.spColMaxLength,AutoGen:o.spAutoGen};break}o.spId==this.tableData[a].spId&&(e.UpdateCols[this.tableData[a].spId]={Add:""==this.tableData[a].spId,Rename:s.spColName!==o.spColName?o.spColName:"",NotNull:o.spIsNotNull?"ADDED":"REMOVED",Removed:!1,ToType:"postgresql"===this.conv.SpDialect?void 0===c?o.spDataType:c:o.spDataType,MaxColLength:o.spColMaxLength,AutoGen:o.spAutoGen})}}),this.droppedColumns.forEach(o=>{e.UpdateCols[o.spId]={Add:!1,Rename:"",NotNull:"",Removed:!0,ToType:"",MaxColLength:"",AutoGen:{Name:"",GenerationType:""}}}),this.data.reviewTableUpdate(this.currentObject.id,e).subscribe({next:o=>{""==o?(this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("reviewChanges"),this.tableUpdatePubSub.setTableUpdateDetail({tableName:this.currentObject.name,tableId:this.currentObject.id,updateDetail:e}),this.isEditMode=!0):(this.dialog.open(Mo,{data:{message:o,type:"error"},maxWidth:"500px"}),this.isEditMode=!0)}})}addNewColumn(){this.dialog.open(fie,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:{dialect:this.conv.SpDialect,tableId:this.currentObject?.id}})}addNewSequence(){this.dialog.open(eP,GA),this.updateSidebar.emit(!0)}setColumn(e){this.addedColumnName=e}restoreColumn(){let e=this.tableData.map(r=>r.srcColName).indexOf(this.addedColumnName),i=this.droppedColumns.map(r=>r.srcColName).indexOf(this.addedColumnName);this.localTableData[e].spColName=this.droppedColumns[i].spColName,this.localTableData[e].spDataType=this.droppedColumns[i].spDataType,this.localTableData[e].spOrder=-1,this.localTableData[e].spIsPk=this.droppedColumns[i].spIsPk,this.localTableData[e].spIsNotNull=this.droppedColumns[i].spIsNotNull,this.localTableData[e].spColMaxLength=this.droppedColumns[i].spColMaxLength,this.localTableData[e].spAutoGen=this.droppedColumns[i].spAutoGen;let o=this.droppedColumns.map(r=>r.spColName).indexOf(this.addedColumnName);o>-1&&(this.droppedColumns.splice(o,1),this.droppedSourceColumns.indexOf(this.addedColumnName)>-1&&this.droppedSourceColumns.splice(this.droppedSourceColumns.indexOf(this.addedColumnName),1)),this.setSpTableRows()}dropColumn(e){let i=e.get("srcColName").value,o=e.get("srcId").value,r=e.get("spId").value,a=""!=o?o:r,s=e.get("spColName").value,c=this.getAssociatedIndexs(a);if(this.checkIfPkColumn(a)||0!=c.length){let h="",f="",b="";this.checkIfPkColumn(a)&&(h=" Primary key"),0!=c.length&&(f=` Index ${c}`),""!=h&&""!=f&&(b=" and"),this.dialog.open(Mo,{data:{message:`Column ${s} is a part of${h}${b}${f}. Remove the dependencies from respective tabs before dropping the Column. `,type:"error"},maxWidth:"500px"})}else this.spRowArray.value.forEach((h,f)=>{h.spId===r&&this.droppedColumns.push(h)}),this.dropColumnFromUI(r),""!==i&&this.droppedSourceColumns.push(i)}checkIfPkColumn(e){let i=!1;return null!=this.conv.SpSchema[this.currentObject.id].PrimaryKeys&&this.conv.SpSchema[this.currentObject.id].PrimaryKeys.map(o=>o.ColId).includes(e)&&(i=!0),i}setShardIdColumn(){void 0!==this.conv.SpSchema[this.currentObject.id]&&(this.shardIdCol=this.conv.SpSchema[this.currentObject.id].ShardIdColumn)}getAssociatedIndexs(e){let i=[];return null!=this.conv.SpSchema[this.currentObject.id].Indexes&&this.conv.SpSchema[this.currentObject.id].Indexes.forEach(o=>{o.Keys.map(r=>r.ColId).includes(e)&&i.push(o.Name)}),i}dropColumnFromUI(e){this.localTableData.forEach((i,o)=>{i.spId==e&&(i.spColName="",i.spDataType="",i.spIsNotNull=!1,i.spIsPk=!1,i.spOrder="",i.spColMaxLength="",i.spAutoGen={Name:"",GenerationType:""})}),this.setSpTableRows()}updateSpTableSuggestion(){this.isSpTableSuggesstionDisplay=[],this.spTableSuggestion=[],this.localTableData.forEach(e=>{const i=e.srcDataType,o=e.spDataType;let r="";this.typeMap[i]?.forEach(a=>{o==a.DiplayT&&(r=a.Brief)}),this.isSpTableSuggesstionDisplay.push(""!==r),this.spTableSuggestion.push(r)})}spTableEditSuggestionHandler(e,i){let r="";this.typeMap[this.localTableData[e].srcDataType].forEach(a=>{i==a.T&&(r=a.Brief)}),this.isSpTableSuggesstionDisplay[e]=""!==r,this.spTableSuggestion[e]=r}compareAutoGen(e,i){return e&&i?e.Name===i.Name&&e.GenerationType===i.GenerationType:e===i}setPkRows(){this.pkArray=this.fb.array([]),this.pkOrderValidation();var e=new Array,i=new Array;this.pkData.forEach(o=>{o.srcIsPk&&e.push({srcColName:o.srcColName,srcDataType:o.srcDataType,srcIsNotNull:o.srcIsNotNull,srcIsPk:o.srcIsPk,srcOrder:o.srcOrder,srcId:o.srcId,srcAutoGen:o.srcAutoGen}),o.spIsPk&&i.push({spColName:o.spColName,spDataType:o.spDataType,spIsNotNull:o.spIsNotNull,spIsPk:o.spIsPk,spOrder:o.spOrder,spId:o.spId,spAutoGen:o.spAutoGen})}),i.sort((o,r)=>o.spOrder-r.spOrder);for(let o=0;oMath.min(e.length,i.length))for(let o=Math.min(e.length,i.length);oMath.min(e.length,i.length))for(let o=Math.min(e.length,i.length);or.spColName).indexOf(this.addedPkColumnName),i=this.localTableData[e],o=1;this.localTableData[e].spIsPk=!0,this.pkData=[],this.pkData=this.conversion.getPkMapping(this.localTableData),e=this.pkData.findIndex(r=>r.srcId===i.srcId||r.spId==i.spId),this.pkArray.value.forEach(r=>{r.spIsPk&&(o+=1);for(let a=0;a{i.spIsPk&&e.push(i.spColName)});for(let i=0;i{if(this.pkData[i].spId===this.conv.SpSchema[this.currentObject.id].PrimaryKeys[i].ColId)this.pkData[i].spOrder=this.conv.SpSchema[this.currentObject.id].PrimaryKeys[i].Order;else{let o=this.conv.SpSchema[this.currentObject.id].PrimaryKeys.map(r=>r.ColId).indexOf(e.spId);e.spOrder=this.conv.SpSchema[this.currentObject.id].PrimaryKeys[o]?.Order}}:(e,i)=>{let o=this.conv.SpSchema[this.currentObject.id]?.PrimaryKeys.map(r=>r.ColId).indexOf(e.spId);-1!==o&&(e.spOrder=this.conv.SpSchema[this.currentObject.id]?.PrimaryKeys[o].Order)})}pkOrderValidation(){let e=this.pkData.filter(i=>i.spIsPk).map(i=>Number(i.spOrder));if(e.sort((i,o)=>i-o),e[e.length-1]>e.length&&e.forEach((i,o)=>{this.pkData.forEach(r=>{r.spOrder==i&&(r.spOrder=o+1)})}),0==e[0]&&e[e.length-1]<=e.length){let i;for(let o=0;o{"number"==typeof o.spOrder&&o.spOrder{o.spIsPk&&i.push({ColId:o.spId,Desc:typeof this.conv.SpSchema[this.currentObject.id].PrimaryKeys.find(({ColId:r})=>r===o.spId)<"u"&&this.conv.SpSchema[this.currentObject.id].PrimaryKeys.find(({ColId:r})=>r===o.spId).Desc,Order:parseInt(o.spOrder)})}),this.pkObj.TableId=e,this.pkObj.Columns=i}togglePkEdit(){this.currentTabIndex=1,this.isPkEditMode?(this.localTableData=JSON.parse(JSON.stringify(this.tableData)),this.pkData=this.conversion.getPkMapping(this.tableData),this.setAddPkColumnList(),this.setPkOrder(),this.setPkRows(),this.isPkEditMode=!1):this.isPkEditMode=!0}savePk(){if(this.pkArray.value.forEach(e=>{for(let i=0;i{o&&this.data.removeInterleave(""!=this.conv.SpSchema[this.currentObject.id].ParentTable.Id?this.currentObject.id:this.conv.SpSchema[e].Id).pipe(Pt(1)).subscribe(a=>{this.updatePk()})}):this.updatePk()}}updatePk(){this.isPkEditMode=!1,this.data.updatePk(this.pkObj).subscribe({next:e=>{""==e?this.isEditMode=!1:(this.dialog.open(Mo,{data:{message:e,type:"error"},maxWidth:"500px"}),this.isPkEditMode=!0)}})}dropPk(e){let i=this.localTableData.map(a=>a.spColName).indexOf(e.value.spColName);this.localTableData[i].spId==(this.conv.SyntheticPKeys[this.currentObject.id]?this.conv.SyntheticPKeys[this.currentObject.id].ColId:"")?this.dialog.open(Mo,{data:{message:"Removing this synthetic id column from primary key will drop the column from the table",title:"Confirm removal of synthetic id",type:"warning"},maxWidth:"500px"}).afterClosed().subscribe(s=>{s&&this.dropPkHelper(i,e.value.spOrder)}):this.dropPkHelper(i,e.value.spOrder)}dropPkHelper(e,i){this.localTableData[e].spIsPk=!1,this.pkData=[],this.pkData=this.conversion.getPkMapping(this.localTableData),this.pkArray.value.forEach(o=>{for(let r=0;r{"number"==typeof o.spOrder&&o.spOrder>i&&(o.spOrder=Number(o.spOrder)-1)}),this.setAddPkColumnList(),this.setPkRows()}setFkRows(){this.fkArray=this.fb.array([]);var e=new Array,i=new Array;this.fkData.forEach(o=>{e.push({srcName:o.srcName,srcColumns:o.srcColumns,srcRefTable:o.srcReferTable,srcRefColumns:o.srcReferColumns,srcOnDelete:o.srcOnDelete,srcOnUpdate:o.srcOnUpdate,Id:o.srcFkId}),""!=o.spName&&i.push({spName:o.spName,spColumns:o.spColumns,spRefTable:o.spReferTable,spRefColumns:o.spReferColumns,spOnDelete:o.spOnDelete,spOnUpdate:o.spOnUpdate,Id:o.spFkId,spColIds:o.spColIds,spReferColumnIds:o.spReferColumnIds,spReferTableId:o.spReferTableId})});for(let o=0;oMath.min(e.length,i.length))for(let o=Math.min(e.length,i.length);o{e.push({Name:i.spName,ColIds:i.spColIds,ReferTableId:i.spReferTableId,ReferColumnIds:i.spReferColumnIds,OnDelete:i.spOnDelete,OnUpdate:i.spOnUpdate,Id:i.spFkId})}),this.data.updateFkNames(this.currentObject.id,e).subscribe({next:i=>{""==i?this.isFkEditMode=!1:this.dialog.open(Mo,{data:{message:i,type:"error"},maxWidth:"500px"})}})}dropFk(e){this.fkData.forEach(i=>{i.spName==e.get("spName").value&&(i.spName="",i.spColumns=[],i.spReferTable="",i.spReferColumns=[],i.spColIds=[],i.spReferColumnIds=[],i.spReferTableId="",i.spOnDelete="",i.spOnUpdate="")}),this.setFkRows()}getRemovedFkIndex(e){let i=-1;return this.fkArray.value.forEach((o,r)=>{o.spName===e.get("spName").value&&(i=r)}),i}removeInterleave(){this.data.removeInterleave(this.currentObject.id).pipe(Pt(1)).subscribe(i=>{""===i&&this.snackbar.openSnackBar("Interleave removed and foreign key restored successfully","Close",5)})}checkIsInterleave(){this.currentObject&&!this.currentObject?.isDeleted&&this.currentObject?.isSpannerNode&&this.data.getInterleaveConversionForATable(this.currentObject.id)}setInterleave(){this.data.setInterleave(this.currentObject.id)}getInterleaveParentFromConv(){return this.currentObject?.type===Bt.Table&&this.currentObject.isSpannerNode&&!this.currentObject.isDeleted&&""!=this.conv.SpSchema[this.currentObject.id].ParentTable.Id?this.conv.SpSchema[this.conv.SpSchema[this.currentObject.id].ParentTable.Id]?.Name:null}setIndexRows(){this.spRowArray=this.fb.array([]);const e=this.localIndexData.map(i=>i.spColName?i.spColName:"").filter(i=>""!=i);this.indexColumnNames=this.conv.SpSchema[this.currentObject.parentId]?.ColIds?.filter(i=>!e.includes(this.conv.SpSchema[this.currentObject.parentId]?.ColDefs[i]?.Name)).map(i=>this.conv.SpSchema[this.currentObject.parentId]?.ColDefs[i]?.Name),this.localIndexData.forEach(i=>{this.spRowArray.push(new Yt({srcOrder:new U(i.srcOrder),srcColName:new U(i.srcColName),srcDesc:new U(i.srcDesc),spOrder:new U(i.spOrder),spColName:new U(i.spColName,[J.required,J.pattern("^[a-zA-Z]([a-zA-Z0-9/_]*[a-zA-Z0-9])?")]),spDesc:new U(i.spDesc)}))}),this.spDataSource=this.spRowArray.controls}setIndexOrder(){this.spRowArray.value.forEach(e=>{for(let i=0;i""!=i.spColName).map(i=>Number(i.spOrder));if(e.sort((i,o)=>i-o),e[e.length-1]>e.length&&e.forEach((i,o)=>{this.localIndexData.forEach(r=>{""!=r.spColName&&r.spOrder==i&&(r.spOrder=o+1)})}),0==e[0]&&e[e.length-1]<=e.length){let i;for(let o=0;o{o.spOrder!!i.spColId).map(i=>({ColId:i.spColId,Desc:i.spDesc,Order:i.spOrder})),Id:this.currentObject.id}),0==e[0].Keys.length?this.dropIndex():(this.data.updateIndex(this.currentObject?.parentId,e).subscribe({next:i=>{""==i?this.isEditMode=!1:(this.dialog.open(Mo,{data:{message:i,type:"error"},maxWidth:"500px"}),this.isIndexEditMode=!0)}}),this.addIndexKeyForm.controls.columnName.setValue(""),this.addIndexKeyForm.controls.ascOrDesc.setValue(""),this.addIndexKeyForm.markAsUntouched(),this.data.getSummary(),this.isIndexEditMode=!1)}saveSequence(){this.spRowArray.value.forEach(e=>{this.data.updateSequence({Name:e.spSeqName?e.spSeqName:"",Id:this.currentObject.id,SequenceKind:e.spSequenceKind?e.spSequenceKind:"",SkipRangeMax:e.spSkipRangeMax?e.spSkipRangeMax:"",SkipRangeMin:e.spSkipRangeMin?e.spSkipRangeMin:"",StartWithCounter:e.spStartWithCounter?e.spStartWithCounter:""}).pipe(Pt(1)).subscribe(()=>{})}),this.isSequenceEditMode=!1}dropIndex(){this.dialog.open(j0,{width:"35vw",minWidth:"450px",maxWidth:"600px",data:{name:this.currentObject?.name,type:Qa.Index}}).afterClosed().subscribe(i=>{i===Qa.Index&&(this.data.dropIndex(this.currentObject.parentId,this.currentObject.id).pipe(Pt(1)).subscribe(o=>{""===o&&(this.isObjectSelected=!1,this.updateSidebar.emit(!0))}),this.currentObject=null)})}dropSequence(){let e=wJ;e.data={name:this.currentObject?.name,type:Qa.Sequence},this.dialog.open(j0,e).afterClosed().subscribe(o=>{o===Qa.Sequence&&(this.data.dropSequence(this.currentObject.id).pipe(Pt(1)).subscribe(r=>{""===r&&(this.isObjectSelected=!1,this.updateSidebar.emit(!0))}),this.currentObject=null)})}restoreIndex(){this.data.restoreIndex(this.currentObject.parentId,this.currentObject.id).pipe(Pt(1)).subscribe(o=>{""===o&&(this.isObjectSelected=!1)}),this.currentObject=null}dropIndexKey(e){this.localIndexData[e].srcColName?(this.localIndexData[e].spColName="",this.localIndexData[e].spColId="",this.localIndexData[e].spDesc="",this.localIndexData[e].spOrder=""):this.localIndexData.splice(e,1),this.setIndexRows()}addIndexKey(){let e=0;this.localIndexData.forEach(i=>{i.spColName&&(e+=1)}),this.localIndexData.push({spColName:this.addIndexKeyForm.value.columnName,spDesc:"desc"===this.addIndexKeyForm.value.ascOrDesc,spOrder:e+1,srcColName:"",srcDesc:void 0,srcOrder:"",srcColId:void 0,spColId:this.currentObject?this.conversion.getColIdFromSpannerColName(this.addIndexKeyForm.value.columnName,this.currentObject.parentId,this.conv):""}),this.setIndexRows()}restoreSpannerTable(){this.data.restoreTable(this.currentObject.id).pipe(Pt(1)).subscribe(e=>{""===e&&(this.isObjectSelected=!1),this.data.getConversionRate(),this.data.getDdl()}),this.currentObject=null}dropTable(){this.dialog.open(j0,{width:"35vw",minWidth:"450px",maxWidth:"600px",data:{name:this.currentObject?.name,type:Qa.Table}}).afterClosed().subscribe(i=>{i===Qa.Table&&(this.data.dropTable(this.currentObject.id).pipe(Pt(1)).subscribe(r=>{""===r&&(this.isObjectSelected=!1,this.data.getConversionRate(),this.updateSidebar.emit(!0))}),this.currentObject=null)})}tabChanged(e){this.currentTabIndex=e.index}middleColumnToggle(){this.isMiddleColumnCollapse=!this.isMiddleColumnCollapse,this.sidenav.setMiddleColComponent(this.isMiddleColumnCollapse)}tableInterleaveWith(e){if(""!=this.conv.SpSchema[e].ParentTable.Id)return this.conv.SpSchema[e].ParentTable.Id;let i="";return Object.keys(this.conv.SpSchema).forEach(o=>{""!=this.conv.SpSchema[o].ParentTable.Id&&this.conv.SpSchema[o].ParentTable.Id==e&&(i=o)}),i}isPKPrefixModified(e,i){let o,r;this.conv.SpSchema[e].ParentTable.Id!=i?(o=this.pkObj.Columns,r=this.conv.SpSchema[i].PrimaryKeys):(r=this.pkObj.Columns,o=this.conv.SpSchema[i].PrimaryKeys);for(let a=0;a{class t{constructor(e,i){this.sidenavService=e,this.data=i,this.dataSource=[],this.currentDataSource=[],this.displayedColumns=["order","name","type","objectType","associatedObject","enabled","view"],this.currentObject=null,this.lengthOfRules=new Fe}ngOnInit(){this.dataSource=[],this.data.rule.subscribe({next:e=>{this.currentDataSource=e,this.updateRules()}})}ngOnChanges(){this.updateRules()}updateRules(){if(this.currentDataSource){let e=[],i=[];e=this.currentDataSource.filter(o=>"global_datatype_change"===o?.Type||"add_shard_id_primary_key"===o?.Type||"edit_column_max_length"===o?.Type&&"All table"===o?.AssociatedObjects),this.currentObject&&("tableName"===this.currentObject?.type||"indexName"===this.currentObject?.type)&&(i=this.currentDataSource.filter(o=>o?.AssociatedObjects===this.currentObject?.id||o?.AssociatedObjects===this.currentObject?.parentId||o?.AssociatedObjects===this.currentObject?.name||o?.AssociatedObjects===this.currentObject?.parent).map(o=>{let r="";return"tableName"===this.currentObject?.type?r=this.currentObject.name:"indexName"===this.currentObject?.type&&(r=this.currentObject.parent),o.AssociatedObjects=r,o})),this.dataSource=[...e,...i],this.lengthOfRules.emit(this.dataSource.length)}else this.dataSource=[],this.lengthOfRules.emit(0)}openSidenav(){this.sidenavService.openSidenav(),this.sidenavService.setSidenavComponent("rule"),this.sidenavService.setSidenavRuleType(""),this.sidenavService.setRuleData({}),this.sidenavService.setDisplayRuleFlag(!1)}viewSidenavRule(e){let i=[];for(let o=0;o{class t{constructor(e,i,o,r,a,s,c){this.data=e,this.conversion=i,this.dialog=o,this.sidenav=r,this.router=a,this.clickEvent=s,this.fetch=c,this.fkData=[],this.tableData=[],this.indexData=[],this.sequenceData={},this.typeMap=!1,this.defaultTypeMap=!1,this.conversionRates={},this.autoGenMap=!1,this.isLeftColumnCollapse=!1,this.isRightColumnCollapse=!0,this.isMiddleColumnCollapse=!0,this.isOfflineStatus=!1,this.spannerTree=[],this.srcTree=[],this.issuesAndSuggestionsLabel="ISSUES AND SUGGESTIONS",this.rulesLabel="RULES (0)",this.objectExplorerInitiallyRender=!1,this.srcDbName=localStorage.getItem(Ni.SourceDbName),this.conversionRateCount={good:0,ok:0,bad:0},this.conversionRatePercentages={good:0,ok:0,bad:0},this.currentDatabase="spanner",this.dialect="",this.currentObject=null}ngOnInit(){this.conversion.getStandardTypeToPGSQLTypemap(),this.conversion.getPGSQLToStandardTypeTypemap(),this.ddlsumconvObj=this.data.getRateTypemapAndSummary(),this.typemapObj=this.data.typeMap.subscribe(e=>{this.typeMap=e}),this.defaultTypemapObj=this.data.defaultTypeMap.subscribe(e=>{this.defaultTypeMap=e}),this.ddlObj=this.data.ddl.subscribe(e=>{this.ddlStmts=e}),this.sidenav.setMiddleColumnComponent.subscribe(e=>{this.isMiddleColumnCollapse=!e}),this.data.autoGenMap&&(this.autoGenMapObj=this.data.autoGenMap.subscribe(e=>{this.autoGenMap=e})),this.data.treeUpdate&&(this.rerenderObj=this.data.treeUpdate.subscribe(()=>{this.reRenderObjectExplorerSpanner()})),this.convObj=this.data.conv.subscribe(e=>{Object.keys(e.SrcSchema).length<=0&&this.router.navigate(["/"]);const i=this.isIndexAddedOrRemoved(e);e&&this.conv&&Object.keys(e?.SpSchema).length!=Object.keys(this.conv?.SpSchema).length&&(this.conv=e,this.reRenderObjectExplorerSpanner(),this.reRenderObjectExplorerSrc()),this.conv=e,this.conv.DatabaseType&&(this.srcDbName=yl(this.conv.DatabaseType)),i&&this.conversionRates&&this.reRenderObjectExplorerSpanner(),!this.objectExplorerInitiallyRender&&this.conversionRates&&(this.reRenderObjectExplorerSpanner(),this.reRenderObjectExplorerSrc(),this.objectExplorerInitiallyRender=!0),this.currentObject&&this.currentObject.type===Bt.Table&&(this.fkData=this.currentObject?this.conversion.getFkMapping(this.currentObject.id,e):[],this.tableData=this.currentObject?this.conversion.getColumnMapping(this.currentObject.id,e):[]),this.currentObject&&this.currentObject?.type===Bt.Index&&!i&&(this.indexData=this.conversion.getIndexMapping(this.currentObject.parentId,this.conv,this.currentObject.id)),this.dialect="postgresql"===this.conv.SpDialect?"PostgreSQL":"Google Standard SQL"}),this.converObj=this.data.conversionRate.subscribe(e=>{this.conversionRates=e,this.updateConversionRatePercentages(),this.conv?(this.reRenderObjectExplorerSpanner(),this.reRenderObjectExplorerSrc(),this.objectExplorerInitiallyRender=!0):this.objectExplorerInitiallyRender=!1}),this.data.isOffline.subscribe({next:e=>{this.isOfflineStatus=e}})}ngOnDestroy(){this.typemapObj.unsubscribe(),this.convObj.unsubscribe(),this.ddlObj.unsubscribe(),this.ddlsumconvObj.unsubscribe(),this.autoGenMapObj&&this.autoGenMapObj.unsubscribe(),this.rerenderObj&&this.rerenderObj.unsubscribe()}updateConversionRatePercentages(){let e=Object.keys(this.conversionRates).length;this.conversionRateCount={good:0,ok:0,bad:0},this.conversionRatePercentages={good:0,ok:0,bad:0};for(const i in this.conversionRates)"NONE"===this.conversionRates[i]||"EXCELLENT"===this.conversionRates[i]?this.conversionRateCount.good+=1:"GOOD"===this.conversionRates[i]||"OK"===this.conversionRates[i]?this.conversionRateCount.ok+=1:this.conversionRateCount.bad+=1;if(e>0)for(let i in this.conversionRatePercentages)this.conversionRatePercentages[i]=Number((this.conversionRateCount[i]/e*100).toFixed(2))}reRenderObjectExplorerSpanner(){this.spannerTree=this.conversion.createTreeNode(this.conv,this.conversionRates)}reRenderObjectExplorerSrc(){this.srcTree=this.conversion.createTreeNodeForSource(this.conv,this.conversionRates)}changeCurrentObject(e){e.type===Bt.Table?(this.currentObject=e,this.tableData=this.conversion.getColumnMapping(this.currentObject.id,this.conv),this.fkData=[],this.fkData=this.conversion.getFkMapping(this.currentObject.id,this.conv)):e.type===Bt.Index?(this.currentObject=e,this.indexData=this.conversion.getIndexMapping(e.parentId,this.conv,e.id)):e.type===Bt.Sequence?(this.currentObject=e,this.sequenceData=this.conversion.getSequenceMapping(e.id,this.conv)):this.currentObject=null}changeCurrentDatabase(e){this.currentDatabase=e}updateIssuesLabel(e){setTimeout(()=>{this.issuesAndSuggestionsLabel=`ISSUES AND SUGGESTIONS (${e})`})}updateRulesLabel(e){setTimeout(()=>{this.rulesLabel=`RULES (${e})`})}leftColumnToggle(){this.isLeftColumnCollapse=!this.isLeftColumnCollapse}middleColumnToggle(){this.isMiddleColumnCollapse=!this.isMiddleColumnCollapse}rightColumnToggle(){this.isRightColumnCollapse=!this.isRightColumnCollapse}openAssessment(){this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("assessment");let e="";if(localStorage.getItem(Ni.Type)==Pn.DirectConnect){let r=JSON.parse(localStorage.getItem(Ni.Config));e=r?.hostName+" : "+r?.port}else e=this.conv.DatabaseName;this.clickEvent.setViewAssesmentData({srcDbType:this.srcDbName,connectionDetail:e,conversionRates:this.conversionRateCount})}openSaveSessionSidenav(){this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("saveSession"),this.sidenav.setSidenavDatabaseName(this.conv.DatabaseName)}downloadSession(){qA(this.conv)}downloadArtifacts(){let e=new XA,i=`${this.conv.DatabaseName}`;this.fetch.getDStructuredReport().subscribe({next:o=>{let r=JSON.stringify(o).replace(/9223372036854776000/g,"9223372036854775807");e.file(i+"_migration_structuredReport.json",r),this.fetch.getDTextReport().subscribe({next:s=>{e.file(i+"_migration_textReport.txt",s),this.fetch.getDSpannerDDL().subscribe({next:c=>{e.file(i+"_spannerDDL.txt",c);let h=JSON.stringify(this.conv).replace(/9223372036854776000/g,"9223372036854775807");e.file(`${this.conv.SessionName}_${this.conv.DatabaseType}_${i}.json`,h),e.generateAsync({type:"blob"}).then(b=>{var y=document.createElement("a");y.href=URL.createObjectURL(b),y.download=`${i}_artifacts`,y.click()})}})}})}})}downloadStructuredReport(){var e=document.createElement("a");this.fetch.getDStructuredReport().subscribe({next:i=>{let o=JSON.stringify(i).replace(/9223372036854776000/g,"9223372036854775807");e.href="data:text/json;charset=utf-8,"+encodeURIComponent(o),e.download=`${this.conv.DatabaseName}_migration_structuredReport.json`,e.click()}})}downloadTextReport(){var e=document.createElement("a");this.fetch.getDTextReport().subscribe({next:i=>{e.href="data:text;charset=utf-8,"+encodeURIComponent(i),e.download=`${this.conv.DatabaseName}_migration_textReport.txt`,e.click()}})}downloadDDL(){var e=document.createElement("a");this.fetch.getDSpannerDDL().subscribe({next:i=>{e.href="data:text;charset=utf-8,"+encodeURIComponent(i),e.download=`${this.conv.DatabaseName}_spannerDDL.txt`,e.click()}})}updateSpannerTable(e){this.spannerTree=this.conversion.createTreeNode(this.conv,this.conversionRates,e.text,e.order)}updateSrcTable(e){this.srcTree=this.conversion.createTreeNodeForSource(this.conv,this.conversionRates,e.text,e.order)}isIndexAddedOrRemoved(e){if(this.conv){let i=0,o=0;return Object.entries(this.conv.SpSchema).forEach(r=>{i+=r[1].Indexes?r[1].Indexes.length:0}),Object.entries(e.SpSchema).forEach(r=>{o+=r[1].Indexes?r[1].Indexes.length:0}),i!==o}return!1}prepareMigration(){this.fetch.getTableWithErrors().subscribe({next:e=>{if(null!=e&&0!=e.length){let i="Please fix the errors for the following tables to move ahead: "+e.map(o=>o.Name).join(", ");this.dialog.open(Mo,{data:{message:i,type:"error",title:"Error in Spanner Draft"},maxWidth:"500px"})}else this.isOfflineStatus?this.dialog.open(Mo,{data:{message:"Please configure spanner project id and instance id to proceed",type:"error",title:"Configure Spanner"},maxWidth:"500px"}):0==Object.keys(this.conv.SpSchema).length?this.dialog.open(Mo,{data:{message:"Please restore some table(s) to proceed with the migration",type:"error",title:"All tables skipped"},maxWidth:"500px"}):this.router.navigate(["/prepare-migration"])}})}spannerTab(){this.clickEvent.setTabToSpanner()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Pi),_(Ls),_(Mr),_(Rn),_(hn),_(qo),_(pn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-workspace"]],decls:57,vars:61,consts:[[1,"header"],[1,"breadcrumb","vertical-center"],["mat-button","",1,"breadcrumb_source",3,"routerLink"],["mat-button","",1,"breadcrumb_workspace",3,"routerLink"],[1,"header_action"],["matTooltip","Connect to a spanner instance to run migration",3,"matTooltipDisabled"],["mat-button","",3,"click"],["mat-button","",3,"click",4,"ngIf"],[1,"artifactsButtons"],["mat-raised-button","","color","primary",1,"split-button-left",3,"click"],["mat-raised-button","","color","primary",1,"split-button-right",3,"matMenuTriggerFor"],["aria-hidden","false","aria-label","More options"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"click"],[1,"container"],[1,"summary"],[1,"spanner-tab-link",3,"click"],[1,"columns"],[1,"column-left",3,"ngClass"],[3,"spannerTree","srcTree","srcDbName","selectedDatabase","selectObject","updateSpannerTable","updateSrcTable","leftCollaspe","middleCollapse"],[1,"column-middle",3,"ngClass"],[3,"currentObject","tableData","indexData","sequenceData","typeMap","autoGenMap","ddlStmts","fkData","currentDatabase","defaultTypeMap","updateSidebar"],[1,"column-right",3,"ngClass"],[3,"ngClass","label"],[3,"currentObject","changeIssuesLabel"],[3,"currentObject","lengthOfRules"],["id","right-column-toggle-button",3,"click"],[3,"ngClass"]],template:function(i,o){if(1&i&&(d(0,"div")(1,"div",0)(2,"div",1)(3,"a",2),u(4,"Select Source"),l(),d(5,"span"),u(6,">"),l(),d(7,"a",3)(8,"b"),u(9),l()()(),d(10,"div",4)(11,"span",5)(12,"button",6),P("click",function(){return o.prepareMigration()}),u(13," PREPARE MIGRATION "),l()(),d(14,"button",6),P("click",function(){return o.openAssessment()}),u(15,"VIEW ASSESSMENT"),l(),g(16,_se,2,0,"button",7),d(17,"span",8)(18,"button",9),P("click",function(){return o.downloadArtifacts()}),u(19," DOWNLOAD ARTIFACTS "),l(),d(20,"button",10)(21,"mat-icon",11),u(22,"expand_more"),l()(),d(23,"mat-menu",12,13)(25,"button",14),P("click",function(){return o.downloadTextReport()}),u(26,"Download Text Report"),l(),d(27,"button",14),P("click",function(){return o.downloadStructuredReport()}),u(28,"Download Structured Report"),l(),d(29,"button",14),P("click",function(){return o.downloadSession()}),u(30,"Download Session File"),l(),d(31,"button",14),P("click",function(){return o.downloadDDL()}),u(32,"Download Spanner DDL"),l()()()()(),d(33,"div",15)(34,"div",16),u(35),S(36,"br"),u(37," To make schema changes go to "),d(38,"a",17),P("click",function(){return o.spannerTab()}),u(39,"Spanner Draft"),l(),u(40," pane. "),l()(),d(41,"div",18)(42,"div",19)(43,"app-object-explorer",20),P("selectedDatabase",function(a){return o.changeCurrentDatabase(a)})("selectObject",function(a){return o.changeCurrentObject(a)})("updateSpannerTable",function(a){return o.updateSpannerTable(a)})("updateSrcTable",function(a){return o.updateSrcTable(a)})("leftCollaspe",function(){return o.leftColumnToggle()})("middleCollapse",function(){return o.middleColumnToggle()}),l()(),d(44,"div",21)(45,"app-object-detail",22),P("updateSidebar",function(){return o.reRenderObjectExplorerSpanner()}),l()(),d(46,"div",23)(47,"mat-tab-group")(48,"mat-tab",24)(49,"app-summary",25),P("changeIssuesLabel",function(a){return o.updateIssuesLabel(a)}),l()(),d(50,"mat-tab",24)(51,"app-rule",26),P("lengthOfRules",function(a){return o.updateRulesLabel(a)}),l()()(),d(52,"button",27),P("click",function(){return o.rightColumnToggle()}),d(53,"mat-icon",28),u(54,"first_page"),l(),d(55,"mat-icon",28),u(56,"last_page"),l()()()()()),2&i){const r=At(24);m(3),p("routerLink","/"),m(4),p("routerLink","/workspace"),m(2),ye("Configure Schema (",o.dialect," Dialect)"),m(2),p("matTooltipDisabled",!o.isOfflineStatus),m(5),p("ngIf",!o.isOfflineStatus),m(4),p("matMenuTriggerFor",r),m(15),V_(" Estimation for ",o.srcDbName.toUpperCase()," to Spanner conversion: ",o.conversionRatePercentages.good,"% of tables can be converted automatically, ",o.conversionRatePercentages.ok,"% requires minimal conversion changes and ",o.conversionRatePercentages.bad,"% requires high complexity conversion changes. "),m(7),p("ngClass",ri(34,Tu,o.isLeftColumnCollapse?"left-column-collapse":"left-column-expand")),m(1),p("spannerTree",o.spannerTree)("srcTree",o.srcTree)("srcDbName",o.srcDbName),m(1),p("ngClass",function wD(t,n,e,i,o,r,a,s){const c=Bn()+t,h=Se(),f=Lo(h,c,e,i,o,r);return En(h,c+4,a)||f?vr(h,c+5,s?n.call(s,e,i,o,r,a):n(e,i,o,r,a)):ad(h,c+5)}(36,bse,o.isLeftColumnCollapse,!o.isLeftColumnCollapse,!o.isMiddleColumnCollapse,o.isRightColumnCollapse,!o.isRightColumnCollapse)),m(1),p("currentObject",o.currentObject)("tableData",o.tableData)("indexData",o.indexData)("sequenceData",o.sequenceData)("typeMap",o.typeMap)("autoGenMap",o.autoGenMap)("ddlStmts",o.ddlStmts)("fkData",o.fkData)("currentDatabase",o.currentDatabase)("defaultTypeMap",o.defaultTypeMap),m(1),p("ngClass",function SD(t,n,e,i,o,r,a,s,c){const h=Bn()+t,f=Se(),b=Lo(f,h,e,i,o,r);return us(f,h+4,a,s)||b?vr(f,h+6,c?n.call(c,e,i,o,r,a,s):n(e,i,o,r,a,s)):ad(f,h+6)}(42,vse,!o.isRightColumnCollapse&&!o.isLeftColumnCollapse,!o.isRightColumnCollapse&&o.isLeftColumnCollapse,o.isRightColumnCollapse,!o.isMiddleColumnCollapse,o.isMiddleColumnCollapse,!o.isMiddleColumnCollapse)),m(2),p("ngClass",ri(51,oP,ri(49,Tu,o.updateIssuesLabel)))("label",o.issuesAndSuggestionsLabel),m(1),p("currentObject",o.currentObject),m(1),p("ngClass",ri(55,oP,ri(53,Tu,o.updateRulesLabel)))("label",o.rulesLabel),m(1),p("currentObject",o.currentObject),m(2),p("ngClass",ri(57,Tu,o.isRightColumnCollapse?"display":"hidden")),m(2),p("ngClass",ri(59,Tu,o.isRightColumnCollapse?"hidden":"display"))}},dependencies:[nr,kt,Er,c2,Gt,vi,ol,na,rl,Up,a0,on,cte,nie,Kae,gse],styles:["app-object-detail[_ngcontent-%COMP%]{height:100%}.vertical-center[_ngcontent-%COMP%]{display:flex;align-items:center}.columns[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%;border-top:1px solid #d3d3d3;border-bottom:1px solid #d3d3d3;height:calc(100vh - 222px)}.artifactsButtons[_ngcontent-%COMP%]{white-space:nowrap}.container[_ngcontent-%COMP%]{padding:7px 20px;margin-bottom:20px}.container[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%]{font-weight:lighter}.container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 5px}.column-left[_ngcontent-%COMP%]{overflow:auto}.column-middle[_ngcontent-%COMP%]{width:48%;border-left:1px solid #d3d3d3;border-right:1px solid #d3d3d3;overflow:auto}.column-right[_ngcontent-%COMP%]{width:26%;position:relative;overflow:auto}.left-column-collapse[_ngcontent-%COMP%]{width:3%}.left-column-expand[_ngcontent-%COMP%]{width:26%}.middle-column-collapse[_ngcontent-%COMP%]{width:48%}.middle-column-expand[_ngcontent-%COMP%]{width:71%}.right-column-half-expand[_ngcontent-%COMP%]{width:80%}.right-column-collapse[_ngcontent-%COMP%]{width:26%}.right-column-full-expand[_ngcontent-%COMP%]{width:97%}.middle-column-hide[_ngcontent-%COMP%]{width:0%}.middle-column-full[_ngcontent-%COMP%]{width:100%}#right-column-toggle-button[_ngcontent-%COMP%]{border:none;background-color:inherit;position:absolute;top:10px;right:7px;z-index:100}#right-column-toggle-button[_ngcontent-%COMP%]:hover{cursor:pointer} .column-right .mat-mdc-tab-label .mat-mdc-tab-label-content{font-size:.8rem} .column-right .mat-mdc-tab-label{min-width:25px!important;padding:10px} .column-right .mat-mdc-tab-label.mat-mdc-tab-label-active{min-width:25px!important;padding:7px} .column-right .mat-mdc-tab-label-container{margin-right:40px} .column-right .mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-label-container{margin-right:0} .column-right .mat-mdc-tab-header-pagination-after{margin-right:40px}.split-button-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:none;padding-right:1px}.split-button-right[_ngcontent-%COMP%]{box-shadow:none;width:30px!important;min-width:unset!important;padding:0 2px;border-top-left-radius:0;border-bottom-left-radius:0;margin-right:7px}"]})}return t})(),Cse=(()=>{class t{constructor(e,i,o){this.formBuilder=e,this.dialogRef=i,this.data=o,this.region="",this.spannerInstance="",this.dialect="",this.region=o.Region,this.spannerInstance=o.Instance,this.dialect=o.Dialect,this.targetDetailsForm=this.formBuilder.group({targetDb:["",[J.required,J.pattern("^[a-z][a-z0-9-_]{0,28}[a-z0-9]$")]]}),this.targetDetailsForm.setValue({targetDb:localStorage.getItem(vt.TargetDB)})}ngOnInit(){}updateTargetDetails(){let e=this.targetDetailsForm.value;localStorage.setItem(vt.TargetDB,e.targetDb),localStorage.setItem(vt.Dialect,e.dialect),localStorage.setItem(le.IsTargetDetailSet,"true"),this.dialogRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(sr),_(nn),_(Zn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-target-details-form"]],decls:35,vars:5,consts:[["mat-dialog-content",""],[1,"target-detail-form",3,"formGroup"],["matTooltip","Schema & Schema and data migration: Specify new database name or existing database with empty schema. Data migration: Specify existing database with tables already created",1,"configure"],["appearance","outline",1,"full-width"],["matInput","","placeholder","Target Database","type","text","formControlName","targetDb","ng-value","targetDetails.TargetDB"],[1,"container",2,"display","inline"],["href","https://cloud.google.com/spanner/docs/reference/standard-sql/data-definition-language#naming_conventions"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),u(3,"Spanner Database Details"),d(4,"mat-icon",2),u(5," info"),l()(),d(6,"mat-form-field",3)(7,"mat-label"),u(8,"Spanner Database"),l(),S(9,"input",4),d(10,"mat-hint")(11,"div",5),u(12," Min. 2 characters and Max. 30 characters. "),d(13,"a",6),u(14,"More Details"),l()()()(),S(15,"br")(16,"br"),d(17,"b"),u(18,"Region:"),l(),u(19),S(20,"br")(21,"br"),d(22,"b"),u(23,"Spanner Instance:"),l(),u(24),S(25,"br")(26,"br"),d(27,"b"),u(28,"Dialect:"),l(),u(29),l(),d(30,"div",7)(31,"button",8),u(32,"Cancel"),l(),d(33,"button",9),P("click",function(){return o.updateTargetDetails()}),u(34," Save "),l()()()),2&i&&(m(1),p("formGroup",o.targetDetailsForm),m(18),ye(" ",o.region," "),m(5),ye(" ",o.spannerInstance," "),m(5),ye(" ",o.dialect," "),m(4),p("disabled",!o.targetDetailsForm.valid))},dependencies:[Gt,vi,_i,gi,Is,Fi,tn,pi,li,Mi,fi,Ai,Sn,co,lo,on],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{white-space:nowrap;overflow:auto;text-overflow:ellipsis}"]})}return t})();function xse(t,n){if(1&t){const e=ge();d(0,"mat-radio-button",10),P("change",function(){const r=ne(e).$implicit;return oe(C().onItemChange(r.value))}),u(1),l()}if(2&t){const e=n.$implicit;p("value",e.value),m(1),ye(" ",e.display,"")}}function wse(t,n){if(1&t&&(d(0,"mat-option",14),u(1),l()),2&t){const e=n.$implicit;p("value",e.DisplayName),m(1),ye(" ",e.DisplayName," ")}}function Sse(t,n){if(1&t&&(d(0,"div")(1,"mat-form-field",11)(2,"mat-label"),u(3,"Select connection profile"),l(),d(4,"mat-select",12),g(5,wse,2,2,"mat-option",13),l()()()),2&t){const e=C();m(5),p("ngForOf",e.profileList)}}function Dse(t,n){1&t&&(d(0,"div")(1,"mat-form-field",15)(2,"mat-label"),u(3,"Connection profile name"),l(),S(4,"input",16),l()())}function kse(t,n){1&t&&(d(0,"div")(1,"mat-form-field",11)(2,"mat-label"),u(3,"Replication slot"),l(),S(4,"input",17),l(),S(5,"br"),d(6,"mat-form-field",11)(7,"mat-label"),u(8,"Publication name"),l(),S(9,"input",18),l()())}function Mse(t,n){if(1&t&&(d(0,"li",24)(1,"span",25),u(2),l(),d(3,"span")(4,"mat-icon",26),u(5,"file_copy"),l()()()),2&t){const e=n.$implicit;m(2),Ie(e),m(2),p("cdkCopyToClipboard",e)}}function Tse(t,n){if(1&t&&(d(0,"div",27)(1,"span",25),u(2,"Test connection failed"),l(),d(3,"mat-icon",28),u(4," error "),l()()),2&t){const e=C(3);m(3),p("matTooltip",e.errorMsg)}}function Ise(t,n){1&t&&(d(0,"mat-icon",29),u(1," check_circle "),l())}function Ese(t,n){if(1&t){const e=ge();d(0,"div")(1,"div")(2,"b"),u(3,"Copy the public IPs below, and use them to configure the network firewall to accept connections from them."),l(),d(4,"a",19),u(5,"Learn More"),l()(),S(6,"br"),g(7,Mse,6,2,"li",20),g(8,Tse,5,1,"div",21),S(9,"br"),d(10,"button",22),P("click",function(){return ne(e),oe(C(2).testConnection())}),u(11,"Test Connection"),l(),g(12,Ise,2,0,"mat-icon",23),l()}if(2&t){const e=C(2);m(7),p("ngForOf",e.ipList),m(1),p("ngIf",!e.testSuccess&&""!=e.errorMsg),m(2),p("disabled",!e.connectionProfileForm.valid),m(2),p("ngIf",e.testSuccess)}}function Ose(t,n){if(1&t&&(d(0,"div"),g(1,Ese,13,4,"div",6),l()),2&t){const e=C();m(1),p("ngIf",e.isSource)}}let Ase=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.snack=i,this.formBuilder=o,this.dialogRef=r,this.data=a,this.selectedProfile="",this.profileType="Source",this.profileList=[],this.ipList=[],this.selectedOption="new",this.profileOptions=[{value:"new",display:"Create a new connection profile"},{value:"existing",display:"Choose an existing connection profile"}],this.profileName="",this.errorMsg="",this.isSource=!1,this.sourceDatabaseType="",this.testSuccess=!1,this.testingSourceConnection=!1,this.isSource=a.IsSource,this.sourceDatabaseType=a.SourceDatabaseType,this.isSource||(this.profileType="Target"),this.connectionProfileForm=this.formBuilder.group({profileOption:["",J.required],newProfile:["",[J.pattern("^[a-z][a-z0-9-]{0,59}$")]],existingProfile:[],replicationSlot:[],publication:[]}),"postgres"==this.sourceDatabaseType&&this.isSource&&(this.connectionProfileForm.get("replicationSlot")?.addValidators([J.required]),this.connectionProfileForm.controls.replicationSlot.updateValueAndValidity(),this.connectionProfileForm.get("publication")?.addValidators([J.required]),this.connectionProfileForm.controls.publication.updateValueAndValidity()),this.getConnectionProfilesAndIps()}onItemChange(e){this.selectedOption=e,"new"==this.selectedOption?(this.connectionProfileForm.get("newProfile")?.setValidators([J.required]),this.connectionProfileForm.controls.existingProfile.clearValidators(),this.connectionProfileForm.controls.newProfile.updateValueAndValidity(),this.connectionProfileForm.controls.existingProfile.updateValueAndValidity()):(this.connectionProfileForm.controls.newProfile.clearValidators(),this.connectionProfileForm.get("existingProfile")?.addValidators([J.required]),this.connectionProfileForm.controls.newProfile.updateValueAndValidity(),this.connectionProfileForm.controls.existingProfile.updateValueAndValidity())}testConnection(){this.testingSourceConnection=!0,this.fetch.createConnectionProfile({Id:this.connectionProfileForm.value.newProfile,IsSource:this.isSource,ValidateOnly:!0}).subscribe({next:()=>{this.testingSourceConnection=!1,this.testSuccess=!0},error:o=>{this.testingSourceConnection=!1,this.testSuccess=!1,this.errorMsg=o.error}})}createConnectionProfile(){let e=this.connectionProfileForm.value;this.isSource&&(localStorage.setItem(vt.ReplicationSlot,e.replicationSlot),localStorage.setItem(vt.Publication,e.publication)),"new"===this.selectedOption?this.fetch.createConnectionProfile({Id:e.newProfile,IsSource:this.isSource,ValidateOnly:!1}).subscribe({next:()=>{this.isSource?(localStorage.setItem(le.IsSourceConnectionProfileSet,"true"),localStorage.setItem(vt.SourceConnProfile,e.newProfile)):(localStorage.setItem(le.IsTargetConnectionProfileSet,"true"),localStorage.setItem(vt.TargetConnProfile,e.newProfile)),this.dialogRef.close()},error:o=>{this.snack.openSnackBar(o.error,"Close"),this.dialogRef.close()}}):(this.isSource?(localStorage.setItem(le.IsSourceConnectionProfileSet,"true"),localStorage.setItem(vt.SourceConnProfile,e.existingProfile)):(localStorage.setItem(le.IsTargetConnectionProfileSet,"true"),localStorage.setItem(vt.TargetConnProfile,e.existingProfile)),this.dialogRef.close())}ngOnInit(){}getConnectionProfilesAndIps(){this.fetch.getConnectionProfiles(this.isSource).subscribe({next:e=>{this.profileList=e},error:e=>{this.snack.openSnackBar(e.error,"Close")}}),this.isSource&&this.fetch.getStaticIps().subscribe({next:e=>{this.ipList=e},error:e=>{this.snack.openSnackBar(e.error,"Close")}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(pn),_(Go),_(sr),_(nn),_(Zn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-connection-profile-form"]],decls:19,vars:9,consts:[["mat-dialog-content",""],[1,"conn-profile-form",3,"formGroup"],[1,"mat-h3","header-title"],[1,"radio-button-container"],["formControlName","profileOption",3,"ngModel","ngModelChange"],[3,"value","change",4,"ngFor","ngForOf"],[4,"ngIf"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],[3,"value","change"],["appearance","outline"],["formControlName","existingProfile","required","true","ng-value","selectedProfile",1,"input-field"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["appearance","outline","hintLabel","Name can include lower case letters, numbers and hyphens. Must start with a letter.",1,"new-connection-profile-input"],["matInput","","placeholder","Connection profile name","type","text","formControlName","newProfile","required","true"],["matInput","","placeholder","Replication slot","type","text","formControlName","replicationSlot","required","true"],["matInput","","placeholder","Publication name","type","text","formControlName","publication","required","true"],["href","https://cloud.google.com/datastream/docs/network-connectivity-options#ipallowlists"],["class","connection-form-container",4,"ngFor","ngForOf"],["class","failure",4,"ngIf"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"],["class","success","matTooltip","Test connection successful","matTooltipPosition","above",4,"ngIf"],[1,"connection-form-container"],[1,"left-text"],["matTooltip","Copy",1,"icon","copy",3,"cdkCopyToClipboard"],[1,"failure"],["matTooltipPosition","above",1,"icon","error",3,"matTooltip"],["matTooltip","Test connection successful","matTooltipPosition","above",1,"success"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"span",2),u(3),l(),S(4,"br"),d(5,"div",3)(6,"mat-radio-group",4),P("ngModelChange",function(a){return o.selectedOption=a}),g(7,xse,2,2,"mat-radio-button",5),l()(),S(8,"br"),g(9,Sse,6,1,"div",6),g(10,Dse,5,0,"div",6),S(11,"br"),g(12,kse,10,0,"div",6),g(13,Ose,2,1,"div",6),d(14,"div",7)(15,"button",8),u(16,"Cancel"),l(),d(17,"button",9),P("click",function(){return o.createConnectionProfile()}),u(18," Save "),l()()()()),2&i&&(m(1),p("formGroup",o.connectionProfileForm),m(2),ye("",o.profileType," Connection Profile"),m(3),p("ngModel",o.selectedOption),m(1),p("ngForOf",o.profileOptions),m(2),p("ngIf","existing"===o.selectedOption),m(1),p("ngIf","new"===o.selectedOption),m(2),p("ngIf",o.isSource&&"postgres"==o.sourceDatabaseType),m(1),p("ngIf","new"===o.selectedOption),m(4),p("disabled",!o.connectionProfileForm.valid||!o.testSuccess&&"new"===o.selectedOption&&o.isSource))},dependencies:[qi,kt,Gt,vi,_i,gi,Fi,An,un,tn,pi,li,Mi,so,fi,Ai,Sn,co,lo,on,Qp,Xp,g0],styles:[".icon[_ngcontent-%COMP%]{font-size:15px}.connection-form-container[_ngcontent-%COMP%]{display:block}.left-text[_ngcontent-%COMP%]{width:40%;display:inline-block}"]})}return t})();function Pse(t,n){if(1&t){const e=ge();d(0,"mat-radio-button",6),P("change",function(){const r=ne(e).$implicit;return oe(C().onItemChange(r.value))}),u(1),l()}if(2&t){const e=n.$implicit;p("value",e.value),m(1),ye(" ",e.display,"")}}function Rse(t,n){1&t&&S(0,"mat-spinner",19),2&t&&p("diameter",25)}function Fse(t,n){1&t&&(d(0,"mat-icon",20),u(1,"check_circle"),l())}function Nse(t,n){1&t&&(d(0,"mat-icon",21),u(1,"cancel"),l())}function Lse(t,n){if(1&t&&(d(0,"div",22)(1,"span",23),u(2,"Source database connection failed"),l(),d(3,"mat-icon",24),u(4," error "),l()()),2&t){const e=C(2);m(3),p("matTooltip",e.errorMsg)}}function Bse(t,n){if(1&t){const e=ge();d(0,"div")(1,"form",7),P("ngSubmit",function(){return ne(e),oe(C().setSourceDBDetailsForDump())}),d(2,"h4",8),u(3,"Load from database dump"),l(),u(4," Dump File "),d(5,"mat-form-field",9)(6,"mat-label"),u(7,"File path"),l(),d(8,"input",10),P("click",function(){return ne(e),oe(At(13).click())}),l(),g(9,Rse,1,1,"mat-spinner",11),g(10,Fse,2,0,"mat-icon",12),g(11,Nse,2,0,"mat-icon",13),l(),d(12,"input",14,15),P("change",function(o){return ne(e),oe(C().handleFileInput(o))}),l(),S(14,"br"),d(15,"button",16),u(16,"CANCEL"),l(),d(17,"button",17),u(18," SAVE "),l(),g(19,Lse,5,1,"div",18),l()()}if(2&t){const e=C();m(1),p("formGroup",e.dumpFileForm),m(8),p("ngIf",e.uploadStart&&!e.uploadSuccess&&!e.uploadFail),m(1),p("ngIf",e.uploadStart&&e.uploadSuccess),m(1),p("ngIf",e.uploadStart&&e.uploadFail),m(6),p("disabled",!e.dumpFileForm.valid||!e.uploadSuccess),m(2),p("ngIf",""!=e.errorMsg)}}function Vse(t,n){if(1&t&&(d(0,"div",22)(1,"span",23),u(2,"Source database connection failed"),l(),d(3,"mat-icon",24),u(4," error "),l()()),2&t){const e=C(2);m(3),p("matTooltip",e.errorMsg)}}function jse(t,n){if(1&t){const e=ge();d(0,"div")(1,"form",7),P("ngSubmit",function(){return ne(e),oe(C().setSourceDBDetailsForDirectConnect())}),d(2,"h4",8),u(3,"Connect to Source Database"),l(),u(4," Connection Detail "),d(5,"mat-form-field",25)(6,"mat-label"),u(7,"Hostname"),l(),S(8,"input",26),l(),d(9,"mat-form-field",25)(10,"mat-label"),u(11,"Port"),l(),S(12,"input",27),d(13,"mat-error"),u(14," Only numbers are allowed. "),l()(),S(15,"br"),d(16,"mat-form-field",25)(17,"mat-label"),u(18,"User name"),l(),S(19,"input",28),l(),d(20,"mat-form-field",25)(21,"mat-label"),u(22,"Password"),l(),S(23,"input",29),l(),S(24,"br"),d(25,"mat-form-field",25)(26,"mat-label"),u(27,"Database Name"),l(),S(28,"input",30),l(),S(29,"br"),d(30,"button",16),u(31,"CANCEL"),l(),d(32,"button",17),u(33," SAVE "),l(),g(34,Vse,5,1,"div",18),l()()}if(2&t){const e=C();m(1),p("formGroup",e.directConnectForm),m(31),p("disabled",!e.directConnectForm.valid),m(2),p("ngIf",""!=e.errorMsg)}}let zse=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.dataService=i,this.snack=o,this.dialogRef=r,this.data=a,this.inputOptions=[{value:Pn.DumpFile,display:"Connect via dump file"},{value:Pn.DirectConnect,display:"Connect via direct connection"}],this.selectedOption=Pn.DirectConnect,this.sourceDatabaseEngine="",this.errorMsg="",this.fileToUpload=null,this.uploadStart=!1,this.uploadSuccess=!1,this.uploadFail=!1,this.dumpFileForm=new Yt({filePath:new U("",[J.required])}),this.directConnectForm=new Yt({hostName:new U("",[J.required]),port:new U("",[J.required]),userName:new U("",[J.required]),dbName:new U("",[J.required]),password:new U("")}),this.sourceDatabaseEngine=a}ngOnInit(){}setSourceDBDetailsForDump(){const{filePath:e}=this.dumpFileForm.value;this.fetch.setSourceDBDetailsForDump({Driver:this.sourceDatabaseEngine,Path:e}).subscribe({next:()=>{localStorage.setItem(le.IsSourceDetailsSet,"true"),this.dialogRef.close()},error:o=>{this.errorMsg=o.error}})}setSourceDBDetailsForDirectConnect(){const{hostName:e,port:i,userName:o,password:r,dbName:a}=this.directConnectForm.value;this.fetch.setSourceDBDetailsForDirectConnect({dbEngine:this.sourceDatabaseEngine,isSharded:!1,hostName:e,port:i,userName:o,password:r,dbName:a}).subscribe({next:()=>{localStorage.setItem(le.IsSourceDetailsSet,"true"),this.dialogRef.close()},error:c=>{this.errorMsg=c.error}})}handleFileInput(e){let i=e.target.files;i&&(this.fileToUpload=i.item(0),this.dumpFileForm.patchValue({filePath:this.fileToUpload?.name}),this.fileToUpload&&this.uploadFile())}uploadFile(){if(this.fileToUpload){this.uploadStart=!0,this.uploadFail=!1,this.uploadSuccess=!1;const e=new FormData;e.append("myFile",this.fileToUpload,this.fileToUpload?.name),this.dataService.uploadFile(e).subscribe(i=>{""==i?this.uploadSuccess=!0:this.uploadFail=!0})}}onItemChange(e){this.selectedOption=e,this.errorMsg=""}static#e=this.\u0275fac=function(i){return new(i||t)(_(pn),_(Pi),_(Go),_(nn),_(Zn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-source-details-form"]],decls:7,vars:4,consts:[[1,"radio-button-container"],[1,"radio-button-group",3,"ngModel","ngModelChange"],[3,"value","change",4,"ngFor","ngForOf"],[1,"connect-load-database-container"],[1,"form-container"],[4,"ngIf"],[3,"value","change"],[3,"formGroup","ngSubmit"],[1,"primary-header"],["appearance","outline"],["matInput","","placeholder","File path","name","filePath","type","text","formControlName","filePath","readonly","",3,"click"],["matSuffix","",3,"diameter",4,"ngIf"],["matSuffix","","class","success",4,"ngIf"],["matSuffix","","class","danger",4,"ngIf"],["hidden","","type","file",3,"change"],["file",""],["mat-button","","color","primary","mat-dialog-close",""],["mat-raised-button","","type","submit","color","primary",3,"disabled"],["class","failure",4,"ngIf"],["matSuffix","",3,"diameter"],["matSuffix","",1,"success"],["matSuffix","",1,"danger"],[1,"failure"],[1,"left-text"],["matTooltipPosition","above",1,"icon","error",3,"matTooltip"],["appearance","outline",1,"full-width"],["matInput","","placeholder","127.0.0.1","name","hostName","type","text","formControlName","hostName"],["matInput","","placeholder","3306","name","port","type","text","formControlName","port"],["matInput","","placeholder","root","name","userName","type","text","formControlName","userName"],["matInput","","name","password","type","password","formControlName","password"],["matInput","","name","dbname","type","text","formControlName","dbName"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-radio-group",1),P("ngModelChange",function(a){return o.selectedOption=a}),g(2,Pse,2,2,"mat-radio-button",2),l()(),d(3,"div",3)(4,"div",4),g(5,Bse,20,6,"div",5),g(6,jse,35,3,"div",5),l()()),2&i&&(m(1),p("ngModel",o.selectedOption),m(1),p("ngForOf",o.inputOptions),m(3),p("ngIf","dumpFile"===o.selectedOption),m(1),p("ngIf","directConnect"===o.selectedOption))},dependencies:[qi,kt,Gt,vi,_i,gi,wy,Sy,Fi,tn,pi,li,Mi,fi,Ai,Sn,on,Jc,Qp,Xp,Cl]})}return t})();function Hse(t,n){1&t&&(d(0,"div"),S(1,"br"),d(2,"span",7),S(3,"mat-spinner",8),l(),d(4,"span",9),u(5,"Cleaning up resources"),l(),S(6,"br"),l()),2&t&&(m(3),p("diameter",20))}let Use=(()=>{class t{constructor(e,i,o,r){this.data=e,this.fetch=i,this.snack=o,this.dialogRef=r,this.sourceAndTargetDetails={SpannerDatabaseName:"",SpannerDatabaseUrl:"",SourceDatabaseName:"",SourceDatabaseType:""},this.cleaningUp=!1,this.sourceAndTargetDetails={SourceDatabaseName:e.SourceDatabaseName,SourceDatabaseType:e.SourceDatabaseType,SpannerDatabaseName:e.SpannerDatabaseName,SpannerDatabaseUrl:e.SpannerDatabaseUrl}}ngOnInit(){}cleanUpJobs(){this.cleaningUp=!0,this.fetch.cleanUpStreamingJobs().subscribe({next:()=>{this.cleaningUp=!1,this.snack.openSnackBar("Dataflow and datastream jobs will be cleaned up","Close"),this.dialogRef.close()},error:e=>{this.cleaningUp=!1,this.snack.openSnackBar(e.error,"Close")}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(Zn),_(pn),_(Go),_(nn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-end-migration"]],decls:46,vars:7,consts:[[1,"end-migration-dialog"],["target","_blank",3,"href"],["href","https://github.com/GoogleCloudPlatform/professional-services-data-validator","target","_blank"],[4,"ngIf"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close","",3,"disabled"],["mat-raised-button","","color","primary",3,"disabled","click"],[1,"spinner"],[3,"diameter"],[1,"spinner-small-text"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h2"),u(2,"End Migration"),l(),d(3,"div")(4,"b"),u(5,"Source database:"),l(),u(6),S(7,"br"),d(8,"b"),u(9,"Spanner database:"),l(),d(10,"a",1),u(11),l()(),S(12,"br"),d(13,"div")(14,"b"),u(15,"Please follow these steps to complete the migration:"),l(),d(16,"ol")(17,"li"),u(18,"Validate that the schema has been created on Spanner as per the configuration"),l(),d(19,"li"),u(20,"Validate the data has been copied from the Source to Spanner. You can use the "),d(21,"a",2),u(22,"Data Validation Tool"),l(),u(23," to help with this process."),l(),d(24,"li"),u(25,"Stop the writes to the source database. "),d(26,"b"),u(27,"This will initiate a period of downtime."),l()(),d(28,"li"),u(29,"Wait for any incremental writes on source since the validation started on Spanner to catch up with the source. This can be done by periodically checking the Spanner Database for the most recent updates on source."),l(),d(30,"li"),u(31,"Once the Source and Spanner are in sync, start the application with Spanner as the Database."),l(),d(32,"li"),u(33,"Perform smoke tests on your application to ensure it is working properly on Spanner"),l(),d(34,"li"),u(35,"Cutover the traffic to the application with Spanner as the Database. "),d(36,"b"),u(37,"This marks the end of the period of downtime"),l()(),d(38,"li"),u(39,"Cleanup the migration jobs by clicking the button below."),l()()(),g(40,Hse,7,1,"div",3),d(41,"div",4)(42,"button",5),u(43,"Cancel"),l(),d(44,"button",6),P("click",function(){return o.cleanUpJobs()}),u(45,"Clean Up"),l()()()),2&i&&(m(6),Rc(" ",o.sourceAndTargetDetails.SourceDatabaseName,"(",o.sourceAndTargetDetails.SourceDatabaseType,") "),m(4),p("href",o.sourceAndTargetDetails.SpannerDatabaseUrl,Fo),m(1),Ie(o.sourceAndTargetDetails.SpannerDatabaseName),m(29),p("ngIf",o.cleaningUp),m(2),p("disabled",o.cleaningUp),m(2),p("disabled",o.cleaningUp))},dependencies:[kt,Gt,Sn,lo,Cl]})}return t})(),$se=(()=>{class t{constructor(e,i){this.data=e,this.dialofRef=i,this.disablePresetFlags=!0,this.tunableFlagsForm=new Yt({vpcHostProjectId:new U(e.GCPProjectID,J.required),network:new U(""),subnetwork:new U(""),maxWorkers:new U("50",[J.required,J.pattern("^[1-9][0-9]*$")]),numWorkers:new U("1",[J.required,J.pattern("^[1-9][0-9]*$")]),machineType:new U("n1-standard-2",[J.required]),serviceAccountEmail:new U(""),additionalUserLabels:new U("",[J.pattern('^{("([0-9a-zA-Z_-]+)":"([0-9a-zA-Z_-]+)",?)+}$')]),kmsKeyName:new U("",[J.pattern("^projects\\/[^\\n\\r]+\\/locations\\/[^\\n\\r]+\\/keyRings\\/[^\\n\\r]+\\/cryptoKeys\\/[^\\n\\r]+$")]),customJarPath:new U("",[J.pattern("^gs:\\/\\/[^\\n\\r]+$")]),customClassName:new U(""),customParameter:new U("")}),this.presetFlagsForm=new Yt({dataflowProjectId:new U(e.GCPProjectID),dataflowLocation:new U(""),gcsTemplatePath:new U("",[J.pattern("^gs:\\/\\/[^\\n\\r]+$")])}),this.presetFlagsForm.disable()}ngOnInit(){}updateDataflowDetails(){let e=this.tunableFlagsForm.value;localStorage.setItem("network",e.network),localStorage.setItem("subnetwork",e.subnetwork),localStorage.setItem("vpcHostProjectId",e.vpcHostProjectId),localStorage.setItem("maxWorkers",e.maxWorkers),localStorage.setItem("numWorkers",e.numWorkers),localStorage.setItem("serviceAccountEmail",e.serviceAccountEmail),localStorage.setItem("machineType",e.machineType),localStorage.setItem("additionalUserLabels",e.additionalUserLabels),localStorage.setItem("kmsKeyName",e.kmsKeyName),localStorage.setItem("dataflowProjectId",this.presetFlagsForm.value.dataflowProjectId),localStorage.setItem("dataflowLocation",this.presetFlagsForm.value.dataflowLocation),localStorage.setItem("gcsTemplatePath",this.presetFlagsForm.value.gcsTemplatePath),localStorage.setItem("isDataflowConfigSet","true"),localStorage.setItem("customClassName",e.customClassName),localStorage.setItem("customJarPath",e.customJarPath),localStorage.setItem("customParameter",e.customParameter),this.dialofRef.close()}enablePresetFlags(){this.disablePresetFlags=!1,this.presetFlagsForm.enable()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Zn),_(nn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-dataflow-form"]],decls:129,vars:19,consts:[["mat-dialog-content",""],[1,"dataflow-form",3,"formGroup"],["matTooltip","Edit to run custom transformations",1,"mat-row"],["appearance","outline","matTooltip","Specify the GCS path for custom jar",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Custom JAR GCS Path","type","text","formControlName","customJarPath"],["appearance","outline","matTooltip","Specify the fully classified class name",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Fully Classified Class Name","type","text","formControlName","customClassName"],["appearance","outline","matTooltip","Specify the custom parameter required by the JAR",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Custom Parameters","type","text","formControlName","customParameter"],["matTooltip","Edit to run Dataflow in a VPC",1,"mat-row"],["appearance","outline","matTooltip","Specify the host project Id of the VPC network. For shared VPC, this needs to be edited to the correct host project id.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","VPC Host ProjectID","type","text","formControlName","vpcHostProjectId"],["href","https://cloud.google.com/vpc/docs/create-modify-vpc-networks#create-auto-network","target","_blank"],["appearance","outline","matTooltip","Specify the network name for the VPC",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","VPC Network Name","type","text","formControlName","network"],["appearance","outline","matTooltip","Specify the subnetwork name for the VPC. Provide only the subnetwork name and NOT the full URL for subnetwork.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","VPC Subnetwork Name","type","text","formControlName","subnetwork"],["matTooltip","Set performance parameters of the Dataflow job(s)",1,"mat-row"],["appearance","outline","matTooltip","Set maximum workers for the dataflow job(s). Default value: 50",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","50","type","text","formControlName","maxWorkers"],["appearance","outline","matTooltip","Set initial number of workers for the dataflow job(s). Default value: 1",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","1","type","text","formControlName","numWorkers"],["appearance","outline","matTooltip","The machine type to use for the job. Default machine type: n1-standard-2.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Machine Type","type","text","formControlName","machineType"],["href","https://cloud.google.com/compute/docs/machine-resource","target","_blank"],["appearance","outline","matTooltip","Set the service account to run the dataflow job(s) as",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Service Account Email","type","text","formControlName","serviceAccountEmail"],["appearance","outline","matTooltip",'Additional user labels to be specified for the job. Enter a json of "key": "value" pairs. Example: {"name": "wrench", "mass": "1kg", "count": "3" }.',1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Additional User Labels","type","text","formControlName","additionalUserLabels"],["appearance","outline","matTooltip","Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings //cryptoKeys/. Omit this field to use Google Managed Encryption Keys.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","KMS Key Name","type","text","formControlName","kmsKeyName"],["mat-button","",1,"edit-button",3,"disabled","click"],["appearance","outline","matTooltip","Specify the project to run the dataflow job in.",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Dataflow Project Id","type","text","formControlName","dataflowProjectId"],["appearance","outline","matTooltip","Specify the region to run the dataflow job in. It is recommended to keep the region same as Spanner region for performance. Example: us-central1",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Dataflow Location","type","text","formControlName","dataflowLocation"],["appearance","outline","matTooltip","Cloud Storage path to the template spec. Use this to run launch dataflow with custom templates. Example: gs://my-bucket/path/to/template",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","GCS Template Path","type","text","formControlName","gcsTemplatePath"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),u(3,"Tune Dataflow (Optional)"),l(),d(4,"h5"),u(5,"This form is optional and should only be edited to tune runtime environment for Dataflow."),l(),d(6,"mat-expansion-panel")(7,"mat-expansion-panel-header",2)(8,"span"),u(9,"Custom Transformations"),l()(),d(10,"div")(11,"mat-form-field",3)(12,"mat-label"),u(13,"Custom JAR GCS Path"),l(),S(14,"input",4),l(),S(15,"br"),d(16,"mat-form-field",5)(17,"mat-label"),u(18,"Custom Class Name"),l(),S(19,"input",6),l(),S(20,"br"),d(21,"mat-form-field",7)(22,"mat-label"),u(23,"Custom Parameter"),l(),S(24,"input",8),l()()(),S(25,"br"),d(26,"mat-expansion-panel")(27,"mat-expansion-panel-header",9)(28,"span"),u(29,"Networking"),l()(),d(30,"div")(31,"mat-form-field",10)(32,"mat-label"),u(33,"VPC Host ProjectID"),l(),S(34,"input",11),l(),S(35,"br"),d(36,"h5"),u(37," - Provide "),d(38,"b"),u(39,"ONLY"),l(),u(40," the VPC subnetwork if unsure about what VPC network to use. Dataflow chooses the network for you. "),S(41,"br"),u(42," - If you are using an "),d(43,"a",12),u(44,"auto mode network"),l(),u(45,", provide ONLY the network name and skip the VPC subnetwork. "),l(),d(46,"mat-form-field",13)(47,"mat-label"),u(48,"VPC Network"),l(),S(49,"input",14),l(),S(50,"br"),d(51,"mat-form-field",15)(52,"mat-label"),u(53,"VPC Subnetwork"),l(),S(54,"input",16),l()()(),S(55,"br"),d(56,"mat-expansion-panel")(57,"mat-expansion-panel-header",17)(58,"span"),u(59,"Performance"),l()(),d(60,"div")(61,"mat-form-field",18)(62,"mat-label"),u(63,"Max Workers"),l(),S(64,"input",19),l(),S(65,"br"),d(66,"mat-form-field",20)(67,"mat-label"),u(68,"Initial Number of Workers"),l(),S(69,"input",21),l(),S(70,"br"),d(71,"mat-form-field",22)(72,"mat-label"),u(73,"Machine Type"),l(),S(74,"input",23),l(),d(75,"h5"),u(76,"Find the list of all machine types "),d(77,"a",24),u(78,"here"),l(),u(79,"."),l()()(),S(80,"br"),d(81,"mat-form-field",25)(82,"mat-label"),u(83,"Service Account Email"),l(),S(84,"input",26),l(),S(85,"br"),d(86,"mat-form-field",27)(87,"mat-label"),u(88,"Additional User Labels"),l(),S(89,"input",28),l(),S(90,"br"),d(91,"mat-form-field",29)(92,"mat-label"),u(93,"KMS Key Name"),l(),S(94,"input",30),l()(),S(95,"hr"),d(96,"form",1)(97,"h2"),u(98," Preset Flags "),d(99,"span")(100,"button",31),P("click",function(){return o.enablePresetFlags()}),d(101,"mat-icon"),u(102,"edit"),l(),u(103," EDIT "),l()()(),d(104,"h5"),u(105,"These flags are set by SMT by default and "),d(106,"b"),u(107,"SHOULD NOT BE"),l(),u(108," modified unless running Dataflow in a non-standard configuration. To edit these parameters, click the edit button above."),l(),S(109,"br"),d(110,"mat-form-field",32)(111,"mat-label"),u(112,"Dataflow Project Id"),l(),S(113,"input",33),l(),S(114,"br"),d(115,"mat-form-field",34)(116,"mat-label"),u(117,"Dataflow Location"),l(),S(118,"input",35),l(),S(119,"br"),d(120,"mat-form-field",36)(121,"mat-label"),u(122,"GCS Template Path"),l(),S(123,"input",37),l()(),d(124,"div",38)(125,"button",39),u(126,"Cancel"),l(),d(127,"button",40),P("click",function(){return o.updateDataflowDetails()}),u(128," Save "),l()()()),2&i&&(m(1),p("formGroup",o.tunableFlagsForm),m(10),p("matTooltipPosition","right"),m(5),p("matTooltipPosition","right"),m(5),p("matTooltipPosition","right"),m(10),p("matTooltipPosition","right"),m(15),p("matTooltipPosition","right"),m(5),p("matTooltipPosition","right"),m(10),p("matTooltipPosition","right"),m(5),p("matTooltipPosition","right"),m(5),p("matTooltipPosition","right"),m(10),p("matTooltipPosition","right"),m(5),p("matTooltipPosition","right"),m(5),p("matTooltipPosition","right"),m(5),p("formGroup",o.presetFlagsForm),m(4),p("disabled",!o.disablePresetFlags),m(10),p("matTooltipPosition","right"),m(5),p("matTooltipPosition","right"),m(5),p("matTooltipPosition","right"),m(7),p("disabled",o.tunableFlagsForm.invalid||o.presetFlagsForm.invalid))},dependencies:[Gt,vi,_i,gi,Fi,tn,pi,li,Mi,fi,Ai,Gy,FE,Sn,co,lo,on],styles:[".edit-button[_ngcontent-%COMP%]{color:#3367d6}"]})}return t})();function Gse(t,n){1&t&&(d(0,"mat-form-field",8)(1,"mat-label"),u(2,"Max Concurrent CDC Tasks"),l(),S(3,"input",9),l()),2&t&&p("matTooltipPosition","right")}let qse=(()=>{class t{constructor(e,i){this.data=e,this.dialofRef=i,this.isCdcTuningSupported=!0,this.datastreamForm=new Yt({maxConcurrentBackfillTasks:new U("50",[J.required,J.pattern("^[1-9][0-9]*$"),J.min(1),J.max(50)]),maxConcurrentCdcTasks:new U("5",[J.required,J.pattern("^[1-9][0-9]*$"),J.min(1),J.max(50)])}),this.isCdcTuningSupported=e.sourceType!=$o.Postgres.toLowerCase()}ngOnInit(){}updateDatastreamDetails(){let e=this.datastreamForm.value;localStorage.setItem("maxConcurrentBackfillTasks",e.maxConcurrentBackfillTasks),localStorage.setItem("maxConcurrentCdcTasks",e.maxConcurrentCdcTasks),localStorage.setItem("isDatastreamConfigSet","true"),this.dialofRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Zn),_(nn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-tune-datastream-form"]],decls:17,vars:4,consts:[["mat-dialog-content",""],[1,"dataflow-form",3,"formGroup"],["appearance","outline","matTooltip","Set the max number of concurrent workers for Datastream backfill. Default: 50",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Max Concurrent Backfill Tasks","type","text","formControlName","maxConcurrentBackfillTasks"],["class","full-width","appearance","outline","matTooltip","Set the max number of concurrent workers for Datastream CDC. Default: 5",3,"matTooltipPosition",4,"ngIf"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],["appearance","outline","matTooltip","Set the max number of concurrent workers for Datastream CDC. Default: 5",1,"full-width",3,"matTooltipPosition"],["matInput","","placeholder","Max Concurrent CDC Tasks","type","text","formControlName","maxConcurrentCdcTasks"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),u(3,"Tune Datastream (Optional)"),l(),d(4,"h5"),u(5,"This form is optional and should only be edited to tune runtime environment for Datastream."),l(),d(6,"mat-form-field",2)(7,"mat-label"),u(8,"Max Concurrent Backfill Tasks"),l(),S(9,"input",3),l(),S(10,"br"),g(11,Gse,4,1,"mat-form-field",4),l(),d(12,"div",5)(13,"button",6),u(14,"Cancel"),l(),d(15,"button",7),P("click",function(){return o.updateDatastreamDetails()}),u(16," Save "),l()()()),2&i&&(m(1),p("formGroup",o.datastreamForm),m(5),p("matTooltipPosition","right"),m(5),p("ngIf",o.isCdcTuningSupported),m(4),p("disabled",!o.datastreamForm.valid))},dependencies:[kt,Gt,_i,gi,Fi,tn,pi,li,Mi,fi,Ai,Sn,co,lo,on]})}return t})();function Wse(t,n){1&t&&(d(0,"mat-form-field",7)(1,"mat-label"),u(2,"TTL in days"),l(),S(3,"input",8),l()),2&t&&p("matTooltipPosition","right")}let Kse=(()=>{class t{constructor(e){this.dialofRef=e,this.ttlInDaysSet=!1,this.gcsForm=new Yt({ttlInDays:new U("",[J.required,J.pattern("^([1-9][0-9]*$)"),J.min(1),J.max(1e8)])})}ngOnInit(){}updateGcsDetails(){this.ttlInDaysSet?(localStorage.setItem("ttlInDays",this.gcsForm.value.ttlInDays),localStorage.setItem("ttlInDaysSet","true")):(localStorage.setItem("ttlInDays","0"),localStorage.setItem("ttlInDaysSet","false")),localStorage.setItem("isGcsConfigSet","true"),this.dialofRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(nn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-tune-gcs-form"]],decls:15,vars:5,consts:[["mat-dialog-content",""],[1,"dataflow-form",3,"formGroup"],["color","primary","matTooltip","Set the TTL (in days) for GCS data written by Datastream. This sets the GCS lifecycle to delete the objects after specified number of days.",3,"matTooltipPosition","checked","change"],["class","ttl-input","appearance","outline","matTooltip","Set the TTL in days",3,"matTooltipPosition",4,"ngIf"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"],["appearance","outline","matTooltip","Set the TTL in days",1,"ttl-input",3,"matTooltipPosition"],["matInput","","type","text","formControlName","ttlInDays"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),u(3,"Tune Google Cloud Storage (Optional)"),l(),d(4,"h5"),u(5,"This form is optional and should only be edited to tune the Cloud Storage bucket used by Datastream to store Change Records, specified by the destination connection profile"),l(),d(6,"mat-checkbox",2),P("change",function(){return o.ttlInDaysSet=!o.ttlInDaysSet}),u(7," Set TTL for data "),l(),S(8,"br"),g(9,Wse,4,1,"mat-form-field",3),l(),d(10,"div",4)(11,"button",5),u(12,"Cancel"),l(),d(13,"button",6),P("click",function(){return o.updateGcsDetails()}),u(14," Save "),l()()()),2&i&&(m(1),p("formGroup",o.gcsForm),m(5),p("matTooltipPosition","right")("checked",o.ttlInDaysSet),m(3),p("ngIf",o.ttlInDaysSet),m(4),p("disabled",o.ttlInDaysSet&&o.gcsForm.invalid))},dependencies:[kt,Gt,_i,gi,Fi,tn,pi,li,Mi,fi,Ai,Sn,co,lo,on,Wp],styles:[".ttl-input[_ngcontent-%COMP%]{padding-left:10%}"]})}return t})(),Zse=(()=>{class t{constructor(e,i){this.data=e,this.dialofRef=i,this.gcloudCmd=e}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(Zn),_(nn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-equivalent-gcloud-command"]],decls:12,vars:2,consts:[["mat-dialog-content",""],["matTooltip","This is the gcloud command to launch the dataflow job with the same parameters. Can be used to re-run a dataflow job manually in case of failure.",1,"configure"],[1,"left-text"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","color","primary",3,"cdkCopyToClipboard"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"h2"),u(2,"Equivalent gcloud command line"),d(3,"mat-icon",1),u(4," info"),l()(),d(5,"span",2),u(6),l(),d(7,"div",3)(8,"button",4),u(9,"Close"),l(),d(10,"button",5),u(11,"Copy"),l()()()),2&i&&(m(6),Ie(o.gcloudCmd),m(4),p("cdkCopyToClipboard",o.gcloudCmd))},dependencies:[Gt,vi,Sn,co,lo,on,g0]})}return t})();function Yse(t,n){if(1&t&&(d(0,"mat-option",14),u(1),l()),2&t){const e=n.$implicit;p("value",e.value),m(1),ye(" ",e.displayName," ")}}function Qse(t,n){1&t&&(d(0,"div",15)(1,"mat-form-field",4)(2,"mat-label"),u(3,"Paste JSON Configuration"),l(),S(4,"textarea",16,17),l()())}function Xse(t,n){1&t&&(d(0,"div",18)(1,"mat-form-field",19)(2,"mat-label"),u(3,"Hostname"),l(),S(4,"input",20),l(),d(5,"mat-form-field",19)(6,"mat-label"),u(7,"Port"),l(),S(8,"input",21),d(9,"mat-error"),u(10," Only numbers are allowed. "),l()(),S(11,"br"),d(12,"mat-form-field",19)(13,"mat-label"),u(14,"User name"),l(),S(15,"input",22),l(),d(16,"mat-form-field",19)(17,"mat-label"),u(18,"Password"),l(),S(19,"input",23),l(),S(20,"br"),d(21,"mat-form-field",19)(22,"mat-label"),u(23,"Database Name"),l(),S(24,"input",24),l(),S(25,"br"),d(26,"mat-form-field",19)(27,"mat-label"),u(28,"Shard ID"),l(),S(29,"input",25),l(),S(30,"br"),l())}function Jse(t,n){if(1&t){const e=ge();d(0,"button",26),P("click",function(){return ne(e),oe(C().saveDetailsAndReset())}),u(1," ADD MORE SHARDS "),l()}2&t&&p("disabled",C().directConnectForm.invalid)}function ece(t,n){if(1&t&&(d(0,"div",27)(1,"span",28),u(2),l(),d(3,"mat-icon",29),u(4," error "),l()()),2&t){const e=C();m(2),Ie(e.errorMsg),m(1),p("matTooltip",e.errorMsg)}}let tce=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.snack=i,this.dataService=o,this.dialogRef=r,this.data=a,this.errorMsg="",this.shardConnDetailsList=[],this.sourceConnDetails={dbConfigs:[],isRestoredSession:""},this.shardSessionDetails={sourceDatabaseEngine:"",isRestoredSession:""},this.inputOptionsList=[{value:"text",displayName:"Text"},{value:"form",displayName:"Form"}],this.shardSessionDetails={sourceDatabaseEngine:a.sourceDatabaseEngine,isRestoredSession:a.isRestoredSession};let s={dbEngine:"",isSharded:!1,hostName:"",port:"",userName:"",password:"",dbName:""};localStorage.getItem(Ni.Type)==Pn.DirectConnect&&null!=localStorage.getItem(Ni.Config)&&(s=JSON.parse(localStorage.getItem(Ni.Config))),this.directConnectForm=new Yt({inputType:new U("form",[J.required]),textInput:new U(""),hostName:new U(s.hostName,[J.required]),port:new U(s.port,[J.required]),userName:new U(s.userName,[J.required]),dbName:new U(s.dbName,[J.required]),password:new U(s.password),shardId:new U("",[J.required])})}ngOnInit(){this.initFromLocalStorage()}initFromLocalStorage(){}setValidators(e){if("text"==e){for(const i in this.directConnectForm.controls)this.directConnectForm.get(i)?.clearValidators(),this.directConnectForm.get(i)?.updateValueAndValidity();this.directConnectForm.get("textInput")?.setValidators([J.required]),this.directConnectForm.controls.textInput.updateValueAndValidity()}else this.directConnectForm.get("hostName")?.setValidators([J.required]),this.directConnectForm.controls.hostName.updateValueAndValidity(),this.directConnectForm.get("port")?.setValidators([J.required]),this.directConnectForm.controls.port.updateValueAndValidity(),this.directConnectForm.get("userName")?.setValidators([J.required]),this.directConnectForm.controls.userName.updateValueAndValidity(),this.directConnectForm.get("dbName")?.setValidators([J.required]),this.directConnectForm.controls.dbName.updateValueAndValidity(),this.directConnectForm.get("password")?.setValidators([J.required]),this.directConnectForm.controls.password.updateValueAndValidity(),this.directConnectForm.get("shardId")?.setValidators([J.required]),this.directConnectForm.controls.shardId.updateValueAndValidity(),this.directConnectForm.controls.textInput.clearValidators(),this.directConnectForm.controls.textInput.updateValueAndValidity()}determineFormValidity(){return this.shardConnDetailsList.length>0||!!this.directConnectForm.valid}saveDetailsAndReset(){const{hostName:e,port:i,userName:o,password:r,dbName:a,shardId:s}=this.directConnectForm.value;this.shardConnDetailsList.push({dbEngine:this.shardSessionDetails.sourceDatabaseEngine,isSharded:!1,hostName:e,port:i,userName:o,password:r,dbName:a,shardId:s}),this.directConnectForm=new Yt({inputType:new U("form",J.required),textInput:new U(""),hostName:new U(""),port:new U(""),userName:new U(""),dbName:new U(""),password:new U(""),shardId:new U("")}),this.setValidators("form"),this.snack.openSnackBar("Shard configured successfully, please configure the next","Close",5)}finalizeConnDetails(){if("form"===this.directConnectForm.value.inputType){const{hostName:i,port:o,userName:r,password:a,dbName:s,shardId:c}=this.directConnectForm.value;this.shardConnDetailsList.push({dbEngine:this.shardSessionDetails.sourceDatabaseEngine,isSharded:!1,hostName:i,port:o,userName:r,password:a,dbName:s,shardId:c}),this.sourceConnDetails.dbConfigs=this.shardConnDetailsList}else{try{this.sourceConnDetails.dbConfigs=JSON.parse(this.directConnectForm.value.textInput)}catch{throw this.errorMsg="Unable to parse JSON",new Error(this.errorMsg)}this.sourceConnDetails.dbConfigs.forEach(i=>{i.dbEngine=this.shardSessionDetails.sourceDatabaseEngine})}this.sourceConnDetails.isRestoredSession=this.shardSessionDetails.isRestoredSession,this.fetch.setShardsSourceDBDetailsForBulk(this.sourceConnDetails).subscribe({next:()=>{localStorage.setItem(le.NumberOfShards,this.sourceConnDetails.dbConfigs.length.toString()),localStorage.setItem(le.NumberOfInstances,this.sourceConnDetails.dbConfigs.length.toString()),localStorage.setItem(le.IsSourceDetailsSet,"true"),this.dialogRef.close()},error:i=>{this.errorMsg=i.error}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(pn),_(Go),_(Pi),_(nn),_(Zn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-sharded-bulk-source-details-form"]],decls:23,vars:7,consts:[[1,"connect-load-database-container"],[1,"form-container"],[1,"shard-bulk-form",3,"formGroup"],[1,"primary-header"],["appearance","outline"],["formControlName","inputType",3,"selectionChange"],["inputType",""],[3,"value",4,"ngFor","ngForOf"],["class","textInput",4,"ngIf"],["class","formInput",4,"ngIf"],["mat-button","","color","primary","mat-dialog-close",""],["mat-raised-button","","type","submit","color","accent",3,"disabled","click",4,"ngIf"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"],["class","failure",4,"ngIf"],[3,"value"],[1,"textInput"],["name","textInput","formControlName","textInput","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","5","cdkAutosizeMaxRows","20"],["autosize","cdkTextareaAutosize"],[1,"formInput"],["appearance","outline",1,"full-width"],["matInput","","placeholder","127.0.0.1","name","hostName","type","text","formControlName","hostName"],["matInput","","placeholder","3306","name","port","type","text","formControlName","port"],["matInput","","placeholder","root","name","userName","type","text","formControlName","userName"],["matInput","","name","password","type","password","formControlName","password"],["matInput","","name","dbname","type","text","formControlName","dbName"],["matInput","","name","shardId","type","text","formControlName","shardId"],["mat-raised-button","","type","submit","color","accent",3,"disabled","click"],[1,"failure"],[1,"left-text"],["matTooltipPosition","above",1,"icon","error",3,"matTooltip"]],template:function(i,o){if(1&i){const r=ge();d(0,"div",0)(1,"div",1)(2,"form",2)(3,"h4",3),u(4,"Add Data Shard Connection Details"),l(),d(5,"b"),u(6,"Note: Please configure the schema source used for schema conversion if you want Spanner migration tool to migrate data from it as well."),l(),S(7,"br")(8,"br"),d(9,"mat-form-field",4)(10,"mat-label"),u(11,"Input Type"),l(),d(12,"mat-select",5,6),P("selectionChange",function(){ne(r);const s=At(13);return oe(o.setValidators(s.value))}),g(14,Yse,2,2,"mat-option",7),l()(),g(15,Qse,6,0,"div",8),g(16,Xse,31,0,"div",9),d(17,"button",10),u(18,"CANCEL"),l(),g(19,Jse,2,1,"button",11),d(20,"button",12),P("click",function(){return o.finalizeConnDetails()}),u(21," FINISH "),l(),g(22,ece,5,2,"div",13),l()()()}2&i&&(m(2),p("formGroup",o.directConnectForm),m(12),p("ngForOf",o.inputOptionsList),m(1),p("ngIf","text"===o.directConnectForm.value.inputType),m(1),p("ngIf","form"===o.directConnectForm.value.inputType),m(3),p("ngIf","form"===o.directConnectForm.value.inputType),m(1),p("disabled",!o.determineFormValidity()),m(2),p("ngIf",""!=o.errorMsg))},dependencies:[qi,kt,Gt,vi,_i,gi,wy,Fi,iE,An,un,tn,pi,li,Mi,fi,Ai,Sn,on]})}return t})();function ice(t,n){if(1&t&&(d(0,"mat-option",18),u(1),l()),2&t){const e=n.$implicit;p("value",e.value),m(1),ye(" ",e.displayName," ")}}function nce(t,n){if(1&t&&(d(0,"div",19)(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title"),u(4,"Total Configured Shards"),l(),d(5,"mat-card-subtitle"),u(6),l(),d(7,"mat-card-subtitle"),u(8),l()()()()),2&t){const e=C();m(6),ye("",e.physicalShards," physical instances configured."),m(2),ye("",e.logicalShards," logical shards configured.")}}function oce(t,n){1&t&&(d(0,"div",20)(1,"mat-form-field",21)(2,"mat-label"),u(3,"Paste JSON Configuration"),l(),S(4,"textarea",22,23),l()())}function rce(t,n){if(1&t&&(d(0,"li",26)(1,"span",27),u(2),l(),d(3,"span")(4,"mat-icon",28),u(5,"file_copy"),l()()()),2&t){const e=n.$implicit;m(2),Ie(e),m(2),p("cdkCopyToClipboard",e)}}function ace(t,n){if(1&t&&(d(0,"div",20)(1,"div")(2,"b"),u(3,"Copy the public IPs below, and use them to configure the network firewall to accept connections from them."),l(),d(4,"a",24),u(5,"Learn More"),l()(),S(6,"br"),g(7,rce,6,2,"li",25),l()),2&t){const e=C();m(7),p("ngForOf",e.ipList)}}function sce(t,n){if(1&t&&(d(0,"div",29)(1,"span",27),u(2,"JSON Verification failed"),l(),d(3,"mat-icon",30),u(4," error "),l()()),2&t){const e=C();m(3),p("matTooltip",e.errorVerMsg)}}function cce(t,n){1&t&&(d(0,"div"),S(1,"br"),d(2,"span",31),S(3,"mat-spinner",32),l(),d(4,"span",33),u(5,"Validating Resources"),l(),S(6,"br"),l()),2&t&&(m(3),p("diameter",20))}function lce(t,n){1&t&&(d(0,"mat-icon",34),u(1," check_circle "),l())}function dce(t,n){if(1&t){const e=ge();d(0,"div",20)(1,"button",35),P("click",function(){return ne(e),oe(C().verifyTextJson())}),u(2,"VERIFY JSON"),l()()}if(2&t){const e=C();m(1),p("disabled",!e.migrationProfileForm.valid||e.verifyingJson)}}function uce(t,n){if(1&t){const e=ge();d(0,"mat-radio-button",48),P("change",function(){const r=ne(e).$implicit;return oe(C(2).onItemChange(r.value,"source"))}),u(1),l()}if(2&t){const e=n.$implicit;p("value",e.value),m(1),ye(" ",e.display,"")}}function hce(t,n){if(1&t&&(d(0,"mat-option",18),u(1),l()),2&t){const e=n.$implicit;p("value",e.DisplayName),m(1),ye(" ",e.DisplayName," ")}}function mce(t,n){if(1&t&&(d(0,"div")(1,"mat-form-field",5)(2,"mat-label"),u(3,"Select source connection profile"),l(),d(4,"mat-select",49),g(5,hce,2,2,"mat-option",8),l()(),d(6,"mat-form-field",5)(7,"mat-label"),u(8,"Data Shard Id"),l(),S(9,"input",50),l()()),2&t){const e=C(2);m(5),p("ngForOf",e.sourceProfileList),m(4),p("value",e.inputValue)}}function pce(t,n){if(1&t&&(d(0,"div")(1,"mat-form-field",5)(2,"mat-label"),u(3,"Host"),l(),S(4,"input",51),l(),d(5,"mat-form-field",5)(6,"mat-label"),u(7,"User"),l(),S(8,"input",52),l(),d(9,"mat-form-field",5)(10,"mat-label"),u(11,"Port"),l(),S(12,"input",53),l(),d(13,"mat-form-field",5)(14,"mat-label"),u(15,"Password"),l(),S(16,"input",54),l(),d(17,"mat-form-field",55)(18,"mat-label"),u(19,"Connection profile name"),l(),S(20,"input",56),l(),d(21,"mat-form-field",5)(22,"mat-label"),u(23,"Data Shard Id"),l(),S(24,"input",50),l()()),2&t){const e=C(2);m(24),p("value",e.inputValue)}}function fce(t,n){if(1&t&&(d(0,"li",26)(1,"span",27),u(2),l(),d(3,"span")(4,"mat-icon",28),u(5,"file_copy"),l()()()),2&t){const e=n.$implicit;m(2),Ie(e),m(2),p("cdkCopyToClipboard",e)}}function gce(t,n){if(1&t&&(d(0,"div",29)(1,"span",27),u(2,"Test connection failed"),l(),d(3,"mat-icon",30),u(4," error "),l()()),2&t){const e=C(3);m(3),p("matTooltip",e.errorSrcMsg)}}function _ce(t,n){1&t&&(d(0,"div"),S(1,"br"),d(2,"span",31),S(3,"mat-spinner",32),l(),d(4,"span",33),u(5,"Testing Connection"),l(),S(6,"br"),l()),2&t&&(m(3),p("diameter",20))}function bce(t,n){1&t&&(d(0,"div"),S(1,"br"),d(2,"span",31),S(3,"mat-spinner",32),l(),d(4,"span",33),u(5,"Creating source connection profile"),l(),S(6,"br"),l()),2&t&&(m(3),p("diameter",20))}function vce(t,n){1&t&&(d(0,"mat-icon",60),u(1," check_circle "),l())}function yce(t,n){1&t&&(d(0,"mat-icon",61),u(1," check_circle "),l())}function Cce(t,n){if(1&t){const e=ge();d(0,"div")(1,"div")(2,"b"),u(3,"Copy the public IPs below, and use them to configure the network firewall to accept connections from them."),l(),d(4,"a",24),u(5,"Learn More"),l()(),S(6,"br"),g(7,fce,6,2,"li",25),g(8,gce,5,1,"div",11),S(9,"br"),g(10,_ce,7,1,"div",12),g(11,bce,7,1,"div",12),g(12,vce,2,0,"mat-icon",57),d(13,"button",35),P("click",function(){return ne(e),oe(C(2).createOrTestConnection(!0,!0))}),u(14,"TEST CONNECTION"),l(),g(15,yce,2,0,"mat-icon",58),d(16,"button",59),P("click",function(){return ne(e),oe(C(2).createOrTestConnection(!0,!1))}),u(17,"CREATE PROFILE"),l()()}if(2&t){const e=C(2);m(7),p("ngForOf",e.ipList),m(1),p("ngIf",!e.testSuccess&&""!=e.errorSrcMsg),m(2),p("ngIf",e.testingSourceConnection),m(1),p("ngIf",e.creatingSourceConnection),m(1),p("ngIf",e.testSuccess),m(1),p("disabled",!e.determineConnectionProfileInfoValidity()||e.testingSourceConnection),m(2),p("ngIf",e.createSrcConnSuccess),m(1),p("disabled",!e.testSuccess||e.creatingSourceConnection)}}function xce(t,n){if(1&t){const e=ge();ue(0),d(1,"div",62)(2,"mat-form-field",5)(3,"mat-label"),u(4,"Logical Shard ID"),l(),S(5,"input",63),l(),d(6,"mat-form-field",5)(7,"mat-label"),u(8,"Source Database Name"),l(),S(9,"input",64),l(),d(10,"mat-icon",65),P("click",function(){const r=ne(e).index;return oe(C(2).deleteRow(r))}),u(11," delete_forever"),l()(),he()}if(2&t){const e=n.index;m(1),p("formGroupName",e)}}function wce(t,n){if(1&t){const e=ge();d(0,"mat-radio-button",48),P("change",function(){const r=ne(e).$implicit;return oe(C(2).onItemChange(r.value,"target"))}),u(1),l()}if(2&t){const e=n.$implicit;p("value",e.value),m(1),ye(" ",e.display,"")}}function Sce(t,n){if(1&t&&(d(0,"mat-option",18),u(1),l()),2&t){const e=n.$implicit;p("value",e.DisplayName),m(1),ye(" ",e.DisplayName," ")}}function Dce(t,n){if(1&t&&(d(0,"div")(1,"mat-form-field",5)(2,"mat-label"),u(3,"Select target connection profile"),l(),d(4,"mat-select",66),g(5,Sce,2,2,"mat-option",8),l()()()),2&t){const e=C(2);m(5),p("ngForOf",e.targetProfileList)}}function kce(t,n){1&t&&(d(0,"div"),S(1,"br"),d(2,"span",31),S(3,"mat-spinner",32),l(),d(4,"span",33),u(5,"Creating target connection profile"),l(),S(6,"br"),l()),2&t&&(m(3),p("diameter",20))}function Mce(t,n){1&t&&(d(0,"mat-icon",61),u(1," check_circle "),l())}function Tce(t,n){if(1&t&&(d(0,"div",29)(1,"span",27),u(2),l()()),2&t){const e=C(3);m(2),Ie(e.errorTgtMsg)}}function Ice(t,n){if(1&t){const e=ge();d(0,"div")(1,"mat-form-field",55)(2,"mat-label"),u(3,"Connection profile name"),l(),S(4,"input",67),l(),g(5,kce,7,1,"div",12),g(6,Mce,2,0,"mat-icon",58),d(7,"button",59),P("click",function(){return ne(e),oe(C(2).createOrTestConnection(!1,!1))}),u(8,"CREATE PROFILE"),l(),g(9,Tce,3,1,"div",11),l()}if(2&t){const e=C(2);m(5),p("ngIf",e.creatingTargetConnection),m(1),p("ngIf",e.createTgtConnSuccess),m(1),p("disabled",e.creatingTargetConnection),m(2),p("ngIf",""!=e.errorTgtMsg)}}function Ece(t,n){if(1&t){const e=ge();d(0,"div",20)(1,"span",36),u(2,"Configure Source Profile"),l(),d(3,"div",37)(4,"mat-radio-group",38),P("ngModelChange",function(o){return ne(e),oe(C().selectedSourceProfileOption=o)}),g(5,uce,2,2,"mat-radio-button",39),l()(),S(6,"br"),g(7,mce,10,2,"div",12),g(8,pce,25,1,"div",12),S(9,"br"),g(10,Cce,18,8,"div",12),S(11,"hr"),d(12,"span",36),u(13,"Configure ShardId and Database Names"),l(),d(14,"mat-icon",40),u(15,"info"),l(),S(16,"br")(17,"br"),d(18,"span",41),ue(19,42),g(20,xce,12,1,"ng-container",43),he(),l(),d(21,"div",44)(22,"button",45),P("click",function(){return ne(e),oe(C().addRow())}),u(23,"ADD ROW"),l()(),S(24,"br")(25,"hr"),d(26,"span",36),u(27,"Configure Target Profile"),l(),d(28,"div",46)(29,"mat-radio-group",47),P("ngModelChange",function(o){return ne(e),oe(C().selectedTargetProfileOption=o)}),g(30,wce,2,2,"mat-radio-button",39),l()(),S(31,"br"),g(32,Dce,6,1,"div",12),g(33,Ice,10,4,"div",12),S(34,"hr"),l()}if(2&t){const e=C();m(4),p("ngModel",e.selectedSourceProfileOption),m(1),p("ngForOf",e.profileOptions),m(2),p("ngIf","existing"===e.selectedSourceProfileOption),m(1),p("ngIf","new"===e.selectedSourceProfileOption),m(2),p("ngIf","new"===e.selectedSourceProfileOption),m(10),p("ngForOf",e.shardMappingTable.controls),m(9),p("ngModel",e.selectedTargetProfileOption),m(1),p("ngForOf",e.profileOptions),m(2),p("ngIf","existing"===e.selectedTargetProfileOption),m(1),p("ngIf","new"===e.selectedTargetProfileOption)}}function Oce(t,n){if(1&t){const e=ge();d(0,"button",68),P("click",function(){return ne(e),oe(C().saveDetailsAndReset())}),u(1," ADD MORE SHARDS "),l()}2&t&&p("disabled",!C().determineFormValidity())}function Ace(t,n){if(1&t&&(d(0,"div",29)(1,"span",27),u(2),l(),d(3,"mat-icon",30),u(4," error "),l()()),2&t){const e=C();m(2),Ie(e.errorMsg),m(1),p("matTooltip",e.errorMsg)}}let Pce=(()=>{class t{constructor(e,i,o,r,a,s){this.fetch=e,this.snack=i,this.dataService=o,this.formBuilder=r,this.dialogRef=a,this.data=s,this.selectedProfile="",this.profileType="",this.sourceProfileList=[],this.targetProfileList=[],this.definedSrcConnProfileList=[],this.definedTgtConnProfileList=[],this.shardIdToDBMappingTable=[],this.dataShardIdList=[],this.ipList=[],this.selectedSourceProfileOption="existing",this.selectedTargetProfileOption="existing",this.profileOptions=[{value:"existing",display:"Choose an existing connection profile"},{value:"new",display:"Create a new connection profile"}],this.profileName="",this.errorMsg="",this.errorSrcMsg="",this.errorTgtMsg="",this.errorVerMsg="",this.sourceDatabaseType="",this.inputValue="",this.testSuccess=!1,this.verifyJson=!1,this.createSrcConnSuccess=!1,this.createTgtConnSuccess=!1,this.physicalShards=0,this.logicalShards=0,this.testingSourceConnection=!1,this.creatingSourceConnection=!1,this.creatingTargetConnection=!1,this.verifyingJson=!1,this.prefix="smt-datashard",this.inputOptionsList=[{value:"text",displayName:"Text"},{value:"form",displayName:"Form"}],this.region=s.Region,this.sourceDatabaseType=s.SourceDatabaseType,localStorage.getItem(Ni.Type)==Pn.DirectConnect&&(this.schemaSourceConfig=JSON.parse(localStorage.getItem(Ni.Config)));let h=this.formBuilder.group({logicalShardId:["",J.required],dbName:["",J.required]});this.inputValue=this.prefix+"-"+this.randomString(4)+"-"+this.randomString(4),this.migrationProfileForm=this.formBuilder.group({inputType:["form",J.required],textInput:[""],sourceProfileOption:["new",J.required],targetProfileOption:["new",J.required],newSourceProfile:["",[J.pattern("^[a-z][a-z0-9-]{0,59}$")]],existingSourceProfile:[],newTargetProfile:["",J.pattern("^[a-z][a-z0-9-]{0,59}$")],existingTargetProfile:[],host:[this.schemaSourceConfig?.hostName],user:[this.schemaSourceConfig?.userName],port:[this.schemaSourceConfig?.port],password:[this.schemaSourceConfig?.password],dataShardId:[this.inputValue,J.required],shardMappingTable:this.formBuilder.array([h])}),this.migrationProfile={configType:"dataflow",shardConfigurationDataflow:{schemaSource:{host:this.schemaSourceConfig?.hostName,user:this.schemaSourceConfig?.userName,password:this.schemaSourceConfig?.password,port:this.schemaSourceConfig?.port,dbName:this.schemaSourceConfig?.dbName},dataShards:[]}}}ngOnInit(){this.getConnectionProfiles(!0),this.getConnectionProfiles(!1),this.getDatastreamIPs(),this.initFromLocalStorage()}initFromLocalStorage(){}get shardMappingTable(){return this.migrationProfileForm.controls.shardMappingTable}addRow(){let e=this.formBuilder.group({logicalShardId:["",J.required],dbName:["",J.required]});this.shardMappingTable.push(e)}deleteRow(e){this.shardMappingTable.removeAt(e)}getDatastreamIPs(){this.fetch.getStaticIps().subscribe({next:e=>{this.ipList=e},error:e=>{this.snack.openSnackBar(e.error,"Close")}})}getConnectionProfiles(e){this.fetch.getConnectionProfiles(e).subscribe({next:i=>{e?this.sourceProfileList=i.sort((o,r)=>o.DisplayName.localeCompare(r.DisplayName)):this.targetProfileList=i.sort((o,r)=>o.DisplayName.localeCompare(r.DisplayName))},error:i=>{this.snack.openSnackBar(i.error,"Close")}})}onItemChange(e,i){this.profileType=i,"source"===this.profileType?(this.selectedSourceProfileOption=e,"new"==this.selectedSourceProfileOption?(this.migrationProfileForm.get("newSourceProfile")?.setValidators([J.required]),this.migrationProfileForm.controls.existingSourceProfile.clearValidators(),this.migrationProfileForm.controls.newSourceProfile.updateValueAndValidity(),this.migrationProfileForm.controls.existingSourceProfile.updateValueAndValidity(),this.migrationProfileForm.get("host")?.setValidators([J.required]),this.migrationProfileForm.controls.host.updateValueAndValidity(),this.migrationProfileForm.get("user")?.setValidators([J.required]),this.migrationProfileForm.controls.user.updateValueAndValidity(),this.migrationProfileForm.get("port")?.setValidators([J.required]),this.migrationProfileForm.controls.port.updateValueAndValidity(),this.migrationProfileForm.get("password")?.setValidators([J.required]),this.migrationProfileForm.controls.password.updateValueAndValidity()):(this.migrationProfileForm.controls.newSourceProfile.clearValidators(),this.migrationProfileForm.get("existingSourceProfile")?.addValidators([J.required]),this.migrationProfileForm.controls.newSourceProfile.updateValueAndValidity(),this.migrationProfileForm.controls.existingSourceProfile.updateValueAndValidity(),this.migrationProfileForm.controls.host.clearValidators(),this.migrationProfileForm.controls.host.updateValueAndValidity(),this.migrationProfileForm.controls.user.clearValidators(),this.migrationProfileForm.controls.user.updateValueAndValidity(),this.migrationProfileForm.controls.port.clearValidators(),this.migrationProfileForm.controls.port.updateValueAndValidity(),this.migrationProfileForm.controls.password.clearValidators(),this.migrationProfileForm.controls.password.updateValueAndValidity())):(this.selectedTargetProfileOption=e,"new"==this.selectedTargetProfileOption?(this.migrationProfileForm.get("newTargetProfile")?.setValidators([J.required]),this.migrationProfileForm.controls.existingTargetProfile.clearValidators(),this.migrationProfileForm.controls.newTargetProfile.updateValueAndValidity(),this.migrationProfileForm.controls.existingTargetProfile.updateValueAndValidity()):(this.migrationProfileForm.controls.newTargetProfile.clearValidators(),this.migrationProfileForm.get("existingTargetProfile")?.addValidators([J.required]),this.migrationProfileForm.controls.newTargetProfile.updateValueAndValidity(),this.migrationProfileForm.controls.existingTargetProfile.updateValueAndValidity()))}setValidators(e){if("text"===e){for(const o in this.migrationProfileForm.controls)this.migrationProfileForm.controls[o].clearValidators(),this.migrationProfileForm.controls[o].updateValueAndValidity();this.migrationProfileForm.get("shardMappingTable").controls.forEach(o=>{const r=o,a=r.get("logicalShardId"),s=r.get("dbName");a?.clearValidators(),a?.updateValueAndValidity(),s?.clearValidators(),s?.updateValueAndValidity()}),this.migrationProfileForm.controls.textInput.setValidators([J.required]),this.migrationProfileForm.controls.textInput.updateValueAndValidity()}else this.onItemChange("new","source"),this.onItemChange("new","target"),this.migrationProfileForm.controls.textInput.clearValidators(),this.migrationProfileForm.controls.textInput.updateValueAndValidity()}saveDetailsAndReset(){this.handleConnConfigsFromForm();let e=this.formBuilder.group({logicalShardId:["",J.required],dbName:["",J.required]});this.inputValue=this.prefix+"-"+this.randomString(4)+"-"+this.randomString(4),this.migrationProfileForm=this.formBuilder.group({inputType:["form",J.required],textInput:[],sourceProfileOption:[this.selectedSourceProfileOption],targetProfileOption:[this.selectedTargetProfileOption],newSourceProfile:["",[J.pattern("^[a-z][a-z0-9-]{0,59}$")]],existingSourceProfile:[],newTargetProfile:["",J.pattern("^[a-z][a-z0-9-]{0,59}$")],existingTargetProfile:[],host:[],user:[],port:[],password:[],dataShardId:[this.inputValue],shardMappingTable:this.formBuilder.array([e])}),this.testSuccess=!1,this.verifyJson=!1,this.createSrcConnSuccess=!1,this.createTgtConnSuccess=!1,this.snack.openSnackBar("Shard configured successfully, please configure the next","Close",5)}randomString(e){for(var o="",r=0;r{localStorage.setItem(le.IsSourceConnectionProfileSet,"true"),localStorage.setItem(le.IsTargetConnectionProfileSet,"true"),localStorage.setItem(le.NumberOfShards,this.determineTotalLogicalShardsConfigured().toString()),localStorage.setItem(le.NumberOfInstances,this.migrationProfile.shardConfigurationDataflow.dataShards.length.toString()),this.dialogRef.close()},error:o=>{this.errorMsg=o.error}})}determineTotalLogicalShardsConfigured(){let e=0;return this.migrationProfile.shardConfigurationDataflow.dataShards.forEach(i=>{e+=i.databases.length}),e}handleConnConfigsFromForm(){let e=this.migrationProfileForm.value;this.dataShardIdList.push(e.dataShardId),this.definedSrcConnProfileList.push("new"===this.selectedSourceProfileOption?{name:e.newSourceProfile,location:this.region}:{name:e.existingSourceProfile,location:this.region}),this.definedTgtConnProfileList.push("new"===this.selectedTargetProfileOption?{name:e.newTargetProfile,location:this.region}:{name:e.existingTargetProfile,location:this.region});let i=[];for(let o of this.shardMappingTable.controls)if(o instanceof Yt){const r=o.value;i.push({dbName:r.dbName,databaseId:r.logicalShardId,refDataShardId:e.dataShardId})}this.shardIdToDBMappingTable.push(i),this.physicalShards++,this.logicalShards=this.logicalShards+i.length}determineFormValidity(){return!(!this.migrationProfileForm.valid||"new"===this.selectedSourceProfileOption&&!this.createSrcConnSuccess||"new"===this.selectedTargetProfileOption&&!this.createTgtConnSuccess||"text"===this.migrationProfileForm.value.inputType!==this.verifyJson)}determineFinishValidity(){return this.definedSrcConnProfileList.length>0||this.determineFormValidity()}determineConnectionProfileInfoValidity(){let e=this.migrationProfileForm.value;return null!=e.host&&null!=e.port&&null!=e.user&&null!=e.password&&null!=e.newSourceProfile}verifyTextJson(){this.verifyingJson=!0;let i,e=this.migrationProfileForm.value;try{i=JSON.parse(e.textInput)}catch(o){return o instanceof SyntaxError?(this.errorVerMsg=o.message,this.verifyJson=!1,void(this.verifyingJson=!1)):(this.errorVerMsg=`Unexpected error parsing json ${o}`,this.verifyJson=!1,void(this.verifyingJson=!1))}this.fetch.verifyJsonConfiguration(i).subscribe({next:()=>{this.verifyJson=!0,this.verifyingJson=!1},error:o=>{this.verifyJson=!1,this.verifyingJson=!1,this.errorVerMsg=o.message}})}createOrTestConnection(e,i){i?this.testingSourceConnection=!0:e?this.creatingSourceConnection=!0:this.creatingTargetConnection=!0;let r,o=this.migrationProfileForm.value;r=e?{Id:o.newSourceProfile,IsSource:!0,ValidateOnly:i,Host:o.host,Port:o.port,User:o.user,Password:o.password}:{Id:o.newTargetProfile,IsSource:!1,ValidateOnly:i},this.fetch.createConnectionProfile(r).subscribe({next:()=>{i?(this.testingSourceConnection=!1,this.testSuccess=!0):e?(this.createSrcConnSuccess=!0,this.errorSrcMsg="",this.creatingSourceConnection=!1):(this.createTgtConnSuccess=!0,this.errorTgtMsg="",this.creatingTargetConnection=!1)},error:a=>{i?(this.testingSourceConnection=!1,this.testSuccess=!1,this.errorSrcMsg=a.error):e?(this.createSrcConnSuccess=!1,this.errorSrcMsg=a.error,this.creatingSourceConnection=!1):(this.createTgtConnSuccess=!1,this.errorTgtMsg=a.error,this.creatingTargetConnection=!1)}})}static#e=this.\u0275fac=function(i){return new(i||t)(_(pn),_(Go),_(Pi),_(sr),_(nn),_(Zn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-sharded-dataflow-migration-details-form"]],viewQuery:function(i,o){if(1&i&&bt(f0,5),2&i){let r;Ee(r=Oe())&&(o.paginator=r.first)}},decls:31,vars:13,consts:[["mat-dialog-content","",1,"connect-load-database-container"],[1,"conn-profile-form",3,"formGroup"],[1,"mat-h2","header-title"],[1,"top"],[1,"top-1"],["appearance","outline"],["formControlName","inputType",3,"selectionChange"],["inputType",""],[3,"value",4,"ngFor","ngForOf"],["class","top-2",4,"ngIf"],["class","textInput",4,"ngIf"],["class","failure",4,"ngIf"],[4,"ngIf"],["class","success","matTooltip","JSON Verification successful","matTooltipPosition","above",4,"ngIf"],[1,"last-btns"],["mat-button","","color","primary","mat-dialog-close",""],["mat-raised-button","","type","submit","color","accent",3,"disabled","click",4,"ngIf"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"],[3,"value"],[1,"top-2"],[1,"textInput"],["appearance","outline",1,"json-input"],["name","textInput","formControlName","textInput","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","5","cdkAutosizeMaxRows","20"],["autosize","cdkTextareaAutosize"],["href","https://cloud.google.com/datastream/docs/network-connectivity-options#ipallowlists","target","_blank"],["class","connection-form-container",4,"ngFor","ngForOf"],[1,"connection-form-container"],[1,"left-text"],["matTooltip","Copy",1,"icon","copy",3,"cdkCopyToClipboard"],[1,"failure"],["matTooltipPosition","above",1,"icon","error",3,"matTooltip"],[1,"spinner"],[3,"diameter"],[1,"spinner-small-text"],["matTooltip","JSON Verification successful","matTooltipPosition","above",1,"success"],["mat-raised-button","","type","button","color","primary",3,"disabled","click"],[1,"mat-h4","header-title"],[1,"source-radio-button-container"],["formControlName","sourceProfileOption",1,"radio-button-container",3,"ngModel","ngModelChange"],["class","radio-button",3,"value","change",4,"ngFor","ngForOf"],["matTooltip","Logical Shard ID value will be used to populate the migration_shard_id column added as part of sharded database migration",1,"configure"],[1,"border"],["formArrayName","shardMappingTable"],[4,"ngFor","ngForOf"],[1,"table-buttons"],["mat-raised-button","","color","primary","type","button",3,"click"],[1,"target-radio-button-container"],["formControlName","targetProfileOption",1,"radio-button-container",3,"ngModel","ngModelChange"],[1,"radio-button",3,"value","change"],["formControlName","existingSourceProfile","required","true","ng-value","selectedProfile",1,"input-field"],["matInput","","type","text","formControlName","dataShardId","required","true","readonly","",3,"value"],["matInput","","placeholder","Host","type","text","formControlName","host","required","true"],["matInput","","placeholder","User","type","text","formControlName","user","required","true"],["matInput","","placeholder","Port","type","text","formControlName","port","required","true"],["matInput","","placeholder","Password","type","password","formControlName","password","required","true"],["appearance","outline","hintLabel","Name can include lower case letters, numbers and hyphens. Must start with a letter."],["matInput","","placeholder","Connection profile name","type","text","formControlName","newSourceProfile","required","true"],["class","success","matTooltip","Test connection successful","matTooltipPosition","above",4,"ngIf"],["class","success","matTooltip","Profile creation successful","matTooltipPosition","above",4,"ngIf"],["mat-raised-button","","type","button","color","warn",3,"disabled","click"],["matTooltip","Test connection successful","matTooltipPosition","above",1,"success"],["matTooltip","Profile creation successful","matTooltipPosition","above",1,"success"],[1,"shard-mapping-form-row",3,"formGroupName"],["matInput","","formControlName","logicalShardId","placeholder","Enter Logical ShardID"],["matInput","","formControlName","dbName","placeholder","Enter Database Name"],[1,"delete-btn",3,"click"],["formControlName","existingTargetProfile","required","true","ng-value","selectedProfile",1,"input-field"],["matInput","","placeholder","Connection profile name","type","text","formControlName","newTargetProfile","required","true"],["mat-raised-button","","type","submit","color","accent",3,"disabled","click"]],template:function(i,o){if(1&i){const r=ge();d(0,"div",0)(1,"form",1)(2,"span",2),u(3,"Datastream Details"),l(),S(4,"br"),d(5,"b"),u(6,"Note: Please configure the database used for schema conversion, if you want Spanner migration tool to migrate data from it as well."),l(),d(7,"div",3),u(8,"` "),d(9,"div",4)(10,"mat-form-field",5)(11,"mat-label"),u(12,"Input Type"),l(),d(13,"mat-select",6,7),P("selectionChange",function(){ne(r);const s=At(14);return oe(o.setValidators(s.value))}),g(15,ice,2,2,"mat-option",8),l()()(),g(16,nce,9,2,"div",9),l(),g(17,oce,6,0,"div",10),g(18,ace,8,1,"div",10),g(19,sce,5,1,"div",11),g(20,cce,7,1,"div",12),g(21,lce,2,0,"mat-icon",13),g(22,dce,3,1,"div",10),g(23,Ece,35,10,"div",10),d(24,"div",14)(25,"button",15),u(26,"CANCEL"),l(),g(27,Oce,2,1,"button",16),d(28,"button",17),P("click",function(){return o.finalizeConnDetails()}),u(29," FINISH "),l(),g(30,Ace,5,2,"div",11),l()()()}2&i&&(m(1),p("formGroup",o.migrationProfileForm),m(14),p("ngForOf",o.inputOptionsList),m(1),p("ngIf","form"===o.migrationProfileForm.value.inputType),m(1),p("ngIf","text"===o.migrationProfileForm.value.inputType),m(1),p("ngIf","text"===o.migrationProfileForm.value.inputType),m(1),p("ngIf",!o.verifyJson&&""!=o.errorVerMsg),m(1),p("ngIf",o.verifyingJson),m(1),p("ngIf",o.verifyJson),m(1),p("ngIf","text"===o.migrationProfileForm.value.inputType),m(1),p("ngIf","form"===o.migrationProfileForm.value.inputType),m(4),p("ngIf","form"===o.migrationProfileForm.value.inputType),m(1),p("disabled",!o.determineFinishValidity()),m(2),p("ngIf",""!=o.errorMsg))},dependencies:[qi,kt,Gt,vi,Wd,A2,Xv,Qv,_i,gi,Fi,iE,An,un,tn,pi,li,Mi,so,fi,Ai,tu,iu,Sn,co,on,Qp,Xp,g0,Cl],styles:[".icon[_ngcontent-%COMP%]{font-size:15px}.connection-form-container[_ngcontent-%COMP%]{display:block}.left-text[_ngcontent-%COMP%]{width:40%;display:inline-block}.shard-mapping-form-row[_ngcontent-%COMP%]{width:80%;margin-left:auto;margin-right:auto}.table-header[_ngcontent-%COMP%]{width:80%;margin:auto auto 10px;text-align:right;display:flex;align-items:center;justify-content:space-between}form[_ngcontent-%COMP%], .table-body[_ngcontent-%COMP%]{flex:auto;overflow-y:auto}.table-buttons[_ngcontent-%COMP%]{margin-left:70%}.radio-button-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:15px 0;align-items:flex-start}.radio-button[_ngcontent-%COMP%]{margin:5px}.json-input[_ngcontent-%COMP%]{width:100%}.top[_ngcontent-%COMP%]{border:3px solid #fff;padding:20px}.top-1[_ngcontent-%COMP%]{width:60%;float:left}.top-2[_ngcontent-%COMP%]{width:40%;float:right;flex:auto}.last-btns[_ngcontent-%COMP%]{padding:20px;width:100%;float:left}"]})}return t})(),Rce=(()=>{class t{constructor(e,i){this.formBuilder=e,this.dialogRef=i,this.gcsMetadataDetailsForm=this.formBuilder.group({gcsName:["",[J.required,J.pattern("^(?!.$)(?!..$)(?!.*[\r\n])[^\r\n]{1,1024}$")]],gcsRootPath:[""]}),this.gcsMetadataDetailsForm.setValue({gcsName:localStorage.getItem(vt.GcsMetadataName)||"",gcsRootPath:localStorage.getItem(vt.GcsMetadataRootPath)||""})}ngOnInit(){}updateGcsPathMetadataDetails(){let e=this.gcsMetadataDetailsForm.value;localStorage.setItem(vt.GcsMetadataName,e.gcsName||""),localStorage.setItem(vt.GcsMetadataRootPath,e.gcsRootPath||""),localStorage.setItem(le.IsGcsMetadataPathSet,"true"),this.dialogRef.close()}static#e=this.\u0275fac=function(i){return new(i||t)(_(sr),_(nn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-gcs-metadata-details-form"]],decls:21,vars:2,consts:[["mat-dialog-content",""],[1,"gcs-metadata-detail-form",3,"formGroup"],["matTooltip","Specify existing or new GCS path to store metadata for migration",1,"configure"],["appearance","outline",1,"full-width"],["matInput","","placeholder","GCS Bucket Name","type","text","formControlName","gcsName","ng-value","TargetDetails.GcsMetadataName"],["matInput","","placeholder","Path Prefix","type","text","formControlName","gcsRootPath","ng-value","TargetDetails.GcsMetadataRootPath"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["mat-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),u(3,"GCS Metadata Storage"),d(4,"mat-icon",2),u(5," info"),l()(),d(6,"mat-form-field",3)(7,"mat-label"),u(8,"GCS Bucket Name"),l(),S(9,"input",4),l(),S(10,"br"),d(11,"mat-form-field",3)(12,"mat-label"),u(13,"Path Prefix"),l(),S(14,"input",5),l(),S(15,"br"),l(),d(16,"div",6)(17,"button",7),u(18,"Cancel"),l(),d(19,"button",8),P("click",function(){return o.updateGcsPathMetadataDetails()}),u(20," Save "),l()()()),2&i&&(m(1),p("formGroup",o.gcsMetadataDetailsForm),m(18),p("disabled",!o.gcsMetadataDetailsForm.valid))},dependencies:[Gt,vi,_i,gi,Fi,tn,pi,li,Mi,fi,Ai,Sn,co,lo,on]})}return t})();function Fce(t,n){1&t&&(d(0,"h2"),u(1,"Source and Target Database definitions"),l())}function Nce(t,n){1&t&&(d(0,"h2"),u(1,"Source and Target Database definitions (per shard)"),l())}function Lce(t,n){1&t&&(d(0,"th",38),u(1,"Title"),l())}function Bce(t,n){if(1&t&&(d(0,"td",39)(1,"b"),u(2),l()()),2&t){const e=n.$implicit;m(2),Ie(e.title)}}function Vce(t,n){1&t&&(d(0,"th",38),u(1,"Source"),l())}function jce(t,n){if(1&t&&(d(0,"td",39),u(1),l()),2&t){const e=n.$implicit;m(1),Ie(e.source)}}function zce(t,n){1&t&&(d(0,"th",38),u(1,"Destination"),l())}function Hce(t,n){if(1&t&&(d(0,"td",39),u(1),l()),2&t){const e=n.$implicit;m(1),Ie(e.target)}}function Uce(t,n){1&t&&S(0,"tr",40)}function $ce(t,n){1&t&&S(0,"tr",41)}function Gce(t,n){if(1&t&&(d(0,"mat-option",42),u(1),l()),2&t){const e=n.$implicit;p("value",e),m(1),ye(" ",e," ")}}function qce(t,n){if(1&t&&(d(0,"mat-option",42),u(1),l()),2&t){const e=n.$implicit;p("value",e.value),m(1),ye(" ",e.name," ")}}function Wce(t,n){if(1&t){const e=ge();d(0,"div")(1,"mat-form-field",20)(2,"mat-label"),u(3,"Migration Type:"),l(),d(4,"mat-select",21),P("ngModelChange",function(o){return ne(e),oe(C().selectedMigrationType=o)})("selectionChange",function(){return ne(e),oe(C().refreshPrerequisites())}),g(5,qce,2,2,"mat-option",22),l()(),d(6,"mat-icon",23),u(7,"info"),l(),S(8,"br"),l()}if(2&t){const e=C();m(4),p("ngModel",e.selectedMigrationType),m(1),p("ngForOf",e.migrationTypes),m(1),p("matTooltip",e.migrationTypesHelpText.get(e.selectedMigrationType))}}function Kce(t,n){if(1&t&&(d(0,"mat-option",42),u(1),l()),2&t){const e=n.$implicit;p("value",e.value),m(1),ye(" ",e.displayName," ")}}function Zce(t,n){if(1&t){const e=ge();d(0,"div")(1,"mat-form-field",20)(2,"mat-label"),u(3,"Skip Foreign Key Creation:"),l(),d(4,"mat-select",43),P("ngModelChange",function(o){return ne(e),oe(C().isForeignKeySkipped=o)}),g(5,Kce,2,2,"mat-option",22),l()()()}if(2&t){const e=C();m(4),p("ngModel",e.isForeignKeySkipped),m(1),p("ngForOf",e.skipForeignKeyResponseList)}}function Yce(t,n){1&t&&(d(0,"div",44)(1,"p",26)(2,"span",27),u(3,"1"),l(),d(4,"span"),u(5,"Please ensure that the application default credentials deployed on this machine have permissions to write to Spanner."),l()()())}function Qce(t,n){1&t&&(d(0,"div",44)(1,"p",26)(2,"span",27),u(3,"1"),l(),d(4,"span"),u(5,"Please ensure that the source is "),d(6,"a",45),u(7,"configured"),l(),u(8," for Datastream change data capture."),l()(),d(9,"p",26)(10,"span",27),u(11,"2"),l(),d(12,"span"),u(13,"Please ensure that Dataflow "),d(14,"a",46),u(15,"permissions"),l(),u(16," and "),d(17,"a",47),u(18,"networking"),l(),u(19," are correctly setup."),l()()())}function Xce(t,n){1&t&&(d(0,"mat-icon",49),u(1," check_circle "),l())}function Jce(t,n){if(1&t){const e=ge();d(0,"div")(1,"h3"),u(2,"Source database details:"),l(),d(3,"p",26)(4,"span",27),u(5,"1"),l(),d(6,"span"),u(7,"Setup Source database details"),l(),d(8,"span")(9,"button",29),P("click",function(){return ne(e),oe(C().openSourceDetailsForm())}),u(10," Configure "),d(11,"mat-icon",30),u(12,"edit"),l(),g(13,Xce,2,0,"mat-icon",48),l()()()()}if(2&t){const e=C();m(9),p("disabled",e.isMigrationInProgress),m(4),p("ngIf",e.isSourceDetailsSet)}}function ele(t,n){1&t&&(d(0,"mat-icon",49),u(1," check_circle "),l())}function tle(t,n){if(1&t){const e=ge();d(0,"div")(1,"mat-card-title"),u(2,"Source databases details:"),l(),d(3,"p",26)(4,"span",27),u(5,"1"),l(),d(6,"span"),u(7,"Setup Source Connection details "),d(8,"mat-icon",50),u(9," info"),l()(),d(10,"span")(11,"button",29),P("click",function(){return ne(e),oe(C().openShardedBulkSourceDetailsForm())}),u(12," Configure "),d(13,"mat-icon",30),u(14,"edit"),l(),g(15,ele,2,0,"mat-icon",48),l()()()()}if(2&t){const e=C();m(11),p("disabled",e.isMigrationInProgress),m(4),p("ngIf",e.isSourceDetailsSet)}}function ile(t,n){1&t&&(d(0,"mat-icon",51),u(1," check_circle "),l())}function nle(t,n){1&t&&(d(0,"mat-icon",54),u(1," check_circle "),l())}function ole(t,n){if(1&t){const e=ge();d(0,"p",26)(1,"span",27),u(2,"2"),l(),d(3,"span"),u(4,"Configure Datastream "),d(5,"mat-icon",52),u(6," info"),l()(),d(7,"span")(8,"button",29),P("click",function(){return ne(e),oe(C().openMigrationProfileForm())}),u(9," Configure "),d(10,"mat-icon",30),u(11,"edit"),l(),g(12,nle,2,0,"mat-icon",53),l()()()}if(2&t){const e=C();m(8),p("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),p("ngIf",e.isSourceConnectionProfileSet)}}function rle(t,n){1&t&&(d(0,"mat-icon",54),u(1," check_circle "),l())}function ale(t,n){if(1&t){const e=ge();d(0,"p",26)(1,"span",27),u(2,"2"),l(),d(3,"span"),u(4,"Setup source connection profile "),d(5,"mat-icon",55),u(6," info"),l()(),d(7,"span")(8,"button",29),P("click",function(){return ne(e),oe(C().openConnectionProfileForm(!0))}),u(9," Configure "),d(10,"mat-icon",30),u(11,"edit"),l(),g(12,rle,2,0,"mat-icon",53),l()()()}if(2&t){const e=C();m(8),p("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),p("ngIf",e.isSourceConnectionProfileSet)}}function sle(t,n){1&t&&(d(0,"mat-icon",58),u(1," check_circle "),l())}function cle(t,n){if(1&t){const e=ge();d(0,"p",26)(1,"span",27),u(2,"3"),l(),d(3,"span"),u(4,"Setup target connection profile "),d(5,"mat-icon",56),u(6," info"),l()(),d(7,"span")(8,"button",29),P("click",function(){return ne(e),oe(C().openConnectionProfileForm(!1))}),u(9," Configure "),d(10,"mat-icon",30),u(11,"edit"),l(),g(12,sle,2,0,"mat-icon",57),l()()()}if(2&t){const e=C();m(8),p("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),p("ngIf",e.isTargetConnectionProfileSet)}}function lle(t,n){1&t&&(d(0,"span",27),u(1,"3"),l())}function dle(t,n){1&t&&(d(0,"span",27),u(1,"4"),l())}function ule(t,n){1&t&&(d(0,"mat-icon",62),u(1," check_circle "),l())}function hle(t,n){if(1&t){const e=ge();d(0,"p",26),g(1,lle,2,0,"span",59),g(2,dle,2,0,"span",59),d(3,"span"),u(4,"Tune Datastream (Optional) "),d(5,"mat-icon",60),u(6," info"),l()(),d(7,"span")(8,"button",29),P("click",function(){return ne(e),oe(C().openTuneDatastreamForm())}),u(9," Configure "),d(10,"mat-icon",30),u(11,"edit"),l(),g(12,ule,2,0,"mat-icon",61),l()()()}if(2&t){const e=C();m(1),p("ngIf",e.isSharded),m(1),p("ngIf",!e.isSharded),m(6),p("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),p("ngIf",e.isDatastreamConfigurationSet)}}function mle(t,n){1&t&&(d(0,"span",27),u(1,"4"),l())}function ple(t,n){1&t&&(d(0,"span",27),u(1,"5"),l())}function fle(t,n){1&t&&(d(0,"mat-icon",65),u(1," check_circle "),l())}function gle(t,n){if(1&t){const e=ge();d(0,"p",26),g(1,mle,2,0,"span",59),g(2,ple,2,0,"span",59),d(3,"span"),u(4,"Tune Cloud Storage (Optional) "),d(5,"mat-icon",63),u(6," info"),l()(),d(7,"span")(8,"button",29),P("click",function(){return ne(e),oe(C().openTuneGcsForm())}),u(9," Configure "),d(10,"mat-icon",30),u(11,"edit"),l(),g(12,fle,2,0,"mat-icon",64),l()()()}if(2&t){const e=C();m(1),p("ngIf",e.isSharded),m(1),p("ngIf",!e.isSharded),m(6),p("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),p("ngIf",e.isGcsConfigurationSet)}}function _le(t,n){1&t&&(d(0,"span",27),u(1,"5"),l())}function ble(t,n){1&t&&(d(0,"span",27),u(1,"6"),l())}function vle(t,n){1&t&&(d(0,"mat-icon",68),u(1," check_circle "),l())}function yle(t,n){if(1&t){const e=ge();d(0,"p",26),g(1,_le,2,0,"span",59),g(2,ble,2,0,"span",59),d(3,"span"),u(4,"Tune Dataflow (Optional) "),d(5,"mat-icon",66),u(6," info"),l()(),d(7,"span")(8,"button",29),P("click",function(){return ne(e),oe(C().openDataflowForm())}),u(9," Configure "),d(10,"mat-icon",30),u(11,"edit"),l(),g(12,vle,2,0,"mat-icon",67),l()()()}if(2&t){const e=C();m(1),p("ngIf",e.isSharded),m(1),p("ngIf",!e.isSharded),m(6),p("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),p("ngIf",e.isDataflowConfigurationSet)}}function Cle(t,n){1&t&&(d(0,"span",27),u(1,"2"),l())}function xle(t,n){1&t&&(d(0,"span",27),u(1,"6"),l())}function wle(t,n){1&t&&(d(0,"mat-icon",71),u(1," check_circle "),l())}function Sle(t,n){if(1&t){const e=ge();d(0,"p",26),g(1,Cle,2,0,"span",59),g(2,xle,2,0,"span",59),d(3,"span"),u(4,"GCS Metadata Path (Optional) "),d(5,"mat-icon",69),u(6," info"),l()(),d(7,"span")(8,"button",29),P("click",function(){return ne(e),oe(C().openGcsMetadataDetailsForm())}),u(9," Configure "),d(10,"mat-icon",30),u(11,"edit"),l(),g(12,wle,2,0,"mat-icon",70),l()()()}if(2&t){const e=C();m(1),p("ngIf","Schema"===e.selectedMigrationMode),m(1),p("ngIf","Schema"!==e.selectedMigrationMode),m(6),p("disabled",e.isMigrationInProgress||!e.isTargetDetailSet),m(4),p("ngIf",e.isGcsMetadataDetailSet)}}function Dle(t,n){1&t&&(d(0,"span",27),u(1,"5"),l())}function kle(t,n){if(1&t){const e=ge();d(0,"p",26),g(1,Dle,2,0,"span",59),d(2,"span"),u(3,"Download configuration as JSON "),d(4,"mat-icon",72),u(5,"info "),l()(),d(6,"span")(7,"button",29),P("click",function(){return ne(e),oe(C().downloadConfiguration())}),u(8," Download "),d(9,"mat-icon",73),u(10," download"),l()()()()}if(2&t){const e=C();m(1),p("ngIf",e.isSharded),m(6),p("disabled",!e.isTargetDetailSet||!e.isTargetConnectionProfileSet)}}function Mle(t,n){if(1&t&&(d(0,"div",24)(1,"mat-card")(2,"mat-card-title"),u(3,"Configured Source Details"),l(),d(4,"p",26)(5,"span",27),u(6,"1"),l(),d(7,"span")(8,"b"),u(9,"Source Database: "),l(),u(10),l()(),d(11,"p",26)(12,"span",27),u(13,"2"),l(),d(14,"span")(15,"b"),u(16,"Number of physical instances configured: "),l(),u(17),l()(),d(18,"p",26)(19,"span",27),u(20,"3"),l(),d(21,"span")(22,"b"),u(23,"Number of logical shards configured: "),l(),u(24),l()()()()),2&t){const e=C();m(10),Ie(e.sourceDatabaseType),m(7),ye(" ",e.numberOfInstances,""),m(7),ye(" ",e.numberOfShards,"")}}function Tle(t,n){if(1&t&&(d(0,"div",24)(1,"mat-card")(2,"mat-card-title"),u(3,"Configured Target Details"),l(),d(4,"p",26)(5,"span",27),u(6,"1"),l(),d(7,"span")(8,"b"),u(9,"Spanner Database: "),l(),u(10),l()(),d(11,"p",26)(12,"span",27),u(13,"2"),l(),d(14,"span")(15,"b"),u(16,"Spanner Dialect: "),l(),u(17),l()(),d(18,"p",26)(19,"span",27),u(20,"3"),l(),d(21,"span")(22,"b"),u(23,"Region: "),l(),u(24),l()(),d(25,"p",26)(26,"span",27),u(27,"4"),l(),d(28,"span")(29,"b"),u(30,"Spanner Instance: "),l(),u(31),l()()()()),2&t){const e=C();m(10),Ie(e.targetDetails.TargetDB),m(7),Ie(e.dialect),m(7),Ie(e.region),m(7),B_("",e.instance," (Nodes: ",e.nodeCount,", Processing Units: ",e.processingUnits,")")}}function Ile(t,n){if(1&t&&(d(0,"div",74),S(1,"br")(2,"mat-progress-bar",75),d(3,"span"),u(4),l()()),2&t){const e=C();m(2),p("value",e.schemaMigrationProgress),m(2),ye(" ",e.schemaProgressMessage,"")}}function Ele(t,n){if(1&t&&(d(0,"div",74),S(1,"br")(2,"mat-progress-bar",75),d(3,"span"),u(4),l()()),2&t){const e=C();m(2),p("value",e.dataMigrationProgress),m(2),ye(" ",e.dataProgressMessage,"")}}function Ole(t,n){if(1&t&&(d(0,"div",74),S(1,"br")(2,"mat-progress-bar",75),d(3,"span"),u(4),l()()),2&t){const e=C();m(2),p("value",e.foreignKeyUpdateProgress),m(2),ye(" ",e.foreignKeyProgressMessage,"")}}function Ale(t,n){1&t&&(d(0,"div"),S(1,"br"),d(2,"span",76),S(3,"mat-spinner",77),l(),d(4,"span",78),u(5,"Generating Resources"),l(),S(6,"br"),u(7," Note: Spanner migration tool is creating datastream and dataflow resources. Please look at the terminal logs to check the progress of resource creation. All created resources will be displayed here once they are generated. "),l()),2&t&&(m(3),p("diameter",20))}function Ple(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),u(3,"3"),l(),d(4,"span")(5,"b"),u(6,"Aggregated Monitoring Dashboard: "),l(),d(7,"a",79),u(8),l()()()()),2&t){const e=C(2);m(7),p("href",e.resourcesGenerated.AggMonitoringDashboardUrl,Fo),m(1),Ie(e.resourcesGenerated.AggMonitoringDashboardName)}}function Rle(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),u(3,"3"),l(),d(4,"span")(5,"b"),u(6,"Monitoring Dashboard: "),l(),d(7,"a",79),u(8),l()()()()),2&t){const e=C(2);m(7),p("href",e.resourcesGenerated.MonitoringDashboardUrl,Fo),m(1),Ie(e.resourcesGenerated.MonitoringDashboardName)}}function Fle(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),u(3,"4"),l(),d(4,"span")(5,"b"),u(6,"Datastream job: "),l(),d(7,"a",79),u(8),l()()()()),2&t){const e=C(2);m(7),p("href",e.resourcesGenerated.DataStreamJobUrl,Fo),m(1),Ie(e.resourcesGenerated.DataStreamJobName)}}function Nle(t,n){if(1&t){const e=ge();d(0,"span")(1,"p",26)(2,"span",27),u(3,"5"),l(),d(4,"span")(5,"b"),u(6,"Dataflow job: "),l(),d(7,"a",79),u(8),l()(),d(9,"span")(10,"button",80),P("click",function(){ne(e);const o=C(2);return oe(o.openGcloudPopup(o.resourcesGenerated.DataflowGcloudCmd))}),d(11,"mat-icon",81),u(12," code"),l()()()()()}if(2&t){const e=C(2);m(7),p("href",e.resourcesGenerated.DataflowJobUrl,Fo),m(1),Ie(e.resourcesGenerated.DataflowJobName)}}function Lle(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),u(3,"6"),l(),d(4,"span")(5,"b"),u(6,"Pubsub topic: "),l(),d(7,"a",79),u(8),l()()()()),2&t){const e=C(2);m(7),p("href",e.resourcesGenerated.PubsubTopicUrl,Fo),m(1),Ie(e.resourcesGenerated.PubsubTopicName)}}function Ble(t,n){if(1&t&&(d(0,"span")(1,"p",26)(2,"span",27),u(3,"7"),l(),d(4,"span")(5,"b"),u(6,"Pubsub subscription: "),l(),d(7,"a",79),u(8),l()()()()),2&t){const e=C(2);m(7),p("href",e.resourcesGenerated.PubsubSubscriptionUrl,Fo),m(1),Ie(e.resourcesGenerated.PubsubSubscriptionName)}}function Vle(t,n){1&t&&(d(0,"th",38),u(1," Shard ID "),l())}function jle(t,n){if(1&t&&(d(0,"td",39),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.DataShardId," ")}}function zle(t,n){1&t&&(d(0,"th",38),u(1," Resource Type "),l())}function Hle(t,n){if(1&t&&(d(0,"td",39),u(1),l()),2&t){const e=n.$implicit,i=C(3);m(1),ye(" ",i.resourceTypeToDisplayTest.get(e.ResourceType)," ")}}function Ule(t,n){1&t&&(d(0,"th",38),u(1," Resource Name "),l())}function $le(t,n){if(1&t&&(d(0,"td",39),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.ResourceName," ")}}function Gle(t,n){1&t&&(d(0,"th",38),u(1," Resource Link "),l())}function qle(t,n){if(1&t){const e=ge();d(0,"span")(1,"button",80),P("click",function(){ne(e);const o=C().$implicit;return oe(C(3).openGcloudPopup(o.GcloudCmd))}),d(2,"mat-icon",81),u(3," code"),l()()()}}function Wle(t,n){if(1&t&&(d(0,"td",39)(1,"a",79),u(2),l(),g(3,qle,4,0,"span",10),l()),2&t){const e=n.$implicit;m(1),p("href",e.ResourceUrl,Fo),m(1),Ie(e.ResourceName),m(1),p("ngIf","dataflow"==e.ResourceType)}}function Kle(t,n){1&t&&S(0,"tr",40)}function Zle(t,n){1&t&&S(0,"tr",41)}function Yle(t,n){if(1&t&&(d(0,"span")(1,"h2"),u(2,"Shard Level Resources: "),l(),d(3,"div",82)(4,"table",83),ue(5,84),g(6,Vle,2,0,"th",14),g(7,jle,2,1,"td",15),he(),ue(8,85),g(9,zle,2,0,"th",14),g(10,Hle,2,1,"td",15),he(),ue(11,86),g(12,Ule,2,0,"th",14),g(13,$le,2,1,"td",15),he(),ue(14,87),g(15,Gle,2,0,"th",14),g(16,Wle,4,3,"td",15),he(),g(17,Kle,1,0,"tr",18),g(18,Zle,1,0,"tr",19),l()()()),2&t){const e=C(2);m(4),p("dataSource",e.displayedResourcesDataSource),m(13),p("matHeaderRowDef",e.generatedResourcesColumns),m(1),p("matRowDefColumns",e.generatedResourcesColumns)}}function Qle(t,n){if(1&t&&(d(0,"div")(1,"h2"),u(2),l(),u(3,' Note: This resources displayed below can be looked upto at a later point in time in the "spannermigrationtool_metadata" database in your spanner instance using the migration jobId listed above. '),d(4,"div",24)(5,"mat-card")(6,"mat-card-title"),u(7,"Job Level Resources:"),l(),d(8,"p",26)(9,"span",27),u(10,"1"),l(),d(11,"span")(12,"b"),u(13,"Spanner Database: "),l(),d(14,"a",79),u(15),l()()(),d(16,"p",26)(17,"span",27),u(18,"2"),l(),d(19,"span")(20,"b"),u(21,"GCS bucket: "),l(),d(22,"a",79),u(23),l()()(),g(24,Ple,9,2,"span",10),g(25,Rle,9,2,"span",10),g(26,Fle,9,2,"span",10),g(27,Nle,13,2,"span",10),g(28,Lle,9,2,"span",10),g(29,Ble,9,2,"span",10),l()(),g(30,Yle,19,3,"span",10),l()),2&t){const e=C();m(2),ye("Migration resources generated for migration jobId: ",e.resourcesGenerated.MigrationJobId,""),m(12),p("href",e.resourcesGenerated.DatabaseUrl,Fo),m(1),Ie(e.resourcesGenerated.DatabaseName),m(7),p("href",e.resourcesGenerated.BucketUrl,Fo),m(1),Ie(e.resourcesGenerated.BucketName),m(1),p("ngIf",""!==e.resourcesGenerated.AggMonitoringDashboardName&&"lowdt"===e.selectedMigrationType&&e.isSharded),m(1),p("ngIf",""!==e.resourcesGenerated.MonitoringDashboardName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(1),p("ngIf",""!==e.resourcesGenerated.DataStreamJobName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(1),p("ngIf",""!==e.resourcesGenerated.DataflowJobName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(1),p("ngIf",""!==e.resourcesGenerated.PubsubTopicName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(1),p("ngIf",""!==e.resourcesGenerated.PubsubSubscriptionName&&"lowdt"===e.selectedMigrationType&&!e.isSharded),m(1),p("ngIf","lowdt"===e.selectedMigrationType&&e.isSharded)}}function Xle(t,n){1&t&&(d(0,"div")(1,"b"),u(2,"Note: "),l(),u(3,"Spanner migration tool has orchestrated the migration successfully. For minimal downtime migrations, it is safe to close Spanner migration tool now without affecting the progress of the migration. The resources listed on this page can be viewed in the \"SMT_JOB\" table in the 'spannermigrationtool_metadata' database created in your Spanner instance after you close the Spanner migration tool. "),l())}function Jle(t,n){if(1&t){const e=ge();d(0,"span")(1,"button",88),P("click",function(){return ne(e),oe(C().migrate())}),u(2,"Migrate"),l()()}if(2&t){const e=C();m(1),p("disabled",!(e.isTargetDetailSet&&"lowdt"===e.selectedMigrationType&&e.isSourceConnectionProfileSet&&e.isTargetConnectionProfileSet||e.isTargetDetailSet&&"bulk"===e.selectedMigrationType)||e.isMigrationInProgress)}}function ede(t,n){if(1&t){const e=ge();d(0,"span")(1,"button",89),P("click",function(){return ne(e),oe(C().endMigration())}),u(2,"End Migration"),l()()}}const tde=function(){return[5,10,20]},ide=[{path:"",component:xee},{path:"source",component:Yee,children:[{path:"",redirectTo:"/direct-connection",pathMatch:"full"},{path:"direct-connection",component:AJ},{path:"load-dump",component:Fee},{path:"load-session",component:jee}]},{path:"workspace",component:yse},{path:"instruction",component:YA},{path:"prepare-migration",component:(()=>{class t{constructor(e,i,o,r,a){this.dialog=e,this.fetch=i,this.snack=o,this.data=r,this.sidenav=a,this.displayedColumns=["Title","Source","Destination"],this.dataSource=[],this.migrationModes=[],this.migrationTypes=[],this.isSourceConnectionProfileSet=!1,this.isTargetConnectionProfileSet=!1,this.isDatastreamConfigurationSet=!1,this.isGcsConfigurationSet=!1,this.isDataflowConfigurationSet=!1,this.isSourceDetailsSet=!1,this.isTargetDetailSet=!1,this.isForeignKeySkipped=!1,this.isMigrationDetailSet=!1,this.isStreamingSupported=!1,this.isGcsMetadataDetailSet=!1,this.hasDataMigrationStarted=!1,this.hasSchemaMigrationStarted=!1,this.hasForeignKeyUpdateStarted=!1,this.selectedMigrationMode=Or.schemaAndData,this.connectionType=Pn.DirectConnect,this.selectedMigrationType=Dn.lowDowntimeMigration,this.isMigrationInProgress=!1,this.isLowDtMigrationRunning=!1,this.isResourceGenerated=!1,this.generatingResources=!1,this.errorMessage="",this.schemaProgressMessage="Schema migration in progress...",this.dataProgressMessage="Data migration in progress...",this.foreignKeyProgressMessage="Foreign key update in progress...",this.dataMigrationProgress=0,this.schemaMigrationProgress=0,this.foreignKeyUpdateProgress=0,this.sourceDatabaseName="",this.sourceDatabaseType="",this.resourcesGenerated={MigrationJobId:"",DatabaseName:"",DatabaseUrl:"",BucketName:"",BucketUrl:"",DataStreamJobName:"",DataStreamJobUrl:"",DataflowJobName:"",DataflowJobUrl:"",PubsubTopicName:"",PubsubTopicUrl:"",PubsubSubscriptionName:"",PubsubSubscriptionUrl:"",MonitoringDashboardName:"",MonitoringDashboardUrl:"",AggMonitoringDashboardName:"",AggMonitoringDashboardUrl:"",DataflowGcloudCmd:"",ShardToShardResourcesMap:new Map},this.generatedResourcesColumns=["shardId","resourceType","resourceName","resourceUrl"],this.displayedResources=[],this.displayedResourcesDataSource=new TE(this.displayedResources),this.region="",this.instance="",this.dialect="",this.isSharded=!1,this.numberOfShards="0",this.numberOfInstances="0",this.nodeCount=0,this.processingUnits=0,this.targetDetails={TargetDB:localStorage.getItem(vt.TargetDB),SourceConnProfile:localStorage.getItem(vt.SourceConnProfile),TargetConnProfile:localStorage.getItem(vt.TargetConnProfile),ReplicationSlot:localStorage.getItem(vt.ReplicationSlot),Publication:localStorage.getItem(vt.Publication),GcsMetadataPath:{GcsBucketName:localStorage.getItem(vt.GcsMetadataName),GcsBucketRootPath:localStorage.getItem(vt.GcsMetadataRootPath)||""}},this.datastreamConfig={maxConcurrentBackfillTasks:localStorage.getItem("maxConcurrentBackfillTasks"),maxConcurrentCdcTasks:localStorage.getItem("maxConcurrentCdcTasks")},this.gcsConfig={ttlInDays:localStorage.getItem("ttlInDays"),ttlInDaysSet:"true"===localStorage.getItem("ttlInDaysSet")},this.dataflowConfig={network:localStorage.getItem("network"),subnetwork:localStorage.getItem("subnetwork"),hostProjectId:localStorage.getItem("vpcHostProjectId"),maxWorkers:localStorage.getItem("maxWorkers"),numWorkers:localStorage.getItem("numWorkers"),serviceAccountEmail:localStorage.getItem("serviceAccountEmail"),machineType:localStorage.getItem("machineType"),additionalUserLabels:localStorage.getItem("additionalUserLabels"),kmsKeyName:localStorage.getItem("kmsKeyName"),projectId:localStorage.getItem("dataflowProjectId"),location:localStorage.getItem("dataflowLocation"),gcsTemplatePath:localStorage.getItem("gcsTemplatePath"),customJarPath:localStorage.getItem("customJarPath"),customClassName:localStorage.getItem("customClassName"),customParameter:localStorage.getItem("customParameter")},this.spannerConfig={GCPProjectID:"",SpannerInstanceID:"",IsMetadataDbCreated:!1,IsConfigValid:!1},this.skipForeignKeyResponseList=[{value:!1,displayName:"No"},{value:!0,displayName:"Yes"}],this.migrationModesHelpText=new Map([["Schema","Migrates only the schema of the source database to the configured Spanner instance."],["Data","Migrates the data from the source database to the configured Spanner database. The configured database should already contain the schema."],["Schema And Data","Migrates both the schema and the data from the source database to Spanner."]]),this.migrationTypesHelpText=new Map([["bulk","Use the POC migration option when you want to migrate a sample of your data (<100GB) to do a Proof of Concept. It uses this machine's resources to copy data from the source database to Spanner"],["lowdt","Uses change data capture via Datastream to setup a continuous data replication pipeline from source to Spanner, using Dataflow jobs to perform the actual data migration."]]),this.resourceTypeToDisplayTest=new Map([["gcs","Cloud Storage Bucket"],["pubsub_sub","Pub/Sub subscription"],["pubsub_topic","Pub/Sub topic"],["datastream","Datastream Stream"],["dataflow","Dataflow Job"],["monitoring","Monitoring Dashboard"]])}refreshMigrationMode(){this.selectedMigrationMode!==Or.schemaOnly&&this.isStreamingSupported&&this.connectionType!==Pn.DumpFile?this.migrationTypes=[{name:"POC Migration",value:Dn.bulkMigration},{name:"Minimal downtime Migration",value:Dn.lowDowntimeMigration}]:(this.selectedMigrationType=Dn.bulkMigration,this.migrationTypes=[{name:"POC Migration",value:Dn.bulkMigration}])}refreshPrerequisites(){this.isSourceConnectionProfileSet=!1,this.isTargetConnectionProfileSet=!1,this.isTargetDetailSet=!1,this.isDatastreamConfigurationSet=!1,this.isGcsConfigurationSet=!1,this.isDataflowConfigurationSet=!1,this.isGcsMetadataDetailSet=!1,this.refreshMigrationMode()}ngOnInit(){this.initializeFromLocalStorage(),this.data.config.subscribe(e=>{this.spannerConfig=e}),this.convObj=this.data.conv.subscribe(e=>{this.conv=e}),localStorage.setItem("vpcHostProjectId",this.spannerConfig.GCPProjectID),this.fetch.getSourceDestinationSummary().subscribe({next:e=>{this.connectionType=e.ConnectionType,this.dataSource=[{title:"Database Type",source:e.DatabaseType,target:"Spanner"},{title:"Number of tables",source:e.SourceTableCount,target:e.SpannerTableCount},{title:"Number of indexes",source:e.SourceIndexCount,target:e.SpannerIndexCount}],this.sourceDatabaseType=e.DatabaseType,this.region=e.Region,this.instance=e.Instance,this.dialect=e.Dialect,this.isSharded=e.IsSharded,this.processingUnits=e.ProcessingUnits,this.nodeCount=e.NodeCount,(e.DatabaseType==$o.MySQL.toLowerCase()||e.DatabaseType==$o.Oracle.toLowerCase()||e.DatabaseType==$o.Postgres.toLowerCase())&&(this.isStreamingSupported=!0),this.isStreamingSupported?this.migrationTypes=[{name:"POC Migration",value:Dn.bulkMigration},{name:"Minimal downtime Migration",value:Dn.lowDowntimeMigration}]:(this.selectedMigrationType=Dn.bulkMigration,this.migrationTypes=[{name:"POC Migration",value:Dn.bulkMigration}]),this.sourceDatabaseName=e.SourceDatabaseName,this.migrationModes=[Or.schemaOnly,Or.dataOnly,Or.schemaAndData]},error:e=>{this.snack.openSnackBar(e.error,"Close")}})}initializeFromLocalStorage(){null!=localStorage.getItem(le.MigrationMode)&&(this.selectedMigrationMode=localStorage.getItem(le.MigrationMode)),null!=localStorage.getItem(le.MigrationType)&&(this.selectedMigrationType=localStorage.getItem(le.MigrationType)),null!=localStorage.getItem(le.isForeignKeySkipped)&&(this.isForeignKeySkipped="true"===localStorage.getItem(le.isForeignKeySkipped)),null!=localStorage.getItem(le.IsMigrationInProgress)&&(this.isMigrationInProgress="true"===localStorage.getItem(le.IsMigrationInProgress),this.subscribeMigrationProgress()),null!=localStorage.getItem(le.IsTargetDetailSet)&&(this.isTargetDetailSet="true"===localStorage.getItem(le.IsTargetDetailSet)),null!=localStorage.getItem(le.IsSourceConnectionProfileSet)&&(this.isSourceConnectionProfileSet="true"===localStorage.getItem(le.IsSourceConnectionProfileSet)),null!=localStorage.getItem("isDatastreamConfigSet")&&(this.isDatastreamConfigurationSet="true"===localStorage.getItem("isDatastreamConfigSet")),null!=localStorage.getItem("isGcsConfigSet")&&(this.isGcsConfigurationSet="true"===localStorage.getItem("isGcsConfigSet")),null!=localStorage.getItem("isDataflowConfigSet")&&(this.isDataflowConfigurationSet="true"===localStorage.getItem("isDataflowConfigSet")),null!=localStorage.getItem(le.IsGcsMetadataPathSet)&&(this.isGcsMetadataDetailSet="true"===localStorage.getItem(le.IsGcsMetadataPathSet)),null!=localStorage.getItem(le.IsTargetConnectionProfileSet)&&(this.isTargetConnectionProfileSet="true"===localStorage.getItem(le.IsTargetConnectionProfileSet)),null!=localStorage.getItem(le.IsSourceDetailsSet)&&(this.isSourceDetailsSet="true"===localStorage.getItem(le.IsSourceDetailsSet)),null!=localStorage.getItem(le.IsMigrationDetailSet)&&(this.isMigrationDetailSet="true"===localStorage.getItem(le.IsMigrationDetailSet)),null!=localStorage.getItem(le.HasSchemaMigrationStarted)&&(this.hasSchemaMigrationStarted="true"===localStorage.getItem(le.HasSchemaMigrationStarted)),null!=localStorage.getItem(le.HasDataMigrationStarted)&&(this.hasDataMigrationStarted="true"===localStorage.getItem(le.HasDataMigrationStarted)),null!=localStorage.getItem(le.DataMigrationProgress)&&(this.dataMigrationProgress=parseInt(localStorage.getItem(le.DataMigrationProgress))),null!=localStorage.getItem(le.SchemaMigrationProgress)&&(this.schemaMigrationProgress=parseInt(localStorage.getItem(le.SchemaMigrationProgress))),null!=localStorage.getItem(le.DataProgressMessage)&&(this.dataProgressMessage=localStorage.getItem(le.DataProgressMessage)),null!=localStorage.getItem(le.SchemaProgressMessage)&&(this.schemaProgressMessage=localStorage.getItem(le.SchemaProgressMessage)),null!=localStorage.getItem(le.ForeignKeyProgressMessage)&&(this.foreignKeyProgressMessage=localStorage.getItem(le.ForeignKeyProgressMessage)),null!=localStorage.getItem(le.ForeignKeyUpdateProgress)&&(this.foreignKeyUpdateProgress=parseInt(localStorage.getItem(le.ForeignKeyUpdateProgress))),null!=localStorage.getItem(le.HasForeignKeyUpdateStarted)&&(this.hasForeignKeyUpdateStarted="true"===localStorage.getItem(le.HasForeignKeyUpdateStarted)),null!=localStorage.getItem(le.GeneratingResources)&&(this.generatingResources="true"===localStorage.getItem(le.GeneratingResources)),null!=localStorage.getItem(le.NumberOfShards)&&(this.numberOfShards=localStorage.getItem(le.NumberOfShards)),null!=localStorage.getItem(le.NumberOfInstances)&&(this.numberOfInstances=localStorage.getItem(le.NumberOfInstances))}clearLocalStorage(){localStorage.removeItem(le.MigrationMode),localStorage.removeItem(le.MigrationType),localStorage.removeItem(le.IsTargetDetailSet),localStorage.removeItem(le.IsGcsMetadataPathSet),localStorage.removeItem(le.isForeignKeySkipped),localStorage.removeItem(le.IsSourceConnectionProfileSet),localStorage.removeItem(le.IsTargetConnectionProfileSet),localStorage.removeItem(le.IsSourceDetailsSet),localStorage.removeItem("isDatastreamConfigSet"),localStorage.removeItem("maxConcurrentBackfillTasks"),localStorage.removeItem("maxConcurrentCdcTasks"),localStorage.removeItem("isGcsConfigSet"),localStorage.removeItem("ttlInDays"),localStorage.removeItem("ttlInDaysSet"),localStorage.removeItem("isDataflowConfigSet"),localStorage.removeItem("network"),localStorage.removeItem("subnetwork"),localStorage.removeItem("maxWorkers"),localStorage.removeItem("numWorkers"),localStorage.removeItem("serviceAccountEmail"),localStorage.removeItem("vpcHostProjectId"),localStorage.removeItem("machineType"),localStorage.removeItem("additionalUserLabels"),localStorage.removeItem("kmsKeyName"),localStorage.removeItem("dataflowProjectId"),localStorage.removeItem("dataflowLocation"),localStorage.removeItem("gcsTemplatePath"),localStorage.removeItem(le.IsMigrationInProgress),localStorage.removeItem(le.HasSchemaMigrationStarted),localStorage.removeItem(le.HasDataMigrationStarted),localStorage.removeItem(le.DataMigrationProgress),localStorage.removeItem(le.SchemaMigrationProgress),localStorage.removeItem(le.DataProgressMessage),localStorage.removeItem(le.SchemaProgressMessage),localStorage.removeItem(le.ForeignKeyProgressMessage),localStorage.removeItem(le.ForeignKeyUpdateProgress),localStorage.removeItem(le.HasForeignKeyUpdateStarted),localStorage.removeItem(le.GeneratingResources),localStorage.removeItem(le.NumberOfShards),localStorage.removeItem(le.NumberOfInstances)}openConnectionProfileForm(e){this.dialog.open(Ase,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:{IsSource:e,SourceDatabaseType:this.sourceDatabaseType}}).afterClosed().subscribe(()=>{this.targetDetails={TargetDB:localStorage.getItem(vt.TargetDB),SourceConnProfile:localStorage.getItem(vt.SourceConnProfile),TargetConnProfile:localStorage.getItem(vt.TargetConnProfile),ReplicationSlot:localStorage.getItem(vt.ReplicationSlot),Publication:localStorage.getItem(vt.Publication),GcsMetadataPath:{GcsBucketName:localStorage.getItem(vt.GcsMetadataName),GcsBucketRootPath:localStorage.getItem(vt.GcsMetadataRootPath)}},this.isSourceConnectionProfileSet="true"===localStorage.getItem(le.IsSourceConnectionProfileSet),this.isTargetConnectionProfileSet="true"===localStorage.getItem(le.IsTargetConnectionProfileSet),this.isTargetDetailSet&&this.isSourceConnectionProfileSet&&this.isTargetConnectionProfileSet&&(localStorage.setItem(le.IsMigrationDetailSet,"true"),this.isMigrationDetailSet=!0)})}openMigrationProfileForm(){this.dialog.open(Pce,{width:"30vw",minWidth:"1200px",maxWidth:"1600px",data:{IsSource:!1,SourceDatabaseType:this.sourceDatabaseType,Region:this.region}}).afterClosed().subscribe(()=>{this.targetDetails={TargetDB:localStorage.getItem(vt.TargetDB),SourceConnProfile:localStorage.getItem(vt.SourceConnProfile),TargetConnProfile:localStorage.getItem(vt.TargetConnProfile),ReplicationSlot:localStorage.getItem(vt.ReplicationSlot),Publication:localStorage.getItem(vt.Publication),GcsMetadataPath:{GcsBucketName:localStorage.getItem(vt.GcsMetadataName),GcsBucketRootPath:localStorage.getItem(vt.GcsMetadataRootPath)}},null!=localStorage.getItem(le.NumberOfShards)&&(this.numberOfShards=localStorage.getItem(le.NumberOfShards)),null!=localStorage.getItem(le.NumberOfInstances)&&(this.numberOfInstances=localStorage.getItem(le.NumberOfInstances)),this.isSourceConnectionProfileSet="true"===localStorage.getItem(le.IsSourceConnectionProfileSet),this.isTargetConnectionProfileSet="true"===localStorage.getItem(le.IsTargetConnectionProfileSet),this.isTargetDetailSet&&this.isSourceConnectionProfileSet&&this.isTargetConnectionProfileSet&&(localStorage.setItem(le.IsMigrationDetailSet,"true"),this.isMigrationDetailSet=!0)})}openGcloudPopup(e){this.dialog.open(Zse,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:e})}openTuneDatastreamForm(){this.dialog.open(qse,{width:"4000px",minWidth:"400px",maxWidth:"500px",data:{sourceType:this.sourceDatabaseType}}).afterClosed().subscribe(()=>{this.datastreamConfig={maxConcurrentBackfillTasks:localStorage.getItem("maxConcurrentBackfillTasks"),maxConcurrentCdcTasks:localStorage.getItem("maxConcurrentCdcTasks")},this.isDatastreamConfigurationSet="true"===localStorage.getItem("isDatastreamConfigSet"),this.isSharded&&this.fetch.setDatastreamDetailsForShardedMigrations(this.datastreamConfig).subscribe({next:()=>{},error:i=>{this.snack.openSnackBar(i.error,"Close")}})})}openTuneGcsForm(){this.dialog.open(Kse,{width:"4000px",minWidth:"400px",maxWidth:"500px"}).afterClosed().subscribe(()=>{this.gcsConfig={ttlInDays:localStorage.getItem("ttlInDays"),ttlInDaysSet:"true"===localStorage.getItem("ttlInDaysSet")},this.isGcsConfigurationSet="true"===localStorage.getItem("isGcsConfigSet"),this.isSharded&&this.fetch.setGcsDetailsForShardedMigrations(this.gcsConfig).subscribe({next:()=>{},error:i=>{this.snack.openSnackBar(i.error,"Close")}})})}openDataflowForm(){this.dialog.open($se,{width:"4000px",minWidth:"400px",maxWidth:"500px",data:this.spannerConfig}).afterClosed().subscribe(()=>{this.dataflowConfig={network:localStorage.getItem("network"),subnetwork:localStorage.getItem("subnetwork"),hostProjectId:localStorage.getItem("vpcHostProjectId"),maxWorkers:localStorage.getItem("maxWorkers"),numWorkers:localStorage.getItem("numWorkers"),serviceAccountEmail:localStorage.getItem("serviceAccountEmail"),machineType:localStorage.getItem("machineType"),additionalUserLabels:localStorage.getItem("additionalUserLabels"),kmsKeyName:localStorage.getItem("kmsKeyName"),projectId:localStorage.getItem("dataflowProjectId"),location:localStorage.getItem("dataflowLocation"),gcsTemplatePath:localStorage.getItem("gcsTemplatePath"),customJarPath:localStorage.getItem("customJarPath"),customClassName:localStorage.getItem("customClassName"),customParameter:localStorage.getItem("customParameter")},this.isDataflowConfigurationSet="true"===localStorage.getItem("isDataflowConfigSet"),this.isSharded&&this.fetch.setDataflowDetailsForShardedMigrations(this.dataflowConfig).subscribe({next:()=>{},error:i=>{this.snack.openSnackBar(i.error,"Close")}})})}endMigration(){this.dialog.open(Use,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:{SpannerDatabaseName:this.resourcesGenerated.DatabaseName,SpannerDatabaseUrl:this.resourcesGenerated.DatabaseUrl,SourceDatabaseType:this.sourceDatabaseType,SourceDatabaseName:this.sourceDatabaseName}}).afterClosed().subscribe()}openSourceDetailsForm(){this.dialog.open(zse,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:this.sourceDatabaseType}).afterClosed().subscribe(()=>{this.isSourceDetailsSet="true"===localStorage.getItem(le.IsSourceDetailsSet)})}openShardedBulkSourceDetailsForm(){this.dialog.open(tce,{width:"30vw",minWidth:"400px",maxWidth:"550px",data:{sourceDatabaseEngine:this.sourceDatabaseType,isRestoredSession:this.connectionType}}).afterClosed().subscribe(()=>{this.isSourceDetailsSet="true"===localStorage.getItem(le.IsSourceDetailsSet),null!=localStorage.getItem(le.NumberOfShards)&&(this.numberOfShards=localStorage.getItem(le.NumberOfShards)),null!=localStorage.getItem(le.NumberOfInstances)&&(this.numberOfInstances=localStorage.getItem(le.NumberOfInstances))})}openTargetDetailsForm(){this.dialog.open(Cse,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:{Region:this.region,Instance:this.instance,Dialect:this.dialect}}).afterClosed().subscribe(()=>{this.targetDetails={TargetDB:localStorage.getItem(vt.TargetDB),SourceConnProfile:localStorage.getItem(vt.SourceConnProfile),TargetConnProfile:localStorage.getItem(vt.TargetConnProfile),ReplicationSlot:localStorage.getItem(vt.ReplicationSlot),Publication:localStorage.getItem(vt.Publication),GcsMetadataPath:{GcsBucketName:localStorage.getItem(vt.GcsMetadataName),GcsBucketRootPath:localStorage.getItem(vt.GcsMetadataRootPath)}},this.isTargetDetailSet="true"===localStorage.getItem(le.IsTargetDetailSet),(this.isSourceDetailsSet&&this.isTargetDetailSet&&this.connectionType===Pn.SessionFile&&this.selectedMigrationMode!==Or.schemaOnly||this.isTargetDetailSet&&this.selectedMigrationType==Dn.bulkMigration&&this.connectionType!==Pn.SessionFile||this.isTargetDetailSet&&this.selectedMigrationType==Dn.bulkMigration&&this.connectionType===Pn.SessionFile&&this.selectedMigrationMode===Or.schemaOnly)&&(localStorage.setItem(le.IsMigrationDetailSet,"true"),this.isMigrationDetailSet=!0)})}openGcsMetadataDetailsForm(){this.dialog.open(Rce,SJ).afterClosed().subscribe(()=>{this.isGcsMetadataDetailSet="true"===localStorage.getItem(le.IsGcsMetadataPathSet),this.targetDetails={TargetDB:localStorage.getItem(vt.TargetDB),SourceConnProfile:localStorage.getItem(vt.SourceConnProfile),TargetConnProfile:localStorage.getItem(vt.TargetConnProfile),ReplicationSlot:localStorage.getItem(vt.ReplicationSlot),Publication:localStorage.getItem(vt.Publication),GcsMetadataPath:{GcsBucketName:localStorage.getItem(vt.GcsMetadataName),GcsBucketRootPath:localStorage.getItem(vt.GcsMetadataRootPath)}}})}migrate(){this.resetValues(),this.fetch.migrate({TargetDetails:this.targetDetails,DatastreamConfig:this.datastreamConfig,GcsConfig:this.gcsConfig,DataflowConfig:this.dataflowConfig,IsSharded:this.isSharded,MigrationType:this.selectedMigrationType,MigrationMode:this.selectedMigrationMode,skipForeignKeys:this.isForeignKeySkipped}).subscribe({next:()=>{this.selectedMigrationMode==Or.dataOnly?this.selectedMigrationType==Dn.bulkMigration?(this.hasDataMigrationStarted=!0,localStorage.setItem(le.HasDataMigrationStarted,this.hasDataMigrationStarted.toString())):(this.generatingResources=!0,localStorage.setItem(le.GeneratingResources,this.generatingResources.toString()),this.snack.openSnackBar("Setting up dataflow and datastream jobs","Close")):(this.hasSchemaMigrationStarted=!0,localStorage.setItem(le.HasSchemaMigrationStarted,this.hasSchemaMigrationStarted.toString())),this.snack.openSnackBar("Migration started successfully","Close",5),this.subscribeMigrationProgress()},error:i=>{this.snack.openSnackBar(i.error,"Close"),this.isMigrationInProgress=!this.isMigrationInProgress,this.hasDataMigrationStarted=!1,this.hasSchemaMigrationStarted=!1,this.clearLocalStorage()}})}subscribeMigrationProgress(){var e=!1;this.subscription=ZA(5e3).subscribe(i=>{this.fetch.getProgress().subscribe({next:o=>{""==o.ErrorMessage?o.ProgressStatus==vl.SchemaMigrationComplete?(localStorage.setItem(le.SchemaMigrationProgress,"100"),this.schemaMigrationProgress=parseInt(localStorage.getItem(le.SchemaMigrationProgress)),this.selectedMigrationMode==Or.schemaOnly?this.markMigrationComplete():this.selectedMigrationType==Dn.lowDowntimeMigration?(this.markSchemaMigrationComplete(),this.generatingResources=!0,localStorage.setItem(le.GeneratingResources,this.generatingResources.toString()),e||(this.snack.openSnackBar("Setting up dataflow and datastream jobs","Close"),e=!0)):(this.markSchemaMigrationComplete(),this.hasDataMigrationStarted=!0,localStorage.setItem(le.HasDataMigrationStarted,this.hasDataMigrationStarted.toString()))):o.ProgressStatus==vl.DataMigrationComplete?(this.selectedMigrationType!=Dn.lowDowntimeMigration&&(this.hasDataMigrationStarted=!0,localStorage.setItem(le.HasDataMigrationStarted,this.hasDataMigrationStarted.toString())),this.generatingResources=!1,localStorage.setItem(le.GeneratingResources,this.generatingResources.toString()),this.markMigrationComplete()):o.ProgressStatus==vl.DataWriteInProgress?(this.markSchemaMigrationComplete(),this.hasDataMigrationStarted=!0,localStorage.setItem(le.HasDataMigrationStarted,this.hasDataMigrationStarted.toString()),localStorage.setItem(le.DataMigrationProgress,o.Progress.toString()),this.dataMigrationProgress=parseInt(localStorage.getItem(le.DataMigrationProgress))):o.ProgressStatus==vl.ForeignKeyUpdateComplete?this.markMigrationComplete():o.ProgressStatus==vl.ForeignKeyUpdateInProgress&&(this.markSchemaMigrationComplete(),this.selectedMigrationType==Dn.bulkMigration&&(this.hasDataMigrationStarted=!0,localStorage.setItem(le.HasDataMigrationStarted,this.hasDataMigrationStarted.toString())),this.markForeignKeyUpdateInitiation(),this.dataMigrationProgress=100,localStorage.setItem(le.DataMigrationProgress,this.dataMigrationProgress.toString()),localStorage.setItem(le.ForeignKeyUpdateProgress,o.Progress.toString()),this.foreignKeyUpdateProgress=parseInt(localStorage.getItem(le.ForeignKeyUpdateProgress)),this.generatingResources=!1,localStorage.setItem(le.GeneratingResources,this.generatingResources.toString()),this.fetchGeneratedResources()):(this.errorMessage=o.ErrorMessage,this.subscription.unsubscribe(),this.isMigrationInProgress=!this.isMigrationInProgress,this.snack.openSnackBarWithoutTimeout(this.errorMessage,"Close"),this.schemaProgressMessage="Schema migration cancelled!",this.dataProgressMessage="Data migration cancelled!",this.foreignKeyProgressMessage="Foreign key update cancelled!",this.generatingResources=!1,this.isLowDtMigrationRunning=!1,this.clearLocalStorage())},error:o=>{this.snack.openSnackBar(o.error,"Close"),this.isMigrationInProgress=!this.isMigrationInProgress,this.clearLocalStorage()}})})}markForeignKeyUpdateInitiation(){this.dataMigrationProgress=100,this.dataProgressMessage="Data migration completed successfully!",localStorage.setItem(le.DataMigrationProgress,this.dataMigrationProgress.toString()),localStorage.setItem(le.DataMigrationProgress,this.dataMigrationProgress.toString()),this.hasForeignKeyUpdateStarted=!0,this.foreignKeyUpdateProgress=parseInt(localStorage.getItem(le.ForeignKeyUpdateProgress))}markSchemaMigrationComplete(){this.schemaMigrationProgress=100,this.schemaProgressMessage="Schema migration completed successfully!",localStorage.setItem(le.SchemaMigrationProgress,this.schemaMigrationProgress.toString()),localStorage.setItem(le.SchemaProgressMessage,this.schemaProgressMessage)}downloadConfiguration(){this.fetch.getSourceProfile().subscribe({next:e=>{this.configuredMigrationProfile=e;var i=document.createElement("a");let o=JSON.stringify(this.configuredMigrationProfile,null,"\t").replace(/9223372036854776000/g,"9223372036854775807");i.href="data:text/json;charset=utf-8,"+encodeURIComponent(o),i.download=localStorage.getItem(vt.TargetDB)+"-"+this.configuredMigrationProfile.configType+"-shardConfig.cfg",i.click()},error:e=>{this.snack.openSnackBar(e.error,"Close")}})}fetchGeneratedResources(){this.fetch.getGeneratedResources().subscribe({next:e=>{this.isResourceGenerated=!0,this.resourcesGenerated=e,this.resourcesGenerated.ShardToShardResourcesMap=new Map(Object.entries(this.resourcesGenerated.ShardToShardResourcesMap)),this.prepareGeneratedResourcesTableData(this.resourcesGenerated)},error:e=>{this.snack.openSnackBar(e.error,"Close")}}),this.selectedMigrationType===Dn.lowDowntimeMigration&&(this.isLowDtMigrationRunning=!0)}markMigrationComplete(){this.subscription.unsubscribe(),this.isMigrationInProgress=!this.isMigrationInProgress,this.dataProgressMessage="Data migration completed successfully!",this.schemaProgressMessage="Schema migration completed successfully!",this.schemaMigrationProgress=100,this.dataMigrationProgress=100,this.foreignKeyUpdateProgress=100,this.foreignKeyProgressMessage="Foreign key updated successfully!",this.fetchGeneratedResources(),this.clearLocalStorage(),this.refreshPrerequisites()}resetValues(){this.isMigrationInProgress=!this.isMigrationInProgress,this.hasSchemaMigrationStarted=!1,this.hasDataMigrationStarted=!1,this.generatingResources=!1,this.dataMigrationProgress=0,this.schemaMigrationProgress=0,this.schemaProgressMessage="Schema migration in progress...",this.dataProgressMessage="Data migration in progress...",this.isResourceGenerated=!1,this.hasForeignKeyUpdateStarted=!1,this.foreignKeyUpdateProgress=100,this.foreignKeyProgressMessage="Foreign key update in progress...",this.resourcesGenerated={MigrationJobId:"",DatabaseName:"",DatabaseUrl:"",BucketName:"",BucketUrl:"",DataStreamJobName:"",DataStreamJobUrl:"",DataflowJobName:"",DataflowJobUrl:"",PubsubTopicName:"",PubsubTopicUrl:"",PubsubSubscriptionName:"",PubsubSubscriptionUrl:"",MonitoringDashboardName:"",MonitoringDashboardUrl:"",AggMonitoringDashboardName:"",AggMonitoringDashboardUrl:"",DataflowGcloudCmd:"",ShardToShardResourcesMap:new Map},this.initializeLocalStorage()}initializeLocalStorage(){localStorage.setItem(le.MigrationMode,this.selectedMigrationMode),localStorage.setItem(le.MigrationType,this.selectedMigrationType),localStorage.setItem(le.isForeignKeySkipped,this.isForeignKeySkipped.toString()),localStorage.setItem(le.IsMigrationInProgress,this.isMigrationInProgress.toString()),localStorage.setItem(le.HasSchemaMigrationStarted,this.hasSchemaMigrationStarted.toString()),localStorage.setItem(le.HasDataMigrationStarted,this.hasDataMigrationStarted.toString()),localStorage.setItem(le.HasForeignKeyUpdateStarted,this.hasForeignKeyUpdateStarted.toString()),localStorage.setItem(le.DataMigrationProgress,this.dataMigrationProgress.toString()),localStorage.setItem(le.SchemaMigrationProgress,this.schemaMigrationProgress.toString()),localStorage.setItem(le.ForeignKeyUpdateProgress,this.foreignKeyUpdateProgress.toString()),localStorage.setItem(le.SchemaProgressMessage,this.schemaProgressMessage),localStorage.setItem(le.DataProgressMessage,this.dataProgressMessage),localStorage.setItem(le.ForeignKeyProgressMessage,this.foreignKeyProgressMessage),localStorage.setItem(le.IsTargetDetailSet,this.isTargetDetailSet.toString()),localStorage.setItem(le.GeneratingResources,this.generatingResources.toString()),localStorage.setItem(le.IsGcsMetadataPathSet,this.isGcsMetadataDetailSet.toString())}openSaveSessionSidenav(){this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("saveSession"),this.sidenav.setSidenavDatabaseName(this.conv.DatabaseName)}downloadSession(){qA(this.conv)}prepareGeneratedResourcesTableData(e){for(let[i,o]of e.ShardToShardResourcesMap){for(let r of o)r.DataShardId=i;this.displayedResources.push(...o)}this.displayedResourcesDataSource=new TE(this.displayedResources),this.displayedResourcesDataSource.paginator=this.paginator}ngOnDestroy(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(Mr),_(pn),_(Go),_(Pi),_(Rn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-prepare-migration"]],viewQuery:function(i,o){if(1&i&&bt(f0,5),2&i){let r;Ee(r=Oe())&&(o.paginator=r.first)}},decls:100,vars:41,consts:[[1,"header"],[1,"breadcrumb"],["mat-button","",1,"breadcrumb_source",3,"routerLink"],["mat-button","",1,"breadcrumb_workspace",3,"routerLink"],["mat-button","",1,"breadcrumb_prepare_migration",3,"routerLink"],[1,"header_action"],["mat-button","",3,"click"],["mat-button","","color","primary",3,"click"],[1,"body"],[1,"definition-container"],[4,"ngIf"],[1,"summary"],["id","summary-table","mat-table","",3,"dataSource"],["matColumnDef","Title"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Source"],["matColumnDef","Destination"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["appearance","outline"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"configure",3,"matTooltip"],[1,"mat-card-class"],["class","static-prereqs",4,"ngIf"],[1,"point"],[1,"bullet"],["matTooltip","Configure the database in Spanner you want this migration to write to (up till now only GCP Project ID and Spanner Instance name have been configured.)",1,"configure"],["mat-button","","color","primary",3,"disabled","click"],["iconPositionEnd",""],["iconPositionEnd","","class","success","matTooltip","Target details configured","matTooltipPosition","above",4,"ngIf"],["class","point",4,"ngIf"],["class","mat-card-class",4,"ngIf"],["class","progress_bar",4,"ngIf"],[1,"mat-elevation-z8",3,"hidden"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],[1,"migrate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[3,"value"],[3,"ngModel","ngModelChange"],[1,"static-prereqs"],["href","https://cloud.google.com/datastream/docs/sources","target","_blank"],["href","https://cloud.google.com/dataflow/docs/concepts/security-and-permissions","target","_blank"],["href","https://cloud.google.com/dataflow/docs/guides/routes-firewall","target","_blank"],["iconPositionEnd","","class","success","matTooltip","Source details configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Source details configured","matTooltipPosition","above",1,"success"],["matTooltip","Configure the connection info of all source shards to connect to and migrate data from.",1,"configure"],["iconPositionEnd","","matTooltip","Target details configured","matTooltipPosition","above",1,"success"],["matTooltip","Datastream will be used to capture change events from the source database. Please ensure you have met the pre-requistes required for setting up Datastream in your GCP environment. ",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Source connection profile configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Source connection profile configured","matTooltipPosition","above",1,"success"],["matTooltip","Configure the source connection profile to allow Datastream to read from your source database",1,"configure"],["matTooltip","Create a connection profile for datastream to write to a GCS bucket. Spanner migration tool will automatically create the bucket for you.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Target connection profile configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Target connection profile configured","matTooltipPosition","above",1,"success"],["class","bullet",4,"ngIf"],["matTooltip","Datastream will be used to stream CDC from source to GCS. This helps you configure the runtime environment for the Datastream job(s) e.g Parallel Backfill workers.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Datastream Tuned","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Datastream Tuned","matTooltipPosition","above",1,"success"],["matTooltip","Use this to tune the GCS bucket options where Datastream outputs to and Dataflow reads from.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Cloud Storage bucket Configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Cloud Storage bucket Configured","matTooltipPosition","above",1,"success"],["matTooltip","Dataflow will be used to perform the actual migration of data from source to Spanner. This helps you configure the execution environment for Dataflow jobs e.g VPC.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","Dataflow Configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","Dataflow Configured","matTooltipPosition","above",1,"success"],["matTooltip","Specify existing or new GCS path to store metadata for migration.",1,"configure"],["iconPositionEnd","","class","success","matTooltip","GCS Metadata Path Configured","matTooltipPosition","above",4,"ngIf"],["iconPositionEnd","","matTooltip","GCS Metadata Path Configured","matTooltipPosition","above",1,"success"],["matTooltip","Download the configuration done above as JSON.",1,"configure"],["iconPositionEnd","","matTooltip","Download configured shards as JSON","matTooltipPosition","above"],[1,"progress_bar"],["mode","determinate",3,"value"],[1,"spinner"],[3,"diameter"],[1,"spinner-text"],["target","_blank",3,"href"],["mat-button","",1,"configure",3,"click"],["matTooltip","Equivalent gCloud command","matTooltipPosition","above"],[1,"mat-elevation-z8"],["id","resources-table","mat-table","",3,"dataSource"],["matColumnDef","shardId"],["matColumnDef","resourceType"],["matColumnDef","resourceName"],["matColumnDef","resourceUrl"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"a",2),u(3,"Select Source"),l(),d(4,"span"),u(5,">"),l(),d(6,"a",3),u(7),l(),d(8,"span"),u(9,">"),l(),d(10,"a",4)(11,"b"),u(12,"Prepare Migration"),l()()(),d(13,"div",5)(14,"button",6),P("click",function(){return o.openSaveSessionSidenav()}),u(15," SAVE SESSION "),l(),d(16,"button",7),P("click",function(){return o.downloadSession()}),u(17,"DOWNLOAD SESSION FILE"),l()()(),S(18,"br"),d(19,"div",8)(20,"div",9),g(21,Fce,2,0,"h2",10),g(22,Nce,2,0,"h2",10),d(23,"div",11)(24,"table",12),ue(25,13),g(26,Lce,2,0,"th",14),g(27,Bce,3,1,"td",15),he(),ue(28,16),g(29,Vce,2,0,"th",14),g(30,jce,2,1,"td",15),he(),ue(31,17),g(32,zce,2,0,"th",14),g(33,Hce,2,1,"td",15),he(),g(34,Uce,1,0,"tr",18),g(35,$ce,1,0,"tr",19),l()()(),S(36,"br"),d(37,"mat-form-field",20)(38,"mat-label"),u(39,"Migration Mode:"),l(),d(40,"mat-select",21),P("ngModelChange",function(a){return o.selectedMigrationMode=a})("selectionChange",function(){return o.refreshPrerequisites()}),g(41,Gce,2,2,"mat-option",22),l()(),d(42,"mat-icon",23),u(43,"info"),l(),S(44,"br"),g(45,Wce,9,3,"div",10),g(46,Zce,6,2,"div",10),d(47,"div",24)(48,"mat-card")(49,"mat-card-title"),u(50,"Prerequisites"),l(),d(51,"mat-card-subtitle"),u(52,"Before we begin, please ensure you have done the following:"),l(),g(53,Yce,6,0,"div",25),g(54,Qce,20,0,"div",25),l()(),d(55,"div",24)(56,"mat-card"),g(57,Jce,14,2,"div",10),g(58,tle,16,2,"div",10),d(59,"div")(60,"mat-card-title"),u(61,"Target details:"),l(),d(62,"p",26)(63,"span",27),u(64,"1"),l(),d(65,"span"),u(66,"Configure Spanner Database "),d(67,"mat-icon",28),u(68," info"),l()(),d(69,"span")(70,"button",29),P("click",function(){return o.openTargetDetailsForm()}),u(71," Configure "),d(72,"mat-icon",30),u(73,"edit"),l(),g(74,ile,2,0,"mat-icon",31),l()()(),g(75,ole,13,2,"p",32),g(76,ale,13,2,"p",32),g(77,cle,13,2,"p",32),g(78,hle,13,4,"p",32),g(79,gle,13,4,"p",32),g(80,yle,13,4,"p",32),g(81,Sle,13,4,"p",32),g(82,kle,11,2,"p",32),l()()(),g(83,Mle,25,3,"div",33),g(84,Tle,32,6,"div",33),g(85,Ile,5,2,"div",34),g(86,Ele,5,2,"div",34),g(87,Ole,5,2,"div",34),g(88,Ale,8,1,"div",10),S(89,"br")(90,"br"),g(91,Qle,31,12,"div",10),d(92,"div",35),S(93,"mat-paginator",36),l(),S(94,"br")(95,"br"),g(96,Xle,4,0,"div",10),d(97,"div",37),g(98,Jle,3,1,"span",10),g(99,ede,3,0,"span",10),l()()),2&i&&(m(2),p("routerLink","/"),m(4),p("routerLink","/workspace"),m(1),ye("Configure Schema (",o.dialect," Dialect)"),m(3),p("routerLink","/prepare-migration"),m(11),p("ngIf",!o.isSharded),m(1),p("ngIf",o.isSharded),m(2),p("dataSource",o.dataSource),m(10),p("matHeaderRowDef",o.displayedColumns),m(1),p("matRowDefColumns",o.displayedColumns),m(5),p("ngModel",o.selectedMigrationMode),m(1),p("ngForOf",o.migrationModes),m(1),p("matTooltip",o.migrationModesHelpText.get(o.selectedMigrationMode)),m(3),p("ngIf","Schema"!=o.selectedMigrationMode),m(1),p("ngIf",!("Schema"===o.selectedMigrationMode||"lowdt"===o.selectedMigrationType)),m(7),p("ngIf","bulk"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(1),p("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(3),p("ngIf","sessionFile"===o.connectionType&&"Schema"!==o.selectedMigrationMode&&!o.isSharded),m(1),p("ngIf",o.isSharded&&"bulk"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(12),p("disabled",o.isMigrationInProgress||o.isLowDtMigrationRunning),m(4),p("ngIf",o.isTargetDetailSet),m(1),p("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode&&o.isSharded),m(1),p("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode&&!o.isSharded),m(1),p("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode&&!o.isSharded),m(1),p("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(1),p("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(1),p("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode),m(1),p("ngIf",o.isSharded),m(1),p("ngIf","lowdt"===o.selectedMigrationType&&"Schema"!==o.selectedMigrationMode&&o.isSharded),m(1),p("ngIf","Schema"!==o.selectedMigrationMode&&o.isSharded),m(1),p("ngIf",o.isTargetDetailSet),m(1),p("ngIf",o.hasSchemaMigrationStarted),m(1),p("ngIf",o.hasDataMigrationStarted),m(1),p("ngIf",o.hasForeignKeyUpdateStarted),m(1),p("ngIf",o.generatingResources),m(3),p("ngIf",o.isResourceGenerated),m(1),p("hidden",!(o.isResourceGenerated&&"lowdt"===o.selectedMigrationType&&o.isSharded)),m(1),p("pageSizeOptions",yo(40,tde)),m(3),p("ngIf",o.isResourceGenerated&&"lowdt"===o.selectedMigrationType),m(2),p("ngIf",!o.isLowDtMigrationRunning),m(1),p("ngIf",o.isLowDtMigrationRunning))},dependencies:[qi,kt,Er,c2,Gt,vi,Wd,Xv,Qv,R2,_i,gi,An,un,li,$a,sa,Ga,ca,aa,qa,la,da,Wa,Ka,f0,on,Jc,Cl],styles:[".header[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb_workspace[_ngcontent-%COMP%]{color:#0000008f}.header[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb_prepare_migration[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.definition-container[_ngcontent-%COMP%]{max-height:500px;overflow:auto}.definition-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:13px}.body[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}#summary-table[_ngcontent-%COMP%]{min-width:30%;max-width:50%}#summary-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:10%}.configure[_ngcontent-%COMP%]{color:#1967d2}.migrate[_ngcontent-%COMP%]{margin-top:10px}#resources-table[_ngcontent-%COMP%]{width:100%}"]})}return t})()},{path:"**",redirectTo:"/",pathMatch:"full"}];let nde=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=st({imports:[jA.forRoot(ide),jA]})}return t})(),ode=(()=>{class t{constructor(e,i,o,r,a){this.fetch=e,this.snack=i,this.dataService=o,this.data=r,this.dialogRef=a,this.errMessage="",this.updateConfigForm=new Yt({GCPProjectID:new U(r.GCPProjectID,[J.required]),SpannerInstanceID:new U(r.SpannerInstanceID,[J.required])}),a.disableClose=!0}updateSpannerConfig(){let e=this.updateConfigForm.value;this.fetch.setSpannerConfig({GCPProjectID:e.GCPProjectID,SpannerInstanceID:e.SpannerInstanceID}).subscribe({next:o=>{o.IsMetadataDbCreated&&this.snack.openSnackBar("Metadata database not found. A new database has been created to store session metadata.","Close",5),this.snack.openSnackBar(o.IsConfigValid?"Spanner Config updated successfully":"Invalid Spanner Configuration","Close",5),this.dialogRef.close({...o}),this.dataService.updateIsOffline(),this.dataService.updateConfig(o),this.dataService.getAllSessions()},error:o=>{this.snack.openSnackBar(o.message,"Close")}})}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(_(pn),_(Go),_(Pi),_(Zn),_(nn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-update-spanner-config-form"]],decls:20,vars:3,consts:[["mat-dialog-content",""],[1,"save-session-form",3,"formGroup"],["appearance","outline",1,"full-width"],["matInput","","placeholder","project id","type","text","formControlName","GCPProjectID","id","project-id"],["hintLabel","Min. 2 characters and Max. 64 characters","appearance","outline",1,"full-width"],["matInput","","placeholder","instance id","type","text","required","","minlength","2","maxlength","64","pattern","^[a-z]([-a-z0-9]*[a-z0-9])?","formControlName","SpannerInstanceID","id","instance-id"],["align","end"],["mat-dialog-actions","",1,"buttons-container"],["mat-button","","color","primary","mat-dialog-close",""],["id","save-button","mat-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"form",1)(2,"h2"),u(3,"Connect to Spanner"),l(),d(4,"mat-form-field",2)(5,"mat-label"),u(6,"Project ID"),l(),S(7,"input",3),l(),S(8,"br"),d(9,"mat-form-field",4)(10,"mat-label"),u(11,"Instance ID"),l(),S(12,"input",5),d(13,"mat-hint",6),u(14),l()()()(),d(15,"div",7)(16,"button",8),u(17,"CANCEL"),l(),d(18,"button",9),P("click",function(){return o.updateSpannerConfig()}),u(19," SAVE "),l()()),2&i&&(m(1),p("formGroup",o.updateConfigForm),m(13),ye("",(null==o.updateConfigForm.value.SpannerInstanceID?null:o.updateConfigForm.value.SpannerInstanceID.length)||0,"/64"),m(4),p("disabled",!o.updateConfigForm.valid))},dependencies:[Gt,_i,gi,Is,Fi,tn,pi,li,Mi,so,vy,yy,Cy,fi,Ai,Sn,co,lo],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.buttons-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]})}return t})();function rde(t,n){1&t&&(d(0,"mat-icon",11),u(1," warning "),l())}function ade(t,n){1&t&&(d(0,"mat-icon",12),u(1," check_circle "),l())}function sde(t,n){1&t&&(d(0,"mat-icon",13),u(1," warning "),l())}function cde(t,n){1&t&&(d(0,"div")(1,"span",null,14),u(3,"Spanner database is not configured, click on edit button to configure "),l()())}function lde(t,n){if(1&t&&(d(0,"div")(1,"span",15)(2,"b"),u(3,"Project Id: "),l(),u(4),l(),d(5,"span",16)(6,"b"),u(7,"Spanner Instance Id: "),l(),u(8),l()()),2&t){const e=C();m(4),Ie(e.spannerConfig.GCPProjectID),m(4),Ie(e.spannerConfig.SpannerInstanceID)}}let dde=(()=>{class t{constructor(e,i,o,r,a){this.data=e,this.dialog=i,this.sidenav=o,this.clickEvent=r,this.loaderService=a,this.isOfflineStatus=!1,this.spannerConfig={GCPProjectID:"",SpannerInstanceID:""}}ngOnInit(){this.data.config.subscribe(e=>{this.spannerConfig=e}),this.data.isOffline.subscribe({next:e=>{this.isOfflineStatus=e}}),this.clickEvent.spannerConfig.subscribe(e=>{e&&this.openEditForm()})}openEditForm(){this.dialog.open(ode,{width:"30vw",minWidth:"400px",maxWidth:"500px",data:this.spannerConfig}).afterClosed().subscribe(i=>{i&&(this.spannerConfig=i)})}showWarning(){return!this.spannerConfig.GCPProjectID&&!this.spannerConfig.SpannerInstanceID}openInstructionSidenav(){this.sidenav.openSidenav(),this.sidenav.setSidenavComponent("instruction")}openUserGuide(){window.open("https://github.com/GoogleCloudPlatform/spanner-migration-tool/blob/master/SpannerMigrationToolUIUserGuide.pdf","_blank")}stopLoading(){this.loaderService.stopLoader(),this.clickEvent.cancelDbLoading(),this.clickEvent.closeDatabaseLoader()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Pi),_(Mr),_(Rn),_(qo),_(yf))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-header"]],decls:16,vars:6,consts:[["color","secondry",1,"header-container"],[1,"pointer",3,"routerLink","click"],[1,"menu-spacer"],[1,"right_container"],[1,"spanner_config"],["class","icon warning","matTooltip","Invalid spanner configuration. Working in offline mode",4,"ngIf"],["id","check-icon","class","icon success","matTooltip","Valid spanner configuration.",4,"ngIf"],["class","icon warning","matTooltip","Spanner configuration has not been set.",4,"ngIf"],[4,"ngIf"],["id","edit-icon","matTooltip","Edit Settings",1,"cursor-pointer",3,"click"],["mat-icon-button","","matTooltip","Instruction",1,"example-icon","favorite-icon",3,"click"],["matTooltip","Invalid spanner configuration. Working in offline mode",1,"icon","warning"],["id","check-icon","matTooltip","Valid spanner configuration.",1,"icon","success"],["matTooltip","Spanner configuration has not been set.",1,"icon","warning"],["name",""],[1,"pid"],[1,"iid"]],template:function(i,o){1&i&&(d(0,"mat-toolbar",0)(1,"span",1),P("click",function(){return o.stopLoading()}),u(2," Spanner migration tool"),l(),S(3,"span",2),d(4,"div",3)(5,"div",4),g(6,rde,2,0,"mat-icon",5),g(7,ade,2,0,"mat-icon",6),g(8,sde,2,0,"mat-icon",7),g(9,cde,4,0,"div",8),g(10,lde,9,2,"div",8),d(11,"mat-icon",9),P("click",function(){return o.openEditForm()}),u(12,"edit"),l()(),d(13,"button",10),P("click",function(){return o.openUserGuide()}),d(14,"mat-icon"),u(15,"help"),l()()()()),2&i&&(m(1),p("routerLink","/"),m(5),p("ngIf",o.isOfflineStatus&&!o.showWarning()),m(1),p("ngIf",!o.isOfflineStatus&&!o.showWarning()),m(1),p("ngIf",o.showWarning()),m(1),p("ngIf",o.showWarning()),m(1),p("ngIf",!o.showWarning()))},dependencies:[kt,Er,d9,Jr,vi,on],styles:[".header-container[_ngcontent-%COMP%]{padding:0 20px}.menu-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.right_container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%]{margin:0 15px 0 0;display:flex;align-items:center;border-radius:5px;padding:0 10px}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:2px}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:300;padding:0 10px}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%] .pid[_ngcontent-%COMP%]{margin-right:10px}.right_container[_ngcontent-%COMP%] .spanner_config[_ngcontent-%COMP%] .pointer[_ngcontent-%COMP%]{cursor:pointer}.cursor-pointer[_ngcontent-%COMP%]{color:#3367d6}"]})}return t})();function ude(t,n){1&t&&(d(0,"div",1),S(1,"mat-progress-bar",2),l())}let hde=(()=>{class t{constructor(e){this.loaderService=e,this.showProgress=!0}ngOnInit(){this.loaderService.isLoading.subscribe(e=>{this.showProgress=e})}static#e=this.\u0275fac=function(i){return new(i||t)(_(yf))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-loader"]],decls:1,vars:1,consts:[["class","progress-bar-wrapper",4,"ngIf"],[1,"progress-bar-wrapper"],["mode","indeterminate","value","40"]],template:function(i,o){1&i&&g(0,ude,2,0,"div",0),2&i&&p("ngIf",o.showProgress)},dependencies:[kt,R2],styles:[".progress-bar-wrapper[_ngcontent-%COMP%]{background-color:#cbd0e9;height:2px}.progress-bar-wrapper[_ngcontent-%COMP%] .mat-mdc-progress-bar[_ngcontent-%COMP%]{height:2px}"]})}return t})();function mde(t,n){if(1&t&&(d(0,"mat-option",12),u(1),l()),2&t){const e=n.$implicit;p("value",e),m(1),Ie(e)}}function pde(t,n){if(1&t&&(d(0,"mat-option",12),u(1),l()),2&t){const e=n.$implicit;p("value",e),m(1),Ie(e)}}function fde(t,n){if(1&t){const e=ge();d(0,"button",20),P("click",function(){ne(e);const o=C().index;return oe(C().removeColumnForm(o))}),d(1,"mat-icon"),u(2,"remove"),l(),d(3,"span"),u(4,"REMOVE COLUMN"),l()()}}function gde(t,n){if(1&t){const e=ge();ue(0),d(1,"mat-card",13)(2,"div",14)(3,"mat-form-field",1)(4,"mat-label"),u(5,"Column Name"),l(),d(6,"mat-select",15),P("selectionChange",function(){return ne(e),oe(C().selectedColumnChange())}),g(7,pde,2,2,"mat-option",3),l()(),d(8,"mat-form-field",1)(9,"mat-label"),u(10,"Sort"),l(),d(11,"mat-select",16)(12,"mat-option",17),u(13,"Ascending"),l(),d(14,"mat-option",18),u(15,"Descending"),l()()()(),g(16,fde,5,0,"button",19),l(),he()}if(2&t){const e=n.index,i=C();m(2),p("formGroupName",e),m(5),p("ngForOf",i.addColumnsList[e]),m(9),p("ngIf",!i.viewRuleFlag)}}function _de(t,n){if(1&t){const e=ge();d(0,"button",21),P("click",function(){return ne(e),oe(C().addNewColumnForm())}),d(1,"mat-icon"),u(2,"add"),l(),d(3,"span"),u(4,"ADD COLUMN"),l()()}}function bde(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",22),P("click",function(){return ne(e),oe(C().addIndex())}),u(2," ADD RULE "),l()()}if(2&t){const e=C();m(1),p("disabled",!(e.addIndexForm.valid&&e.ruleNameValid&&e.ColsArray.controls.length>0))}}function vde(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",23),P("click",function(){return ne(e),oe(C().deleteRule())}),u(2," DELETE RULE "),l()()}}let yde=(()=>{class t{constructor(e,i,o,r){this.fb=e,this.data=i,this.sidenav=o,this.conversion=r,this.ruleNameValid=!1,this.ruleName="",this.ruleType="",this.resetRuleType=new Fe,this.tableNames=[],this.totalColumns=[],this.addColumnsList=[],this.commonColumns=[],this.viewRuleData={},this.viewRuleFlag=!1,this.conv={},this.ruleId="",this.addIndexForm=this.fb.group({tableName:["",J.required],indexName:["",[J.required,J.pattern("^[A-Za-z][A-Za-z0-9_]{0,127}$")]],ColsArray:this.fb.array([])})}ngOnInit(){this.data.conv.subscribe({next:e=>{this.conv=e,this.tableNames=Object.keys(e.SpSchema).map(i=>e.SpSchema[i].Name)}}),this.sidenav.sidenavAddIndexTable.subscribe({next:e=>{this.addIndexForm.controls.tableName.setValue(e),""!==e&&this.selectedTableChange(e)}}),this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag&&this.sidenav.ruleData.subscribe(i=>{this.viewRuleData=i,this.viewRuleData&&this.viewRuleFlag&&this.getRuleData(this.viewRuleData)})})}getRuleData(e){this.ruleId=e?.Id;let i=this.conv.SpSchema[e?.Data?.TableId]?.Name;this.addIndexForm.controls.tableName.setValue(i),this.addIndexForm.controls.indexName.setValue(e?.Data?.Name),this.selectedTableChange(i),this.setColArraysForViewRules(e?.Data?.TableId,e?.Data?.Keys),this.addIndexForm.disable()}setColArraysForViewRules(e,i){if(this.ColsArray.clear(),i)for(let o=0;oo.ColDefs[r].Name)}this.ColsArray.clear(),this.commonColumns=[],this.addColumnsList=[],this.updateCommonColumns()}addNewColumnForm(){let e=this.fb.group({columnName:["",J.required],sort:["",J.required]});this.ColsArray.push(e),this.updateCommonColumns(),this.addColumnsList.push([...this.commonColumns])}selectedColumnChange(){this.updateCommonColumns(),this.addColumnsList=this.addColumnsList.map((e,i)=>{const o=[...this.commonColumns];return""!==this.ColsArray.value[i].columnName&&o.push(this.ColsArray.value[i].columnName),o})}updateCommonColumns(){this.commonColumns=this.totalColumns.filter(e=>{let i=!0;return this.ColsArray.value.forEach(o=>{o.columnName===e&&(i=!1)}),i})}removeColumnForm(e){this.ColsArray.removeAt(e),this.addColumnsList=this.addColumnsList.filter((i,o)=>o!==e),this.selectedColumnChange()}addIndex(){let e=this.addIndexForm.value,i=[],o=this.conversion.getTableIdFromSpName(e.tableName,this.conv);i.push({Name:e.indexName,TableId:o,Unique:!1,Keys:e.ColsArray.map((r,a)=>({ColId:this.conversion.getColIdFromSpannerColName(r.columnName,o,this.conv),Desc:"true"===r.sort,Order:a+1})),Id:""}),this.applyRule(i[0]),this.resetRuleType.emit(""),this.sidenav.setSidenavAddIndexTable(""),this.sidenav.closeSidenav()}applyRule(e){let o=this.conversion.getTableIdFromSpName(this.addIndexForm.value.tableName,this.conv);this.data.applyRule({Name:this.ruleName,Type:"add_index",ObjectType:"Table",AssociatedObjects:o,Enabled:!0,Data:e,Id:""})}deleteRule(){this.data.dropRule(this.ruleId),this.resetRuleType.emit(""),this.sidenav.setSidenavAddIndexTable(""),this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(sr),_(Pi),_(Rn),_(Ls))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-add-index-form"]],inputs:{ruleNameValid:"ruleNameValid",ruleName:"ruleName",ruleType:"ruleType"},outputs:{resetRuleType:"resetRuleType"},decls:23,vars:7,consts:[[3,"formGroup"],["appearance","outline"],["matSelect","","formControlName","tableName","required","true",1,"input-field",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","indexName",1,"input-field"],[1,"container",2,"display","inline"],["href","https://cloud.google.com/spanner/docs/reference/standard-sql/data-definition-language#naming_conventions"],["align","end"],["formArrayName","ColsArray",1,"addcol-form"],[4,"ngFor","ngForOf"],["mat-button","","color","primary","class","add-column-btn","type","button",3,"click",4,"ngIf"],[4,"ngIf"],[3,"value"],[1,"column-form-card"],[3,"formGroupName"],["matSelect","","formControlName","columnName","required","true",1,"input-field",3,"selectionChange"],["formControlName","sort","required","true",1,"input-field"],["value","false"],["value","true"],["mat-button","","color","primary",3,"click",4,"ngIf"],["mat-button","","color","primary",3,"click"],["mat-button","","color","primary","type","button",1,"add-column-btn",3,"click"],["mat-raised-button","","type","submit","color","primary",1,"add-column-btn",3,"disabled","click"],["mat-raised-button","","type","submit","color","primary",1,"add-column-btn",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),u(3,"For Table"),l(),d(4,"mat-select",2),P("selectionChange",function(a){return o.selectedTableChange(a.value)}),g(5,mde,2,2,"mat-option",3),l()(),d(6,"mat-form-field",1)(7,"mat-label"),u(8,"Index Name"),l(),S(9,"input",4),d(10,"mat-hint")(11,"div",5),u(12," Max. 128 characters, and starts with a letter. "),d(13,"a",6),u(14,"More Details"),l()()(),d(15,"mat-hint",7),u(16),l()(),ue(17,8),g(18,gde,17,3,"ng-container",9),g(19,_de,5,0,"button",10),S(20,"br"),g(21,bde,3,1,"div",11),g(22,vde,3,0,"div",11),he(),l()),2&i&&(p("formGroup",o.addIndexForm),m(5),p("ngForOf",o.tableNames),m(11),ye("",(null==o.addIndexForm.value.indexName?null:o.addIndexForm.value.indexName.length)||0,"/128"),m(2),p("ngForOf",o.ColsArray.controls),m(1),p("ngIf",o.addColumnsList.length{class t{constructor(e,i,o,r,a){this.fb=e,this.data=i,this.sidenav=o,this.conversion=r,this.fetch=a,this.ruleNameValid=!1,this.ruleType="",this.ruleName="",this.resetRuleType=new Fe,this.conversionType={},this.sourceType=[],this.destinationType=[],this.viewRuleData=[],this.viewRuleFlag=!1,this.pgSQLToStandardTypeTypemap=new Map,this.standardTypeToPGSQLTypemap=new Map,this.conv={},this.isPostgreSQLDialect=!1,this.addGlobalDataTypeForm=this.fb.group({objectType:["column",J.required],table:["allTable",J.required],column:["allColumn",J.required],sourceType:["",J.required],destinationType:["",J.required]})}ngOnInit(){this.data.typeMap.subscribe({next:e=>{this.conversionType=e,this.sourceType=Object.keys(this.conversionType)}}),this.data.conv.subscribe({next:e=>{this.conv=e,this.isPostgreSQLDialect="postgresql"===this.conv.SpDialect}}),this.conversion.pgSQLToStandardTypeTypeMap.subscribe(e=>{this.pgSQLToStandardTypeTypemap=e}),this.conversion.standardTypeToPGSQLTypeMap.subscribe(e=>{this.standardTypeToPGSQLTypemap=e}),this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag&&this.sidenav.ruleData.subscribe(i=>{this.viewRuleData=i,this.viewRuleData&&this.setViewRuleData(this.viewRuleData)})})}setViewRuleData(e){if(this.ruleId=e?.Id,this.addGlobalDataTypeForm.controls.sourceType.setValue(Object.keys(e?.Data)[0]),this.updateDestinationType(Object.keys(e?.Data)[0]),this.isPostgreSQLDialect){let i=this.standardTypeToPGSQLTypemap.get(Object.values(this.viewRuleData?.Data)[0]);this.addGlobalDataTypeForm.controls.destinationType.setValue(void 0===i?Object.values(this.viewRuleData?.Data)[0]:i)}else this.addGlobalDataTypeForm.controls.destinationType.setValue(Object.values(this.viewRuleData?.Data)[0]);this.addGlobalDataTypeForm.disable()}formSubmit(){const e=this.addGlobalDataTypeForm.value,i=e.sourceType,o={};if(this.isPostgreSQLDialect){let r=this.pgSQLToStandardTypeTypemap.get(e.destinationType);o[i]=void 0===r?e.destinationType:r}else o[i]=e.destinationType;this.applyRule(o),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}updateDestinationType(e){const i=this.conversionType[e],o=[];i?.forEach(r=>{o.push(r.DisplayT)}),this.destinationType=o}applyRule(e){this.data.applyRule({Name:this.ruleName,Type:"global_datatype_change",ObjectType:"Column",AssociatedObjects:"All Columns",Enabled:!0,Data:e,Id:""})}deleteRule(){this.data.dropRule(this.ruleId),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(sr),_(Pi),_(Rn),_(Ls),_(pn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-edit-global-datatype-form"]],inputs:{ruleNameValid:"ruleNameValid",ruleType:"ruleType",ruleName:"ruleName"},outputs:{resetRuleType:"resetRuleType"},decls:34,vars:5,consts:[[3,"formGroup"],["appearance","outline"],["matSelect","","formControlName","objectType","required","true",1,"input-field"],["value","column"],["matSelect","","formControlName","table","required","true",1,"input-field"],["value","allTable"],["matSelect","","formControlName","column","required","true",1,"input-field"],["value","allColumn"],["matSelect","","formControlName","sourceType","required","true",1,"input-field",3,"selectionChange"],["sourceField",""],[3,"value",4,"ngFor","ngForOf"],["appearance","outline",4,"ngIf"],[4,"ngIf"],[3,"value"],["matSelect","","formControlName","destinationType","required","true",1,"input-field"],["mat-raised-button","","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){if(1&i){const r=ge();d(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),u(3,"For object type"),l(),d(4,"mat-select",2)(5,"mat-option",3),u(6,"Column"),l()()(),d(7,"h3"),u(8,"When"),l(),d(9,"mat-form-field",1)(10,"mat-label"),u(11,"Table is"),l(),d(12,"mat-select",4)(13,"mat-option",5),u(14,"All tables"),l()()(),d(15,"mat-form-field",1)(16,"mat-label"),u(17,"and column is"),l(),d(18,"mat-select",6)(19,"mat-option",7),u(20,"All column"),l()()(),d(21,"h3"),u(22,"Convert from"),l(),d(23,"mat-form-field",1)(24,"mat-label"),u(25,"Source data type"),l(),d(26,"mat-select",8,9),P("selectionChange",function(){ne(r);const s=At(27);return oe(o.updateDestinationType(s.value))}),g(28,Cde,2,2,"mat-option",10),l()(),d(29,"h3"),u(30,"Convert to"),l(),g(31,wde,5,1,"mat-form-field",11),g(32,Sde,3,1,"div",12),g(33,Dde,3,0,"div",12),l()}if(2&i){const r=At(27);p("formGroup",o.addGlobalDataTypeForm),m(28),p("ngForOf",o.sourceType),m(3),p("ngIf",r.selected),m(1),p("ngIf",!o.viewRuleFlag),m(1),p("ngIf",o.viewRuleFlag)}},dependencies:[qi,kt,Gt,_i,gi,An,un,li,Mi,so,fi,Ai],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{width:100%;padding:0}"]})}return t})();function Mde(t,n){if(1&t&&(d(0,"mat-option",10),u(1),l()),2&t){const e=n.$implicit;p("value",e),m(1),Ie(e)}}function Tde(t,n){if(1&t&&(d(0,"mat-option",10),u(1),l()),2&t){const e=n.$implicit;p("value",e.value),m(1),Ie(e.name)}}function Ide(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",11),P("click",function(){return ne(e),oe(C().formSubmit())}),u(2," ADD RULE "),l()()}if(2&t){const e=C();m(1),p("disabled",!(e.editColMaxLengthForm.valid&&e.ruleNameValid))}}function Ede(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",12),P("click",function(){return ne(e),oe(C().deleteRule())}),u(2,"DELETE RULE"),l()()}}let Ode=(()=>{class t{constructor(e,i,o,r){this.fb=e,this.data=i,this.sidenav=o,this.conversion=r,this.ruleNameValid=!1,this.ruleName="",this.ruleType="",this.resetRuleType=new Fe,this.ruleId="",this.tableNames=[],this.viewRuleData=[],this.viewRuleFlag=!1,this.conv={},this.spTypes=[],this.hintlabel="",this.editColMaxLengthForm=this.fb.group({tableName:["",J.required],column:["allColumn",J.required],spDataType:["",J.required],maxColLength:["",[J.required,J.pattern("([1-9][0-9]*|MAX)")]]})}ngOnInit(){this.data.conv.subscribe({next:e=>{this.conv=e,this.tableNames=Object.keys(e.SpSchema).map(i=>e.SpSchema[i].Name),this.tableNames.push("All tables"),"postgresql"===this.conv.SpDialect?(this.spTypes=[{name:"VARCHAR",value:"STRING"}],this.hintlabel="Max "+mn.StringMaxLength+" for VARCHAR"):(this.spTypes=[{name:"STRING",value:"STRING"},{name:"BYTES",value:"BYTES"}],this.hintlabel="Max "+mn.StringMaxLength+" for STRING and "+mn.ByteMaxLength+" for BYTES")}}),this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag&&this.sidenav.ruleData.subscribe(i=>{if(this.viewRuleData=i,this.viewRuleData){this.ruleId=this.viewRuleData?.Id;let o=this.viewRuleData?.AssociatedObjects;this.editColMaxLengthForm.controls.tableName.setValue(o),this.editColMaxLengthForm.controls.spDataType.setValue(this.viewRuleData?.Data?.spDataType),this.editColMaxLengthForm.controls.maxColLength.setValue(this.viewRuleData?.Data?.spColMaxLength),this.editColMaxLengthForm.disable()}})})}formSubmit(){const e=this.editColMaxLengthForm.value;(("STRING"===e.spDataType||"VARCHAR"===e.spDataType)&&e.spColMaxLength>mn.StringMaxLength||"BYTES"===e.spDataType&&e.spColMaxLength>mn.ByteMaxLength)&&(e.spColMaxLength=mn.StorageMaxLength);const i={spDataType:e.spDataType,spColMaxLength:e.maxColLength};let r=this.conversion.getTableIdFromSpName(e.tableName,this.conv);""===r&&(r="All tables"),this.data.applyRule({Name:this.ruleName,Type:"edit_column_max_length",ObjectType:"Table",AssociatedObjects:r,Enabled:!0,Data:i,Id:""}),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}deleteRule(){this.data.dropRule(this.ruleId),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(sr),_(Pi),_(Rn),_(Ls))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-edit-column-max-length"]],inputs:{ruleNameValid:"ruleNameValid",ruleName:"ruleName",ruleType:"ruleType"},outputs:{resetRuleType:"resetRuleType"},decls:23,vars:6,consts:[[3,"formGroup"],["appearance","outline"],["matSelect","","formControlName","tableName","required","true",1,"input-field"],[3,"value",4,"ngFor","ngForOf"],["matSelect","","formControlName","column","required","true",1,"input-field"],["value","allColumn"],["matSelect","","formControlName","spDataType","required","true",1,"input-field"],["appearance","outline",3,"hintLabel"],["matInput","","formControlName","maxColLength",1,"input-field"],[4,"ngIf"],[3,"value"],["mat-raised-button","","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),u(3,"Table is"),l(),d(4,"mat-select",2),g(5,Mde,2,2,"mat-option",3),l()(),d(6,"mat-form-field",1)(7,"mat-label"),u(8,"and column is"),l(),d(9,"mat-select",4)(10,"mat-option",5),u(11,"All column"),l()()(),d(12,"mat-form-field",1)(13,"mat-label"),u(14,"and Spanner Type is"),l(),d(15,"mat-select",6),g(16,Tde,2,2,"mat-option",3),l()(),d(17,"mat-form-field",7)(18,"mat-label"),u(19,"Max column length"),l(),S(20,"input",8),l(),g(21,Ide,3,1,"div",9),g(22,Ede,3,0,"div",9),l()),2&i&&(p("formGroup",o.editColMaxLengthForm),m(5),p("ngForOf",o.tableNames),m(11),p("ngForOf",o.spTypes),m(1),p("hintLabel",o.hintlabel),m(4),p("ngIf",!o.viewRuleFlag),m(1),p("ngIf",o.viewRuleFlag))},dependencies:[qi,kt,Gt,_i,gi,Fi,An,un,pi,li,Mi,so,fi,Ai]})}return t})();function Ade(t,n){if(1&t&&(d(0,"mat-option",7),u(1),l()),2&t){const e=n.$implicit;p("value",e.value),m(1),Ie(e.display)}}function Pde(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",8),P("click",function(){return ne(e),oe(C().formSubmit())}),u(2," ADD RULE "),l()()}if(2&t){const e=C();m(1),p("disabled",!(e.addShardIdPrimaryKeyForm.valid&&e.ruleNameValid))}}function Rde(t,n){if(1&t){const e=ge();d(0,"div")(1,"button",9),P("click",function(){return ne(e),oe(C().deleteRule())}),u(2,"DELETE RULE"),l()()}}let Fde=(()=>{class t{constructor(e,i,o){this.fb=e,this.data=i,this.sidenav=o,this.ruleNameValid=!1,this.ruleName="",this.ruleType="",this.resetRuleType=new Fe,this.viewRuleFlag=!1,this.viewRuleData={},this.primaryKeyOrder=[{value:!0,display:"At the beginning"},{value:!1,display:"At the end"}],this.addShardIdPrimaryKeyForm=this.fb.group({table:["allTable",J.required],primaryKeyOrder:["",J.required]})}ngOnInit(){this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag&&(this.sidenav.ruleData.subscribe(i=>{this.viewRuleData=i,this.viewRuleData&&this.setViewRuleData(this.viewRuleData)}),this.addShardIdPrimaryKeyForm.disable())})}formSubmit(){this.data.applyRule({Name:this.ruleName,Type:"add_shard_id_primary_key",AssociatedObjects:"All Tables",Enabled:!0,Data:{AddedAtTheStart:this.addShardIdPrimaryKeyForm.value.primaryKeyOrder},Id:""}),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}setViewRuleData(e){this.ruleId=e?.Id,this.addShardIdPrimaryKeyForm.controls.primaryKeyOrder.setValue(e?.Data?.AddedAtTheStart)}deleteRule(){this.data.dropRule(this.ruleId),this.resetRuleType.emit(""),this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(sr),_(Pi),_(Rn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-add-shard-id-primary-key"]],inputs:{ruleNameValid:"ruleNameValid",ruleName:"ruleName",ruleType:"ruleType"},outputs:{resetRuleType:"resetRuleType"},decls:14,vars:4,consts:[[3,"formGroup"],["appearance","outline"],["matSelect","","formControlName","table","required","true",1,"input-field"],["value","allTable"],["matSelect","","formControlName","primaryKeyOrder","required","true",1,"input-field"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"value"],["mat-raised-button","","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),u(3,"Table is"),l(),d(4,"mat-select",2)(5,"mat-option",3),u(6,"All tables"),l()()(),d(7,"mat-form-field",1)(8,"mat-label"),u(9,"Order in Primary Key"),l(),d(10,"mat-select",4),g(11,Ade,2,2,"mat-option",5),l()(),g(12,Pde,3,1,"div",6),g(13,Rde,3,0,"div",6),l()),2&i&&(p("formGroup",o.addShardIdPrimaryKeyForm),m(11),p("ngForOf",o.primaryKeyOrder),m(1),p("ngIf",!o.viewRuleFlag),m(1),p("ngIf",o.viewRuleFlag))},dependencies:[qi,kt,Gt,_i,gi,An,un,li,Mi,so,fi,Ai]})}return t})();function Nde(t,n){1&t&&(d(0,"mat-option",18),u(1,"Add shard id column as primary key"),l())}function Lde(t,n){if(1&t){const e=ge();d(0,"div")(1,"app-edit-global-datatype-form",19),P("resetRuleType",function(){return ne(e),oe(C().resetRuleType())}),l()()}if(2&t){const e=C();m(1),p("ruleNameValid",e.ruleForm.valid)("ruleName",e.rulename)("ruleType",e.ruletype)}}function Bde(t,n){if(1&t){const e=ge();d(0,"div")(1,"app-add-index-form",19),P("resetRuleType",function(){return ne(e),oe(C().resetRuleType())}),l()()}if(2&t){const e=C();m(1),p("ruleNameValid",e.ruleForm.valid)("ruleName",e.rulename)("ruleType",e.ruletype)}}function Vde(t,n){if(1&t){const e=ge();d(0,"div")(1,"app-edit-column-max-length",19),P("resetRuleType",function(){return ne(e),oe(C().resetRuleType())}),l()()}if(2&t){const e=C();m(1),p("ruleNameValid",e.ruleForm.valid)("ruleName",e.rulename)("ruleType",e.ruletype)}}function jde(t,n){if(1&t){const e=ge();d(0,"div")(1,"app-add-shard-id-primary-key",19),P("resetRuleType",function(){return ne(e),oe(C().resetRuleType())}),l()()}if(2&t){const e=C();m(1),p("ruleNameValid",e.ruleForm.valid)("ruleName",e.rulename)("ruleType",e.ruletype)}}let zde=(()=>{class t{constructor(e,i){this.sidenav=e,this.data=i,this.currentRules=[],this.ruleForm=new Yt({ruleName:new U("",[J.required,J.pattern("^[a-zA-Z].{0,59}$")]),ruleType:new U("",[J.required])}),this.rulename="",this.ruletype="",this.viewRuleData=[],this.viewRuleFlag=!1,this.shardedMigration=!1}ngOnInit(){this.data.conv.subscribe({next:e=>{Object.keys(e.SpSchema),this.shardedMigration=!!e.IsSharded}}),this.ruleForm.valueChanges.subscribe(()=>{this.rulename=this.ruleForm.controls.ruleName?.value,this.ruletype=this.ruleForm.controls.ruleType?.value}),this.sidenav.displayRuleFlag.subscribe(e=>{this.viewRuleFlag=e,this.viewRuleFlag?this.sidenav.ruleData.subscribe(i=>{this.viewRuleData=i,this.setViewRuleData(this.viewRuleData)}):(this.ruleForm.enable(),this.ruleForm.controls.ruleType.setValue(""),this.sidenav.sidenavRuleType.subscribe(i=>{"addIndex"===i&&this.ruleForm.controls.ruleType.setValue("addIndex")}))})}setViewRuleData(e){this.ruleForm.disable(),this.ruleForm.controls.ruleName.setValue(e?.Name),this.ruleForm.controls.ruleType.setValue(this.getViewRuleType(this.viewRuleData?.Type))}closeSidenav(){this.sidenav.closeSidenav()}get ruleType(){return this.ruleForm.get("ruleType")?.value}resetRuleType(){this.ruleForm.controls.ruleType.setValue(""),this.ruleForm.controls.ruleName.setValue(""),this.ruleForm.markAsUntouched()}getViewRuleType(e){switch(e){case"add_index":return"addIndex";case"global_datatype_change":return"globalDataType";case"edit_column_max_length":return"changeMaxLength";case"add_shard_id_primary_key":return"addShardIdPrimaryKey"}return""}static#e=this.\u0275fac=function(i){return new(i||t)(_(Rn),_(Pi))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-sidenav-rule"]],inputs:{currentRules:"currentRules"},decls:36,vars:8,consts:[[1,"sidenav"],[1,"sidenav-header"],[1,"header-title"],["mat-icon-button","","color","primary",1,"close-button",3,"click"],[1,"close-icon"],[1,"sidenav-content"],[3,"formGroup"],["hintLabel","Max. 60 characters, and starts with a letter.","appearance","outline"],["matInput","","formControlName","ruleName",1,"input-field"],["align","end"],["appearance","outline"],["matSelect","","formControlName","ruleType","required","true",1,"input-field"],["ruleType",""],["value","globalDataType"],["value","addIndex"],["value","changeMaxLength"],["value","addShardIdPrimaryKey",4,"ngIf"],[4,"ngIf"],["value","addShardIdPrimaryKey"],[3,"ruleNameValid","ruleName","ruleType","resetRuleType"]],template:function(i,o){if(1&i&&(d(0,"div",0)(1,"div",1)(2,"span",2),u(3),l(),d(4,"button",3),P("click",function(){return o.closeSidenav()}),d(5,"mat-icon",4),u(6,"close"),l()()(),d(7,"div",5)(8,"form",6)(9,"h3"),u(10,"Rule info"),l(),d(11,"mat-form-field",7)(12,"mat-label"),u(13,"Rule name"),l(),S(14,"input",8),d(15,"mat-hint",9),u(16),l()(),d(17,"h3"),u(18,"Rule definition"),l(),d(19,"mat-form-field",10)(20,"mat-label"),u(21,"Rule type"),l(),d(22,"mat-select",11,12)(24,"mat-option",13),u(25,"Change global data type"),l(),d(26,"mat-option",14),u(27,"Add Index"),l(),d(28,"mat-option",15),u(29,"Change default max column length"),l(),g(30,Nde,2,0,"mat-option",16),l()(),S(31,"br"),l(),g(32,Lde,2,3,"div",17),g(33,Bde,2,3,"div",17),g(34,Vde,2,3,"div",17),g(35,jde,2,3,"div",17),l()()),2&i){const r=At(23);m(3),Ie(o.viewRuleFlag?"View Rule":"Add Rule"),m(5),p("formGroup",o.ruleForm),m(8),ye("",(null==o.ruleForm.value.ruleName?null:o.ruleForm.value.ruleName.length)||0,"/60"),m(14),p("ngIf",o.shardedMigration),m(2),p("ngIf","globalDataType"===r.value),m(1),p("ngIf","addIndex"===r.value),m(1),p("ngIf","changeMaxLength"===r.value),m(1),p("ngIf","addShardIdPrimaryKey"===r.value)}},dependencies:[kt,Jr,vi,_i,gi,Is,Fi,An,un,tn,pi,li,Mi,so,fi,Ai,yde,kde,Ode,Fde],styles:["mat-mdc-form-field[_ngcontent-%COMP%]{padding-bottom:0} .mat-mdc-form-field-wrapper{padding-bottom:14px}"]})}return t})();function Hde(t,n){1&t&&(d(0,"th",39),u(1,"Total tables"),l())}function Ude(t,n){if(1&t&&(d(0,"td",40),u(1),l()),2&t){const e=n.$implicit;m(1),Ie(e.total)}}function $de(t,n){1&t&&(d(0,"th",39)(1,"mat-icon",41),u(2," error "),l(),u(3,"Converted with many issues "),l())}function Gde(t,n){if(1&t&&(d(0,"td",40),u(1),l()),2&t){const e=n.$implicit;m(1),Ie(e.bad)}}function qde(t,n){1&t&&(d(0,"th",39)(1,"mat-icon",42),u(2," warning"),l(),u(3,"Conversion some warnings & suggestions "),l())}function Wde(t,n){if(1&t&&(d(0,"td",40),u(1),l()),2&t){const e=n.$implicit;m(1),Ie(e.ok)}}function Kde(t,n){1&t&&(d(0,"th",39)(1,"mat-icon",43),u(2," check_circle "),l(),u(3,"100% conversion "),l())}function Zde(t,n){if(1&t&&(d(0,"td",40),u(1),l()),2&t){const e=n.$implicit;m(1),Ie(e.good)}}function Yde(t,n){1&t&&S(0,"tr",44)}function Qde(t,n){1&t&&S(0,"tr",45)}function Xde(t,n){1&t&&(d(0,"th",63),u(1," No. "),l())}function Jde(t,n){if(1&t&&(d(0,"td",64),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.position," ")}}function eue(t,n){1&t&&(d(0,"th",65),u(1," Description "),l())}function tue(t,n){if(1&t&&(d(0,"td",66),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.description," ")}}function iue(t,n){1&t&&(d(0,"th",67),u(1," Table Count "),l())}function nue(t,n){if(1&t&&(d(0,"td",68),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.tableCount," ")}}function oue(t,n){1&t&&(d(0,"th",69),u(1,"\xa0"),l())}function rue(t,n){1&t&&(d(0,"mat-icon"),u(1,"keyboard_arrow_down"),l())}function aue(t,n){1&t&&(d(0,"mat-icon"),u(1,"keyboard_arrow_up"),l())}function sue(t,n){if(1&t){const e=ge();d(0,"td",70)(1,"button",71),P("click",function(o){const a=ne(e).$implicit;return C(2).toggleRow(a),oe(o.stopPropagation())}),g(2,rue,2,0,"mat-icon",37),g(3,aue,2,0,"mat-icon",37),l()()}if(2&t){const e=n.$implicit,i=C(2);m(2),p("ngIf",!i.isRowExpanded(e)),m(1),p("ngIf",i.isRowExpanded(e))}}function cue(t,n){if(1&t&&(d(0,"td",70)(1,"div",72)(2,"div",73),u(3),l()()()),2&t){const e=n.$implicit,i=C(2);Qe("colspan",i.columnsToDisplayWithExpand.length),m(1),p("ngClass",i.isRowExpanded(e)?"expanded":"collapsed"),m(2),ye(" TABLES: ",e.tableNamesJoinedByComma,"")}}function lue(t,n){1&t&&S(0,"tr",44)}function due(t,n){if(1&t){const e=ge();d(0,"tr",74),P("click",function(){const r=ne(e).$implicit;return oe(C(2).toggleRow(r))}),l()}if(2&t){const e=n.$implicit;Xe("example-expanded-row",C(2).isRowExpanded(e))}}function uue(t,n){1&t&&S(0,"tr",75)}const wf=function(){return["expandedDetail"]};function hue(t,n){if(1&t&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon",46),u(4," error "),l(),u(5," ERRORS "),l()(),d(6,"table",47),ue(7,48),g(8,Xde,2,0,"th",49),g(9,Jde,2,1,"td",50),he(),ue(10,51),g(11,eue,2,0,"th",52),g(12,tue,2,1,"td",53),he(),ue(13,54),g(14,iue,2,0,"th",55),g(15,nue,2,1,"td",56),he(),ue(16,57),g(17,oue,2,0,"th",58),g(18,sue,4,2,"td",59),he(),ue(19,60),g(20,cue,4,3,"td",59),he(),g(21,lue,1,0,"tr",34),g(22,due,1,2,"tr",61),g(23,uue,1,0,"tr",62),l()()),2&t){const e=C();m(6),p("dataSource",e.issueTableData_Errors),m(15),p("matHeaderRowDef",e.columnsToDisplayWithExpand),m(1),p("matRowDefColumns",e.columnsToDisplayWithExpand),m(1),p("matRowDefColumns",yo(4,wf))}}function mue(t,n){1&t&&S(0,"br")}function pue(t,n){1&t&&(d(0,"th",63),u(1," No. "),l())}function fue(t,n){if(1&t&&(d(0,"td",64),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.position," ")}}function gue(t,n){1&t&&(d(0,"th",65),u(1," Description "),l())}function _ue(t,n){if(1&t&&(d(0,"td",66),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.description," ")}}function bue(t,n){1&t&&(d(0,"th",67),u(1," Table Count "),l())}function vue(t,n){if(1&t&&(d(0,"td",68),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.tableCount," ")}}function yue(t,n){1&t&&(d(0,"th",69),u(1,"\xa0"),l())}function Cue(t,n){1&t&&(d(0,"mat-icon"),u(1,"keyboard_arrow_down"),l())}function xue(t,n){1&t&&(d(0,"mat-icon"),u(1,"keyboard_arrow_up"),l())}function wue(t,n){if(1&t){const e=ge();d(0,"td",70)(1,"button",71),P("click",function(o){const a=ne(e).$implicit;return C(2).toggleRow(a),oe(o.stopPropagation())}),g(2,Cue,2,0,"mat-icon",37),g(3,xue,2,0,"mat-icon",37),l()()}if(2&t){const e=n.$implicit,i=C(2);m(2),p("ngIf",!i.isRowExpanded(e)),m(1),p("ngIf",i.isRowExpanded(e))}}function Sue(t,n){if(1&t&&(d(0,"td",70)(1,"div",72)(2,"div",73),u(3),l()()()),2&t){const e=n.$implicit,i=C(2);Qe("colspan",i.columnsToDisplayWithExpand.length),m(1),p("ngClass",i.isRowExpanded(e)?"expanded":"collapsed"),m(2),ye(" TABLES: ",e.tableNamesJoinedByComma,"")}}function Due(t,n){1&t&&S(0,"tr",44)}function kue(t,n){if(1&t){const e=ge();d(0,"tr",74),P("click",function(){const r=ne(e).$implicit;return oe(C(2).toggleRow(r))}),l()}if(2&t){const e=n.$implicit;Xe("example-expanded-row",C(2).isRowExpanded(e))}}function Mue(t,n){1&t&&S(0,"tr",75)}function Tue(t,n){if(1&t&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon",76),u(4," warning "),l(),u(5," WARNINGS "),l()(),d(6,"table",47),ue(7,48),g(8,pue,2,0,"th",49),g(9,fue,2,1,"td",50),he(),ue(10,51),g(11,gue,2,0,"th",52),g(12,_ue,2,1,"td",53),he(),ue(13,54),g(14,bue,2,0,"th",55),g(15,vue,2,1,"td",56),he(),ue(16,57),g(17,yue,2,0,"th",58),g(18,wue,4,2,"td",59),he(),ue(19,60),g(20,Sue,4,3,"td",59),he(),g(21,Due,1,0,"tr",34),g(22,kue,1,2,"tr",61),g(23,Mue,1,0,"tr",62),l()()),2&t){const e=C();m(6),p("dataSource",e.issueTableData_Warnings),m(15),p("matHeaderRowDef",e.columnsToDisplayWithExpand),m(1),p("matRowDefColumns",e.columnsToDisplayWithExpand),m(1),p("matRowDefColumns",yo(4,wf))}}function Iue(t,n){1&t&&S(0,"br")}function Eue(t,n){1&t&&(d(0,"th",63),u(1," No. "),l())}function Oue(t,n){if(1&t&&(d(0,"td",64),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.position," ")}}function Aue(t,n){1&t&&(d(0,"th",65),u(1," Description "),l())}function Pue(t,n){if(1&t&&(d(0,"td",66),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.description," ")}}function Rue(t,n){1&t&&(d(0,"th",67),u(1," Table Count "),l())}function Fue(t,n){if(1&t&&(d(0,"td",68),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.tableCount," ")}}function Nue(t,n){1&t&&(d(0,"th",69),u(1,"\xa0"),l())}function Lue(t,n){1&t&&(d(0,"mat-icon"),u(1,"keyboard_arrow_down"),l())}function Bue(t,n){1&t&&(d(0,"mat-icon"),u(1,"keyboard_arrow_up"),l())}function Vue(t,n){if(1&t){const e=ge();d(0,"td",70)(1,"button",71),P("click",function(o){const a=ne(e).$implicit;return C(2).toggleRow(a),oe(o.stopPropagation())}),g(2,Lue,2,0,"mat-icon",37),g(3,Bue,2,0,"mat-icon",37),l()()}if(2&t){const e=n.$implicit,i=C(2);m(2),p("ngIf",!i.isRowExpanded(e)),m(1),p("ngIf",i.isRowExpanded(e))}}function jue(t,n){if(1&t&&(d(0,"td",70)(1,"div",72)(2,"div",73),u(3),l()()()),2&t){const e=n.$implicit,i=C(2);Qe("colspan",i.columnsToDisplayWithExpand.length),m(1),p("ngClass",i.isRowExpanded(e)?"expanded":"collapsed"),m(2),ye(" TABLES: ",e.tableNamesJoinedByComma,"")}}function zue(t,n){1&t&&S(0,"tr",44)}function Hue(t,n){if(1&t){const e=ge();d(0,"tr",74),P("click",function(){const r=ne(e).$implicit;return oe(C(2).toggleRow(r))}),l()}if(2&t){const e=n.$implicit;Xe("example-expanded-row",C(2).isRowExpanded(e))}}function Uue(t,n){1&t&&S(0,"tr",75)}function $ue(t,n){if(1&t&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon",77),u(4," wb_incandescent "),l(),u(5," SUGGESTIONS "),l()(),d(6,"table",47),ue(7,48),g(8,Eue,2,0,"th",49),g(9,Oue,2,1,"td",50),he(),ue(10,51),g(11,Aue,2,0,"th",52),g(12,Pue,2,1,"td",53),he(),ue(13,54),g(14,Rue,2,0,"th",55),g(15,Fue,2,1,"td",56),he(),ue(16,57),g(17,Nue,2,0,"th",58),g(18,Vue,4,2,"td",59),he(),ue(19,60),g(20,jue,4,3,"td",59),he(),g(21,zue,1,0,"tr",34),g(22,Hue,1,2,"tr",61),g(23,Uue,1,0,"tr",62),l()()),2&t){const e=C();m(6),p("dataSource",e.issueTableData_Suggestions),m(15),p("matHeaderRowDef",e.columnsToDisplayWithExpand),m(1),p("matRowDefColumns",e.columnsToDisplayWithExpand),m(1),p("matRowDefColumns",yo(4,wf))}}function Gue(t,n){1&t&&S(0,"br")}function que(t,n){1&t&&(d(0,"th",63),u(1," No. "),l())}function Wue(t,n){if(1&t&&(d(0,"td",64),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.position," ")}}function Kue(t,n){1&t&&(d(0,"th",65),u(1," Description "),l())}function Zue(t,n){if(1&t&&(d(0,"td",66),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.description," ")}}function Yue(t,n){1&t&&(d(0,"th",67),u(1," Table Count "),l())}function Que(t,n){if(1&t&&(d(0,"td",68),u(1),l()),2&t){const e=n.$implicit;m(1),ye(" ",e.tableCount," ")}}function Xue(t,n){1&t&&(d(0,"th",69),u(1,"\xa0"),l())}function Jue(t,n){1&t&&(d(0,"mat-icon"),u(1,"keyboard_arrow_down"),l())}function ehe(t,n){1&t&&(d(0,"mat-icon"),u(1,"keyboard_arrow_up"),l())}function the(t,n){if(1&t){const e=ge();d(0,"td",70)(1,"button",71),P("click",function(o){const a=ne(e).$implicit;return C(2).toggleRow(a),oe(o.stopPropagation())}),g(2,Jue,2,0,"mat-icon",37),g(3,ehe,2,0,"mat-icon",37),l()()}if(2&t){const e=n.$implicit,i=C(2);m(2),p("ngIf",!i.isRowExpanded(e)),m(1),p("ngIf",i.isRowExpanded(e))}}function ihe(t,n){if(1&t&&(d(0,"td",70)(1,"div",72)(2,"div",73),u(3),l()()()),2&t){const e=n.$implicit,i=C(2);Qe("colspan",i.columnsToDisplayWithExpand.length),m(1),p("ngClass",i.isRowExpanded(e)?"expanded":"collapsed"),m(2),ye(" TABLES: ",e.tableNamesJoinedByComma,"")}}function nhe(t,n){1&t&&S(0,"tr",44)}function ohe(t,n){if(1&t){const e=ge();d(0,"tr",74),P("click",function(){const r=ne(e).$implicit;return oe(C(2).toggleRow(r))}),l()}if(2&t){const e=n.$implicit;Xe("example-expanded-row",C(2).isRowExpanded(e))}}function rhe(t,n){1&t&&S(0,"tr",75)}function ahe(t,n){if(1&t&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"mat-icon",78),u(4," check_circle "),l(),u(5," NOTES "),l()(),d(6,"table",47),ue(7,48),g(8,que,2,0,"th",49),g(9,Wue,2,1,"td",50),he(),ue(10,51),g(11,Kue,2,0,"th",52),g(12,Zue,2,1,"td",53),he(),ue(13,54),g(14,Yue,2,0,"th",55),g(15,Que,2,1,"td",56),he(),ue(16,57),g(17,Xue,2,0,"th",58),g(18,the,4,2,"td",59),he(),ue(19,60),g(20,ihe,4,3,"td",59),he(),g(21,nhe,1,0,"tr",34),g(22,ohe,1,2,"tr",61),g(23,rhe,1,0,"tr",62),l()()),2&t){const e=C();m(6),p("dataSource",e.issueTableData_Notes),m(15),p("matHeaderRowDef",e.columnsToDisplayWithExpand),m(1),p("matRowDefColumns",e.columnsToDisplayWithExpand),m(1),p("matRowDefColumns",yo(4,wf))}}function she(t,n){1&t&&S(0,"br")}function che(t,n){1&t&&(d(0,"div",79)(1,"div",80),Zt(),d(2,"svg",81),S(3,"path",82),l()(),Xo(),d(4,"div",83),u(5," Woohoo! No issues or suggestions"),S(6,"br"),u(7,"found. "),l(),S(8,"br"),l())}const H0=function(t){return{"width.%":t}};let lhe=(()=>{class t{toggleRow(e){this.isRowExpanded(e)?this.expandedElements.delete(e):this.expandedElements.add(e)}isRowExpanded(e){return this.expandedElements.has(e)}constructor(e,i,o){this.sidenav=e,this.clickEvent=i,this.fetch=o,this.issueTableData_Errors=[],this.issueTableData_Warnings=[],this.issueTableData_Suggestions=[],this.issueTableData_Notes=[],this.columnsToDisplay=["position","description","tableCount"],this.columnsToDisplayWithExpand=[...this.columnsToDisplay,"expand"],this.expandedElements=new Set,this.srcDbType="",this.connectionDetail="",this.summaryText="",this.issueDescription={},this.conversionRateCount={good:0,ok:0,bad:0},this.conversionRatePercentage={good:0,ok:0,bad:0},this.rateCountDataSource=[],this.rateCountDisplayedColumns=["total","bad","ok","good"],this.ratePcDataSource=[],this.ratePcDisplayedColumns=["bad","ok","good"]}ngOnInit(){this.clickEvent.viewAssesment.subscribe(e=>{this.srcDbType=e.srcDbType,this.connectionDetail=e.connectionDetail,this.conversionRateCount=e.conversionRates;let i=this.conversionRateCount.good+this.conversionRateCount.ok+this.conversionRateCount.bad;if(i>0)for(let o in this.conversionRatePercentage)this.conversionRatePercentage[o]=Number((this.conversionRateCount[o]/i*100).toFixed(2));i>0&&this.setRateCountDataSource(i),this.fetch.getDStructuredReport().subscribe({next:o=>{this.summaryText=o.summary.text}}),this.issueTableData={position:0,description:"",tableCount:0,tableNamesJoinedByComma:""},this.fetch.getIssueDescription().subscribe({next:o=>{this.issueDescription=o,this.generateIssueReport()}})})}closeSidenav(){this.sidenav.closeSidenav()}setRateCountDataSource(e){this.rateCountDataSource=[],this.rateCountDataSource.push({total:e,bad:this.conversionRateCount.bad,ok:this.conversionRateCount.ok,good:this.conversionRateCount.good})}downloadStructuredReport(){var e=document.createElement("a");this.fetch.getDStructuredReport().subscribe({next:i=>{let o=JSON.stringify(i).replace(/9223372036854776000/g,"9223372036854775807");e.href="data:text;charset=utf-8,"+encodeURIComponent(o),e.download=`${i.summary.dbName}_migration_structuredReport.json`,e.click()}})}downloadTextReport(){var e=document.createElement("a");this.fetch.getDTextReport().subscribe({next:i=>{let o=this.connectionDetail;e.href="data:text;charset=utf-8,"+encodeURIComponent(i),e.download=`${o}_migration_textReport.txt`,e.click()}})}downloadReports(){let e=new XA;this.fetch.getDStructuredReport().subscribe({next:i=>{let o=i.summary.dbName,r=JSON.stringify(i).replace(/9223372036854776000/g,"9223372036854775807");e.file(o+"_migration_structuredReport.json",r),this.fetch.getDTextReport().subscribe({next:s=>{e.file(o+"_migration_textReport.txt",s),e.generateAsync({type:"blob"}).then(c=>{var h=document.createElement("a");h.href=URL.createObjectURL(c),h.download=`${o}_reports`,h.click()})}})}})}generateIssueReport(){this.fetch.getDStructuredReport().subscribe({next:e=>{let i=e.tableReports;var o={errors:new Map,warnings:new Map,suggestions:new Map,notes:new Map};for(var r of i){let c=r.issues;if(null==c)return this.issueTableData_Errors=[],this.issueTableData_Warnings=[],this.issueTableData_Suggestions=[],void(this.issueTableData_Notes=[]);for(var a of c){let h={tableCount:0,tableNames:new Set};switch(a.issueType){case"Error":case"Errors":this.appendIssueWithTableInformation(a.issueList,o.errors,h,r);break;case"Warnings":case"Warning":this.appendIssueWithTableInformation(a.issueList,o.warnings,h,r);break;case"Suggestion":case"Suggestions":this.appendIssueWithTableInformation(a.issueList,o.suggestions,h,r);break;case"Note":case"Notes":this.appendIssueWithTableInformation(a.issueList,o.notes,h,r)}}}let s=o.warnings;this.issueTableData_Warnings=[],0!=s.size&&this.populateTableData(s,this.issueTableData_Warnings),s=o.errors,this.issueTableData_Errors=[],0!=s.size&&this.populateTableData(s,this.issueTableData_Errors),s=o.suggestions,this.issueTableData_Suggestions=[],0!=s.size&&this.populateTableData(s,this.issueTableData_Suggestions),s=o.notes,this.issueTableData_Notes=[],0!=s.size&&this.populateTableData(s,this.issueTableData_Notes)}})}populateTableData(e,i){let o=1;for(let[r,a]of e.entries()){let s=[...a.tableNames.keys()];i.push({position:o,description:this.issueDescription[r],tableCount:a.tableCount,tableNamesJoinedByComma:s.join(", ")}),o+=1}}appendIssueWithTableInformation(e,i,o,r){for(var a of e)if(i.has(a.category)){let c=i.get(a.category),h={tableNames:new Set(c.tableNames),tableCount:c.tableNames.size};h.tableNames.add(r.srcTableName),h.tableCount=h.tableNames.size,i.set(a.category,h)}else{let c=o;c.tableNames.add(r.srcTableName),c.tableCount=c.tableNames.size,i.set(a.category,c)}}static#e=this.\u0275fac=function(i){return new(i||t)(_(Rn),_(qo),_(pn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-sidenav-view-assessment"]],decls:87,vars:25,consts:[[1,"sidenav-view-assessment-container"],[1,"sidenav-view-assessment-header"],[1,"mat-h2","header-title"],[1,"btn-source-select"],[1,"reportsButtons"],["mat-raised-button","","color","primary",1,"split-button-left",3,"click"],["mat-raised-button","","color","primary",1,"split-button-right",3,"matMenuTriggerFor"],["aria-hidden","false","aria-label","More options"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","","color","primary",1,"close-button",3,"click"],[1,"close-icon"],[1,"content"],[1,"summaryHeader"],[1,"databaseName"],[1,"migrationDetails"],[1,"summaryText"],[1,"sidenav-percentage-bar"],[1,"danger-background",3,"ngStyle"],[1,"warning-background",3,"ngStyle"],[1,"success-background",3,"ngStyle"],[1,"sidenav-percentage-indent"],[1,"icon","danger"],[1,"icon","warning"],[1,"icon","success"],[1,"sidenav-title"],["mat-table","",1,"sidenav-conversionByTable",3,"dataSource"],["matColumnDef","total"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","cells",4,"matCellDef"],["matColumnDef","bad",1,"bad"],["matColumnDef","ok"],["matColumnDef","good"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"issue-report"],[4,"ngIf"],["class","no-issue-container",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"cells"],[1,"icon","danger","icon-size","icons"],[1,"icon","warning","icon-size","icons"],[1,"icon","success","icon-size","icons"],["mat-header-row",""],["mat-row",""],["matTooltip","Error: Please resolve them to proceed with the migration","matTooltipPosition","above",1,"danger"],["mat-table","","multiTemplateDataRows","",1,"sidenav-databaseDefinitions",3,"dataSource"],["matColumnDef","position"],["mat-header-cell","","class","mat-position",4,"matHeaderCellDef"],["mat-cell","","class","mat-position",4,"matCellDef"],["matColumnDef","description"],["mat-header-cell","","class","mat-description",4,"matHeaderCellDef"],["mat-cell","","class","mat-description",4,"matCellDef"],["matColumnDef","tableCount"],["mat-header-cell","","class","mat-tableCount",4,"matHeaderCellDef"],["mat-cell","","class","mat-tableCount",4,"matCellDef"],["matColumnDef","expand"],["mat-header-cell","","aria-label","row actions",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","expandedDetail"],["mat-row","","class","example-element-row",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","example-detail-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"mat-position"],["mat-cell","",1,"mat-position"],["mat-header-cell","",1,"mat-description"],["mat-cell","",1,"mat-description"],["mat-header-cell","",1,"mat-tableCount"],["mat-cell","",1,"mat-tableCount"],["mat-header-cell","","aria-label","row actions"],["mat-cell",""],["mat-icon-button","","aria-label","expand row",3,"click"],[1,"example-element-detail",3,"ngClass"],[1,"example-element-description"],["mat-row","",1,"example-element-row",3,"click"],["mat-row","",1,"example-detail-row"],["matTooltip","Warning : Changes made because of differences in source and spanner capabilities.","matTooltipPosition","above",1,"warning"],["matTooltip","Suggestion : We highly recommend you make these changes or else it will impact your DB performance.","matTooltipPosition","above",1,"suggestion"],["matTooltip","Note : This is informational and you don't need to do anything.","matTooltipPosition","above",1,"success"],[1,"no-issue-container"],[1,"no-issue-icon-container"],["width","36","height","36","viewBox","0 0 24 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.8332 0.69873C16.0051 7.45842 16.2492 9.44782 10.4672 10.2012C16.1511 11.1242 16.2329 13.2059 16.8332 19.7037C17.6237 13.1681 17.4697 11.2106 23.1986 10.2012C17.4247 9.45963 17.6194 7.4505 16.8332 0.69873ZM4.23739 0.872955C3.79064 4.52078 3.92238 5.59467 0.802246 6.00069C3.86944 6.49885 3.91349 7.62218 4.23739 11.1284C4.66397 7.60153 4.581 6.54497 7.67271 6.00069C4.55696 5.60052 4.66178 4.51623 4.23739 0.872955ZM7.36426 11.1105C7.05096 13.6683 7.14331 14.4212 4.95554 14.7061C7.10612 15.0553 7.13705 15.8431 7.36426 18.3017C7.66333 15.8288 7.60521 15.088 9.77298 14.7061C7.58818 14.4255 7.66177 13.6653 7.36426 11.1105Z","fill","#3367D6"],[1,"no-issue-message"]],template:function(i,o){if(1&i&&(d(0,"div",0)(1,"div",1)(2,"span",2),u(3,"Assessment report"),l(),d(4,"div",3)(5,"span",4)(6,"button",5),P("click",function(){return o.downloadReports()}),u(7," DOWNLOAD REPORTS "),l(),d(8,"button",6)(9,"mat-icon",7),u(10,"expand_more"),l()(),d(11,"mat-menu",8,9)(13,"button",10),P("click",function(){return o.downloadTextReport()}),u(14," Download Text Report "),l(),d(15,"button",10),P("click",function(){return o.downloadStructuredReport()}),u(16," Download Structured Report "),l()()(),d(17,"button",11),P("click",function(){return o.closeSidenav()}),d(18,"mat-icon",12),u(19,"close"),l()()()(),d(20,"div",13)(21,"div",14)(22,"p",15),u(23),l(),d(24,"p",16),u(25),d(26,"mat-icon"),u(27,"arrow_right_alt"),l(),u(28," Spanner)"),l()(),d(29,"p",17),u(30),l(),d(31,"mat-card")(32,"div",18),S(33,"div",19)(34,"div",20)(35,"div",21),l(),S(36,"hr")(37,"br"),d(38,"div",22)(39,"span")(40,"mat-icon",23),u(41," circle "),l(),d(42,"span"),u(43," Not a great conversion"),l()(),d(44,"span")(45,"mat-icon",24),u(46," circle "),l(),d(47,"span"),u(48," Converted with warnings"),l()(),d(49,"span")(50,"mat-icon",25),u(51," circle "),l(),d(52,"span"),u(53," Converted automatically"),l()()()(),S(54,"br"),d(55,"h3",26),u(56,"Conversion status by table"),l(),d(57,"table",27),ue(58,28),g(59,Hde,2,0,"th",29),g(60,Ude,2,1,"td",30),he(),ue(61,31),g(62,$de,4,0,"th",29),g(63,Gde,2,1,"td",30),he(),ue(64,32),g(65,qde,4,0,"th",29),g(66,Wde,2,1,"td",30),he(),ue(67,33),g(68,Kde,4,0,"th",29),g(69,Zde,2,1,"td",30),he(),g(70,Yde,1,0,"tr",34),g(71,Qde,1,0,"tr",35),l(),S(72,"br"),d(73,"h3"),u(74,"Summarized Table Report"),l(),d(75,"div",36),g(76,hue,24,5,"mat-expansion-panel",37),g(77,mue,1,0,"br",37),g(78,Tue,24,5,"mat-expansion-panel",37),g(79,Iue,1,0,"br",37),g(80,$ue,24,5,"mat-expansion-panel",37),g(81,Gue,1,0,"br",37),g(82,ahe,24,5,"mat-expansion-panel",37),g(83,she,1,0,"br",37),g(84,che,9,0,"div",38),S(85,"br"),l(),S(86,"br"),l()()),2&i){const r=At(12);m(8),p("matMenuTriggerFor",r),m(15),Ie(o.connectionDetail),m(2),ye(" \xa0 (",o.srcDbType," "),m(5),Ie(o.summaryText),m(3),p("ngStyle",ri(19,H0,o.conversionRatePercentage.bad)),m(1),p("ngStyle",ri(21,H0,o.conversionRatePercentage.ok)),m(1),p("ngStyle",ri(23,H0,o.conversionRatePercentage.good)),m(22),p("dataSource",o.rateCountDataSource),m(13),p("matHeaderRowDef",o.rateCountDisplayedColumns),m(1),p("matRowDefColumns",o.rateCountDisplayedColumns),m(5),p("ngIf",o.issueTableData_Errors.length),m(1),p("ngIf",o.issueTableData_Errors.length),m(1),p("ngIf",o.issueTableData_Warnings.length),m(1),p("ngIf",o.issueTableData_Warnings.length),m(1),p("ngIf",o.issueTableData_Suggestions.length),m(1),p("ngIf",o.issueTableData_Suggestions.length),m(1),p("ngIf",o.issueTableData_Notes.length),m(1),p("ngIf",o.issueTableData_Notes.length),m(1),p("ngIf",!(o.issueTableData_Notes.length||o.issueTableData_Suggestions.length||o.issueTableData_Warnings.length||o.issueTableData_Errors.length))}},dependencies:[nr,kt,sM,Gt,Jr,vi,Wd,ol,na,rl,$a,sa,Ga,ca,aa,qa,la,da,Wa,Ka,Gy,FE,MW,on],styles:["table.mat-mdc-table[_ngcontent-%COMP%]{width:100%}.icon-size[_ngcontent-%COMP%]{font-size:1.2em;text-align:center;margin-top:8px;margin-left:10px;vertical-align:inherit}.mat-mdc-header-cell[_ngcontent-%COMP%]{border-style:none}.icons[_ngcontent-%COMP%]{border-left:1px solid rgb(208,204,204);padding-left:10px}.cells[_ngcontent-%COMP%]{text-align:center}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%]{padding:7px 16px;display:flex;flex-direction:row;align-items:center;border-bottom:1px solid #d0cccc;justify-content:space-between}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{margin:0}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%]{vertical-align:middle}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .reportsButtons[_ngcontent-%COMP%]{white-space:nowrap;vertical-align:middle}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .split-button-left[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .split-button-right[_ngcontent-%COMP%]{width:30px!important;min-width:unset!important;padding:0 8px 0 2px;border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid #fafafa}.sidenav-view-assessment-container[_ngcontent-%COMP%] .sidenav-view-assessment-header[_ngcontent-%COMP%] .btn-source-select[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{margin-left:1.25px;padding:0;height:10px;vertical-align:text-top}"]})}return t})(),dhe=(()=>{class t{constructor(e,i,o,r){this.fetch=e,this.data=i,this.snack=o,this.sidenav=r,this.errMessage="",this.saveSessionForm=new Yt({SessionName:new U("",[J.required,J.pattern("^[a-zA-Z][a-zA-Z0-9_ -]{0,59}$")]),EditorName:new U("",[J.required,J.pattern("^[a-zA-Z][a-zA-Z0-9_ -]{0,59}$")]),DatabaseName:new U("",[J.required,J.pattern("^[a-zA-Z][a-zA-Z0-9_-]{0,59}$")]),Notes:new U("")})}saveSession(){let e=this.saveSessionForm.value,i={SessionName:e.SessionName.trim(),EditorName:e.EditorName.trim(),DatabaseName:e.DatabaseName.trim(),Notes:""===e.Notes?.trim()||null===e.Notes?[""]:e.Notes?.split("\n")};this.fetch.saveSession(i).subscribe({next:o=>{this.data.getAllSessions(),this.snack.openSnackBar("Session saved successfully","Close",5)},error:o=>{this.snack.openSnackBar(o.error,"Close")}}),this.saveSessionForm.reset(),this.saveSessionForm.markAsUntouched(),this.closeSidenav()}ngOnInit(){this.sidenav.sidenavDatabaseName.subscribe({next:e=>{this.saveSessionForm.controls.DatabaseName.setValue(e)}})}closeSidenav(){this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(pn),_(Pi),_(Go),_(Rn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-sidenav-save-session"]],decls:40,vars:5,consts:[[1,"sidenav"],[1,"sidenav-header"],[1,"header-title"],["mat-icon-button","","color","primary",1,"close-button",3,"click"],[1,"close-icon"],[1,"sidenav-content"],[1,"save-session-form",3,"formGroup"],["hintLabel","Letters, numbers, hyphen, space and underscore allowed. Max. 60 characters, and starts with a letter.","appearance","outline"],["matInput","","placeholder","mysession","type","text","formControlName","SessionName","matTooltip","User can view saved sessions under session history section","matTooltipPosition","above"],["align","end"],["hintLabel","Letters, numbers, hyphen, space and underscore allowed. Max. 60 characters, and starts with a letter.","appearance","outline",1,"full-width"],["matInput","","placeholder","editor name","type","text","formControlName","EditorName"],["hintLabel","Letters, numbers, hyphen and underscores allowed. Max. 60 characters, and starts with a letter.","appearance","outline",1,"full-width"],["matInput","","type","text","formControlName","DatabaseName"],["appearance","outline",1,"full-width"],["rows","7","matInput","","placeholder","added new index","type","text","formControlName","Notes"],[1,"sidenav-footer"],["mat-raised-button","","type","submit","color","primary",3,"disabled","click"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"span",2),u(3,"Save Session"),l(),d(4,"button",3),P("click",function(){return o.closeSidenav()}),d(5,"mat-icon",4),u(6,"close"),l()()(),d(7,"div",5)(8,"h3"),u(9,"Session Details"),l(),d(10,"form",6)(11,"mat-form-field",7)(12,"mat-label"),u(13,"Session Name"),l(),S(14,"input",8),d(15,"mat-hint",9),u(16),l()(),S(17,"br"),d(18,"mat-form-field",10)(19,"mat-label"),u(20,"Editor Name"),l(),S(21,"input",11),d(22,"mat-hint",9),u(23),l()(),S(24,"br"),d(25,"mat-form-field",12)(26,"mat-label"),u(27,"Database Name"),l(),S(28,"input",13),d(29,"mat-hint",9),u(30),l()(),S(31,"br"),d(32,"mat-form-field",14)(33,"mat-label"),u(34,"Notes"),l(),S(35,"textarea",15),l(),S(36,"br"),l()(),d(37,"div",16)(38,"button",17),P("click",function(){return o.saveSession()}),u(39," Save Session "),l()()()),2&i&&(m(10),p("formGroup",o.saveSessionForm),m(6),ye("",(null==o.saveSessionForm.value.SessionName?null:o.saveSessionForm.value.SessionName.length)||0,"/60"),m(7),ye("",(null==o.saveSessionForm.value.EditorName?null:o.saveSessionForm.value.EditorName.length)||0,"/60"),m(7),ye("",(null==o.saveSessionForm.value.DatabaseName?null:o.saveSessionForm.value.DatabaseName.length)||0,"/60"),m(8),p("disabled",!o.saveSessionForm.valid))},dependencies:[Gt,Jr,vi,_i,gi,Is,Fi,tn,pi,li,Mi,fi,Ai,on],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{padding-bottom:10px}"]})}return t})();function uhe(t,n){1&t&&(d(0,"th",9),u(1,"Column"),l())}function hhe(t,n){if(1&t&&(d(0,"td",10),u(1),l()),2&t){const e=n.$implicit;m(1),Ie(e.ColumnName)}}function mhe(t,n){1&t&&(d(0,"th",9),u(1,"Type"),l())}function phe(t,n){if(1&t&&(d(0,"td",10),u(1),l()),2&t){const e=n.$implicit;m(1),Ie(e.Type)}}function fhe(t,n){1&t&&(d(0,"th",9),u(1,"Updated Column"),l())}function ghe(t,n){if(1&t&&(d(0,"td",10),u(1),l()),2&t){const e=n.$implicit;m(1),Ie(e.UpdateColumnName)}}function _he(t,n){1&t&&(d(0,"th",9),u(1,"Updated Type"),l())}function bhe(t,n){if(1&t&&(d(0,"td",10),u(1),l()),2&t){const e=n.$implicit;m(1),Ie(e.UpdateType)}}function vhe(t,n){1&t&&S(0,"tr",11)}function yhe(t,n){1&t&&S(0,"tr",12)}let Che=(()=>{class t{constructor(){this.tableChange={InterleaveColumnChanges:[],Table:""},this.dataSource=[],this.displayedColumns=["ColumnName","Type","UpdateColumnName","UpdateType"]}ngOnInit(){}ngOnChanges(e){this.tableChange=e.tableChange?.currentValue||this.tableChange,this.dataSource=this.tableChange.InterleaveColumnChanges}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-table-column-changes-preview"]],inputs:{tableChange:"tableChange"},features:[si],decls:15,vars:3,consts:[["mat-table","",1,"object-full-width","margin-bot-1",3,"dataSource"],["matColumnDef","ColumnName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Type"],["matColumnDef","UpdateColumnName"],["matColumnDef","UpdateType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(i,o){1&i&&(d(0,"table",0),ue(1,1),g(2,uhe,2,0,"th",2),g(3,hhe,2,1,"td",3),he(),ue(4,4),g(5,mhe,2,0,"th",2),g(6,phe,2,1,"td",3),he(),ue(7,5),g(8,fhe,2,0,"th",2),g(9,ghe,2,1,"td",3),he(),ue(10,6),g(11,_he,2,0,"th",2),g(12,bhe,2,1,"td",3),he(),g(13,vhe,1,0,"tr",7),g(14,yhe,1,0,"tr",8),l()),2&i&&(p("dataSource",o.dataSource),m(13),p("matHeaderRowDef",o.displayedColumns),m(1),p("matRowDefColumns",o.displayedColumns))},dependencies:[$a,sa,Ga,ca,aa,qa,la,da,Wa,Ka],styles:[".margin-bot-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mat-mdc-header-row[_ngcontent-%COMP%]{background-color:#f5f5f5}.mat-mdc-column-ColumnName[_ngcontent-%COMP%], .mat-mdc-column-UpdateColumnName[_ngcontent-%COMP%]{width:30%;max-width:30%}.mat-mdc-column-Type[_ngcontent-%COMP%], .mat-mdc-column-UpdateType[_ngcontent-%COMP%]{width:20%;max-width:20%}.mat-mdc-cell[_ngcontent-%COMP%]{padding-right:1rem;word-break:break-all}"]})}return t})();function xhe(t,n){1&t&&(d(0,"p"),u(1,"Review the DDL changes below."),l())}function whe(t,n){if(1&t&&(d(0,"p"),u(1," Changing an interleaved table will have an impact on the following tables : "),d(2,"b"),u(3),l()()),2&t){const e=C();m(3),Ie(e.tableList)}}function She(t,n){if(1&t&&(d(0,"div",11)(1,"pre")(2,"code"),u(3),l()()()),2&t){const e=C();m(3),Ie(e.ddl)}}function Dhe(t,n){if(1&t&&(ue(0),d(1,"h4"),u(2),l(),S(3,"app-table-column-changes-preview",14),he()),2&t){const e=n.$implicit,i=n.index,o=C(2);m(2),Ie(o.tableNames[i]),m(1),p("tableChange",e)}}function khe(t,n){if(1&t&&(d(0,"div",12),g(1,Dhe,4,2,"ng-container",13),l()),2&t){const e=C();m(1),p("ngForOf",e.tableChanges)}}let Mhe=(()=>{class t{constructor(e,i,o,r){this.sidenav=e,this.tableUpdatePubSub=i,this.data=o,this.snackbar=r,this.ddl="",this.showDdl=!0,this.tableUpdateData={tableName:"",tableId:"",updateDetail:{UpdateCols:{}}},this.tableChanges=[],this.tableNames=[],this.tableList=""}ngOnInit(){this.tableUpdatePubSub.reviewTableChanges.subscribe(e=>{if(e.Changes&&e.Changes.length>0){this.showDdl=!1,this.tableChanges=e.Changes;const i=[];this.tableList="",this.tableChanges.forEach((o,r)=>{i.push(o.Table),this.tableList+=0==r?o.Table:", "+o.Table}),this.tableList+=".",this.tableNames=i}else this.showDdl=!0,this.ddl=e.DDL}),this.tableUpdatePubSub.tableUpdateDetail.subscribe(e=>{this.tableUpdateData=e})}updateTable(){this.data.updateTable(this.tableUpdateData.tableId,this.tableUpdateData.updateDetail).subscribe({next:e=>{""==e?(this.snackbar.openSnackBar(`Schema changes to table ${this.tableUpdateData.tableName} saved successfully`,"Close",5),0==this.showDdl&&1!=this.tableNames.length&&this.snackbar.openSnackBar(`Schema changes to tables ${this.tableNames[0]} and ${this.tableNames[1]} saved successfully`,"Close",5),this.closeSidenav()):this.snackbar.openSnackBar(e,"Close",5)}})}closeSidenav(){this.ddl="",this.sidenav.closeSidenav()}static#e=this.\u0275fac=function(i){return new(i||t)(_(Rn),_(B0),_(Pi),_(Go))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-sidenav-review-changes"]],decls:17,vars:4,consts:[[1,"sidenav"],[1,"sidenav-header"],[1,"header-title"],["mat-icon-button","","color","primary",1,"close-button",3,"click"],[1,"close-icon"],[1,"sidenav-content"],[4,"ngIf"],["class","ddl-display",4,"ngIf"],["class","table-changes-display",4,"ngIf"],[1,"sidenav-footer"],["mat-raised-button","","color","primary",3,"click"],[1,"ddl-display"],[1,"table-changes-display"],[4,"ngFor","ngForOf"],[3,"tableChange"]],template:function(i,o){1&i&&(d(0,"div",0)(1,"div",1)(2,"span",2),u(3,"Review changes to your schema"),l(),d(4,"button",3),P("click",function(){return o.closeSidenav()}),d(5,"mat-icon",4),u(6,"close"),l()()(),S(7,"mat-divider"),d(8,"div",5),g(9,xhe,2,0,"p",6),g(10,whe,4,1,"p",6),g(11,She,4,1,"div",7),g(12,khe,2,1,"div",8),l(),S(13,"mat-divider"),d(14,"div",9)(15,"button",10),P("click",function(){return o.updateTable()}),u(16,"Confirm Conversion"),l()()()),2&i&&(m(9),p("ngIf",o.showDdl),m(1),p("ngIf",!o.showDdl),m(1),p("ngIf",o.showDdl),m(1),p("ngIf",!o.showDdl))},dependencies:[qi,kt,Gt,Jr,vi,L2,Che],styles:[".sidenav-content[_ngcontent-%COMP%]{height:82%}.sidenav-content[_ngcontent-%COMP%] .ddl-display[_ngcontent-%COMP%]{height:90%;background-color:#dadada;padding:10px;overflow:auto}.sidenav-content[_ngcontent-%COMP%] .table-changes-display[_ngcontent-%COMP%]{height:90%;overflow:auto}"]})}return t})();function The(t,n){1&t&&S(0,"app-sidenav-rule")}function Ihe(t,n){1&t&&S(0,"app-sidenav-save-session")}function Ehe(t,n){1&t&&S(0,"app-sidenav-review-changes")}function Ohe(t,n){1&t&&S(0,"app-sidenav-view-assessment")}function Ahe(t,n){1&t&&S(0,"app-instruction")}const Phe=function(t,n,e){return{"width-40pc":t,"width-50pc":n,"width-60pc":e}};let Rhe=(()=>{class t{constructor(e){this.sidenavService=e,this.title="ui",this.showSidenav=!1,this.sidenavComponent=""}ngOnInit(){this.sidenavService.isSidenav.subscribe(e=>{this.showSidenav=e}),this.sidenavService.sidenavComponent.subscribe(e=>{this.sidenavComponent=e})}closeSidenav(){this.showSidenav=!1}static#e=this.\u0275fac=function(i){return new(i||t)(_(Rn))};static#t=this.\u0275cmp=Me({type:t,selectors:[["app-root"]],decls:14,vars:11,consts:[[1,"sidenav-container",3,"backdropClick"],["position","end","mode","over",3,"opened","ngClass"],["sidenav",""],[4,"ngIf"],[1,"sidenav-content"],[1,"appLoader"],[1,"padding-20"]],template:function(i,o){1&i&&(d(0,"mat-sidenav-container",0),P("backdropClick",function(){return o.closeSidenav()}),d(1,"mat-sidenav",1,2),g(3,The,1,0,"app-sidenav-rule",3),g(4,Ihe,1,0,"app-sidenav-save-session",3),g(5,Ehe,1,0,"app-sidenav-review-changes",3),g(6,Ohe,1,0,"app-sidenav-view-assessment",3),g(7,Ahe,1,0,"app-instruction",3),l(),d(8,"mat-sidenav-content",4),S(9,"app-header"),d(10,"div",5),S(11,"app-loader"),l(),d(12,"div",6),S(13,"router-outlet"),l()()()),2&i&&(m(1),p("opened",o.showSidenav)("ngClass",xD(7,Phe,"rule"===o.sidenavComponent||"saveSession"===o.sidenavComponent,"reviewChanges"===o.sidenavComponent,"assessment"===o.sidenavComponent||"instruction"===o.sidenavComponent)),m(2),p("ngIf","rule"===o.sidenavComponent),m(1),p("ngIf","saveSession"==o.sidenavComponent),m(1),p("ngIf","reviewChanges"==o.sidenavComponent),m(1),p("ngIf","assessment"===o.sidenavComponent),m(1),p("ngIf","instruction"===o.sidenavComponent))},dependencies:[nr,kt,hf,TO,IO,p0,YA,dde,hde,zde,lhe,dhe,Mhe],styles:[".padding-20[_ngcontent-%COMP%]{padding:5px 0}.progress-bar-wrapper[_ngcontent-%COMP%]{background-color:#cbd0e9;height:2px}.progress-bar-wrapper[_ngcontent-%COMP%] .mat-mdc-progress-bar[_ngcontent-%COMP%], .appLoader[_ngcontent-%COMP%]{height:2px}mat-mdc-sidenav[_ngcontent-%COMP%]{width:30%;min-width:350px}.sidenav-container[_ngcontent-%COMP%]{height:100vh}.sidenav-container[_ngcontent-%COMP%] mat-mdc-sidenav[_ngcontent-%COMP%]{min-width:350px;border-radius:3px}.width-40pc[_ngcontent-%COMP%]{width:40%}.width-50pc[_ngcontent-%COMP%]{width:50%}.width-60pc[_ngcontent-%COMP%]{width:60%}"]})}return t})(),Fhe=(()=>{class t{constructor(e){this.loader=e,this.count=0}intercept(e,i){let o=!e.url.includes("/connect");return o&&(this.loader.startLoader(),this.count++),i.handle(e).pipe(ws(()=>{o&&this.count--,0==this.count&&this.loader.stopLoader()}))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(yf))};static#t=this.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nhe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=lt({type:t,bootstrap:[Rhe]});static#i=this.\u0275inj=st({providers:[{provide:_2,useClass:Fhe,multi:!0}],imports:[EM,nde,P7,HY,z9,c$,XY,iQ,Iee,Xy]})}return t})();Ej().bootstrapModule(Nhe).catch(t=>console.error(t))},965:xl=>{xl.exports=function q(Re,z,N){function R(G,Z){if(!z[G]){if(!Re[G]){if(k)return k(G,!0);var $=new Error("Cannot find module '"+G+"'");throw $.code="MODULE_NOT_FOUND",$}var M=z[G]={exports:{}};Re[G][0].call(M.exports,function(B){return R(Re[G][1][B]||B)},M,M.exports,q,Re,z,N)}return z[G].exports}for(var k=void 0,T=0;T>4,B=1>6:64,D=2>2)+k.charAt(M)+k.charAt(B)+k.charAt(D));return F.join("")},z.decode=function(T){var G,Z,H,$,M,B,D=0,F=0,E="data:";if(T.substr(0,5)===E)throw new Error("Invalid base64 input, it looks like a data url.");var V,K=3*(T=T.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(T.charAt(T.length-1)===k.charAt(64)&&K--,T.charAt(T.length-2)===k.charAt(64)&&K--,K%1!=0)throw new Error("Invalid base64 input, bad content length.");for(V=R.uint8array?new Uint8Array(0|K):new Array(0|K);D>4,Z=(15&$)<<4|(M=k.indexOf(T.charAt(D++)))>>2,H=(3&M)<<6|(B=k.indexOf(T.charAt(D++))),V[F++]=G,64!==M&&(V[F++]=Z),64!==B&&(V[F++]=H);return V}},{"./support":30,"./utils":32}],2:[function(q,Re,z){"use strict";var N=q("./external"),R=q("./stream/DataWorker"),k=q("./stream/Crc32Probe"),T=q("./stream/DataLengthProbe");function G(Z,H,$,M,B){this.compressedSize=Z,this.uncompressedSize=H,this.crc32=$,this.compression=M,this.compressedContent=B}G.prototype={getContentWorker:function(){var Z=new R(N.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new T("data_length")),H=this;return Z.on("end",function(){if(this.streamInfo.data_length!==H.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),Z},getCompressedWorker:function(){return new R(N.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},G.createWorkerFrom=function(Z,H,$){return Z.pipe(new k).pipe(new T("uncompressedSize")).pipe(H.compressWorker($)).pipe(new T("compressedSize")).withStreamInfo("compression",H)},Re.exports=G},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(q,Re,z){"use strict";var N=q("./stream/GenericWorker");z.STORE={magic:"\0\0",compressWorker:function(){return new N("STORE compression")},uncompressWorker:function(){return new N("STORE decompression")}},z.DEFLATE=q("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(q,Re,z){"use strict";var N=q("./utils"),R=function(){for(var k,T=[],G=0;G<256;G++){k=G;for(var Z=0;Z<8;Z++)k=1&k?3988292384^k>>>1:k>>>1;T[G]=k}return T}();Re.exports=function(k,T){return void 0!==k&&k.length?"string"!==N.getTypeOf(k)?function(G,Z,H,$){var M=R,B=0+H;G^=-1;for(var D=0;D>>8^M[255&(G^Z[D])];return-1^G}(0|T,k,k.length):function(G,Z,H,$){var M=R,B=0+H;G^=-1;for(var D=0;D>>8^M[255&(G^Z.charCodeAt(D))];return-1^G}(0|T,k,k.length):0}},{"./utils":32}],5:[function(q,Re,z){"use strict";z.base64=!1,z.binary=!1,z.dir=!1,z.createFolders=!0,z.date=null,z.compression=null,z.compressionOptions=null,z.comment=null,z.unixPermissions=null,z.dosPermissions=null},{}],6:[function(q,Re,z){"use strict";var N;N=typeof Promise<"u"?Promise:q("lie"),Re.exports={Promise:N}},{lie:37}],7:[function(q,Re,z){"use strict";var N=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",R=q("pako"),k=q("./utils"),T=q("./stream/GenericWorker"),G=N?"uint8array":"array";function Z(H,$){T.call(this,"FlateWorker/"+H),this._pako=null,this._pakoAction=H,this._pakoOptions=$,this.meta={}}z.magic="\b\0",k.inherits(Z,T),Z.prototype.processChunk=function(H){this.meta=H.meta,null===this._pako&&this._createPako(),this._pako.push(k.transformTo(G,H.data),!1)},Z.prototype.flush=function(){T.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},Z.prototype.cleanUp=function(){T.prototype.cleanUp.call(this),this._pako=null},Z.prototype._createPako=function(){this._pako=new R[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var H=this;this._pako.onData=function($){H.push({data:$,meta:H.meta})}},z.compressWorker=function(H){return new Z("Deflate",H)},z.uncompressWorker=function(){return new Z("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(q,Re,z){"use strict";function N(M,B){var D,F="";for(D=0;D>>=8;return F}function R(M,B,D,F,E,V){var K,ie,ee=M.file,De=M.compression,ve=V!==G.utf8encode,Be=k.transformTo("string",V(ee.name)),be=k.transformTo("string",G.utf8encode(ee.name)),Ge=ee.comment,ut=k.transformTo("string",V(Ge)),j=k.transformTo("string",G.utf8encode(Ge)),Ce=be.length!==ee.name.length,w=j.length!==Ge.length,we="",St="",Ae="",Lt=ee.dir,Ve=ee.date,Ye={crc32:0,compressedSize:0,uncompressedSize:0};B&&!D||(Ye.crc32=M.crc32,Ye.compressedSize=M.compressedSize,Ye.uncompressedSize=M.uncompressedSize);var me=0;B&&(me|=8),ve||!Ce&&!w||(me|=2048);var te,rn,ce=0,_t=0;Lt&&(ce|=16),"UNIX"===E?(_t=798,ce|=(rn=te=ee.unixPermissions,te||(rn=Lt?16893:33204),(65535&rn)<<16)):(_t=20,ce|=function(te){return 63&(te||0)}(ee.dosPermissions)),K=Ve.getUTCHours(),K<<=6,K|=Ve.getUTCMinutes(),K<<=5,K|=Ve.getUTCSeconds()/2,ie=Ve.getUTCFullYear()-1980,ie<<=4,ie|=Ve.getUTCMonth()+1,ie<<=5,ie|=Ve.getUTCDate(),Ce&&(St=N(1,1)+N(Z(Be),4)+be,we+="up"+N(St.length,2)+St),w&&(Ae=N(1,1)+N(Z(ut),4)+j,we+="uc"+N(Ae.length,2)+Ae);var tt="";return tt+="\n\0",tt+=N(me,2),tt+=De.magic,tt+=N(K,2),tt+=N(ie,2),tt+=N(Ye.crc32,4),tt+=N(Ye.compressedSize,4),tt+=N(Ye.uncompressedSize,4),tt+=N(Be.length,2),tt+=N(we.length,2),{fileRecord:H.LOCAL_FILE_HEADER+tt+Be+we,dirRecord:H.CENTRAL_FILE_HEADER+N(_t,2)+tt+N(ut.length,2)+"\0\0\0\0"+N(ce,4)+N(F,4)+Be+we+ut}}var k=q("../utils"),T=q("../stream/GenericWorker"),G=q("../utf8"),Z=q("../crc32"),H=q("../signature");function $(M,B,D,F){T.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=B,this.zipPlatform=D,this.encodeFileName=F,this.streamFiles=M,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}k.inherits($,T),$.prototype.push=function(M){var B=M.meta.percent||0,D=this.entriesCount,F=this._sources.length;this.accumulate?this.contentBuffer.push(M):(this.bytesWritten+=M.data.length,T.prototype.push.call(this,{data:M.data,meta:{currentFile:this.currentFile,percent:D?(B+100*(D-F-1))/D:100}}))},$.prototype.openedSource=function(M){this.currentSourceOffset=this.bytesWritten,this.currentFile=M.file.name;var B=this.streamFiles&&!M.file.dir;if(B){var D=R(M,B,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:D.fileRecord,meta:{percent:0}})}else this.accumulate=!0},$.prototype.closedSource=function(M){this.accumulate=!1;var F,B=this.streamFiles&&!M.file.dir,D=R(M,B,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(D.dirRecord),B)this.push({data:(F=M,H.DATA_DESCRIPTOR+N(F.crc32,4)+N(F.compressedSize,4)+N(F.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:D.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},$.prototype.flush=function(){for(var M=this.bytesWritten,B=0;B=this.index;T--)G=(G<<8)+this.byteAt(T);return this.index+=k,G},readString:function(k){return N.transformTo("string",this.readData(k))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var k=this.readInt(4);return new Date(Date.UTC(1980+(k>>25&127),(k>>21&15)-1,k>>16&31,k>>11&31,k>>5&63,(31&k)<<1))}},Re.exports=R},{"../utils":32}],19:[function(q,Re,z){"use strict";var N=q("./Uint8ArrayReader");function R(k){N.call(this,k)}q("../utils").inherits(R,N),R.prototype.readData=function(k){this.checkOffset(k);var T=this.data.slice(this.zero+this.index,this.zero+this.index+k);return this.index+=k,T},Re.exports=R},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(q,Re,z){"use strict";var N=q("./DataReader");function R(k){N.call(this,k)}q("../utils").inherits(R,N),R.prototype.byteAt=function(k){return this.data.charCodeAt(this.zero+k)},R.prototype.lastIndexOfSignature=function(k){return this.data.lastIndexOf(k)-this.zero},R.prototype.readAndCheckSignature=function(k){return k===this.readData(4)},R.prototype.readData=function(k){this.checkOffset(k);var T=this.data.slice(this.zero+this.index,this.zero+this.index+k);return this.index+=k,T},Re.exports=R},{"../utils":32,"./DataReader":18}],21:[function(q,Re,z){"use strict";var N=q("./ArrayReader");function R(k){N.call(this,k)}q("../utils").inherits(R,N),R.prototype.readData=function(k){if(this.checkOffset(k),0===k)return new Uint8Array(0);var T=this.data.subarray(this.zero+this.index,this.zero+this.index+k);return this.index+=k,T},Re.exports=R},{"../utils":32,"./ArrayReader":17}],22:[function(q,Re,z){"use strict";var N=q("../utils"),R=q("../support"),k=q("./ArrayReader"),T=q("./StringReader"),G=q("./NodeBufferReader"),Z=q("./Uint8ArrayReader");Re.exports=function(H){var $=N.getTypeOf(H);return N.checkSupport($),"string"!==$||R.uint8array?"nodebuffer"===$?new G(H):R.uint8array?new Z(N.transformTo("uint8array",H)):new k(N.transformTo("array",H)):new T(H)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(q,Re,z){"use strict";z.LOCAL_FILE_HEADER="PK\x03\x04",z.CENTRAL_FILE_HEADER="PK\x01\x02",z.CENTRAL_DIRECTORY_END="PK\x05\x06",z.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",z.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",z.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(q,Re,z){"use strict";var N=q("./GenericWorker"),R=q("../utils");function k(T){N.call(this,"ConvertWorker to "+T),this.destType=T}R.inherits(k,N),k.prototype.processChunk=function(T){this.push({data:R.transformTo(this.destType,T.data),meta:T.meta})},Re.exports=k},{"../utils":32,"./GenericWorker":28}],25:[function(q,Re,z){"use strict";var N=q("./GenericWorker"),R=q("../crc32");function k(){N.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}q("../utils").inherits(k,N),k.prototype.processChunk=function(T){this.streamInfo.crc32=R(T.data,this.streamInfo.crc32||0),this.push(T)},Re.exports=k},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(q,Re,z){"use strict";var N=q("../utils"),R=q("./GenericWorker");function k(T){R.call(this,"DataLengthProbe for "+T),this.propName=T,this.withStreamInfo(T,0)}N.inherits(k,R),k.prototype.processChunk=function(T){T&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+T.data.length),R.prototype.processChunk.call(this,T)},Re.exports=k},{"../utils":32,"./GenericWorker":28}],27:[function(q,Re,z){"use strict";var N=q("../utils"),R=q("./GenericWorker");function k(T){R.call(this,"DataWorker");var G=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,T.then(function(Z){G.dataIsReady=!0,G.data=Z,G.max=Z&&Z.length||0,G.type=N.getTypeOf(Z),G.isPaused||G._tickAndRepeat()},function(Z){G.error(Z)})}N.inherits(k,R),k.prototype.cleanUp=function(){R.prototype.cleanUp.call(this),this.data=null},k.prototype.resume=function(){return!!R.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,N.delay(this._tickAndRepeat,[],this)),!0)},k.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(N.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},k.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var T=null,G=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":T=this.data.substring(this.index,G);break;case"uint8array":T=this.data.subarray(this.index,G);break;case"array":case"nodebuffer":T=this.data.slice(this.index,G)}return this.index=G,this.push({data:T,meta:{percent:this.max?this.index/this.max*100:0}})},Re.exports=k},{"../utils":32,"./GenericWorker":28}],28:[function(q,Re,z){"use strict";function N(R){this.name=R||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}N.prototype={push:function(R){this.emit("data",R)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(R){this.emit("error",R)}return!0},error:function(R){return!this.isFinished&&(this.isPaused?this.generatedError=R:(this.isFinished=!0,this.emit("error",R),this.previous&&this.previous.error(R),this.cleanUp()),!0)},on:function(R,k){return this._listeners[R].push(k),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(R,k){if(this._listeners[R])for(var T=0;T "+R:R}},Re.exports=N},{}],29:[function(q,Re,z){"use strict";var N=q("../utils"),R=q("./ConvertWorker"),k=q("./GenericWorker"),T=q("../base64"),G=q("../support"),Z=q("../external"),H=null;if(G.nodestream)try{H=q("../nodejs/NodejsStreamOutputAdapter")}catch{}function M(B,D,F){var E=D;switch(D){case"blob":case"arraybuffer":E="uint8array";break;case"base64":E="string"}try{this._internalType=E,this._outputType=D,this._mimeType=F,N.checkSupport(E),this._worker=B.pipe(new R(E)),B.lock()}catch(V){this._worker=new k("error"),this._worker.error(V)}}M.prototype={accumulate:function(B){return function $(B,D){return new Z.Promise(function(F,E){var V=[],K=B._internalType,ie=B._outputType,ee=B._mimeType;B.on("data",function(De,ve){V.push(De),D&&D(ve)}).on("error",function(De){V=[],E(De)}).on("end",function(){try{var De=function(ve,Be,be){switch(ve){case"blob":return N.newBlob(N.transformTo("arraybuffer",Be),be);case"base64":return T.encode(Be);default:return N.transformTo(ve,Be)}}(ie,function(ve,Be){var be,Ge=0,ut=null,j=0;for(be=0;be"u")z.blob=!1;else{var N=new ArrayBuffer(0);try{z.blob=0===new Blob([N],{type:"application/zip"}).size}catch{try{var R=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);R.append(N),z.blob=0===R.getBlob("application/zip").size}catch{z.blob=!1}}}try{z.nodestream=!!q("readable-stream").Readable}catch{z.nodestream=!1}},{"readable-stream":16}],31:[function(q,Re,z){"use strict";for(var N=q("./utils"),R=q("./support"),k=q("./nodejsUtils"),T=q("./stream/GenericWorker"),G=new Array(256),Z=0;Z<256;Z++)G[Z]=252<=Z?6:248<=Z?5:240<=Z?4:224<=Z?3:192<=Z?2:1;function H(){T.call(this,"utf-8 decode"),this.leftOver=null}function $(){T.call(this,"utf-8 encode")}G[254]=G[254]=1,z.utf8encode=function(M){return R.nodebuffer?k.newBufferFrom(M,"utf-8"):function(B){var D,F,E,V,K,ie=B.length,ee=0;for(V=0;V>>6:(F<65536?D[K++]=224|F>>>12:(D[K++]=240|F>>>18,D[K++]=128|F>>>12&63),D[K++]=128|F>>>6&63),D[K++]=128|63&F);return D}(M)},z.utf8decode=function(M){return R.nodebuffer?N.transformTo("nodebuffer",M).toString("utf-8"):function(B){var D,F,E,V,K=B.length,ie=new Array(2*K);for(D=F=0;D>10&1023,ie[F++]=56320|1023&E)}return ie.length!==F&&(ie.subarray?ie=ie.subarray(0,F):ie.length=F),N.applyFromCharCode(ie)}(M=N.transformTo(R.uint8array?"uint8array":"array",M))},N.inherits(H,T),H.prototype.processChunk=function(M){var B=N.transformTo(R.uint8array?"uint8array":"array",M.data);if(this.leftOver&&this.leftOver.length){if(R.uint8array){var D=B;(B=new Uint8Array(D.length+this.leftOver.length)).set(this.leftOver,0),B.set(D,this.leftOver.length)}else B=this.leftOver.concat(B);this.leftOver=null}var F=function(V,K){var ie;for((K=K||V.length)>V.length&&(K=V.length),ie=K-1;0<=ie&&128==(192&V[ie]);)ie--;return ie<0||0===ie?K:ie+G[V[ie]]>K?ie:K}(B),E=B;F!==B.length&&(R.uint8array?(E=B.subarray(0,F),this.leftOver=B.subarray(F,B.length)):(E=B.slice(0,F),this.leftOver=B.slice(F,B.length))),this.push({data:z.utf8decode(E),meta:M.meta})},H.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:z.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},z.Utf8DecodeWorker=H,N.inherits($,T),$.prototype.processChunk=function(M){this.push({data:z.utf8encode(M.data),meta:M.meta})},z.Utf8EncodeWorker=$},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(q,Re,z){"use strict";var N=q("./support"),R=q("./base64"),k=q("./nodejsUtils"),T=q("./external");function G(D){return D}function Z(D,F){for(var E=0;E>8;this.dir=!!(16&this.externalFileAttributes),0==M&&(this.dosPermissions=63&this.externalFileAttributes),3==M&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var M=N(this.extraFields[1].value);this.uncompressedSize===R.MAX_VALUE_32BITS&&(this.uncompressedSize=M.readInt(8)),this.compressedSize===R.MAX_VALUE_32BITS&&(this.compressedSize=M.readInt(8)),this.localHeaderOffset===R.MAX_VALUE_32BITS&&(this.localHeaderOffset=M.readInt(8)),this.diskNumberStart===R.MAX_VALUE_32BITS&&(this.diskNumberStart=M.readInt(4))}},readExtraFields:function(M){var B,D,F,E=M.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});M.index+4>>6:(M<65536?$[F++]=224|M>>>12:($[F++]=240|M>>>18,$[F++]=128|M>>>12&63),$[F++]=128|M>>>6&63),$[F++]=128|63&M);return $},z.buf2binstring=function(H){return Z(H,H.length)},z.binstring2buf=function(H){for(var $=new N.Buf8(H.length),M=0,B=$.length;M>10&1023,V[B++]=56320|1023&D)}return Z(V,B)},z.utf8border=function(H,$){var M;for(($=$||H.length)>H.length&&($=H.length),M=$-1;0<=M&&128==(192&H[M]);)M--;return M<0||0===M?$:M+T[H[M]]>$?M:$}},{"./common":41}],43:[function(q,Re,z){"use strict";Re.exports=function(N,R,k,T){for(var G=65535&N|0,Z=N>>>16&65535|0,H=0;0!==k;){for(k-=H=2e3>>1:R>>>1;k[T]=R}return k}();Re.exports=function(R,k,T,G){var Z=N,H=G+T;R^=-1;for(var $=G;$>>8^Z[255&(R^k[$])];return-1^R}},{}],46:[function(q,Re,z){"use strict";var N,R=q("../utils/common"),k=q("./trees"),T=q("./adler32"),G=q("./crc32"),Z=q("./messages"),H=0,M=0,B=-2,E=2,V=8,ie=286,ee=30,De=19,ve=2*ie+1,Be=15,be=3,Ge=258,ut=Ge+be+1,j=42,Ce=113;function Lt(v,xe){return v.msg=Z[xe],xe}function Ve(v){return(v<<1)-(4v.avail_out&&(fe=v.avail_out),0!==fe&&(R.arraySet(v.output,xe.pending_buf,xe.pending_out,fe,v.next_out),v.next_out+=fe,xe.pending_out+=fe,v.total_out+=fe,v.avail_out-=fe,xe.pending-=fe,0===xe.pending&&(xe.pending_out=0))}function ce(v,xe){k._tr_flush_block(v,0<=v.block_start?v.block_start:-1,v.strstart-v.block_start,xe),v.block_start=v.strstart,me(v.strm)}function _t(v,xe){v.pending_buf[v.pending++]=xe}function tt(v,xe){v.pending_buf[v.pending++]=xe>>>8&255,v.pending_buf[v.pending++]=255&xe}function te(v,xe){var fe,L,A=v.max_chain_length,Q=v.strstart,Te=v.prev_length,Pe=v.nice_match,ae=v.strstart>v.w_size-ut?v.strstart-(v.w_size-ut):0,je=v.window,it=v.w_mask,He=v.prev,mt=v.strstart+Ge,ii=je[Q+Te-1],jt=je[Q+Te];v.prev_length>=v.good_match&&(A>>=2),Pe>v.lookahead&&(Pe=v.lookahead);do{if(je[(fe=xe)+Te]===jt&&je[fe+Te-1]===ii&&je[fe]===je[Q]&&je[++fe]===je[Q+1]){Q+=2,fe++;do{}while(je[++Q]===je[++fe]&&je[++Q]===je[++fe]&&je[++Q]===je[++fe]&&je[++Q]===je[++fe]&&je[++Q]===je[++fe]&&je[++Q]===je[++fe]&&je[++Q]===je[++fe]&&je[++Q]===je[++fe]&&Qae&&0!=--A);return Te<=v.lookahead?Te:v.lookahead}function Ti(v){var xe,fe,L,A,Q,Te,Pe,ae,je,it,He=v.w_size;do{if(A=v.window_size-v.lookahead-v.strstart,v.strstart>=He+(He-ut)){for(R.arraySet(v.window,v.window,He,He,0),v.match_start-=He,v.strstart-=He,v.block_start-=He,xe=fe=v.hash_size;L=v.head[--xe],v.head[xe]=He<=L?L-He:0,--fe;);for(xe=fe=He;L=v.prev[--xe],v.prev[xe]=He<=L?L-He:0,--fe;);A+=He}if(0===v.strm.avail_in)break;if(Pe=v.window,ae=v.strstart+v.lookahead,it=void 0,(je=A)<(it=(Te=v.strm).avail_in)&&(it=je),fe=0===it?0:(Te.avail_in-=it,R.arraySet(Pe,Te.input,Te.next_in,it,ae),1===Te.state.wrap?Te.adler=T(Te.adler,Pe,it,ae):2===Te.state.wrap&&(Te.adler=G(Te.adler,Pe,it,ae)),Te.next_in+=it,Te.total_in+=it,it),v.lookahead+=fe,v.lookahead+v.insert>=be)for(v.ins_h=v.window[Q=v.strstart-v.insert],v.ins_h=(v.ins_h<=be&&(v.ins_h=(v.ins_h<=be)if(L=k._tr_tally(v,v.strstart-v.match_start,v.match_length-be),v.lookahead-=v.match_length,v.match_length<=v.max_lazy_match&&v.lookahead>=be){for(v.match_length--;v.strstart++,v.ins_h=(v.ins_h<=be&&(v.ins_h=(v.ins_h<=be&&v.match_length<=v.prev_length){for(A=v.strstart+v.lookahead-be,L=k._tr_tally(v,v.strstart-1-v.prev_match,v.prev_length-be),v.lookahead-=v.prev_length-1,v.prev_length-=2;++v.strstart<=A&&(v.ins_h=(v.ins_h<v.pending_buf_size-5&&(fe=v.pending_buf_size-5);;){if(v.lookahead<=1){if(Ti(v),0===v.lookahead&&xe===H)return 1;if(0===v.lookahead)break}v.strstart+=v.lookahead,v.lookahead=0;var L=v.block_start+fe;if((0===v.strstart||v.strstart>=L)&&(v.lookahead=v.strstart-L,v.strstart=L,ce(v,!1),0===v.strm.avail_out)||v.strstart-v.block_start>=v.w_size-ut&&(ce(v,!1),0===v.strm.avail_out))return 1}return v.insert=0,4===xe?(ce(v,!0),0===v.strm.avail_out?3:4):(v.strstart>v.block_start&&ce(v,!1),1)}),new dt(4,4,8,4,rn),new dt(4,5,16,8,rn),new dt(4,6,32,32,rn),new dt(4,4,16,16,at),new dt(8,16,32,32,at),new dt(8,16,128,128,at),new dt(8,32,128,256,at),new dt(32,128,258,1024,at),new dt(32,258,258,4096,at)],z.deflateInit=function(v,xe){return uo(v,xe,V,15,8,0)},z.deflateInit2=uo,z.deflateReset=Qn,z.deflateResetKeep=ze,z.deflateSetHeader=function(v,xe){return v&&v.state?2!==v.state.wrap?B:(v.state.gzhead=xe,M):B},z.deflate=function(v,xe){var fe,L,A,Q;if(!v||!v.state||5>8&255),_t(L,L.gzhead.time>>16&255),_t(L,L.gzhead.time>>24&255),_t(L,9===L.level?2:2<=L.strategy||L.level<2?4:0),_t(L,255&L.gzhead.os),L.gzhead.extra&&L.gzhead.extra.length&&(_t(L,255&L.gzhead.extra.length),_t(L,L.gzhead.extra.length>>8&255)),L.gzhead.hcrc&&(v.adler=G(v.adler,L.pending_buf,L.pending,0)),L.gzindex=0,L.status=69):(_t(L,0),_t(L,0),_t(L,0),_t(L,0),_t(L,0),_t(L,9===L.level?2:2<=L.strategy||L.level<2?4:0),_t(L,3),L.status=Ce);else{var Te=V+(L.w_bits-8<<4)<<8;Te|=(2<=L.strategy||L.level<2?0:L.level<6?1:6===L.level?2:3)<<6,0!==L.strstart&&(Te|=32),Te+=31-Te%31,L.status=Ce,tt(L,Te),0!==L.strstart&&(tt(L,v.adler>>>16),tt(L,65535&v.adler)),v.adler=1}if(69===L.status)if(L.gzhead.extra){for(A=L.pending;L.gzindex<(65535&L.gzhead.extra.length)&&(L.pending!==L.pending_buf_size||(L.gzhead.hcrc&&L.pending>A&&(v.adler=G(v.adler,L.pending_buf,L.pending-A,A)),me(v),A=L.pending,L.pending!==L.pending_buf_size));)_t(L,255&L.gzhead.extra[L.gzindex]),L.gzindex++;L.gzhead.hcrc&&L.pending>A&&(v.adler=G(v.adler,L.pending_buf,L.pending-A,A)),L.gzindex===L.gzhead.extra.length&&(L.gzindex=0,L.status=73)}else L.status=73;if(73===L.status)if(L.gzhead.name){A=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>A&&(v.adler=G(v.adler,L.pending_buf,L.pending-A,A)),me(v),A=L.pending,L.pending===L.pending_buf_size)){Q=1;break}Q=L.gzindexA&&(v.adler=G(v.adler,L.pending_buf,L.pending-A,A)),0===Q&&(L.gzindex=0,L.status=91)}else L.status=91;if(91===L.status)if(L.gzhead.comment){A=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>A&&(v.adler=G(v.adler,L.pending_buf,L.pending-A,A)),me(v),A=L.pending,L.pending===L.pending_buf_size)){Q=1;break}Q=L.gzindexA&&(v.adler=G(v.adler,L.pending_buf,L.pending-A,A)),0===Q&&(L.status=103)}else L.status=103;if(103===L.status&&(L.gzhead.hcrc?(L.pending+2>L.pending_buf_size&&me(v),L.pending+2<=L.pending_buf_size&&(_t(L,255&v.adler),_t(L,v.adler>>8&255),v.adler=0,L.status=Ce)):L.status=Ce),0!==L.pending){if(me(v),0===v.avail_out)return L.last_flush=-1,M}else if(0===v.avail_in&&Ve(xe)<=Ve(fe)&&4!==xe)return Lt(v,-5);if(666===L.status&&0!==v.avail_in)return Lt(v,-5);if(0!==v.avail_in||0!==L.lookahead||xe!==H&&666!==L.status){var Pe=2===L.strategy?function(ae,je){for(var it;;){if(0===ae.lookahead&&(Ti(ae),0===ae.lookahead)){if(je===H)return 1;break}if(ae.match_length=0,it=k._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++,it&&(ce(ae,!1),0===ae.strm.avail_out))return 1}return ae.insert=0,4===je?(ce(ae,!0),0===ae.strm.avail_out?3:4):ae.last_lit&&(ce(ae,!1),0===ae.strm.avail_out)?1:2}(L,xe):3===L.strategy?function(ae,je){for(var it,He,mt,ii,jt=ae.window;;){if(ae.lookahead<=Ge){if(Ti(ae),ae.lookahead<=Ge&&je===H)return 1;if(0===ae.lookahead)break}if(ae.match_length=0,ae.lookahead>=be&&0ae.lookahead&&(ae.match_length=ae.lookahead)}if(ae.match_length>=be?(it=k._tr_tally(ae,1,ae.match_length-be),ae.lookahead-=ae.match_length,ae.strstart+=ae.match_length,ae.match_length=0):(it=k._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++),it&&(ce(ae,!1),0===ae.strm.avail_out))return 1}return ae.insert=0,4===je?(ce(ae,!0),0===ae.strm.avail_out?3:4):ae.last_lit&&(ce(ae,!1),0===ae.strm.avail_out)?1:2}(L,xe):N[L.level].func(L,xe);if(3!==Pe&&4!==Pe||(L.status=666),1===Pe||3===Pe)return 0===v.avail_out&&(L.last_flush=-1),M;if(2===Pe&&(1===xe?k._tr_align(L):5!==xe&&(k._tr_stored_block(L,0,0,!1),3===xe&&(Ye(L.head),0===L.lookahead&&(L.strstart=0,L.block_start=0,L.insert=0))),me(v),0===v.avail_out))return L.last_flush=-1,M}return 4!==xe?M:L.wrap<=0?1:(2===L.wrap?(_t(L,255&v.adler),_t(L,v.adler>>8&255),_t(L,v.adler>>16&255),_t(L,v.adler>>24&255),_t(L,255&v.total_in),_t(L,v.total_in>>8&255),_t(L,v.total_in>>16&255),_t(L,v.total_in>>24&255)):(tt(L,v.adler>>>16),tt(L,65535&v.adler)),me(v),0=fe.w_size&&(0===Q&&(Ye(fe.head),fe.strstart=0,fe.block_start=0,fe.insert=0),je=new R.Buf8(fe.w_size),R.arraySet(je,xe,it-fe.w_size,fe.w_size,0),xe=je,it=fe.w_size),Te=v.avail_in,Pe=v.next_in,ae=v.input,v.avail_in=it,v.next_in=0,v.input=xe,Ti(fe);fe.lookahead>=be;){for(L=fe.strstart,A=fe.lookahead-(be-1);fe.ins_h=(fe.ins_h<>>=be=Be>>>24,K-=be,0==(be=Be>>>16&255))we[Z++]=65535&Be;else{if(!(16&be)){if(!(64&be)){Be=ie[(65535&Be)+(V&(1<>>=be,K-=be),K<15&&(V+=w[T++]<>>=be=Be>>>24,K-=be,!(16&(be=Be>>>16&255))){if(!(64&be)){Be=ee[(65535&Be)+(V&(1<>>=be,K-=be,(be=Z-H)>3,V&=(1<<(K-=Ge<<3))-1,N.next_in=T,N.next_out=Z,N.avail_in=T>>24&255)+(j>>>8&65280)+((65280&j)<<8)+((255&j)<<24)}function V(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new N.Buf16(320),this.work=new N.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function K(j){var Ce;return j&&j.state?(j.total_in=j.total_out=(Ce=j.state).total=0,j.msg="",Ce.wrap&&(j.adler=1&Ce.wrap),Ce.mode=B,Ce.last=0,Ce.havedict=0,Ce.dmax=32768,Ce.head=null,Ce.hold=0,Ce.bits=0,Ce.lencode=Ce.lendyn=new N.Buf32(D),Ce.distcode=Ce.distdyn=new N.Buf32(F),Ce.sane=1,Ce.back=-1,$):M}function ie(j){var Ce;return j&&j.state?((Ce=j.state).wsize=0,Ce.whave=0,Ce.wnext=0,K(j)):M}function ee(j,Ce){var w,we;return j&&j.state?(we=j.state,Ce<0?(w=0,Ce=-Ce):(w=1+(Ce>>4),Ce<48&&(Ce&=15)),Ce&&(Ce<8||15=Ae.wsize?(N.arraySet(Ae.window,Ce,w-Ae.wsize,Ae.wsize,0),Ae.wnext=0,Ae.whave=Ae.wsize):(we<(St=Ae.wsize-Ae.wnext)&&(St=we),N.arraySet(Ae.window,Ce,w-we,St,Ae.wnext),(we-=St)?(N.arraySet(Ae.window,Ce,w-we,we,0),Ae.wnext=we,Ae.whave=Ae.wsize):(Ae.wnext+=St,Ae.wnext===Ae.wsize&&(Ae.wnext=0),Ae.whave>>8&255,w.check=k(w.check,Q,2,0),ce=me=0,w.mode=2;break}if(w.flags=0,w.head&&(w.head.done=!1),!(1&w.wrap)||(((255&me)<<8)+(me>>8))%31){j.msg="incorrect header check",w.mode=30;break}if(8!=(15&me)){j.msg="unknown compression method",w.mode=30;break}if(ce-=4,v=8+(15&(me>>>=4)),0===w.wbits)w.wbits=v;else if(v>w.wbits){j.msg="invalid window size",w.mode=30;break}w.dmax=1<>8&1),512&w.flags&&(Q[0]=255&me,Q[1]=me>>>8&255,w.check=k(w.check,Q,2,0)),ce=me=0,w.mode=3;case 3:for(;ce<32;){if(0===Ve)break e;Ve--,me+=we[Ae++]<>>8&255,Q[2]=me>>>16&255,Q[3]=me>>>24&255,w.check=k(w.check,Q,4,0)),ce=me=0,w.mode=4;case 4:for(;ce<16;){if(0===Ve)break e;Ve--,me+=we[Ae++]<>8),512&w.flags&&(Q[0]=255&me,Q[1]=me>>>8&255,w.check=k(w.check,Q,2,0)),ce=me=0,w.mode=5;case 5:if(1024&w.flags){for(;ce<16;){if(0===Ve)break e;Ve--,me+=we[Ae++]<>>8&255,w.check=k(w.check,Q,2,0)),ce=me=0}else w.head&&(w.head.extra=null);w.mode=6;case 6:if(1024&w.flags&&(Ve<(te=w.length)&&(te=Ve),te&&(w.head&&(v=w.head.extra_len-w.length,w.head.extra||(w.head.extra=new Array(w.head.extra_len)),N.arraySet(w.head.extra,we,Ae,te,v)),512&w.flags&&(w.check=k(w.check,we,te,Ae)),Ve-=te,Ae+=te,w.length-=te),w.length))break e;w.length=0,w.mode=7;case 7:if(2048&w.flags){if(0===Ve)break e;for(te=0;v=we[Ae+te++],w.head&&v&&w.length<65536&&(w.head.name+=String.fromCharCode(v)),v&&te>9&1,w.head.done=!0),j.adler=w.check=0,w.mode=12;break;case 10:for(;ce<32;){if(0===Ve)break e;Ve--,me+=we[Ae++]<>>=7&ce,ce-=7&ce,w.mode=27;break}for(;ce<3;){if(0===Ve)break e;Ve--,me+=we[Ae++]<>>=1)){case 0:w.mode=14;break;case 1:if(Ge(w),w.mode=20,6!==Ce)break;me>>>=2,ce-=2;break e;case 2:w.mode=17;break;case 3:j.msg="invalid block type",w.mode=30}me>>>=2,ce-=2;break;case 14:for(me>>>=7&ce,ce-=7&ce;ce<32;){if(0===Ve)break e;Ve--,me+=we[Ae++]<>>16^65535)){j.msg="invalid stored block lengths",w.mode=30;break}if(w.length=65535&me,ce=me=0,w.mode=15,6===Ce)break e;case 15:w.mode=16;case 16:if(te=w.length){if(Ve>>=5)),ce-=5,w.ncode=4+(15&(me>>>=5)),me>>>=4,ce-=4,286>>=3,ce-=3}for(;w.have<19;)w.lens[Te[w.have++]]=0;if(w.lencode=w.lendyn,w.lenbits=7,xe=G(0,w.lens,0,19,w.lencode,0,w.work,fe={bits:w.lenbits}),w.lenbits=fe.bits,xe){j.msg="invalid code lengths set",w.mode=30;break}w.have=0,w.mode=19;case 19:for(;w.have>>16&255,Zi=65535&A,!((at=A>>>24)<=ce);){if(0===Ve)break e;Ve--,me+=we[Ae++]<>>=at,ce-=at,w.lens[w.have++]=Zi;else{if(16===Zi){for(L=at+2;ce>>=at,ce-=at,0===w.have){j.msg="invalid bit length repeat",w.mode=30;break}v=w.lens[w.have-1],te=3+(3&me),me>>>=2,ce-=2}else if(17===Zi){for(L=at+3;ce>>=at)),me>>>=3,ce-=3}else{for(L=at+7;ce>>=at)),me>>>=7,ce-=7}if(w.have+te>w.nlen+w.ndist){j.msg="invalid bit length repeat",w.mode=30;break}for(;te--;)w.lens[w.have++]=v}}if(30===w.mode)break;if(0===w.lens[256]){j.msg="invalid code -- missing end-of-block",w.mode=30;break}if(w.lenbits=9,xe=G(1,w.lens,0,w.nlen,w.lencode,0,w.work,fe={bits:w.lenbits}),w.lenbits=fe.bits,xe){j.msg="invalid literal/lengths set",w.mode=30;break}if(w.distbits=6,w.distcode=w.distdyn,xe=G(2,w.lens,w.nlen,w.ndist,w.distcode,0,w.work,fe={bits:w.distbits}),w.distbits=fe.bits,xe){j.msg="invalid distances set",w.mode=30;break}if(w.mode=20,6===Ce)break e;case 20:w.mode=21;case 21:if(6<=Ve&&258<=Ye){j.next_out=Lt,j.avail_out=Ye,j.next_in=Ae,j.avail_in=Ve,w.hold=me,w.bits=ce,T(j,tt),Lt=j.next_out,St=j.output,Ye=j.avail_out,Ae=j.next_in,we=j.input,Ve=j.avail_in,me=w.hold,ce=w.bits,12===w.mode&&(w.back=-1);break}for(w.back=0;dt=(A=w.lencode[me&(1<>>16&255,Zi=65535&A,!((at=A>>>24)<=ce);){if(0===Ve)break e;Ve--,me+=we[Ae++]<>ze)])>>>16&255,Zi=65535&A,!(ze+(at=A>>>24)<=ce);){if(0===Ve)break e;Ve--,me+=we[Ae++]<>>=ze,ce-=ze,w.back+=ze}if(me>>>=at,ce-=at,w.back+=at,w.length=Zi,0===dt){w.mode=26;break}if(32&dt){w.back=-1,w.mode=12;break}if(64&dt){j.msg="invalid literal/length code",w.mode=30;break}w.extra=15&dt,w.mode=22;case 22:if(w.extra){for(L=w.extra;ce>>=w.extra,ce-=w.extra,w.back+=w.extra}w.was=w.length,w.mode=23;case 23:for(;dt=(A=w.distcode[me&(1<>>16&255,Zi=65535&A,!((at=A>>>24)<=ce);){if(0===Ve)break e;Ve--,me+=we[Ae++]<>ze)])>>>16&255,Zi=65535&A,!(ze+(at=A>>>24)<=ce);){if(0===Ve)break e;Ve--,me+=we[Ae++]<>>=ze,ce-=ze,w.back+=ze}if(me>>>=at,ce-=at,w.back+=at,64&dt){j.msg="invalid distance code",w.mode=30;break}w.offset=Zi,w.extra=15&dt,w.mode=24;case 24:if(w.extra){for(L=w.extra;ce>>=w.extra,ce-=w.extra,w.back+=w.extra}if(w.offset>w.dmax){j.msg="invalid distance too far back",w.mode=30;break}w.mode=25;case 25:if(0===Ye)break e;if(w.offset>(te=tt-Ye)){if((te=w.offset-te)>w.whave&&w.sane){j.msg="invalid distance too far back",w.mode=30;break}Ti=te>w.wnext?w.wsize-(te-=w.wnext):w.wnext-te,te>w.length&&(te=w.length),rn=w.window}else rn=St,Ti=Lt-w.offset,te=w.length;for(Yeve?(be=Ti[rn+F[Ce]],ce[_t+F[Ce]]):(be=96,0),V=1<>Lt)+(K-=V)]=Be<<24|be<<16|Ge|0,0!==K;);for(V=1<>=1;if(0!==V?(me&=V-1,me+=V):me=0,Ce++,0==--tt[j]){if(j===we)break;j=H[$+F[Ce]]}if(St>>7)]}function _t(A,Q){A.pending_buf[A.pending++]=255&Q,A.pending_buf[A.pending++]=Q>>>8&255}function tt(A,Q,Te){A.bi_valid>E-Te?(A.bi_buf|=Q<>E-A.bi_valid,A.bi_valid+=Te-E):(A.bi_buf|=Q<>>=1,Te<<=1,0<--Q;);return Te>>>1}function rn(A,Q,Te){var Pe,ae,je=new Array(F+1),it=0;for(Pe=1;Pe<=F;Pe++)je[Pe]=it=it+Te[Pe-1]<<1;for(ae=0;ae<=Q;ae++){var He=A[2*ae+1];0!==He&&(A[2*ae]=Ti(je[He]++,He))}}function at(A){var Q;for(Q=0;Q<$;Q++)A.dyn_ltree[2*Q]=0;for(Q=0;Q>1;1<=Te;Te--)ze(A,je,Te);for(ae=mt;Te=A.heap[1],A.heap[1]=A.heap[A.heap_len--],ze(A,je,1),Pe=A.heap[1],A.heap[--A.heap_max]=Te,A.heap[--A.heap_max]=Pe,je[2*ae]=je[2*Te]+je[2*Pe],A.depth[ae]=(A.depth[Te]>=A.depth[Pe]?A.depth[Te]:A.depth[Pe])+1,je[2*Te+1]=je[2*Pe+1]=ae,A.heap[1]=ae++,ze(A,je,1),2<=A.heap_len;);A.heap[--A.heap_max]=A.heap[1],function(jt,Xn){var Ja,Eo,Jn,Ii,js,zs,Ko=Xn.dyn_tree,Eu=Xn.max_code,kf=Xn.stat_desc.static_tree,Mf=Xn.stat_desc.has_stree,Tf=Xn.stat_desc.extra_bits,Ou=Xn.stat_desc.extra_base,es=Xn.stat_desc.max_length,Hs=0;for(Ii=0;Ii<=F;Ii++)jt.bl_count[Ii]=0;for(Ko[2*jt.heap[jt.heap_max]+1]=0,Ja=jt.heap_max+1;Ja<573;Ja++)es<(Ii=Ko[2*Ko[2*(Eo=jt.heap[Ja])+1]+1]+1)&&(Ii=es,Hs++),Ko[2*Eo+1]=Ii,Eu>=7;ae>>=1)if(1&ii&&0!==He.dyn_ltree[2*mt])return 0;if(0!==He.dyn_ltree[18]||0!==He.dyn_ltree[20]||0!==He.dyn_ltree[26])return 1;for(mt=32;mt>>3)<=(ae=A.opt_len+3+7>>>3)&&(ae=je)):ae=je=Te+5,Te+4<=ae&&-1!==Q?L(A,Q,Te,Pe):4===A.strategy||je===ae?(tt(A,2+(Pe?1:0),3),Qn(A,ut,j)):(tt(A,4+(Pe?1:0),3),function(He,mt,ii,jt){var Xn;for(tt(He,mt-257,5),tt(He,ii-1,5),tt(He,jt-4,4),Xn=0;Xn>>8&255,A.pending_buf[A.d_buf+2*A.last_lit+1]=255&Q,A.pending_buf[A.l_buf+A.last_lit]=255&Te,A.last_lit++,0===Q?A.dyn_ltree[2*Te]++:(A.matches++,Q--,A.dyn_ltree[2*(w[Te]+H+1)]++,A.dyn_dtree[2*ce(Q)]++),A.last_lit===A.lit_bufsize-1},z._tr_align=function(A){var Q;tt(A,2,3),te(A,256,ut),16===(Q=A).bi_valid?(_t(Q,Q.bi_buf),Q.bi_buf=0,Q.bi_valid=0):8<=Q.bi_valid&&(Q.pending_buf[Q.pending++]=255&Q.bi_buf,Q.bi_buf>>=8,Q.bi_valid-=8)}},{"../utils/common":41}],53:[function(q,Re,z){"use strict";Re.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(q,Re,z){(function(N){!function(R,k){"use strict";if(!R.setImmediate){var T,G,Z,H,$=1,M={},B=!1,D=R.document,F=Object.getPrototypeOf&&Object.getPrototypeOf(R);F=F&&F.setTimeout?F:R,T="[object process]"==={}.toString.call(R.process)?function(ie){process.nextTick(function(){V(ie)})}:function(){if(R.postMessage&&!R.importScripts){var ie=!0,ee=R.onmessage;return R.onmessage=function(){ie=!1},R.postMessage("","*"),R.onmessage=ee,ie}}()?(H="setImmediate$"+Math.random()+"$",R.addEventListener?R.addEventListener("message",K,!1):R.attachEvent("onmessage",K),function(ie){R.postMessage(H+ie,"*")}):R.MessageChannel?((Z=new MessageChannel).port1.onmessage=function(ie){V(ie.data)},function(ie){Z.port2.postMessage(ie)}):D&&"onreadystatechange"in D.createElement("script")?(G=D.documentElement,function(ie){var ee=D.createElement("script");ee.onreadystatechange=function(){V(ie),ee.onreadystatechange=null,G.removeChild(ee),ee=null},G.appendChild(ee)}):function(ie){setTimeout(V,0,ie)},F.setImmediate=function(ie){"function"!=typeof ie&&(ie=new Function(""+ie));for(var ee=new Array(arguments.length-1),De=0;De"u"?void 0===N?this:N:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)}},xl=>{xl(xl.s=315)}]); \ No newline at end of file diff --git a/ui/dist/ui/polyfills.0ace4ea3e0ea1aea.js b/ui/dist/ui/polyfills.0ace4ea3e0ea1aea.js new file mode 100644 index 000000000..66512e8c4 --- /dev/null +++ b/ui/dist/ui/polyfills.0ace4ea3e0ea1aea.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[429],{321:(ie,Ee,de)=>{de(332)},332:()=>{!function(e){const n=e.performance;function i(L){n&&n.mark&&n.mark(L)}function o(L,T){n&&n.measure&&n.measure(L,T)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(L){return c+L}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class L{static#e=this.__symbol__=a;static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=L.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,L,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===P))return;const C=t.state!=E;C&&t._transitionTo(E,A),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(A,E):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,E,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(A,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new p(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new p(P,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new p(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");if(t.state===A||t.state===E){t._transitionTo(G,A,E);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;CL.hasTask(t,r),onScheduleTask:(L,T,t,r)=>L.scheduleTask(t,r),onInvokeTask:(L,T,t,r,k,C)=>L.invokeTask(t,r,k,C),onCancelTask:(L,T,t,r)=>L.cancelTask(t,r)};class v{constructor(T,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:b,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(T,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,t):new d(T,t)}intercept(T,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,t,r):t}invoke(T,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,t,r,k,C):t.apply(r,k)}handleError(T,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,t)}scheduleTask(T,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(T,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,t,r,k):t.callback.apply(r,k)}cancelTask(T,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(T,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,t)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,t){const r=this._taskCounts,k=r[T],C=r[T]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class p{constructor(T,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=T===Q&&k&&k.useG?p.invokeTask:function(){return p.invokeTask.call(e,l,this,arguments)}}static invokeTask(T,t,r){T||(T=this),ee++;try{return T.runCount++,T.zone.runTask(T,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const M=a("setTimeout"),Z=a("Promise"),N=a("then");let J,B=[],H=!1;function q(L){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let T=J[N];T||(T=J.then),T.call(J,L)}else e[M](L,0)}function R(L){0===ee&&0===B.length&&q(_),L&&B.push(L)}function _(){if(!H){for(H=!0;B.length;){const L=B;B=[];for(let T=0;TU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ie=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Ve=Array.prototype.slice,Se="addEventListener",Oe="removeEventListener",Ze=Zone.__symbol__(Se),Ne=Zone.__symbol__(Oe),ce="true",ae="false",ke=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const j=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,Y=Pe&&Te||"object"==typeof self&&self||global,ct="removeAttribute";function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),Ae=!we&&!Be&&!(!Pe||!Te.HTMLElement),Ue=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!Te.HTMLElement),Re={},We=function(e){if(!(e=e||Y.event))return;let n=Re[e.type];n||(n=Re[e.type]=j("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;return Ae&&i===Te&&"error"===e.type?(c=o&&o.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===c&&e.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault()),c};function qe(e,n,i){let o=ie(e,n);if(!o&&i&&ie(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=j("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let b=Re[d];b||(b=Re[d]=j("ON_PROPERTY"+d)),o.set=function(v){let p=this;!p&&e===Y&&(p=Y),p&&("function"==typeof p[b]&&p.removeEventListener(d,We),y&&y.call(p,null),p[b]=v,"function"==typeof v&&p.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const p=v[b];if(p)return p;if(a){let M=a.call(this);if(M)return o.set.call(this,M),"function"==typeof v[ct]&&v.removeAttribute(n),M}return null},Ee(e,n,o),e[c]=!0}function Xe(e,n,i){if(n)for(let o=0;ofunction(y,d){const b=i(y,d);return b.cbIdx>=0&&"function"==typeof d[b.cbIdx]?Me(b.name,d[b.cbIdx],b,c):a.apply(y,d)})}function ue(e,n){e[j("OriginalDelegate")]=n}let ze=!1,je=!1;function ft(){if(ze)return je;ze=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(je=!0)}catch{}return je}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],b=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),p=y("then"),M="__creationTrace__";i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function J(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),K=y("parentPromiseValue"),x=y("parentPromiseState"),X="Promise.then",A=null,E=!0,G=!1,h=0;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const P=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",oe=y("currentTaskTrace");function z(l,u,s){const f=P();if(l===s)throw new TypeError(Q);if(l[q]===A){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(w){return f(()=>{z(l,!1,w)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==A)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(w){f(()=>{z(l,!1,w)})()}else{l[q]=u;const w=l[R];if(l[R]=s,l[_]===_&&u===E&&(l[q]=l[x],l[R]=l[K]),u===G&&s instanceof Error){const m=n.currentTask&&n.currentTask.data&&n.currentTask.data[M];m&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{const D=l[R],S=!!s&&_===s[_];S&&(s[K]=D,s[x]=w);const O=u.run(m,void 0,S&&m!==J&&m!==H?[]:[D]);z(s,!0,O)}catch(D){z(s,!1,D)}},s)}const L=function(){},T=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),E,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let m of u)f++,s.push(t.resolve(m))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const w=[];return new t((m,D)=>{for(let S=0;S{g||(g=!0,m(O))},O=>{w.push(O),f--,0===f&&(g=!0,D(new T(w,"All promises were rejected")))})})}static race(u){let s,f,g=new this((D,S)=>{s=D,f=S});function w(D){s(D)}function m(D){f(D)}for(let D of u)B(D)||(D=this.resolve(D)),D.then(w,m);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,w=new this((O,V)=>{f=O,g=V}),m=2,D=0;const S=[];for(let O of u){B(O)||(O=this.resolve(O));const V=D;try{O.then(F=>{S[V]=s?s.thenCallback(F):F,m--,0===m&&f(S)},F=>{s?(S[V]=s.errorCallback(F),m--,0===m&&f(S)):g(F)})}catch(F){g(F)}m++,D++}return m-=2,0===m&&f(S),w}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=A,s[R]=[];try{const f=P();u&&u(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||t);const g=new f(L),w=n.current;return this[q]==A?this[R].push(w,g,u,s):ee(this,w,g,u,s),g}catch(u){return this.then(null,u)}finally(u){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=t);const f=new s(L);f[_]=_;const g=n.current;return this[q]==A?this[R].push(g,f,u,u):ee(this,g,f,u,u),f}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[p]=f,l.prototype.then=function(g,w){return new t((D,S)=>{f.call(this,D,S)}).then(g,w)},l[k]=!0}return i.patchThen=C,r&&(C(r),le(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=j("OriginalDelegate"),o=j("Promise"),c=j("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const p=e[o];if(p)return n.call(p)}if(this===Error){const p=e[c];if(p)return n.call(p)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let ye=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ye=!1}const ht={useG:!0},te={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=j("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ae,o=(n?n(e):e)+ce,c=ke+i,a=ke+o;te[e]={},te[e][ae]=c,te[e][ce]=a}function dt(e,n,i,o){const c=o&&o.add||Se,a=o&&o.rm||Oe,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",b=j(c),v="."+c+":",p="prependListener",M="."+p+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(E){X=E}const A=R.options;return A&&"object"==typeof A&&A.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,A),X};function N(R,_,K){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][K?ce:ae]];if(X){const A=[];if(1===X.length){const E=Z(X[0],x,_);E&&A.push(E)}else{const E=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let A=!1;_&&void 0!==_.rt&&(A=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=de(E);if(!E&&R[c]&&(E=R),!E||E[b])return!1;const G=_&&_.eventNameToString,h={},I=E[b]=E[c],P=E[j(a)]=E[a],Q=E[j(y)]=E[y],oe=E[j(d)]=E[d];let z;_&&_.prepend&&(z=E[j(_.prepend)]=E[_.prepend]);const t=K?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=K?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const w=g&&s.target[g];if(w)for(let m=0;mfunction(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,b,v){return b&&b.prototype&&c.forEach(function(p){const M=`${i}.${o}::`+p,Z=b.prototype;try{if(Z.hasOwnProperty(p)){const N=e.ObjectGetOwnPropertyDescriptor(Z,p);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,M),e._redefineProperty(b.prototype,p,N)):Z[p]&&(Z[p]=e.wrapWithCurrentZone(Z[p],M))}else Z[p]&&(Z[p]=e.wrapWithCurrentZone(Z[p],M))}catch{}}),y.call(n,d,b,v)},e.attachOriginToPatched(n[o],y)}function et(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(e,n,i,o){e&&Xe(e,et(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=Ee,i.ObjectGetOwnPropertyDescriptor=ie,i.ObjectCreate=ge,i.ArraySlice=Ve,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:te,eventNames:o,isBrowser:Ae,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Se,REMOVE_EVENT_LISTENER_STR:Oe})});const Ce=j("zoneTask");function pe(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const p=v.data;return p.args[0]=function(){return v.invoke.apply(this,arguments)},p.handleId=c.apply(e,p.args),v}function b(v){return a.call(e,v.data.handleId)}c=le(e,n+=o,v=>function(p,M){if("function"==typeof M[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?M[1]||0:void 0,args:M},N=M[0];M[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete y[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,M[0],Z,d,b);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,M)}),a=le(e,i,v=>function(p,M){const Z=M[0];let N;"number"==typeof Z?N=y[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete y[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(e,M)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("timers",e=>{const n="set",i="clear";pe(e,n,i,"Timeout"),pe(e,n,i,"Interval"),pe(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{pe(e,"request","cancel","AnimationFrame"),pe(e,"mozRequest","mozCancel","AnimationFrame"),pe(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(b,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function gt(e,n){n.patchEventPrototype(e,n)})(e,i),function mt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(we&&!Ue||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(Ae){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),de(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function pt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function b(v){const p=v.XMLHttpRequest;if(!p)return;const M=p.prototype;let N=M[Ze],B=M[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,P=I.target;P[a]=!1,P[d]=!1;const Q=P[c];N||(N=P[Ze],B=P[Ne]),Q&&B.call(P,H,Q);const oe=P[c]=()=>{if(P.readyState===P.DONE)if(!I.aborted&&P[a]&&h.state===J){const U=P[n.__symbol__("loadfalse")];if(0!==P.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],K.apply(h,I)}),X=j("fetchTaskAborting"),A=j("fetchTaskScheduling"),E=le(M,"send",()=>function(h,I){if(!0===n.current[A]||h[o])return E.apply(h,I);{const P={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,P,q,_);h&&!0===h[d]&&!P.aborted&&Q.state===J&&Q.invoke()}}),G=le(M,"abort",()=>function(h,I){const P=function Z(h){return h[i]}(h);if(P&&"string"==typeof P.type){if(null==P.cancelFn||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=j("xhrTask"),o=j("xhrSync"),c=j("xhrListener"),a=j("xhrScheduled"),y=j("xhrURL"),d=j("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o{const b=function(){return d.apply(this,Le(arguments,i+"."+c))};return ue(b,d),b})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const b=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[j("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[j("rejectionHandledHandler")]=i("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{!function yt(e,n){n.patchMethod(e,"queueMicrotask",i=>function(o,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}(e,i)})}},ie=>{ie(ie.s=321)}]); \ No newline at end of file diff --git a/ui/dist/ui/polyfills.c2c201edf5092294.js b/ui/dist/ui/polyfills.c2c201edf5092294.js deleted file mode 100644 index 36d0656a5..000000000 --- a/ui/dist/ui/polyfills.c2c201edf5092294.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[260],{432:(ce,Ee,de)=>{de(728)},728:()=>{!function(t){const n=t.performance;function i(L){n&&n.mark&&n.mark(L)}function o(L,T){n&&n.measure&&n.measure(L,T)}i("Zone");const c=t.__Zone_symbol_prefix||"__zone_symbol__";function a(L){return c+L}const y=!0===t[a("forceDuplicateZoneCheck")];if(t.Zone){if(y||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let d=(()=>{class L{static#e=this.__symbol__=a;static assertZonePatched(){if(t.Promise!==se.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=L.current;for(;e.parent;)e=e.parent;return e}static get current(){return U.zone}static get currentTask(){return oe}static __load_patch(e,r,k=!1){if(se.hasOwnProperty(e)){if(!k&&y)throw Error("Already loaded patch: "+e)}else if(!t["__Zone_disable_"+e]){const C="Zone:"+e;i(C),se[e]=r(t,L,X),o(C,C)}}get parent(){return this._parent}get name(){return this._name}constructor(e,r){this._parent=e,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}get(e){const r=this.getZoneWith(e);if(r)return r._properties[e]}getZoneWith(e){let r=this;for(;r;){if(r._properties.hasOwnProperty(e))return r;r=r._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,r){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const k=this._zoneDelegate.intercept(this,e,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(e,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,e,r,k,C)}finally{U=U.parent}}runGuarded(e,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,e,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(e,r,k){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||K).name+"; Execution: "+this.name+")");if(e.state===x&&(e.type===Q||e.type===P))return;const C=e.state!=E;C&&e._transitionTo(E,j),e.runCount++;const $=oe;oe=e,U={parent:U,zone:this};try{e.type==P&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,r,k)}catch(u){if(this._zoneDelegate.handleError(this,u))throw u}}finally{e.state!==x&&e.state!==h&&(e.type==Q||e.data&&e.data.isPeriodic?C&&e._transitionTo(j,E):(e.runCount=0,this._updateTaskCount(e,-1),C&&e._transitionTo(x,E,x))),U=U.parent,oe=$}}scheduleTask(e){if(e.zone&&e.zone!==this){let k=this;for(;k;){if(k===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);k=k.parent}}e._transitionTo(z,x);const r=[];e._zoneDelegates=r,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(k){throw e._transitionTo(h,z,x),this._zoneDelegate.handleError(this,k),k}return e._zoneDelegates===r&&this._updateTaskCount(e,1),e.state==z&&e._transitionTo(j,z),e}scheduleMicroTask(e,r,k,C){return this.scheduleTask(new p(I,e,r,k,C,void 0))}scheduleMacroTask(e,r,k,C,$){return this.scheduleTask(new p(P,e,r,k,C,$))}scheduleEventTask(e,r,k,C,$){return this.scheduleTask(new p(Q,e,r,k,C,$))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||K).name+"; Execution: "+this.name+")");if(e.state===j||e.state===E){e._transitionTo(G,j,E);try{this._zoneDelegate.cancelTask(this,e)}catch(r){throw e._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(e,-1),e._transitionTo(x,G),e.runCount=0,e}}_updateTaskCount(e,r){const k=e._zoneDelegates;-1==r&&(e._zoneDelegates=null);for(let C=0;CL.hasTask(e,r),onScheduleTask:(L,T,e,r)=>L.scheduleTask(e,r),onInvokeTask:(L,T,e,r,k,C)=>L.invokeTask(e,r,k,C),onCancelTask:(L,T,e,r)=>L.cancelTask(e,r)};class v{constructor(T,e,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=e,this._forkZS=r&&(r&&r.onFork?r:e._forkZS),this._forkDlgt=r&&(r.onFork?e:e._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:e._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:e._interceptZS),this._interceptDlgt=r&&(r.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:e._invokeZS),this._invokeDlgt=r&&(r.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:e._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:e._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:e._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:e._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||e&&e._hasTaskZS)&&(this._hasTaskZS=k?r:b,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(T,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,e):new d(T,e)}intercept(T,e,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,e,r):e}invoke(T,e,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,e,r,k,C):e.apply(r,k)}handleError(T,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,e)}scheduleTask(T,e){let r=e;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,e),r||(r=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=I)throw new Error("Task is missing scheduleFn.");R(e)}return r}invokeTask(T,e,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,e,r,k):e.callback.apply(r,k)}cancelTask(T,e){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");r=e.cancelFn(e)}return r}hasTask(T,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,e)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,e){const r=this._taskCounts,k=r[T],C=r[T]=k+e;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class p{constructor(T,e,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=e,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const u=this;this.invoke=T===Q&&k&&k.useG?p.invokeTask:function(){return p.invokeTask.call(t,u,this,arguments)}}static invokeTask(T,e,r){T||(T=this),te++;try{return T.runCount++,T.zone.runTask(T,e,r)}finally{1==te&&_(),te--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,z)}_transitionTo(T,e,r){if(this._state!==e&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${e}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const M=a("setTimeout"),Z=a("Promise"),N=a("then");let J,B=[],H=!1;function q(L){if(J||t[Z]&&(J=t[Z].resolve(0)),J){let T=J[N];T||(T=J.then),T.call(J,L)}else t[M](L,0)}function R(L){0===te&&0===B.length&&q(_),L&&B.push(L)}function _(){if(!H){for(H=!0;B.length;){const L=B;B=[];for(let T=0;TU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},oe=null,te=0;function W(){}o("Zone","Zone"),t.Zone=d}(globalThis);const ce=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Fe=Array.prototype.slice,Oe="addEventListener",Ze="removeEventListener",Ne=Zone.__symbol__(Oe),Ie=Zone.__symbol__(Ze),ae="true",le="false",ke=Zone.__symbol__("");function Me(t,n){return Zone.current.wrap(t,n)}function Le(t,n,i,o,c){return Zone.current.scheduleMacroTask(t,n,i,o,c)}const A=Zone.__symbol__,we=typeof window<"u",Te=we?window:void 0,Y=we&&Te||globalThis,at="removeAttribute";function je(t,n){for(let i=t.length-1;i>=0;i--)"function"==typeof t[i]&&(t[i]=Me(t[i],n+"_"+i));return t}function Be(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const Ue=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Re=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),Ae=!Re&&!Ue&&!(!we||!Te.HTMLElement),We=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Ue&&!(!we||!Te.HTMLElement),Ce={},qe=function(t){if(!(t=t||Y.event))return;let n=Ce[t.type];n||(n=Ce[t.type]=A("ON_PROPERTY"+t.type));const i=this||t.target||Y,o=i[n];let c;return Ae&&i===Te&&"error"===t.type?(c=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===c&&t.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&t.preventDefault()),c};function ze(t,n,i){let o=ce(t,n);if(!o&&i&&ce(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(t.hasOwnProperty(c)&&t[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let b=Ce[d];b||(b=Ce[d]=A("ON_PROPERTY"+d)),o.set=function(v){let p=this;!p&&t===Y&&(p=Y),p&&("function"==typeof p[b]&&p.removeEventListener(d,qe),y&&y.call(p,null),p[b]=v,"function"==typeof v&&p.addEventListener(d,qe,!1))},o.get=function(){let v=this;if(!v&&t===Y&&(v=Y),!v)return null;const p=v[b];if(p)return p;if(a){let M=a.call(this);if(M)return o.set.call(this,M),"function"==typeof v[at]&&v.removeAttribute(n),M}return null},Ee(t,n,o),t[c]=!0}function Xe(t,n,i){if(n)for(let o=0;ofunction(y,d){const b=i(y,d);return b.cbIdx>=0&&"function"==typeof d[b.cbIdx]?Le(b.name,d[b.cbIdx],b,c):a.apply(y,d)})}function fe(t,n){t[A("OriginalDelegate")]=n}let Ye=!1,He=!1;function ht(){if(Ye)return He;Ye=!0;try{const t=Te.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(He=!0)}catch{}return He}Zone.__load_patch("ZoneAwarePromise",(t,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],b=!1!==t[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),p=y("then"),M="__creationTrace__";i.onUnhandledError=u=>{if(i.showUncaughtError()){const l=u&&u.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",u.zone.name,"; Task:",u.task&&u.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(u)}},i.microtaskDrainDone=()=>{for(;d.length;){const u=d.shift();try{u.zone.runGuarded(()=>{throw u.throwOriginal?u.rejection:u})}catch(l){N(l)}}};const Z=y("unhandledPromiseRejectionHandler");function N(u){i.onUnhandledError(u);try{const l=n[Z];"function"==typeof l&&l.call(this,u)}catch{}}function B(u){return u&&u.then}function H(u){return u}function J(u){return e.reject(u)}const q=y("state"),R=y("value"),_=y("finally"),K=y("parentPromiseValue"),x=y("parentPromiseState"),z="Promise.then",j=null,E=!0,G=!1,h=0;function I(u,l){return s=>{try{X(u,l,s)}catch(f){X(u,!1,f)}}}const P=function(){let u=!1;return function(s){return function(){u||(u=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",se=y("currentTaskTrace");function X(u,l,s){const f=P();if(u===s)throw new TypeError(Q);if(u[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(w){return f(()=>{X(u,!1,w)})(),u}if(l!==G&&s instanceof e&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)oe(s),X(u,s[q],s[R]);else if(l!==G&&"function"==typeof g)try{g.call(s,f(I(u,l)),f(I(u,!1)))}catch(w){f(()=>{X(u,!1,w)})()}else{u[q]=l;const w=u[R];if(u[R]=s,u[_]===_&&l===E&&(u[q]=u[x],u[R]=u[K]),l===G&&s instanceof Error){const m=n.currentTask&&n.currentTask.data&&n.currentTask.data[M];m&&c(s,se,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{const D=u[R],S=!!s&&_===s[_];S&&(s[K]=D,s[x]=w);const O=l.run(m,void 0,S&&m!==J&&m!==H?[]:[D]);X(s,!0,O)}catch(D){X(s,!1,D)}},s)}const L=function(){},T=t.AggregateError;class e{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(l){return l instanceof e?l:X(new this(null),E,l)}static reject(l){return X(new this(null),G,l)}static withResolvers(){const l={};return l.promise=new e((s,f)=>{l.resolve=s,l.reject=f}),l}static any(l){if(!l||"function"!=typeof l[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let m of l)f++,s.push(e.resolve(m))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const w=[];return new e((m,D)=>{for(let S=0;S{g||(g=!0,m(O))},O=>{w.push(O),f--,0===f&&(g=!0,D(new T(w,"All promises were rejected")))})})}static race(l){let s,f,g=new this((D,S)=>{s=D,f=S});function w(D){s(D)}function m(D){f(D)}for(let D of l)B(D)||(D=this.resolve(D)),D.then(w,m);return g}static all(l){return e.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof e?this:e).allWithCallback(l,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(l,s){let f,g,w=new this((O,V)=>{f=O,g=V}),m=2,D=0;const S=[];for(let O of l){B(O)||(O=this.resolve(O));const V=D;try{O.then(F=>{S[V]=s?s.thenCallback(F):F,m--,0===m&&f(S)},F=>{s?(S[V]=s.errorCallback(F),m--,0===m&&f(S)):g(F)})}catch(F){g(F)}m++,D++}return m-=2,0===m&&f(S),w}constructor(l){const s=this;if(!(s instanceof e))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=P();l&&l(f(I(s,E)),f(I(s,G)))}catch(f){X(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return e}then(l,s){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||e);const g=new f(L),w=n.current;return this[q]==j?this[R].push(w,g,l,s):te(this,w,g,l,s),g}catch(l){return this.then(null,l)}finally(l){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=e);const f=new s(L);f[_]=_;const g=n.current;return this[q]==j?this[R].push(g,f,l,l):te(this,g,f,l,l),f}}e.resolve=e.resolve,e.reject=e.reject,e.race=e.race,e.all=e.all;const r=t[v]=t.Promise;t.Promise=e;const k=y("thenPatched");function C(u){const l=u.prototype,s=o(l,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=l.then;l[p]=f,u.prototype.then=function(g,w){return new e((D,S)=>{f.call(this,D,S)}).then(g,w)},u[k]=!0}return i.patchThen=C,r&&(C(r),ue(t,"fetch",u=>function $(u){return function(l,s){let f=u.apply(l,s);if(f instanceof e)return f;let g=f.constructor;return g[k]||C(g),f}}(u))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,e}),Zone.__load_patch("toString",t=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const p=t[o];if(p)return n.call(p)}if(this===Error){const p=t[c];if(p)return n.call(p)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let ye=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{ye=!1}const dt={useG:!0},ne={},$e={},Ke=new RegExp("^"+ke+"(\\w+)(true|false)$"),Je=A("propagationStopped");function Qe(t,n){const i=(n?n(t):t)+le,o=(n?n(t):t)+ae,c=ke+i,a=ke+o;ne[t]={},ne[t][le]=c,ne[t][ae]=a}function _t(t,n,i,o){const c=o&&o.add||Oe,a=o&&o.rm||Ze,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",b=A(c),v="."+c+":",p="prependListener",M="."+p+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let z;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(E){z=E}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,j),z};function N(R,_,K){if(!(_=_||t.event))return;const x=R||_.target||t,z=x[ne[_.type][K?ae:le]];if(z){const j=[];if(1===z.length){const E=Z(z[0],x,_);E&&j.push(E)}else{const E=z.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let z=!0;_&&void 0!==_.chkDup&&(z=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=de(E);if(!E&&R[c]&&(E=R),!E||E[b])return!1;const G=_&&_.eventNameToString,h={},I=E[b]=E[c],P=E[A(a)]=E[a],Q=E[A(y)]=E[y],se=E[A(d)]=E[d];let X;_&&_.prepend&&(X=E[A(_.prepend)]=E[_.prepend]);const e=K?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=K?function(s){if(!s.isRemoved){const f=ne[s.eventName];let g;f&&(g=f[s.capture?ae:le]);const w=g&&s.target[g];if(w)for(let m=0;m{ie.zone.cancelTask(ie)},{once:!0})),h.target=null,Pe&&(Pe.taskData=null),rt&&(ee.once=!0),!ye&&"boolean"==typeof ie.options||(ie.options=ee),ie.target=S,ie.capture=Ge,ie.eventName=O,F&&(ie.originalDelegate=V),D?me.unshift(ie):me.push(ie),m?S:void 0}};return E[c]=l(I,v,e,r,j),X&&(E[p]=l(X,M,function(s){return X.call(h.target,h.eventName,s.invoke,h.options)},r,j,!0)),E[a]=function(){const s=this||t;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=arguments[2],w=!!g&&("boolean"==typeof g||g.capture),m=arguments[1];if(!m)return P.apply(this,arguments);if(x&&!x(P,m,s,arguments))return;const D=ne[f];let S;D&&(S=D[w?ae:le]);const O=S&&s[S];if(O)for(let V=0;Vfunction(c,a){c[Je]=!0,o&&o.apply(c,a)})}function Tt(t,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,b,v){return b&&b.prototype&&c.forEach(function(p){const M=`${i}.${o}::`+p,Z=b.prototype;try{if(Z.hasOwnProperty(p)){const N=t.ObjectGetOwnPropertyDescriptor(Z,p);N&&N.value?(N.value=t.wrapWithCurrentZone(N.value,M),t._redefineProperty(b.prototype,p,N)):Z[p]&&(Z[p]=t.wrapWithCurrentZone(Z[p],M))}else Z[p]&&(Z[p]=t.wrapWithCurrentZone(Z[p],M))}catch{}}),y.call(n,d,b,v)},t.attachOriginToPatched(n[o],y)}function tt(t,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===t);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function nt(t,n,i,o){t&&Xe(t,tt(t,n,i),o)}function xe(t){return Object.getOwnPropertyNames(t).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(t,n,i)=>{const o=xe(t);i.patchOnProperties=Xe,i.patchMethod=ue,i.bindArguments=je,i.patchMacroTask=ut;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");t[a]&&(t[c]=t[a]),t[c]&&(n[c]=n[a]=t[c]),i.patchEventPrototype=Et,i.patchEventTarget=_t,i.isIEOrEdge=ht,i.ObjectDefineProperty=Ee,i.ObjectGetOwnPropertyDescriptor=ce,i.ObjectCreate=ge,i.ArraySlice=Fe,i.patchClass=ve,i.wrapWithCurrentZone=Me,i.filterProperties=tt,i.attachOriginToPatched=fe,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Tt,i.getGlobalObjects=()=>({globalSources:$e,zoneSymbolEventNames:ne,eventNames:o,isBrowser:Ae,isMix:We,isNode:Re,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Oe,REMOVE_EVENT_LISTENER_STR:Ze})});const De=A("zoneTask");function pe(t,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const p=v.data;return p.args[0]=function(){return v.invoke.apply(this,arguments)},p.handleId=c.apply(t,p.args),v}function b(v){return a.call(t,v.data.handleId)}c=ue(t,n+=o,v=>function(p,M){if("function"==typeof M[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?M[1]||0:void 0,args:M},N=M[0];M[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete y[Z.handleId]:Z.handleId&&(Z.handleId[De]=null))}};const B=Le(n,M[0],Z,d,b);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[De]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(t,M)}),a=ue(t,i,v=>function(p,M){const Z=M[0];let N;"number"==typeof Z?N=y[Z]:(N=Z&&Z[De],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete y[Z]:Z&&(Z[De]=null),N.zone.cancelTask(N)):v.apply(t,M)})}Zone.__load_patch("legacy",t=>{const n=t[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("timers",t=>{const n="set",i="clear";pe(t,n,i,"Timeout"),pe(t,n,i,"Interval"),pe(t,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{pe(t,"request","cancel","AnimationFrame"),pe(t,"mozRequest","mozCancel","AnimationFrame"),pe(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(b,v){return n.current.run(a,t,v,d)})}),Zone.__load_patch("EventTarget",(t,n,i)=>{(function kt(t,n){n.patchEventPrototype(t,n)})(t,i),function gt(t,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(t,n,i)=>{!function yt(t,n){if(Re&&!We||Zone[t.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(Ae){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ft(){try{const t=Te.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];nt(c,xe(c),i&&i.concat(a),de(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function mt(t,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&t.customElements&&"customElements"in t&&n.patchCallbacks(n,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(t,i)}),Zone.__load_patch("XHR",(t,n)=>{!function b(v){const p=v.XMLHttpRequest;if(!p)return;const M=p.prototype;let N=M[Ne],B=M[Ie];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ne],B=I[Ie]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,P=I.target;P[a]=!1,P[d]=!1;const Q=P[c];N||(N=P[Ne],B=P[Ie]),Q&&B.call(P,H,Q);const se=P[c]=()=>{if(P.readyState===P.DONE)if(!I.aborted&&P[a]&&h.state===J){const U=P[n.__symbol__("loadfalse")];if(0!==P.status&&U&&U.length>0){const oe=h.invoke;h.invoke=function(){const te=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],K.apply(h,I)}),z=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),E=ue(M,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return E.apply(h,I);{const P={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Le("XMLHttpRequest.send",R,P,q,_);h&&!0===h[d]&&!P.aborted&&Q.state===J&&Q.invoke()}}),G=ue(M,"abort",()=>function(h,I){const P=function Z(h){return h[i]}(h);if(P&&"string"==typeof P.type){if(null==P.cancelFn||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(!0===n.current[z])return G.apply(h,I)})}(t);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function lt(t,n){const i=t.constructor.name;for(let o=0;o{const b=function(){return d.apply(this,je(arguments,i+"."+c))};return fe(b,d),b})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,n)=>{function i(o){return function(c){et(t,o).forEach(y=>{const d=t.PromiseRejectionEvent;if(d){const b=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(b)}})}}t.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(t,n,i)=>{!function pt(t,n){n.patchMethod(t,"queueMicrotask",i=>function(o,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}(t,i)})}},ce=>{ce(ce.s=432)}]); \ No newline at end of file diff --git a/ui/dist/ui/runtime.30e542cf552662e5.js b/ui/dist/ui/runtime.7cb62255c16cf7ce.js similarity index 93% rename from ui/dist/ui/runtime.30e542cf552662e5.js rename to ui/dist/ui/runtime.7cb62255c16cf7ce.js index ab62d69d1..c51d3cc33 100644 --- a/ui/dist/ui/runtime.30e542cf552662e5.js +++ b/ui/dist/ui/runtime.7cb62255c16cf7ce.js @@ -1 +1 @@ -(()=>{"use strict";var e,_={},i={};function n(e){var a=i[e];if(void 0!==a)return a.exports;var r=i[e]={exports:{}};return _[e](r,r.exports,n),r.exports}n.m=_,e=[],n.O=(a,r,t,u)=>{if(!r){var o=1/0;for(f=0;f=u)&&Object.keys(n.O).every(h=>n.O[h](r[l]))?r.splice(l--,1):(s=!1,u0&&e[f-1][2]>u;f--)e[f]=e[f-1];e[f]=[r,t,u]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={688:0};n.O.j=t=>0===e[t];var a=(t,u)=>{var l,c,[f,o,s]=u,v=0;if(f.some(d=>0!==e[d])){for(l in o)n.o(o,l)&&(n.m[l]=o[l]);if(s)var b=s(n)}for(t&&t(u);v{"use strict";var e,_={},i={};function n(e){var a=i[e];if(void 0!==a)return a.exports;var r=i[e]={exports:{}};return _[e](r,r.exports,n),r.exports}n.m=_,e=[],n.O=(a,r,t,u)=>{if(!r){var o=1/0;for(f=0;f=u)&&Object.keys(n.O).every(h=>n.O[h](r[l]))?r.splice(l--,1):(s=!1,u0&&e[f-1][2]>u;f--)e[f]=e[f-1];e[f]=[r,t,u]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={666:0};n.O.j=t=>0===e[t];var a=(t,u)=>{var l,c,[f,o,s]=u,v=0;if(f.some(d=>0!==e[d])){for(l in o)n.o(o,l)&&(n.m[l]=o[l]);if(s)var b=s(n)}for(t&&t(u);v.mat-mdc-tab-header .mat-mdc-tab{flex-grow:0!important}.mat-mdc-form-field-infix{min-height:0;min-width:unset!important}.w-100 .mat-mdc-form-field-infix{padding:0!important}.mat-mdc-raised-button>.mat-icon{margin-left:auto;margin-right:auto} diff --git a/ui/dist/ui/styles.bf77748ba70110fe.css b/ui/dist/ui/styles.bf77748ba70110fe.css new file mode 100644 index 000000000..960c48a18 --- /dev/null +++ b/ui/dist/ui/styles.bf77748ba70110fe.css @@ -0,0 +1 @@ +.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0)}.cdk-high-contrast-active .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator{position:relative}.mat-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator{position:relative}.mat-mdc-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-mdc-focus-indicator-display: block}.mat-ripple-element{background-color:#0000001a}html{--mat-option-selected-state-label-text-color:#3f51b5;--mat-option-label-text-color:rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color:rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color:rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color:rgba(0, 0, 0, .04)}.mat-accent{--mat-option-selected-state-label-text-color:#ff4081}.mat-warn{--mat-option-selected-state-label-text-color:#f44336}html{--mat-optgroup-label-text-color:rgba(0, 0, 0, .87)}.mat-pseudo-checkbox-full{color:#0000008a}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{color:#b0b0b0}.mat-primary .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-minimal:after,.mat-primary .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-minimal:after{color:#3f51b5}.mat-primary .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full,.mat-primary .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full{background:#3f51b5}.mat-primary .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full:after,.mat-primary .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full:after{color:#fafafa}.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-minimal:after,.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-minimal:after{color:#ff4081}.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full,.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full{background:#ff4081}.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full:after,.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full:after{color:#fafafa}.mat-accent .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-minimal:after,.mat-accent .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-minimal:after{color:#ff4081}.mat-accent .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full,.mat-accent .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full{background:#ff4081}.mat-accent .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full:after,.mat-accent .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full:after{color:#fafafa}.mat-warn .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-minimal:after,.mat-warn .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-minimal:after{color:#f44336}.mat-warn .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full,.mat-warn .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full{background:#f44336}.mat-warn .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full:after,.mat-warn .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full:after{color:#fafafa}.mat-pseudo-checkbox-disabled.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-minimal:after,.mat-pseudo-checkbox-disabled.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-minimal:after{color:#b0b0b0}.mat-pseudo-checkbox-disabled.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full,.mat-pseudo-checkbox-disabled.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full{background:#b0b0b0}.mat-app-background{background-color:#fafafa;color:#000000de}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:0 3px 5px -1px #0003,0 5px 8px #00000024,0 1px 14px #0000001f}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:0 4px 5px -2px #0003,0 7px 10px 1px #00000024,0 2px 16px 1px #0000001f}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:0 5px 6px -3px #0003,0 9px 12px 1px #00000024,0 3px 16px 2px #0000001f}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:0 6px 6px -3px #0003,0 10px 14px 1px #00000024,0 4px 18px 3px #0000001f}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:0 6px 7px -4px #0003,0 11px 15px 1px #00000024,0 4px 20px 3px #0000001f}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:0 7px 8px -4px #0003,0 12px 17px 2px #00000024,0 5px 22px 4px #0000001f}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:0 7px 8px -4px #0003,0 13px 19px 2px #00000024,0 5px 24px 4px #0000001f}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:0 7px 9px -4px #0003,0 14px 21px 2px #00000024,0 5px 26px 4px #0000001f}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:0 8px 9px -5px #0003,0 15px 22px 2px #00000024,0 6px 28px 5px #0000001f}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:0 8px 11px -5px #0003,0 17px 26px 2px #00000024,0 6px 32px 5px #0000001f}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:0 9px 11px -5px #0003,0 18px 28px 2px #00000024,0 7px 34px 6px #0000001f}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:0 9px 12px -6px #0003,0 19px 29px 2px #00000024,0 7px 36px 6px #0000001f}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:0 10px 13px -6px #0003,0 20px 31px 3px #00000024,0 8px 38px 7px #0000001f}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:0 10px 13px -6px #0003,0 21px 33px 3px #00000024,0 8px 40px 7px #0000001f}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:0 10px 14px -6px #0003,0 22px 35px 3px #00000024,0 8px 42px 7px #0000001f}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:0 11px 14px -7px #0003,0 23px 36px 3px #00000024,0 9px 44px 8px #0000001f}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.mat-theme-loaded-marker{display:none}html{--mat-option-label-text-font:Roboto, sans-serif;--mat-option-label-text-line-height:24px;--mat-option-label-text-size:16px;--mat-option-label-text-tracking:.03125em;--mat-option-label-text-weight:400}html{--mat-optgroup-label-text-font:Roboto, sans-serif;--mat-optgroup-label-text-line-height:24px;--mat-optgroup-label-text-size:16px;--mat-optgroup-label-text-tracking:.03125em;--mat-optgroup-label-text-weight:400}.mat-mdc-card{--mdc-elevated-card-container-color:white;--mdc-elevated-card-container-elevation:0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-outlined-card-container-color:white;--mdc-outlined-card-outline-color:rgba(0, 0, 0, .12);--mdc-outlined-card-container-elevation:0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-card-subtitle-text-color:rgba(0, 0, 0, .54)}.mat-mdc-card{--mat-card-title-text-font:Roboto, sans-serif;--mat-card-title-text-line-height:32px;--mat-card-title-text-size:20px;--mat-card-title-text-tracking:.0125em;--mat-card-title-text-weight:500;--mat-card-subtitle-text-font:Roboto, sans-serif;--mat-card-subtitle-text-line-height:22px;--mat-card-subtitle-text-size:14px;--mat-card-subtitle-text-tracking:.0071428571em;--mat-card-subtitle-text-weight:500}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-color:#3f51b5;--mdc-linear-progress-track-color:rgba(63, 81, 181, .25)}.mat-mdc-progress-bar .mdc-linear-progress__buffer-dots{background-color:#3f51b540;background-color:var(--mdc-linear-progress-track-color, rgba(63, 81, 181, .25))}@media (forced-colors: active){.mat-mdc-progress-bar .mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mat-mdc-progress-bar .mdc-linear-progress__buffer-dots{background-color:#0000;background-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(63, 81, 181, 0.25)'/%3E%3C/svg%3E")}}.mat-mdc-progress-bar .mdc-linear-progress__buffer-bar{background-color:#3f51b540;background-color:var(--mdc-linear-progress-track-color, rgba(63, 81, 181, .25))}.mat-mdc-progress-bar.mat-accent{--mdc-linear-progress-active-indicator-color:#ff4081;--mdc-linear-progress-track-color:rgba(255, 64, 129, .25)}.mat-mdc-progress-bar.mat-accent .mdc-linear-progress__buffer-dots{background-color:#ff408140;background-color:var(--mdc-linear-progress-track-color, rgba(255, 64, 129, .25))}@media (forced-colors: active){.mat-mdc-progress-bar.mat-accent .mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mat-mdc-progress-bar.mat-accent .mdc-linear-progress__buffer-dots{background-color:#0000;background-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255, 64, 129, 0.25)'/%3E%3C/svg%3E")}}.mat-mdc-progress-bar.mat-accent .mdc-linear-progress__buffer-bar{background-color:#ff408140;background-color:var(--mdc-linear-progress-track-color, rgba(255, 64, 129, .25))}.mat-mdc-progress-bar.mat-warn{--mdc-linear-progress-active-indicator-color:#f44336;--mdc-linear-progress-track-color:rgba(244, 67, 54, .25)}@keyframes mdc-linear-progress-buffering{}.mat-mdc-progress-bar.mat-warn .mdc-linear-progress__buffer-dots{background-color:#f4433640;background-color:var(--mdc-linear-progress-track-color, rgba(244, 67, 54, .25))}@media (forced-colors: active){.mat-mdc-progress-bar.mat-warn .mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mat-mdc-progress-bar.mat-warn .mdc-linear-progress__buffer-dots{background-color:#0000;background-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(244, 67, 54, 0.25)'/%3E%3C/svg%3E")}}.mat-mdc-progress-bar.mat-warn .mdc-linear-progress__buffer-bar{background-color:#f4433640;background-color:var(--mdc-linear-progress-track-color, rgba(244, 67, 54, .25))}.mat-mdc-tooltip{--mdc-plain-tooltip-container-color:#616161;--mdc-plain-tooltip-supporting-text-color:#fff}.mat-mdc-tooltip{--mdc-plain-tooltip-supporting-text-font:Roboto, sans-serif;--mdc-plain-tooltip-supporting-text-size:12px;--mdc-plain-tooltip-supporting-text-weight:400;--mdc-plain-tooltip-supporting-text-tracking:.0333333333em}html{--mdc-filled-text-field-caret-color:#3f51b5;--mdc-filled-text-field-focus-active-indicator-color:#3f51b5;--mdc-filled-text-field-focus-label-text-color:rgba(63, 81, 181, .87);--mdc-filled-text-field-container-color:whitesmoke;--mdc-filled-text-field-disabled-container-color:#fafafa;--mdc-filled-text-field-label-text-color:rgba(0, 0, 0, .6);--mdc-filled-text-field-disabled-label-text-color:rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-color:rgba(0, 0, 0, .87);--mdc-filled-text-field-disabled-input-text-color:rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-placeholder-color:rgba(0, 0, 0, .6);--mdc-filled-text-field-error-focus-label-text-color:#f44336;--mdc-filled-text-field-error-label-text-color:#f44336;--mdc-filled-text-field-error-caret-color:#f44336;--mdc-filled-text-field-active-indicator-color:rgba(0, 0, 0, .42);--mdc-filled-text-field-disabled-active-indicator-color:rgba(0, 0, 0, .06);--mdc-filled-text-field-hover-active-indicator-color:rgba(0, 0, 0, .87);--mdc-filled-text-field-error-active-indicator-color:#f44336;--mdc-filled-text-field-error-focus-active-indicator-color:#f44336;--mdc-filled-text-field-error-hover-active-indicator-color:#f44336;--mdc-outlined-text-field-caret-color:#3f51b5;--mdc-outlined-text-field-focus-outline-color:#3f51b5;--mdc-outlined-text-field-focus-label-text-color:rgba(63, 81, 181, .87);--mdc-outlined-text-field-label-text-color:rgba(0, 0, 0, .6);--mdc-outlined-text-field-disabled-label-text-color:rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-color:rgba(0, 0, 0, .87);--mdc-outlined-text-field-disabled-input-text-color:rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-placeholder-color:rgba(0, 0, 0, .6);--mdc-outlined-text-field-error-caret-color:#f44336;--mdc-outlined-text-field-error-focus-label-text-color:#f44336;--mdc-outlined-text-field-error-label-text-color:#f44336;--mdc-outlined-text-field-outline-color:rgba(0, 0, 0, .38);--mdc-outlined-text-field-disabled-outline-color:rgba(0, 0, 0, .06);--mdc-outlined-text-field-hover-outline-color:rgba(0, 0, 0, .87);--mdc-outlined-text-field-error-focus-outline-color:#f44336;--mdc-outlined-text-field-error-hover-outline-color:#f44336;--mdc-outlined-text-field-error-outline-color:#f44336;--mat-form-field-disabled-input-text-placeholder-color:rgba(0, 0, 0, .38)}.mat-mdc-form-field-error{color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align:before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{background-color:#000000de}.mat-mdc-form-field:hover .mat-mdc-form-field-focus-overlay{opacity:.04}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:.12}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix:after{color:#0000008a}.mat-mdc-form-field-type-mat-native-select.mat-focused.mat-primary .mat-mdc-form-field-infix:after{color:#3f51b5de}.mat-mdc-form-field-type-mat-native-select.mat-focused.mat-accent .mat-mdc-form-field-infix:after{color:#ff4081de}.mat-mdc-form-field-type-mat-native-select.mat-focused.mat-warn .mat-mdc-form-field-infix:after{color:#f44336de}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix:after{color:#00000061}.mat-mdc-form-field.mat-accent{--mdc-filled-text-field-caret-color:#ff4081;--mdc-filled-text-field-focus-active-indicator-color:#ff4081;--mdc-filled-text-field-focus-label-text-color:rgba(255, 64, 129, .87);--mdc-outlined-text-field-caret-color:#ff4081;--mdc-outlined-text-field-focus-outline-color:#ff4081;--mdc-outlined-text-field-focus-label-text-color:rgba(255, 64, 129, .87)}.mat-mdc-form-field.mat-warn{--mdc-filled-text-field-caret-color:#f44336;--mdc-filled-text-field-focus-active-indicator-color:#f44336;--mdc-filled-text-field-focus-label-text-color:rgba(244, 67, 54, .87);--mdc-outlined-text-field-caret-color:#f44336;--mdc-outlined-text-field-focus-outline-color:#f44336;--mdc-outlined-text-field-focus-label-text-color:rgba(244, 67, 54, .87)}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:56px}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:28px}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY( -34.75px) scale(var(--mat-mdc-form-field-floating-label-scale, .75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:16px;padding-bottom:16px}.mat-mdc-text-field-wrapper:not(.mdc-text-field--outlined) .mat-mdc-form-field-infix{padding-top:24px;padding-bottom:8px}.mdc-text-field--no-label:not(.mdc-text-field--outlined):not(.mdc-text-field--textarea) .mat-mdc-form-field-infix{padding-top:16px;padding-bottom:16px}html{--mdc-filled-text-field-label-text-font:Roboto, sans-serif;--mdc-filled-text-field-label-text-size:16px;--mdc-filled-text-field-label-text-tracking:.03125em;--mdc-filled-text-field-label-text-weight:400;--mdc-outlined-text-field-label-text-font:Roboto, sans-serif;--mdc-outlined-text-field-label-text-size:16px;--mdc-outlined-text-field-label-text-tracking:.03125em;--mdc-outlined-text-field-label-text-weight:400;--mat-form-field-container-text-font:Roboto, sans-serif;--mat-form-field-container-text-line-height:24px;--mat-form-field-container-text-size:16px;--mat-form-field-container-text-tracking:.03125em;--mat-form-field-container-text-weight:400;--mat-form-field-outlined-label-text-populated-size:16px;--mat-form-field-subscript-text-font:Roboto, sans-serif;--mat-form-field-subscript-text-line-height:20px;--mat-form-field-subscript-text-size:12px;--mat-form-field-subscript-text-tracking:.0333333333em;--mat-form-field-subscript-text-weight:400}html{--mat-select-panel-background-color:white;--mat-select-enabled-trigger-text-color:rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color:rgba(0, 0, 0, .38);--mat-select-placeholder-text-color:rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color:rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color:rgba(0, 0, 0, .38);--mat-select-focused-arrow-color:rgba(63, 81, 181, .87);--mat-select-invalid-arrow-color:rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-accent{--mat-select-panel-background-color:white;--mat-select-enabled-trigger-text-color:rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color:rgba(0, 0, 0, .38);--mat-select-placeholder-text-color:rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color:rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color:rgba(0, 0, 0, .38);--mat-select-focused-arrow-color:rgba(255, 64, 129, .87);--mat-select-invalid-arrow-color:rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-warn{--mat-select-panel-background-color:white;--mat-select-enabled-trigger-text-color:rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color:rgba(0, 0, 0, .38);--mat-select-placeholder-text-color:rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color:rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color:rgba(0, 0, 0, .38);--mat-select-focused-arrow-color:rgba(244, 67, 54, .87);--mat-select-invalid-arrow-color:rgba(244, 67, 54, .87)}html{--mat-select-trigger-text-font:Roboto, sans-serif;--mat-select-trigger-text-line-height:24px;--mat-select-trigger-text-size:16px;--mat-select-trigger-text-tracking:.03125em;--mat-select-trigger-text-weight:400}html{--mat-autocomplete-background-color:white}.mat-mdc-dialog-container{--mdc-dialog-container-color:white;--mdc-dialog-subhead-color:rgba(0, 0, 0, .87);--mdc-dialog-supporting-text-color:rgba(0, 0, 0, .6)}.mat-mdc-dialog-container{--mdc-dialog-subhead-font:Roboto, sans-serif;--mdc-dialog-subhead-line-height:32px;--mdc-dialog-subhead-size:20px;--mdc-dialog-subhead-weight:500;--mdc-dialog-subhead-tracking:.0125em;--mdc-dialog-supporting-text-font:Roboto, sans-serif;--mdc-dialog-supporting-text-line-height:24px;--mdc-dialog-supporting-text-size:16px;--mdc-dialog-supporting-text-weight:400;--mdc-dialog-supporting-text-tracking:.03125em}.mat-mdc-standard-chip{--mdc-chip-disabled-label-text-color:#212121;--mdc-chip-elevated-container-color:#e0e0e0;--mdc-chip-elevated-disabled-container-color:#e0e0e0;--mdc-chip-focus-state-layer-color:black;--mdc-chip-focus-state-layer-opacity:.12;--mdc-chip-label-text-color:#212121;--mdc-chip-with-icon-icon-color:#212121;--mdc-chip-with-icon-disabled-icon-color:#212121;--mdc-chip-with-icon-selected-icon-color:#212121;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color:#212121;--mdc-chip-with-trailing-icon-trailing-icon-color:#212121}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mdc-chip-disabled-label-text-color:white;--mdc-chip-elevated-container-color:#3f51b5;--mdc-chip-elevated-disabled-container-color:#3f51b5;--mdc-chip-focus-state-layer-color:black;--mdc-chip-focus-state-layer-opacity:.12;--mdc-chip-label-text-color:white;--mdc-chip-with-icon-icon-color:white;--mdc-chip-with-icon-disabled-icon-color:white;--mdc-chip-with-icon-selected-icon-color:white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color:white;--mdc-chip-with-trailing-icon-trailing-icon-color:white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mdc-chip-disabled-label-text-color:white;--mdc-chip-elevated-container-color:#ff4081;--mdc-chip-elevated-disabled-container-color:#ff4081;--mdc-chip-focus-state-layer-color:black;--mdc-chip-focus-state-layer-opacity:.12;--mdc-chip-label-text-color:white;--mdc-chip-with-icon-icon-color:white;--mdc-chip-with-icon-disabled-icon-color:white;--mdc-chip-with-icon-selected-icon-color:white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color:white;--mdc-chip-with-trailing-icon-trailing-icon-color:white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mdc-chip-disabled-label-text-color:white;--mdc-chip-elevated-container-color:#f44336;--mdc-chip-elevated-disabled-container-color:#f44336;--mdc-chip-focus-state-layer-color:black;--mdc-chip-focus-state-layer-opacity:.12;--mdc-chip-label-text-color:white;--mdc-chip-with-icon-icon-color:white;--mdc-chip-with-icon-disabled-icon-color:white;--mdc-chip-with-icon-selected-icon-color:white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color:white;--mdc-chip-with-trailing-icon-trailing-icon-color:white}.mat-mdc-chip.mat-mdc-standard-chip{--mdc-chip-container-height:32px}.mat-mdc-standard-chip{--mdc-chip-label-text-font:Roboto, sans-serif;--mdc-chip-label-text-line-height:20px;--mdc-chip-label-text-size:14px;--mdc-chip-label-text-tracking:.0178571429em;--mdc-chip-label-text-weight:400}.mat-mdc-slide-toggle{--mdc-switch-selected-focus-state-layer-color:#3949ab;--mdc-switch-selected-handle-color:#3949ab;--mdc-switch-selected-hover-state-layer-color:#3949ab;--mdc-switch-selected-pressed-state-layer-color:#3949ab;--mdc-switch-selected-focus-handle-color:#1a237e;--mdc-switch-selected-hover-handle-color:#1a237e;--mdc-switch-selected-pressed-handle-color:#1a237e;--mdc-switch-selected-focus-track-color:#7986cb;--mdc-switch-selected-hover-track-color:#7986cb;--mdc-switch-selected-pressed-track-color:#7986cb;--mdc-switch-selected-track-color:#7986cb;--mdc-switch-disabled-selected-handle-color:#424242;--mdc-switch-disabled-selected-icon-color:#fff;--mdc-switch-disabled-selected-track-color:#424242;--mdc-switch-disabled-unselected-handle-color:#424242;--mdc-switch-disabled-unselected-icon-color:#fff;--mdc-switch-disabled-unselected-track-color:#424242;--mdc-switch-handle-surface-color:var(--mdc-theme-surface, #fff);--mdc-switch-handle-elevation-shadow:0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-switch-handle-shadow-color:black;--mdc-switch-disabled-handle-elevation-shadow:0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-switch-selected-icon-color:#fff;--mdc-switch-unselected-focus-handle-color:#212121;--mdc-switch-unselected-focus-state-layer-color:#424242;--mdc-switch-unselected-focus-track-color:#e0e0e0;--mdc-switch-unselected-handle-color:#616161;--mdc-switch-unselected-hover-handle-color:#212121;--mdc-switch-unselected-hover-state-layer-color:#424242;--mdc-switch-unselected-hover-track-color:#e0e0e0;--mdc-switch-unselected-icon-color:#fff;--mdc-switch-unselected-pressed-handle-color:#212121;--mdc-switch-unselected-pressed-state-layer-color:#424242;--mdc-switch-unselected-pressed-track-color:#e0e0e0;--mdc-switch-unselected-track-color:#e0e0e0}.mat-mdc-slide-toggle .mdc-form-field{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, .87))}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:#00000061}.mat-mdc-slide-toggle.mat-accent{--mdc-switch-selected-focus-state-layer-color:#d81b60;--mdc-switch-selected-handle-color:#d81b60;--mdc-switch-selected-hover-state-layer-color:#d81b60;--mdc-switch-selected-pressed-state-layer-color:#d81b60;--mdc-switch-selected-focus-handle-color:#880e4f;--mdc-switch-selected-hover-handle-color:#880e4f;--mdc-switch-selected-pressed-handle-color:#880e4f;--mdc-switch-selected-focus-track-color:#f06292;--mdc-switch-selected-hover-track-color:#f06292;--mdc-switch-selected-pressed-track-color:#f06292;--mdc-switch-selected-track-color:#f06292}.mat-mdc-slide-toggle.mat-warn{--mdc-switch-selected-focus-state-layer-color:#e53935;--mdc-switch-selected-handle-color:#e53935;--mdc-switch-selected-hover-state-layer-color:#e53935;--mdc-switch-selected-pressed-state-layer-color:#e53935;--mdc-switch-selected-focus-handle-color:#b71c1c;--mdc-switch-selected-hover-handle-color:#b71c1c;--mdc-switch-selected-pressed-handle-color:#b71c1c;--mdc-switch-selected-focus-track-color:#e57373;--mdc-switch-selected-hover-track-color:#e57373;--mdc-switch-selected-pressed-track-color:#e57373;--mdc-switch-selected-track-color:#e57373}.mat-mdc-slide-toggle{--mdc-switch-state-layer-size:48px}.mat-mdc-slide-toggle{--mat-slide-toggle-label-text-font:Roboto, sans-serif;--mat-slide-toggle-label-text-size:14px;--mat-slide-toggle-label-text-tracking:.0178571429em;--mat-slide-toggle-label-text-line-height:20px;--mat-slide-toggle-label-text-weight:400}.mat-mdc-slide-toggle .mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}.mat-mdc-radio-button .mdc-form-field{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, .87))}.mat-mdc-radio-button.mat-primary{--mdc-radio-disabled-selected-icon-color:#000;--mdc-radio-disabled-unselected-icon-color:#000;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color:#3f51b5;--mdc-radio-selected-hover-icon-color:#3f51b5;--mdc-radio-selected-icon-color:#3f51b5;--mdc-radio-selected-pressed-icon-color:#3f51b5;--mat-radio-ripple-color:#000;--mat-radio-checked-ripple-color:#3f51b5;--mat-radio-disabled-label-color:rgba(0, 0, 0, .38)}.mat-mdc-radio-button.mat-accent{--mdc-radio-disabled-selected-icon-color:#000;--mdc-radio-disabled-unselected-icon-color:#000;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color:#ff4081;--mdc-radio-selected-hover-icon-color:#ff4081;--mdc-radio-selected-icon-color:#ff4081;--mdc-radio-selected-pressed-icon-color:#ff4081;--mat-radio-ripple-color:#000;--mat-radio-checked-ripple-color:#ff4081;--mat-radio-disabled-label-color:rgba(0, 0, 0, .38)}.mat-mdc-radio-button.mat-warn{--mdc-radio-disabled-selected-icon-color:#000;--mdc-radio-disabled-unselected-icon-color:#000;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color:#f44336;--mdc-radio-selected-hover-icon-color:#f44336;--mdc-radio-selected-icon-color:#f44336;--mdc-radio-selected-pressed-icon-color:#f44336;--mat-radio-ripple-color:#000;--mat-radio-checked-ripple-color:#f44336;--mat-radio-disabled-label-color:rgba(0, 0, 0, .38)}.mat-mdc-radio-button .mdc-radio{--mdc-radio-state-layer-size:40px}.mat-mdc-radio-button .mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);-webkit-text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mat-mdc-slider{--mdc-slider-label-container-color:black;--mdc-slider-label-label-text-color:white;--mdc-slider-disabled-handle-color:#000;--mdc-slider-disabled-active-track-color:#000;--mdc-slider-disabled-inactive-track-color:#000;--mdc-slider-with-tick-marks-disabled-container-color:#000;--mat-mdc-slider-value-indicator-opacity: .6}.mat-mdc-slider.mat-primary{--mdc-slider-handle-color:#3f51b5;--mdc-slider-focus-handle-color:#3f51b5;--mdc-slider-hover-handle-color:#3f51b5;--mdc-slider-active-track-color:#3f51b5;--mdc-slider-inactive-track-color:#3f51b5;--mdc-slider-with-tick-marks-active-container-color:#fff;--mdc-slider-with-tick-marks-inactive-container-color:#3f51b5;--mat-mdc-slider-ripple-color: #3f51b5;--mat-mdc-slider-hover-ripple-color: rgba(63, 81, 181, .05);--mat-mdc-slider-focus-ripple-color: rgba(63, 81, 181, .2)}.mat-mdc-slider.mat-accent{--mdc-slider-handle-color:#ff4081;--mdc-slider-focus-handle-color:#ff4081;--mdc-slider-hover-handle-color:#ff4081;--mdc-slider-active-track-color:#ff4081;--mdc-slider-inactive-track-color:#ff4081;--mdc-slider-with-tick-marks-active-container-color:#fff;--mdc-slider-with-tick-marks-inactive-container-color:#ff4081;--mat-mdc-slider-ripple-color: #ff4081;--mat-mdc-slider-hover-ripple-color: rgba(255, 64, 129, .05);--mat-mdc-slider-focus-ripple-color: rgba(255, 64, 129, .2)}.mat-mdc-slider.mat-warn{--mdc-slider-handle-color:#f44336;--mdc-slider-focus-handle-color:#f44336;--mdc-slider-hover-handle-color:#f44336;--mdc-slider-active-track-color:#f44336;--mdc-slider-inactive-track-color:#f44336;--mdc-slider-with-tick-marks-active-container-color:#fff;--mdc-slider-with-tick-marks-inactive-container-color:#f44336;--mat-mdc-slider-ripple-color: #f44336;--mat-mdc-slider-hover-ripple-color: rgba(244, 67, 54, .05);--mat-mdc-slider-focus-ripple-color: rgba(244, 67, 54, .2)}.mat-mdc-slider{--mdc-slider-label-label-text-font:Roboto, sans-serif;--mdc-slider-label-label-text-size:14px;--mdc-slider-label-label-text-line-height:22px;--mdc-slider-label-label-text-tracking:.0071428571em;--mdc-slider-label-label-text-weight:500}html{--mat-menu-item-label-text-color:rgba(0, 0, 0, .87);--mat-menu-item-icon-color:rgba(0, 0, 0, .87);--mat-menu-item-hover-state-layer-color:rgba(0, 0, 0, .04);--mat-menu-item-focus-state-layer-color:rgba(0, 0, 0, .04);--mat-menu-container-color:white}html{--mat-menu-item-label-text-font:Roboto, sans-serif;--mat-menu-item-label-text-size:16px;--mat-menu-item-label-text-tracking:.03125em;--mat-menu-item-label-text-line-height:24px;--mat-menu-item-label-text-weight:400}.mat-mdc-list-base{--mdc-list-list-item-label-text-color:rgba(0, 0, 0, .87);--mdc-list-list-item-supporting-text-color:rgba(0, 0, 0, .54);--mdc-list-list-item-leading-icon-color:rgba(0, 0, 0, .38);--mdc-list-list-item-trailing-supporting-text-color:rgba(0, 0, 0, .38);--mdc-list-list-item-trailing-icon-color:rgba(0, 0, 0, .38);--mdc-list-list-item-selected-trailing-icon-color:rgba(0, 0, 0, .38);--mdc-list-list-item-disabled-label-text-color:black;--mdc-list-list-item-disabled-leading-icon-color:black;--mdc-list-list-item-disabled-trailing-icon-color:black;--mdc-list-list-item-hover-label-text-color:rgba(0, 0, 0, .87);--mdc-list-list-item-hover-leading-icon-color:rgba(0, 0, 0, .38);--mdc-list-list-item-hover-trailing-icon-color:rgba(0, 0, 0, .38);--mdc-list-list-item-focus-label-text-color:rgba(0, 0, 0, .87);--mdc-list-list-item-hover-state-layer-color:black;--mdc-list-list-item-hover-state-layer-opacity:.04;--mdc-list-list-item-focus-state-layer-color:black;--mdc-list-list-item-focus-state-layer-opacity:.12}.mdc-list-item__start,.mdc-list-item__end{--mdc-radio-disabled-selected-icon-color:#000;--mdc-radio-disabled-unselected-icon-color:#000;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color:#3f51b5;--mdc-radio-selected-hover-icon-color:#3f51b5;--mdc-radio-selected-icon-color:#3f51b5;--mdc-radio-selected-pressed-icon-color:#3f51b5}.mat-accent .mdc-list-item__start,.mat-accent .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color:#000;--mdc-radio-disabled-unselected-icon-color:#000;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color:#ff4081;--mdc-radio-selected-hover-icon-color:#ff4081;--mdc-radio-selected-icon-color:#ff4081;--mdc-radio-selected-pressed-icon-color:#ff4081}.mat-warn .mdc-list-item__start,.mat-warn .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color:#000;--mdc-radio-disabled-unselected-icon-color:#000;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color:#f44336;--mdc-radio-selected-hover-icon-color:#f44336;--mdc-radio-selected-icon-color:#f44336;--mdc-radio-selected-pressed-icon-color:#f44336}.mat-mdc-list-option{--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-icon-color:#3f51b5;--mdc-checkbox-selected-hover-icon-color:#3f51b5;--mdc-checkbox-selected-icon-color:#3f51b5;--mdc-checkbox-selected-pressed-icon-color:#3f51b5;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color:#3f51b5;--mdc-checkbox-selected-hover-state-layer-color:#3f51b5;--mdc-checkbox-selected-pressed-state-layer-color:#3f51b5;--mdc-checkbox-unselected-focus-state-layer-color:black;--mdc-checkbox-unselected-hover-state-layer-color:black;--mdc-checkbox-unselected-pressed-state-layer-color:black}.mat-mdc-list-option.mat-accent{--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-icon-color:#ff4081;--mdc-checkbox-selected-hover-icon-color:#ff4081;--mdc-checkbox-selected-icon-color:#ff4081;--mdc-checkbox-selected-pressed-icon-color:#ff4081;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color:#ff4081;--mdc-checkbox-selected-hover-state-layer-color:#ff4081;--mdc-checkbox-selected-pressed-state-layer-color:#ff4081;--mdc-checkbox-unselected-focus-state-layer-color:black;--mdc-checkbox-unselected-hover-state-layer-color:black;--mdc-checkbox-unselected-pressed-state-layer-color:black}.mat-mdc-list-option.mat-warn{--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-icon-color:#f44336;--mdc-checkbox-selected-hover-icon-color:#f44336;--mdc-checkbox-selected-icon-color:#f44336;--mdc-checkbox-selected-pressed-icon-color:#f44336;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color:#f44336;--mdc-checkbox-selected-hover-state-layer-color:#f44336;--mdc-checkbox-selected-pressed-state-layer-color:#f44336;--mdc-checkbox-unselected-focus-state-layer-color:black;--mdc-checkbox-unselected-hover-state-layer-color:black;--mdc-checkbox-unselected-pressed-state-layer-color:black}.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected.mdc-list-item--with-leading-icon .mdc-list-item__start,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated.mdc-list-item--with-leading-icon .mdc-list-item__start{color:#3f51b5}.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__content,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mat-mdc-list-base{--mdc-list-list-item-one-line-container-height:48px;--mdc-list-list-item-two-line-container-height:64px;--mdc-list-list-item-three-line-container-height:88px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mat-mdc-list-base{--mdc-list-list-item-label-text-font:Roboto, sans-serif;--mdc-list-list-item-label-text-line-height:24px;--mdc-list-list-item-label-text-size:16px;--mdc-list-list-item-label-text-tracking:.03125em;--mdc-list-list-item-label-text-weight:400;--mdc-list-list-item-supporting-text-font:Roboto, sans-serif;--mdc-list-list-item-supporting-text-line-height:20px;--mdc-list-list-item-supporting-text-size:14px;--mdc-list-list-item-supporting-text-tracking:.0178571429em;--mdc-list-list-item-supporting-text-weight:400;--mdc-list-list-item-trailing-supporting-text-font:Roboto, sans-serif;--mdc-list-list-item-trailing-supporting-text-line-height:20px;--mdc-list-list-item-trailing-supporting-text-size:12px;--mdc-list-list-item-trailing-supporting-text-tracking:.0333333333em;--mdc-list-list-item-trailing-supporting-text-weight:400}.mdc-list-group__subheader{font-size:16px;font-weight:400;line-height:28px;font-family:Roboto,sans-serif;letter-spacing:.009375em}html{--mat-paginator-container-text-color:rgba(0, 0, 0, .87);--mat-paginator-container-background-color:white;--mat-paginator-enabled-icon-color:rgba(0, 0, 0, .54);--mat-paginator-disabled-icon-color:rgba(0, 0, 0, .12)}html{--mat-paginator-container-size:56px}.mat-mdc-paginator .mat-mdc-form-field-infix{min-height:40px}.mat-mdc-paginator .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:20px}.mat-mdc-paginator .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY( -26.75px) scale(var(--mat-mdc-form-field-floating-label-scale, .75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-paginator .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:8px;padding-bottom:8px}.mat-mdc-paginator .mat-mdc-text-field-wrapper:not(.mdc-text-field--outlined) .mat-mdc-form-field-infix{padding-top:8px;padding-bottom:8px}.mat-mdc-paginator .mdc-text-field--no-label:not(.mdc-text-field--outlined):not(.mdc-text-field--textarea) .mat-mdc-form-field-infix{padding-top:8px;padding-bottom:8px}.mat-mdc-paginator .mat-mdc-text-field-wrapper:not(.mdc-text-field--outlined) .mat-mdc-floating-label{display:none}html{--mat-paginator-container-text-font:Roboto, sans-serif;--mat-paginator-container-text-line-height:20px;--mat-paginator-container-text-size:12px;--mat-paginator-container-text-tracking:.0333333333em;--mat-paginator-container-text-weight:400;--mat-paginator-select-trigger-text-size:12px}.mat-mdc-tab-group,.mat-mdc-tab-nav-bar{--mdc-tab-indicator-active-indicator-color:#3f51b5;--mat-tab-header-disabled-ripple-color:rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color:#000;--mat-tab-header-inactive-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color:#3f51b5;--mat-tab-header-active-ripple-color:#3f51b5;--mat-tab-header-inactive-ripple-color:#3f51b5;--mat-tab-header-inactive-focus-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color:#3f51b5;--mat-tab-header-active-hover-label-text-color:#3f51b5;--mat-tab-header-active-focus-indicator-color:#3f51b5;--mat-tab-header-active-hover-indicator-color:#3f51b5}.mat-mdc-tab-group.mat-accent,.mat-mdc-tab-nav-bar.mat-accent{--mdc-tab-indicator-active-indicator-color:#ff4081;--mat-tab-header-disabled-ripple-color:rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color:#000;--mat-tab-header-inactive-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color:#ff4081;--mat-tab-header-active-ripple-color:#ff4081;--mat-tab-header-inactive-ripple-color:#ff4081;--mat-tab-header-inactive-focus-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color:#ff4081;--mat-tab-header-active-hover-label-text-color:#ff4081;--mat-tab-header-active-focus-indicator-color:#ff4081;--mat-tab-header-active-hover-indicator-color:#ff4081}.mat-mdc-tab-group.mat-warn,.mat-mdc-tab-nav-bar.mat-warn{--mdc-tab-indicator-active-indicator-color:#f44336;--mat-tab-header-disabled-ripple-color:rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color:#000;--mat-tab-header-inactive-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color:#f44336;--mat-tab-header-active-ripple-color:#f44336;--mat-tab-header-inactive-ripple-color:#f44336;--mat-tab-header-inactive-focus-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color:rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color:#f44336;--mat-tab-header-active-hover-label-text-color:#f44336;--mat-tab-header-active-focus-indicator-color:#f44336;--mat-tab-header-active-hover-indicator-color:#f44336}.mat-mdc-tab-group.mat-background-primary,.mat-mdc-tab-nav-bar.mat-background-primary{--mat-tab-header-with-background-background-color:#3f51b5;--mat-tab-header-with-background-foreground-color:white}.mat-mdc-tab-group.mat-background-accent,.mat-mdc-tab-nav-bar.mat-background-accent{--mat-tab-header-with-background-background-color:#ff4081;--mat-tab-header-with-background-foreground-color:white}.mat-mdc-tab-group.mat-background-warn,.mat-mdc-tab-nav-bar.mat-background-warn{--mat-tab-header-with-background-background-color:#f44336;--mat-tab-header-with-background-foreground-color:white}.mat-mdc-tab-header{--mdc-secondary-navigation-tab-container-height:48px}.mat-mdc-tab-header{--mat-tab-header-label-text-font:Roboto, sans-serif;--mat-tab-header-label-text-size:14px;--mat-tab-header-label-text-tracking:.0892857143em;--mat-tab-header-label-text-line-height:36px;--mat-tab-header-label-text-weight:500}html{--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-icon-color:#ff4081;--mdc-checkbox-selected-hover-icon-color:#ff4081;--mdc-checkbox-selected-icon-color:#ff4081;--mdc-checkbox-selected-pressed-icon-color:#ff4081;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color:#ff4081;--mdc-checkbox-selected-hover-state-layer-color:#ff4081;--mdc-checkbox-selected-pressed-state-layer-color:#ff4081;--mdc-checkbox-unselected-focus-state-layer-color:black;--mdc-checkbox-unselected-hover-state-layer-color:black;--mdc-checkbox-unselected-pressed-state-layer-color:black}.mat-mdc-checkbox.mat-primary{--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-icon-color:#3f51b5;--mdc-checkbox-selected-hover-icon-color:#3f51b5;--mdc-checkbox-selected-icon-color:#3f51b5;--mdc-checkbox-selected-pressed-icon-color:#3f51b5;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color:#3f51b5;--mdc-checkbox-selected-hover-state-layer-color:#3f51b5;--mdc-checkbox-selected-pressed-state-layer-color:#3f51b5;--mdc-checkbox-unselected-focus-state-layer-color:black;--mdc-checkbox-unselected-hover-state-layer-color:black;--mdc-checkbox-unselected-pressed-state-layer-color:black}.mat-mdc-checkbox.mat-warn{--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-icon-color:#f44336;--mdc-checkbox-selected-hover-icon-color:#f44336;--mdc-checkbox-selected-icon-color:#f44336;--mdc-checkbox-selected-pressed-icon-color:#f44336;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color:rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color:#f44336;--mdc-checkbox-selected-hover-state-layer-color:#f44336;--mdc-checkbox-selected-pressed-state-layer-color:#f44336;--mdc-checkbox-unselected-focus-state-layer-color:black;--mdc-checkbox-unselected-hover-state-layer-color:black;--mdc-checkbox-unselected-pressed-state-layer-color:black}.mat-mdc-checkbox .mdc-form-field{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, .87))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:#00000061}html{--mdc-checkbox-state-layer-size:40px}.mat-mdc-checkbox .mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);-webkit-text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mat-mdc-button.mat-unthemed{--mdc-text-button-label-text-color:#000}.mat-mdc-button.mat-primary{--mdc-text-button-label-text-color:#3f51b5}.mat-mdc-button.mat-accent{--mdc-text-button-label-text-color:#ff4081}.mat-mdc-button.mat-warn{--mdc-text-button-label-text-color:#f44336}.mat-mdc-button[disabled][disabled]{--mdc-text-button-disabled-label-text-color:rgba(0, 0, 0, .38);--mdc-text-button-label-text-color:rgba(0, 0, 0, .38)}.mat-mdc-unelevated-button.mat-unthemed{--mdc-filled-button-container-color:#fff;--mdc-filled-button-label-text-color:#000}.mat-mdc-unelevated-button.mat-primary{--mdc-filled-button-container-color:#3f51b5;--mdc-filled-button-label-text-color:#fff}.mat-mdc-unelevated-button.mat-accent{--mdc-filled-button-container-color:#ff4081;--mdc-filled-button-label-text-color:#fff}.mat-mdc-unelevated-button.mat-warn{--mdc-filled-button-container-color:#f44336;--mdc-filled-button-label-text-color:#fff}.mat-mdc-unelevated-button[disabled][disabled]{--mdc-filled-button-disabled-container-color:rgba(0, 0, 0, .12);--mdc-filled-button-disabled-label-text-color:rgba(0, 0, 0, .38);--mdc-filled-button-container-color:rgba(0, 0, 0, .12);--mdc-filled-button-label-text-color:rgba(0, 0, 0, .38)}.mat-mdc-raised-button.mat-unthemed{--mdc-protected-button-container-color:#fff;--mdc-protected-button-label-text-color:#000}.mat-mdc-raised-button.mat-primary{--mdc-protected-button-container-color:#3f51b5;--mdc-protected-button-label-text-color:#fff}.mat-mdc-raised-button.mat-accent{--mdc-protected-button-container-color:#ff4081;--mdc-protected-button-label-text-color:#fff}.mat-mdc-raised-button.mat-warn{--mdc-protected-button-container-color:#f44336;--mdc-protected-button-label-text-color:#fff}.mat-mdc-raised-button[disabled][disabled]{--mdc-protected-button-disabled-container-color:rgba(0, 0, 0, .12);--mdc-protected-button-disabled-label-text-color:rgba(0, 0, 0, .38);--mdc-protected-button-container-color:rgba(0, 0, 0, .12);--mdc-protected-button-label-text-color:rgba(0, 0, 0, .38);--mdc-protected-button-container-elevation:0}.mat-mdc-outlined-button{--mdc-outlined-button-outline-color:rgba(0, 0, 0, .12)}.mat-mdc-outlined-button.mat-unthemed{--mdc-outlined-button-label-text-color:#000}.mat-mdc-outlined-button.mat-primary{--mdc-outlined-button-label-text-color:#3f51b5}.mat-mdc-outlined-button.mat-accent{--mdc-outlined-button-label-text-color:#ff4081}.mat-mdc-outlined-button.mat-warn{--mdc-outlined-button-label-text-color:#f44336}.mat-mdc-outlined-button[disabled][disabled]{--mdc-outlined-button-label-text-color:rgba(0, 0, 0, .38);--mdc-outlined-button-disabled-label-text-color:rgba(0, 0, 0, .38);--mdc-outlined-button-outline-color:rgba(0, 0, 0, .12);--mdc-outlined-button-disabled-outline-color:rgba(0, 0, 0, .12)}.mat-mdc-button,.mat-mdc-outlined-button{--mat-mdc-button-persistent-ripple-color: #000;--mat-mdc-button-ripple-color: rgba(0, 0, 0, .1)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple:before,.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple:before{opacity:.04}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple:before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple:before,.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple:before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple:before{opacity:.12}.mat-mdc-button:active .mat-mdc-button-persistent-ripple:before,.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple:before{opacity:.12}.mat-mdc-button.mat-primary,.mat-mdc-outlined-button.mat-primary{--mat-mdc-button-persistent-ripple-color: #3f51b5;--mat-mdc-button-ripple-color: rgba(63, 81, 181, .1)}.mat-mdc-button.mat-accent,.mat-mdc-outlined-button.mat-accent{--mat-mdc-button-persistent-ripple-color: #ff4081;--mat-mdc-button-ripple-color: rgba(255, 64, 129, .1)}.mat-mdc-button.mat-warn,.mat-mdc-outlined-button.mat-warn{--mat-mdc-button-persistent-ripple-color: #f44336;--mat-mdc-button-ripple-color: rgba(244, 67, 54, .1)}.mat-mdc-raised-button,.mat-mdc-unelevated-button{--mat-mdc-button-persistent-ripple-color: #000;--mat-mdc-button-ripple-color: rgba(0, 0, 0, .1)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple:before,.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple:before{opacity:.04}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple:before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple:before,.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple:before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple:before{opacity:.12}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple:before,.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple:before{opacity:.12}.mat-mdc-raised-button.mat-primary,.mat-mdc-unelevated-button.mat-primary,.mat-mdc-raised-button.mat-accent,.mat-mdc-unelevated-button.mat-accent,.mat-mdc-raised-button.mat-warn,.mat-mdc-unelevated-button.mat-warn{--mat-mdc-button-persistent-ripple-color: #fff;--mat-mdc-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-button.mat-mdc-button-base,.mat-mdc-raised-button.mat-mdc-button-base,.mat-mdc-unelevated-button.mat-mdc-button-base,.mat-mdc-outlined-button.mat-mdc-button-base{height:36px}.mdc-button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-button-font-size, 14px);line-height:var(--mdc-typography-button-line-height, 36px);font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:var(--mdc-typography-button-letter-spacing, .0892857143em);-webkit-text-decoration:var(--mdc-typography-button-text-decoration, none);text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:var(--mdc-typography-button-text-transform, none)}.mat-mdc-icon-button{--mdc-icon-button-icon-color:inherit;--mat-mdc-button-persistent-ripple-color: #000;--mat-mdc-button-ripple-color: rgba(0, 0, 0, .1)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple:before{opacity:.04}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple:before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple:before{opacity:.12}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple:before{opacity:.12}.mat-mdc-icon-button.mat-primary{--mat-mdc-button-persistent-ripple-color: #6200ee;--mat-mdc-button-ripple-color: rgba(98, 0, 238, .1)}.mat-mdc-icon-button.mat-accent{--mat-mdc-button-persistent-ripple-color: #018786;--mat-mdc-button-ripple-color: rgba(1, 135, 134, .1)}.mat-mdc-icon-button.mat-warn{--mat-mdc-button-persistent-ripple-color: #b00020;--mat-mdc-button-ripple-color: rgba(176, 0, 32, .1)}.mat-mdc-icon-button.mat-primary{--mdc-icon-button-icon-color:#3f51b5;--mat-mdc-button-persistent-ripple-color: #3f51b5;--mat-mdc-button-ripple-color: rgba(63, 81, 181, .1)}.mat-mdc-icon-button.mat-accent{--mdc-icon-button-icon-color:#ff4081;--mat-mdc-button-persistent-ripple-color: #ff4081;--mat-mdc-button-ripple-color: rgba(255, 64, 129, .1)}.mat-mdc-icon-button.mat-warn{--mdc-icon-button-icon-color:#f44336;--mat-mdc-button-persistent-ripple-color: #f44336;--mat-mdc-button-ripple-color: rgba(244, 67, 54, .1)}.mat-mdc-icon-button[disabled][disabled]{--mdc-icon-button-icon-color:rgba(0, 0, 0, .38);--mdc-icon-button-disabled-icon-color:rgba(0, 0, 0, .38)}.mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size:48px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:12px}.mat-mdc-fab,.mat-mdc-mini-fab{--mat-mdc-button-persistent-ripple-color: #000;--mat-mdc-button-ripple-color: rgba(0, 0, 0, .1)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple:before,.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple:before{opacity:.04}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple:before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple:before,.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple:before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple:before{opacity:.12}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple:before,.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple:before{opacity:.12}.mat-mdc-fab.mat-primary,.mat-mdc-mini-fab.mat-primary,.mat-mdc-fab.mat-accent,.mat-mdc-mini-fab.mat-accent,.mat-mdc-fab.mat-warn,.mat-mdc-mini-fab.mat-warn{--mat-mdc-button-persistent-ripple-color: #fff;--mat-mdc-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-fab[disabled][disabled],.mat-mdc-mini-fab[disabled][disabled]{--mdc-fab-container-color:rgba(0, 0, 0, .12);--mdc-fab-icon-color:rgba(0, 0, 0, .38);--mat-mdc-fab-color: rgba(0, 0, 0, .38)}.mat-mdc-fab.mat-unthemed,.mat-mdc-mini-fab.mat-unthemed{--mdc-fab-container-color:white;--mdc-fab-icon-color:black;--mat-mdc-fab-color: #000}.mat-mdc-fab.mat-primary,.mat-mdc-mini-fab.mat-primary{--mdc-fab-container-color:#3f51b5;--mdc-fab-icon-color:white;--mat-mdc-fab-color: #fff}.mat-mdc-fab.mat-accent,.mat-mdc-mini-fab.mat-accent{--mdc-fab-container-color:#ff4081;--mdc-fab-icon-color:white;--mat-mdc-fab-color: #fff}.mat-mdc-fab.mat-warn,.mat-mdc-mini-fab.mat-warn{--mdc-fab-container-color:#f44336;--mdc-fab-icon-color:white;--mat-mdc-fab-color: #fff}.mdc-fab--extended{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-button-font-size, 14px);line-height:var(--mdc-typography-button-line-height, 36px);font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:var(--mdc-typography-button-letter-spacing, .0892857143em);-webkit-text-decoration:var(--mdc-typography-button-text-decoration, none);text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:var(--mdc-typography-button-text-transform, none)}.mat-mdc-extended-fab{--mdc-extended-fab-label-text-font:Roboto, sans-serif;--mdc-extended-fab-label-text-size:14px;--mdc-extended-fab-label-text-tracking:.0892857143em;--mdc-extended-fab-label-text-weight:500}.mat-mdc-snack-bar-container{--mdc-snackbar-container-color:#333333;--mdc-snackbar-supporting-text-color:rgba(255, 255, 255, .87);--mat-snack-bar-button-color:#ff4081}.mat-mdc-snack-bar-container{--mdc-snackbar-supporting-text-font:Roboto, sans-serif;--mdc-snackbar-supporting-text-line-height:20px;--mdc-snackbar-supporting-text-size:14px;--mdc-snackbar-supporting-text-weight:400}html{--mat-table-background-color:white;--mat-table-header-headline-color:rgba(0, 0, 0, .87);--mat-table-row-item-label-text-color:rgba(0, 0, 0, .87);--mat-table-row-item-outline-color:rgba(0, 0, 0, .12)}html{--mat-table-header-container-height:56px;--mat-table-footer-container-height:52px;--mat-table-row-item-container-height:52px}html{--mat-table-header-headline-font:Roboto, sans-serif;--mat-table-header-headline-line-height:22px;--mat-table-header-headline-size:14px;--mat-table-header-headline-weight:500;--mat-table-header-headline-tracking:.0071428571em;--mat-table-row-item-label-text-font:Roboto, sans-serif;--mat-table-row-item-label-text-line-height:20px;--mat-table-row-item-label-text-size:14px;--mat-table-row-item-label-text-weight:400;--mat-table-row-item-label-text-tracking:.0178571429em;--mat-table-footer-supporting-text-font:Roboto, sans-serif;--mat-table-footer-supporting-text-line-height:20px;--mat-table-footer-supporting-text-size:14px;--mat-table-footer-supporting-text-weight:400;--mat-table-footer-supporting-text-tracking:.0178571429em}.mat-mdc-progress-spinner{--mdc-circular-progress-active-indicator-color:#3f51b5}.mat-mdc-progress-spinner.mat-accent{--mdc-circular-progress-active-indicator-color:#ff4081}.mat-mdc-progress-spinner.mat-warn{--mdc-circular-progress-active-indicator-color:#f44336}.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;border-radius:50%;transition:transform .2s ease-in-out;transform:scale(.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;background-color:var(--mat-badge-background-color);color:var(--mat-badge-text-color);font-family:Roboto,sans-serif;font-family:var(--mat-badge-text-font, Roboto, sans-serif);font-size:12px;font-size:var(--mat-badge-text-size, 12px);font-weight:600;font-weight:var(--mat-badge-text-weight, 600)}.cdk-high-contrast-active .mat-badge-content{outline:solid 1px;border-radius:0}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color);color:var(--mat-badge-disabled-state-text-color)}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:16px;height:16px;line-height:16px;font-size:9px;font-size:var(--mat-badge-small-size-text-size, 9px)}.mat-badge-small.mat-badge-above .mat-badge-content{top:-8px}.mat-badge-small.mat-badge-below .mat-badge-content{bottom:-8px}.mat-badge-small.mat-badge-before .mat-badge-content{left:-16px}[dir=rtl] .mat-badge-small.mat-badge-before .mat-badge-content{left:auto;right:-16px}.mat-badge-small.mat-badge-after .mat-badge-content{right:-16px}[dir=rtl] .mat-badge-small.mat-badge-after .mat-badge-content{right:auto;left:-16px}.mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-8px}.mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-8px}.mat-badge-medium .mat-badge-content{width:22px;height:22px;line-height:22px}.mat-badge-medium.mat-badge-above .mat-badge-content{top:-11px}.mat-badge-medium.mat-badge-below .mat-badge-content{bottom:-11px}.mat-badge-medium.mat-badge-before .mat-badge-content{left:-22px}[dir=rtl] .mat-badge-medium.mat-badge-before .mat-badge-content{left:auto;right:-22px}.mat-badge-medium.mat-badge-after .mat-badge-content{right:-22px}[dir=rtl] .mat-badge-medium.mat-badge-after .mat-badge-content{right:auto;left:-22px}.mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-11px}.mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-11px}.mat-badge-large .mat-badge-content{width:28px;height:28px;line-height:28px;font-size:24px;font-size:var(--mat-badge-large-size-text-size, 24px)}.mat-badge-large.mat-badge-above .mat-badge-content{top:-14px}.mat-badge-large.mat-badge-below .mat-badge-content{bottom:-14px}.mat-badge-large.mat-badge-before .mat-badge-content{left:-28px}[dir=rtl] .mat-badge-large.mat-badge-before .mat-badge-content{left:auto;right:-28px}.mat-badge-large.mat-badge-after .mat-badge-content{right:-28px}[dir=rtl] .mat-badge-large.mat-badge-after .mat-badge-content{right:auto;left:-28px}.mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-14px}.mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-14px}html{--mat-badge-background-color:#3f51b5;--mat-badge-text-color:white;--mat-badge-disabled-state-background-color:#b9b9b9;--mat-badge-disabled-state-text-color:rgba(0, 0, 0, .38)}.mat-badge-accent{--mat-badge-background-color:#ff4081;--mat-badge-text-color:white}.mat-badge-warn{--mat-badge-background-color:#f44336;--mat-badge-text-color:white}html{--mat-badge-text-font:Roboto, sans-serif;--mat-badge-text-size:12px;--mat-badge-text-weight:600;--mat-badge-small-size-text-size:9px;--mat-badge-large-size-text-size:24px}html{--mat-bottom-sheet-container-text-color:rgba(0, 0, 0, .87);--mat-bottom-sheet-container-background-color:white}html{--mat-bottom-sheet-container-text-font:Roboto, sans-serif;--mat-bottom-sheet-container-text-line-height:20px;--mat-bottom-sheet-container-text-size:14px;--mat-bottom-sheet-container-text-tracking:.0178571429em;--mat-bottom-sheet-container-text-weight:400}html{--mat-legacy-button-toggle-text-color:rgba(0, 0, 0, .38);--mat-legacy-button-toggle-state-layer-color:rgba(0, 0, 0, .12);--mat-legacy-button-toggle-selected-state-text-color:rgba(0, 0, 0, .54);--mat-legacy-button-toggle-selected-state-background-color:#e0e0e0;--mat-legacy-button-toggle-disabled-state-text-color:rgba(0, 0, 0, .26);--mat-legacy-button-toggle-disabled-state-background-color:#eeeeee;--mat-legacy-button-toggle-disabled-selected-state-background-color:#bdbdbd;--mat-standard-button-toggle-text-color:rgba(0, 0, 0, .87);--mat-standard-button-toggle-background-color:white;--mat-standard-button-toggle-state-layer-color:black;--mat-standard-button-toggle-selected-state-background-color:#e0e0e0;--mat-standard-button-toggle-selected-state-text-color:rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-state-text-color:rgba(0, 0, 0, .26);--mat-standard-button-toggle-disabled-state-background-color:white;--mat-standard-button-toggle-disabled-selected-state-text-color:rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-selected-state-background-color:#bdbdbd;--mat-standard-button-toggle-divider-color:#e0e0e0}html{--mat-standard-button-toggle-height:48px}html{--mat-legacy-button-toggle-text-font:Roboto, sans-serif;--mat-standard-button-toggle-text-font:Roboto, sans-serif}html{--mat-datepicker-calendar-date-selected-state-text-color:white;--mat-datepicker-calendar-date-selected-state-background-color:#3f51b5;--mat-datepicker-calendar-date-selected-disabled-state-background-color:rgba(63, 81, 181, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color:white;--mat-datepicker-calendar-date-focus-state-background-color:rgba(63, 81, 181, .3);--mat-datepicker-calendar-date-hover-state-background-color:rgba(63, 81, 181, .3);--mat-datepicker-toggle-active-state-icon-color:#3f51b5;--mat-datepicker-calendar-date-in-range-state-background-color:rgba(63, 81, 181, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color:rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color:#a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color:#46a35e;--mat-datepicker-toggle-icon-color:rgba(0, 0, 0, .54);--mat-datepicker-calendar-body-label-text-color:rgba(0, 0, 0, .54);--mat-datepicker-calendar-period-button-icon-color:rgba(0, 0, 0, .54);--mat-datepicker-calendar-navigation-button-icon-color:rgba(0, 0, 0, .54);--mat-datepicker-calendar-header-divider-color:rgba(0, 0, 0, .12);--mat-datepicker-calendar-header-text-color:rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-outline-color:rgba(0, 0, 0, .38);--mat-datepicker-calendar-date-today-disabled-state-outline-color:rgba(0, 0, 0, .18);--mat-datepicker-calendar-date-text-color:rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-outline-color:transparent;--mat-datepicker-calendar-date-disabled-state-text-color:rgba(0, 0, 0, .38);--mat-datepicker-calendar-date-preview-state-outline-color:rgba(0, 0, 0, .24);--mat-datepicker-range-input-separator-color:rgba(0, 0, 0, .87);--mat-datepicker-range-input-disabled-state-separator-color:rgba(0, 0, 0, .38);--mat-datepicker-range-input-disabled-state-text-color:rgba(0, 0, 0, .38);--mat-datepicker-calendar-container-background-color:white;--mat-datepicker-calendar-container-text-color:rgba(0, 0, 0, .87)}.mat-datepicker-content.mat-accent{--mat-datepicker-calendar-date-selected-state-text-color:white;--mat-datepicker-calendar-date-selected-state-background-color:#ff4081;--mat-datepicker-calendar-date-selected-disabled-state-background-color:rgba(255, 64, 129, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color:white;--mat-datepicker-calendar-date-focus-state-background-color:rgba(255, 64, 129, .3);--mat-datepicker-calendar-date-hover-state-background-color:rgba(255, 64, 129, .3);--mat-datepicker-calendar-date-in-range-state-background-color:rgba(255, 64, 129, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color:rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color:#a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color:#46a35e}.mat-datepicker-content.mat-warn{--mat-datepicker-calendar-date-selected-state-text-color:white;--mat-datepicker-calendar-date-selected-state-background-color:#f44336;--mat-datepicker-calendar-date-selected-disabled-state-background-color:rgba(244, 67, 54, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color:white;--mat-datepicker-calendar-date-focus-state-background-color:rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-hover-state-background-color:rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-in-range-state-background-color:rgba(244, 67, 54, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color:rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color:#a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color:#46a35e}.mat-datepicker-toggle-active.mat-accent{--mat-datepicker-toggle-active-state-icon-color:#ff4081}.mat-datepicker-toggle-active.mat-warn{--mat-datepicker-toggle-active-state-icon-color:#f44336}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size:40px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:8px}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base .mat-mdc-button-touch-target{display:none}html{--mat-datepicker-calendar-text-font:Roboto, sans-serif;--mat-datepicker-calendar-text-size:13px;--mat-datepicker-calendar-body-label-text-size:14px;--mat-datepicker-calendar-body-label-text-weight:500;--mat-datepicker-calendar-period-button-text-size:14px;--mat-datepicker-calendar-period-button-text-weight:500;--mat-datepicker-calendar-header-text-size:11px;--mat-datepicker-calendar-header-text-weight:400}html{--mat-divider-color:rgba(0, 0, 0, .12)}html{--mat-expansion-container-background-color:white;--mat-expansion-container-text-color:rgba(0, 0, 0, .87);--mat-expansion-actions-divider-color:rgba(0, 0, 0, .12);--mat-expansion-header-hover-state-layer-color:rgba(0, 0, 0, .04);--mat-expansion-header-focus-state-layer-color:rgba(0, 0, 0, .04);--mat-expansion-header-disabled-state-text-color:rgba(0, 0, 0, .26);--mat-expansion-header-text-color:rgba(0, 0, 0, .87);--mat-expansion-header-description-color:rgba(0, 0, 0, .54);--mat-expansion-header-indicator-color:rgba(0, 0, 0, .54)}html{--mat-expansion-header-collapsed-state-height:48px;--mat-expansion-header-expanded-state-height:64px}html{--mat-expansion-header-text-font:Roboto, sans-serif;--mat-expansion-header-text-size:14px;--mat-expansion-header-text-weight:500;--mat-expansion-header-text-line-height:inherit;--mat-expansion-header-text-tracking:inherit;--mat-expansion-container-text-font:Roboto, sans-serif;--mat-expansion-container-text-line-height:20px;--mat-expansion-container-text-size:14px;--mat-expansion-container-text-tracking:.0178571429em;--mat-expansion-container-text-weight:400}html{--mat-grid-list-tile-header-primary-text-size:14px;--mat-grid-list-tile-header-secondary-text-size:12px;--mat-grid-list-tile-footer-primary-text-size:14px;--mat-grid-list-tile-footer-secondary-text-size:12px}html{--mat-icon-color:inherit}.mat-icon.mat-primary{--mat-icon-color:#3f51b5}.mat-icon.mat-accent{--mat-icon-color:#ff4081}.mat-icon.mat-warn{--mat-icon-color:#f44336}html{--mat-sidenav-container-divider-color:rgba(0, 0, 0, .12);--mat-sidenav-container-background-color:white;--mat-sidenav-container-text-color:rgba(0, 0, 0, .87);--mat-sidenav-content-background-color:#fafafa;--mat-sidenav-content-text-color:rgba(0, 0, 0, .87);--mat-sidenav-scrim-color:rgba(0, 0, 0, .6)}html{--mat-stepper-header-icon-foreground-color:white;--mat-stepper-header-selected-state-icon-background-color:#3f51b5;--mat-stepper-header-selected-state-icon-foreground-color:white;--mat-stepper-header-done-state-icon-background-color:#3f51b5;--mat-stepper-header-done-state-icon-foreground-color:white;--mat-stepper-header-edit-state-icon-background-color:#3f51b5;--mat-stepper-header-edit-state-icon-foreground-color:white;--mat-stepper-container-color:white;--mat-stepper-line-color:rgba(0, 0, 0, .12);--mat-stepper-header-hover-state-layer-color:rgba(0, 0, 0, .04);--mat-stepper-header-focus-state-layer-color:rgba(0, 0, 0, .04);--mat-stepper-header-label-text-color:rgba(0, 0, 0, .54);--mat-stepper-header-optional-label-text-color:rgba(0, 0, 0, .54);--mat-stepper-header-selected-state-label-text-color:rgba(0, 0, 0, .87);--mat-stepper-header-error-state-label-text-color:#f44336;--mat-stepper-header-icon-background-color:rgba(0, 0, 0, .54);--mat-stepper-header-error-state-icon-foreground-color:#f44336;--mat-stepper-header-error-state-icon-background-color:transparent}html .mat-step-header.mat-accent{--mat-stepper-header-icon-foreground-color:white;--mat-stepper-header-selected-state-icon-background-color:#ff4081;--mat-stepper-header-selected-state-icon-foreground-color:white;--mat-stepper-header-done-state-icon-background-color:#ff4081;--mat-stepper-header-done-state-icon-foreground-color:white;--mat-stepper-header-edit-state-icon-background-color:#ff4081;--mat-stepper-header-edit-state-icon-foreground-color:white}html .mat-step-header.mat-warn{--mat-stepper-header-icon-foreground-color:white;--mat-stepper-header-selected-state-icon-background-color:#f44336;--mat-stepper-header-selected-state-icon-foreground-color:white;--mat-stepper-header-done-state-icon-background-color:#f44336;--mat-stepper-header-done-state-icon-foreground-color:white;--mat-stepper-header-edit-state-icon-background-color:#f44336;--mat-stepper-header-edit-state-icon-foreground-color:white}html{--mat-stepper-header-height:72px}html{--mat-stepper-container-text-font:Roboto, sans-serif;--mat-stepper-header-label-text-font:Roboto, sans-serif;--mat-stepper-header-label-text-size:14px;--mat-stepper-header-label-text-weight:400;--mat-stepper-header-error-state-label-text-size:16px;--mat-stepper-header-selected-state-label-text-size:16px;--mat-stepper-header-selected-state-label-text-weight:400}.mat-sort-header-arrow{color:#757575}html{--mat-toolbar-container-background-color:whitesmoke;--mat-toolbar-container-text-color:rgba(0, 0, 0, .87)}.mat-toolbar.mat-primary{--mat-toolbar-container-background-color:#3f51b5;--mat-toolbar-container-text-color:white}.mat-toolbar.mat-accent{--mat-toolbar-container-background-color:#ff4081;--mat-toolbar-container-text-color:white}.mat-toolbar.mat-warn{--mat-toolbar-container-background-color:#f44336;--mat-toolbar-container-text-color:white}html{--mat-toolbar-standard-height:64px;--mat-toolbar-mobile-height:56px}html{--mat-toolbar-title-text-font:Roboto, sans-serif;--mat-toolbar-title-text-line-height:32px;--mat-toolbar-title-text-size:20px;--mat-toolbar-title-text-tracking:.0125em;--mat-toolbar-title-text-weight:500}.mat-tree{background:#fff}.mat-tree-node,.mat-nested-tree-node{color:#000000de}.mat-tree-node{min-height:48px}.mat-tree{font-family:Roboto,sans-serif}.mat-tree-node,.mat-nested-tree-node{font-weight:400;font-size:14px}.mat-h1,.mat-headline-5,.mat-typography .mat-h1,.mat-typography .mat-headline-5,.mat-typography h1{font-size:24px;font-weight:400;line-height:32px;font-family:Roboto,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2,.mat-headline-6,.mat-typography .mat-h2,.mat-typography .mat-headline-6,.mat-typography h2{font-size:20px;font-weight:500;line-height:32px;font-family:Roboto,sans-serif;letter-spacing:.0125em;margin:0 0 16px}.mat-h3,.mat-subtitle-1,.mat-typography .mat-h3,.mat-typography .mat-subtitle-1,.mat-typography h3{font-size:16px;font-weight:400;line-height:28px;font-family:Roboto,sans-serif;letter-spacing:.009375em;margin:0 0 16px}.mat-h4,.mat-body-1,.mat-typography .mat-h4,.mat-typography .mat-body-1,.mat-typography h4{font-size:16px;font-weight:400;line-height:24px;font-family:Roboto,sans-serif;letter-spacing:.03125em;margin:0 0 16px}.mat-h5,.mat-typography .mat-h5,.mat-typography h5{font:400 11.62px/20px Roboto,sans-serif;margin:0 0 12px}.mat-h6,.mat-typography .mat-h6,.mat-typography h6{font:400 9.38px/20px Roboto,sans-serif;margin:0 0 12px}.mat-body-strong,.mat-subtitle-2,.mat-typography .mat-body-strong,.mat-typography .mat-subtitle-2{font-size:14px;font-weight:500;line-height:22px;font-family:Roboto,sans-serif;letter-spacing:.0071428571em}.mat-body,.mat-body-2,.mat-typography .mat-body,.mat-typography .mat-body-2,.mat-typography{font-size:14px;font-weight:400;line-height:20px;font-family:Roboto,sans-serif;letter-spacing:.0178571429em}.mat-body p,.mat-body-2 p,.mat-typography .mat-body p,.mat-typography .mat-body-2 p,.mat-typography p{margin:0 0 12px}.mat-small,.mat-caption,.mat-typography .mat-small,.mat-typography .mat-caption{font-size:12px;font-weight:400;line-height:20px;font-family:Roboto,sans-serif;letter-spacing:.0333333333em}.mat-headline-1,.mat-typography .mat-headline-1{font-size:96px;font-weight:300;line-height:96px;font-family:Roboto,sans-serif;letter-spacing:-.015625em;margin:0 0 56px}.mat-headline-2,.mat-typography .mat-headline-2{font-size:60px;font-weight:300;line-height:60px;font-family:Roboto,sans-serif;letter-spacing:-.0083333333em;margin:0 0 64px}.mat-headline-3,.mat-typography .mat-headline-3{font-size:48px;font-weight:400;line-height:50px;font-family:Roboto,sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-headline-4,.mat-typography .mat-headline-4{font-size:34px;font-weight:400;line-height:40px;font-family:Roboto,sans-serif;letter-spacing:.0073529412em;margin:0 0 64px}html,body{height:100%;box-sizing:border-box}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.content-height{height:calc(100vh - 80px)}.cursor-pointer{cursor:pointer}.mat-mdc-drawer-container{background-color:#fff}.mat-mdc-button{color:#3367d6}.global-font-color{color:#000}.body-font-size{font-size:14px}.primary-header{font-size:20px!important}.mat-mdc-stroked-button{color:#3367d6}.mat-mdc-raised-button{color:#fff;background-color:#3367d6}.blue-font-color{color:#3367d6}.mat-mdc-tab-label{opacity:1!important}.gray-out{opacity:.6}.danger{color:#da4236}.warning{color:#ff9800}.success{color:green}.orange{color:#f87444}.dark{color:#4d4b4b}.suggestion{color:#f6be00;transform:rotate(180deg)}.danger-background{background-color:#da4236}.warning-background{background-color:#f3b300}.success-background{background-color:green}.failure{color:red}.copy{color:#6495ed;margin-left:40%}.header{padding:0 20px 10px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #cccccc}.header .header_action button{border:none;background-color:inherit;color:#1967d2;font-size:.8rem}.header .breadcrumb{display:flex;align-items:center}.header .breadcrumb .breadcrumb_source{padding-left:0;color:#8f8f8f;font-weight:400;font-size:14px}.header .breadcrumb .breadcrumb_workspace{font-weight:400;font-size:14px;color:#000}.header .breadcrumb span{font-size:1.2rem}html{--mat-sidenav-content-background-color: #fff}.mat-card-class{padding:10px;width:600px}.mat-card-class .mat-card-title{font-size:13pt;font-weight:400;color:#000}.mat-card-class .mat-card-subtitle{font-size:9pt;font-weight:400;color:#000}.mat-card-class p{color:#000}.mat-card-class p .bullet{position:relative;display:inline-block;background-color:#e5e5e5;padding:0 5px 10px;margin:0;border-radius:12px;font-size:9px;height:9px;width:9px;text-align:center}.mat-card-class p span{margin-left:40px;font-weight:lighter;font-size:13px}.mat-card-class hr{border-color:#fff;margin-bottom:20px}.connect-load-database-container{padding:0 20px}.connect-load-database-container h5{margin-bottom:20px;color:#5c5c5c}.connect-load-database-container .mat-mdc-form-field{width:400px;margin-right:20px;margin-bottom:20px}.connect-load-database-container button{margin-right:20px}.connect-load-database-container .form-container{background-color:inherit;padding:16px}.progress_bar{width:50%;text-align:center;padding-left:20vw}.mat-mdc-tab-label-active{color:#3367d6!important}.object-display-flex{display:flex;flex-direction:row}.object-full-width{width:100%}.dialog-container .dialog-message{padding-top:1rem;padding-bottom:1rem;display:block;justify-content:center;align-items:center}.dialog-container .dialog-message .a-link{outline:none!important}.dialog-container .dialog-action{display:flex;justify-content:flex-end}.sidenav{box-sizing:border-box;height:100%}.sidenav .sidenav-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:48px;box-shadow:0 1px #0000001f;margin-bottom:1px}.sidenav .sidenav-header .header-title{margin-left:25px;font-size:1rem;letter-spacing:.05px}.sidenav .sidenav-header .close-button{margin-right:10px;background-color:inherit}.sidenav .sidenav-content{padding:15px 25px}.sidenav .sidenav-content h3{margin-bottom:0}.sidenav .sidenav-content .mat-mdc-form-field{width:100%;padding-top:10px}.sidenav .sidenav-footer{padding:1rem;display:flex;justify-content:flex-end}.sidenav-header-border{border-bottom-width:1px;border-bottom-style:solid}.sidenav-percentage-bar{height:.8rem;display:flex;flex-direction:row;border:5px}.sidenav-percentage-bar div{height:.8rem}.sidenav-percentage-marker{display:flex;justify-content:space-between}.sidenav-percentage-indent{display:flex}.sidenav-percentage-indent span{display:flex;align-items:center;padding-right:.5rem}.sidenav-conversionByTable,.sidenav-conversionByPercentage,.sidenav-databaseDefinitions{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.sidenav-title{margin-top:10px;margin-bottom:0}.radio-button-container mat-mdc-radio-button:hover{color:#1967d2}.radio-button-group{display:flex;flex-direction:column}.spinner{position:relative;display:inline-block}.spinner-text{position:relative;display:inline-block;font-size:20px;margin-left:10px}.spinner-small-text{position:relative;display:inline-block;font-size:15px;margin-left:10px}.display{display:block!important}.hidden{display:none!important}.spanner-tab-link{color:#1967d2;font-weight:400;cursor:pointer}#middle-column-toggle-button{z-index:100;border:none;background-color:inherit}#middle-column-toggle-button:hover{cursor:pointer}.sidenav-view-assessment-container .content{padding-left:15px;padding-top:10px}.sidenav-view-assessment-container .content .sidenav-percentage-indent{padding-top:revert;padding-bottom:0;box-shadow:none}.sidenav-view-assessment-container .content .databaseName{text-transform:uppercase;font-size:large;font-weight:500}.sidenav-view-assessment-container .content .summaryHeader{display:flex}.sidenav-view-assessment-container .content .migrationDetails{font-size:16px;font-weight:400;justify-content:center;display:flex}.sidenav-view-assessment-container .content .summaryText{font-size:16px;font-weight:400}.sidenav-view-assessment-container .content .sidenav-percentage-indent{padding-top:revert;padding-bottom:revert}.sidenav-view-assessment-container .content .sidenav-percentage-indent .icon{margin-right:8px}.sidenav-view-assessment-container .content .sidenav-percentage-indent .danger,.sidenav-view-assessment-container .content .sidenav-percentage-indent .warning,.sidenav-view-assessment-container .content .sidenav-percentage-indent .success{padding-left:16px}.sidenav-view-assessment-container .content .sidenav-percentage-indent .warning,.sidenav-view-assessment-container .content .sidenav-percentage-indent .success{padding-left:32px}.sidenav-view-assessment-container .content .sidenav-percentage-indent .success{padding-left:40px}.sidenav-view-assessment-container .content .mat-mdc-card{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);display:block;position:relative;border-radius:4px;padding-left:revert}.sidenav-view-assessment-container .content .issue-report .warning,.sidenav-view-assessment-container .content .issue-report .danger,.sidenav-view-assessment-container .content .issue-report .success{padding-right:20px}.sidenav-view-assessment-container .content .issue-report .suggestion{padding-left:20px}.sidenav-view-assessment-container .content .issue-report table{width:100%}.sidenav-view-assessment-container .content .issue-report .example-element-row td{border-bottom-width:0}.sidenav-view-assessment-container .content .issue-report tr.example-detail-row{height:0}.sidenav-view-assessment-container .content .issue-report tr.example-element-row:not(.example-expanded-row):hover{background:whitesmoke}.sidenav-view-assessment-container .content .issue-report tr.example-element-row:not(.example-expanded-row):active{background:#efefef}.sidenav-view-assessment-container .content .issue-report .example-element-description{padding-left:41px;padding-top:5px;padding-bottom:15px}.sidenav-view-assessment-container .content .issue-report .example-element-description-attribution{opacity:.5}.sidenav-view-assessment-container .content .issue-report .example-element-detail{overflow:hidden;display:flex}.sidenav-view-assessment-container .content .issue-report .example-element-detail.expanded{height:auto}.sidenav-view-assessment-container .content .issue-report .example-element-detail.collapsed{height:0;min-height:0}.sidenav-view-assessment-container .content .issue-report .mat-mdc-position{width:9px;padding:16px}.sidenav-view-assessment-container .content .issue-report .mat-mdc-description{width:530px;padding:16px}.sidenav-view-assessment-container .content .issue-report .mat-mdc-tableCount{width:65px;padding:16px}.sidenav-view-assessment-container .content .issue-report .no-issue-container{width:100%;display:flex;flex-direction:column;align-items:center}.sidenav-view-assessment-container .content .issue-report .no-issue-container .no-issue-icon-container{padding:10px;background-color:#3367d61f;border-radius:3px;margin:20px}.sidenav-view-assessment-container .content .issue-report .no-issue-container .no-issue-message{width:80%;max-width:500px;text-align:center}.mat-mdc-table{border:inset}.mat-mdc-icon-button{--mdc-icon-button-icon-size: 12px !important}.mat-mdc-card{padding:10px}.rounded-chip{color:#0f33ab}.mat-mdc-dialog-container{--mdc-dialog-supporting-text-color: black}.new-connection-profile-input{width:100%}.end-migration-dialog{padding:5%}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:0!important}.mat-mdc-form-field-infix{min-height:0;min-width:unset!important}.w-100 .mat-mdc-form-field-infix{padding:0!important}.mat-mdc-raised-button>.mat-icon{margin-left:auto;margin-right:auto}