diff --git a/pipboyMESH/mesh_server.py b/pipboyMESH/mesh_server.py index c7f68e2..becb7f0 100644 --- a/pipboyMESH/mesh_server.py +++ b/pipboyMESH/mesh_server.py @@ -80,7 +80,7 @@ class Servlet: self.msh_state = AVAILABLE self.lstChange["state"] = time() await self.ws_update({"event": WS_EVENT_STATE, "data": self.msh_state}) - await self.ws_update({"event": WS_EVENT_MYID, "data": self.device.my_node_id}) + await self.ws_update({"event": WS_EVENT_MYID, "data": self.device.nid}) while True: self.pulse = time() @@ -148,10 +148,15 @@ class Servlet: try: await websocket.send_json({"type":WS_TYPE_INIT, "event": WS_EVENT_MYID, "data": self.device.nid}) #await websocket.send_json({"type":WS_TYPE_INIT, "event": WS_EVENT_MYNODE, "data": self.nodes.get(self.device.nid).__dict__ if self.device.nid in self.nodes else None}) - await websocket.send_json({"type":WS_TYPE_INIT, "event": WS_EVENT_CHANNEL, "data": [channel.__dict__ for channel in self.channels.values()]}) + for channel in self.channels.values(): + await websocket.send_json({"type":WS_TYPE_INIT, "event": WS_EVENT_CHANNEL, "data": channel.__dict__}) + await websocket.send_json({"type":WS_TYPE_INIT, "event": WS_EVENT_STATE, "data": self.msh_state}) - await websocket.send_json({"type":WS_TYPE_INIT, "event": WS_EVENT_NODE, "data": [{"id": node.num, "name": str(node)} for node in self.nodes.values()]}) - await websocket.send_json({"type":WS_TYPE_INIT, "event": WS_EVENT_MESSAGE, "data": [message.__dict__ for message in self.message]}) + for node in self.nodes.values(): + await websocket.send_json({"type":WS_TYPE_INIT, "event": WS_EVENT_NODE, "data": {"id": node.num, "name": str(node)}}) + + for message in self.message: + await websocket.send_json({"type":WS_TYPE_INIT, "event": WS_EVENT_MESSAGE, "data": message.__dict__}) except: traceback.print_exc() pass diff --git a/pipboyMESH/readme b/pipboyMESH/readme index 134c0bd..92d9068 100644 --- a/pipboyMESH/readme +++ b/pipboyMESH/readme @@ -1,3 +1,6 @@ Created on MiniMeshT (https://github.com/allanrbo/MiniMeshT) -need install fastapi uvicorn \ No newline at end of file +need install fastapi uvicorn + +python3 -m pip install --user --break-system-packages pyserial-asyncio +python3 -m pip install --user --break-system-packages uvicorn[standart] fastapi \ No newline at end of file diff --git a/pipboyUI/angular.json b/pipboyUI/angular.json index d4aee25..d40ae12 100644 --- a/pipboyUI/angular.json +++ b/pipboyUI/angular.json @@ -68,6 +68,9 @@ }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "proxyConfig": "proxy.conf.json" + }, "configurations": { "production": { "browserTarget": "pipboyUI:build:production" diff --git a/pipboyUI/dist/pipboy-ui/index.html b/pipboyUI/dist/pipboy-ui/index.html index 4c6903e..5eeffe1 100644 --- a/pipboyUI/dist/pipboy-ui/index.html +++ b/pipboyUI/dist/pipboy-ui/index.html @@ -5,11 +5,11 @@ - + - + \ No newline at end of file diff --git a/pipboyUI/dist/pipboy-ui/main.5af7ce4997d859e2.js b/pipboyUI/dist/pipboy-ui/main.5af7ce4997d859e2.js deleted file mode 100644 index fbc1552..0000000 --- a/pipboyUI/dist/pipboy-ui/main.5af7ce4997d859e2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkpipboyUI=self.webpackChunkpipboyUI||[]).push([[179],{166:()=>{function re(n){return"function"==typeof n}function So(n){const t=n(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const Qs=So(n=>function(t){n(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function fr(n,e){if(n){const t=n.indexOf(e);0<=t&&n.splice(t,1)}}class tt{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(re(i))try{i()}catch(o){e=o instanceof Qs?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Am(o)}catch(s){e=e??[],s instanceof Qs?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Qs(e)}}add(e){var t;if(e&&e!==this)if(this.closed)Am(e);else{if(e instanceof tt){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&fr(t,e)}remove(e){const{_finalizers:t}=this;t&&fr(t,e),e instanceof tt&&e._removeParent(this)}}tt.EMPTY=(()=>{const n=new tt;return n.closed=!0,n})();const Sm=tt.EMPTY;function Mm(n){return n instanceof tt||n&&"closed"in n&&re(n.remove)&&re(n.add)&&re(n.unsubscribe)}function Am(n){re(n)?n():n.unsubscribe()}const Fi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Xs={setTimeout(n,e,...t){const{delegate:i}=Xs;return i?.setTimeout?i.setTimeout(n,e,...t):setTimeout(n,e,...t)},clearTimeout(n){const{delegate:e}=Xs;return(e?.clearTimeout||clearTimeout)(n)},delegate:void 0};function Im(n){Xs.setTimeout(()=>{const{onUnhandledError:e}=Fi;if(!e)throw n;e(n)})}function Qc(){}const rM=Xc("C",void 0,void 0);function Xc(n,e,t){return{kind:n,value:e,error:t}}let Oi=null;function Js(n){if(Fi.useDeprecatedSynchronousErrorHandling){const e=!Oi;if(e&&(Oi={errorThrown:!1,error:null}),n(),e){const{errorThrown:t,error:i}=Oi;if(Oi=null,t)throw i}}else n()}class Jc extends tt{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Mm(e)&&e.add(this)):this.destination=dM}static create(e,t,i){return new Mo(e,t,i)}next(e){this.isStopped?tu(function sM(n){return Xc("N",n,void 0)}(e),this):this._next(e)}error(e){this.isStopped?tu(function oM(n){return Xc("E",void 0,n)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?tu(rM,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const lM=Function.prototype.bind;function eu(n,e){return lM.call(n,e)}class cM{constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(i){ea(i)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(i){ea(i)}else ea(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){ea(t)}}}class Mo extends Jc{constructor(e,t,i){let r;if(super(),re(e)||!e)r={next:e??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&Fi.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&eu(e.next,o),error:e.error&&eu(e.error,o),complete:e.complete&&eu(e.complete,o)}):r=e}this.destination=new cM(r)}}function ea(n){Fi.useDeprecatedSynchronousErrorHandling?function aM(n){Fi.useDeprecatedSynchronousErrorHandling&&Oi&&(Oi.errorThrown=!0,Oi.error=n)}(n):Im(n)}function tu(n,e){const{onStoppedNotification:t}=Fi;t&&Xs.setTimeout(()=>t(n,e))}const dM={closed:!0,next:Qc,error:function uM(n){throw n},complete:Qc},nu="function"==typeof Symbol&&Symbol.observable||"@@observable";function ci(n){return n}function Tm(n){return 0===n.length?ci:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}let De=(()=>{class n{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const o=function pM(n){return n&&n instanceof Jc||function fM(n){return n&&re(n.next)&&re(n.error)&&re(n.complete)}(n)&&Mm(n)}(t)?t:new Mo(t,i,r);return Js(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=xm(i))((r,o)=>{const s=new Mo({next:a=>{try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[nu](){return this}pipe(...t){return Tm(t)(this)}toPromise(t){return new(t=xm(t))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=e=>new n(e),n})();function xm(n){var e;return null!==(e=n??Fi.Promise)&&void 0!==e?e:Promise}const mM=So(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let he=(()=>{class n extends De{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new Rm(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new mM}next(t){Js(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){Js(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){Js(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:r,observers:o}=this;return i||r?Sm:(this.currentObservers=null,o.push(t),new tt(()=>{this.currentObservers=null,fr(o,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){const t=new De;return t.source=this,t}}return n.create=(e,t)=>new Rm(e,t),n})();class Rm extends he{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,e)}error(e){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==i?i:Sm}}function km(n){return re(n?.lift)}function Fe(n){return e=>{if(km(e))return e.lift(function(t){try{return n(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ee(n,e,t,i,r){return new gM(n,e,t,i,r)}class gM extends Jc{constructor(e,t,i,r,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){e.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function B(n,e){return Fe((t,i)=>{let r=0;t.subscribe(Ee(i,o=>{i.next(n.call(e,o,r++))}))})}function ui(n){return this instanceof ui?(this.v=n,this):new ui(n)}function Pm(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(n,e||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(f){return function(p){return Promise.resolve(p).then(f,d)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(f,p){i[f]&&(r[f]=function(m){return new Promise(function(_,b){o.push([f,m,_,b])>1||l(f,m)})},p&&(r[f]=p(r[f])))}function l(f,p){try{!function c(f){f.value instanceof ui?Promise.resolve(f.value.v).then(u,d):h(o[0][2],f)}(i[f](p))}catch(m){h(o[0][3],m)}}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Nm(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=function su(n){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&n[e],i=0;if(t)return t.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=n[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=n[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const lu=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Lm(n){return re(n?.then)}function Vm(n){return re(n[nu])}function Bm(n){return Symbol.asyncIterator&&re(n?.[Symbol.asyncIterator])}function Hm(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const jm=function $M(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Um(n){return re(n?.[jm])}function $m(n){return Pm(this,arguments,function*(){const t=n.getReader();try{for(;;){const{value:i,done:r}=yield ui(t.read());if(r)return yield ui(void 0);yield yield ui(i)}}finally{t.releaseLock()}})}function zm(n){return re(n?.getReader)}function Ct(n){if(n instanceof De)return n;if(null!=n){if(Vm(n))return function zM(n){return new De(e=>{const t=n[nu]();if(re(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(lu(n))return function GM(n){return new De(e=>{for(let t=0;t{n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Im)})}(n);if(Bm(n))return Gm(n);if(Um(n))return function qM(n){return new De(e=>{for(const t of n)if(e.next(t),e.closed)return;e.complete()})}(n);if(zm(n))return function KM(n){return Gm($m(n))}(n)}throw Hm(n)}function Gm(n){return new De(e=>{(function YM(n,e){var t,i,r,o;return function Fm(n,e,t,i){return new(t||(t=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function r(o){return o instanceof t?o:new t(function(s){s(o)})}(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Nm(n);!(i=yield t.next()).done;)if(e.next(i.value),e.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}e.complete()})})(n,e).catch(t=>e.error(t))})}function Bn(n,e,t,i=0,r=!1){const o=e.schedule(function(){t(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function Xe(n,e,t=1/0){return re(e)?Xe((i,r)=>B((o,s)=>e(i,o,r,s))(Ct(n(i,r))),t):("number"==typeof e&&(t=e),Fe((i,r)=>function ZM(n,e,t,i,r,o,s,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&e.complete()},f=m=>c{o&&e.next(m),c++;let _=!1;Ct(t(m,u++)).subscribe(Ee(e,b=>{r?.(b),o?f(b):e.next(b)},()=>{_=!0},void 0,()=>{if(_)try{for(c--;l.length&&cp(b)):p(b)}h()}catch(b){e.error(b)}}))};return n.subscribe(Ee(e,f,()=>{d=!0,h()})),()=>{a?.()}}(i,r,n,t)))}function pr(n=1/0){return Xe(ci,n)}const Hn=new De(n=>n.complete());function Wm(n){return n&&re(n.schedule)}function cu(n){return n[n.length-1]}function qm(n){return re(cu(n))?n.pop():void 0}function Ao(n){return Wm(cu(n))?n.pop():void 0}function Km(n,e=0){return Fe((t,i)=>{t.subscribe(Ee(i,r=>Bn(i,n,()=>i.next(r),e),()=>Bn(i,n,()=>i.complete(),e),r=>Bn(i,n,()=>i.error(r),e)))})}function Ym(n,e=0){return Fe((t,i)=>{i.add(n.schedule(()=>t.subscribe(i),e))})}function Zm(n,e){if(!n)throw new Error("Iterable cannot be null");return new De(t=>{Bn(t,e,()=>{const i=n[Symbol.asyncIterator]();Bn(t,e,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function Be(n,e){return e?function rA(n,e){if(null!=n){if(Vm(n))return function JM(n,e){return Ct(n).pipe(Ym(e),Km(e))}(n,e);if(lu(n))return function tA(n,e){return new De(t=>{let i=0;return e.schedule(function(){i===n.length?t.complete():(t.next(n[i++]),t.closed||this.schedule())})})}(n,e);if(Lm(n))return function eA(n,e){return Ct(n).pipe(Ym(e),Km(e))}(n,e);if(Bm(n))return Zm(n,e);if(Um(n))return function nA(n,e){return new De(t=>{let i;return Bn(t,e,()=>{i=n[jm](),Bn(t,e,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void t.error(s)}o?t.complete():t.next(r)},0,!0)}),()=>re(i?.return)&&i.return()})}(n,e);if(zm(n))return function iA(n,e){return Zm($m(n),e)}(n,e)}throw Hm(n)}(n,e):Ct(n)}function uu(...n){const e=Ao(n),t=function XM(n,e){return"number"==typeof cu(n)?n.pop():e}(n,1/0),i=n;return i.length?1===i.length?Ct(i[0]):pr(t)(Be(i,e)):Hn}function Qm(n={}){const{connector:e=(()=>new he),resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let s,a,l,c=0,u=!1,d=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=l=void 0,u=d=!1},p=()=>{const m=s;f(),m?.unsubscribe()};return Fe((m,_)=>{c++,!d&&!u&&h();const b=l=l??e();_.add(()=>{c--,0===c&&!d&&!u&&(a=du(p,r))}),b.subscribe(_),!s&&c>0&&(s=new Mo({next:D=>b.next(D),error:D=>{d=!0,h(),a=du(f,t,D),b.error(D)},complete:()=>{u=!0,h(),a=du(f,i),b.complete()}}),Ct(m).subscribe(s))})(o)}}function du(n,e,...t){if(!0===e)return void n();if(!1===e)return;const i=new Mo({next:()=>{i.unsubscribe(),n()}});return e(...t).subscribe(i)}function pe(n){for(let e in n)if(n[e]===pe)return e;throw Error("Could not find renamed property on target object.")}function hu(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function me(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(me).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function fu(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const oA=pe({__forward_ref__:pe});function _e(n){return n.__forward_ref__=_e,n.toString=function(){return me(this())},n}function V(n){return pu(n)?n():n}function pu(n){return"function"==typeof n&&n.hasOwnProperty(oA)&&n.__forward_ref__===_e}class C extends Error{constructor(e,t){super(function ta(n,e){return`NG0${Math.abs(n)}${e?": "+e.trim():""}`}(e,t)),this.code=e}}function j(n){return"string"==typeof n?n:null==n?"":String(n)}function na(n,e){throw new C(-201,!1)}function It(n,e){null==n&&function ce(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function S(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function fe(n){return{providers:n.providers||[],imports:n.imports||[]}}function ia(n){return Xm(n,ra)||Xm(n,eg)}function Xm(n,e){return n.hasOwnProperty(e)?n[e]:null}function Jm(n){return n&&(n.hasOwnProperty(mu)||n.hasOwnProperty(pA))?n[mu]:null}const ra=pe({\u0275prov:pe}),mu=pe({\u0275inj:pe}),eg=pe({ngInjectableDef:pe}),pA=pe({ngInjectorDef:pe});var F=(()=>((F=F||{})[F.Default=0]="Default",F[F.Host=1]="Host",F[F.Self=2]="Self",F[F.SkipSelf=4]="SkipSelf",F[F.Optional=8]="Optional",F))();let gu;function Gt(n){const e=gu;return gu=n,e}function tg(n,e,t){const i=ia(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&F.Optional?null:void 0!==e?e:void na(me(n))}function di(n){return{toString:n}.toString()}var ln=(()=>((ln=ln||{})[ln.OnPush=0]="OnPush",ln[ln.Default=1]="Default",ln))(),cn=(()=>{return(n=cn||(cn={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",cn;var n})();const ye=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),mr={},ae=[],oa=pe({\u0275cmp:pe}),_u=pe({\u0275dir:pe}),yu=pe({\u0275pipe:pe}),ng=pe({\u0275mod:pe}),Un=pe({\u0275fac:pe}),Io=pe({__NG_ELEMENT_ID__:pe});let gA=0;function Se(n){return di(()=>{const t=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===ln.OnPush,directiveDefs:null,pipeDefs:null,standalone:t,dependencies:t&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||ae,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||cn.Emulated,id:"c"+gA++,styles:n.styles||ae,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=og(n.inputs,i),r.outputs=og(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(ig).filter(rg):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(ft).filter(rg):null,r})}function ig(n){return ue(n)||ht(n)}function rg(n){return null!==n}function ge(n){return di(()=>({type:n.type,bootstrap:n.bootstrap||ae,declarations:n.declarations||ae,imports:n.imports||ae,exports:n.exports||ae,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function og(n,e){if(null==n)return mr;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),t[r]=i,e&&(e[r]=o)}return t}const P=Se;function ue(n){return n[oa]||null}function ht(n){return n[_u]||null}function ft(n){return n[yu]||null}function Tt(n,e){const t=n[ng]||null;if(!t&&!0===e)throw new Error(`Type ${me(n)} does not have '\u0275mod' property.`);return t}const G=11;function Dt(n){return Array.isArray(n)&&"object"==typeof n[1]}function dn(n){return Array.isArray(n)&&!0===n[1]}function Cu(n){return 0!=(8&n.flags)}function ca(n){return 2==(2&n.flags)}function ua(n){return 1==(1&n.flags)}function hn(n){return null!==n.template}function wA(n){return 0!=(256&n[2])}function Bi(n,e){return n.hasOwnProperty(Un)?n[Un]:null}class SA{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function lg(n){return n.type.prototype.ngOnChanges&&(n.setInput=AA),MA}function MA(){const n=ug(this),e=n?.current;if(e){const t=n.previous;if(t===mr)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function AA(n,e,t,i){const r=ug(n)||function IA(n,e){return n[cg]=e}(n,{previous:mr,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[t],l=s[a];o[a]=new SA(l&&l.currentValue,e,s===mr),n[i]=e}const cg="__ngSimpleChanges__";function ug(n){return n[cg]||null}function He(n){for(;Array.isArray(n);)n=n[0];return n}function da(n,e){return He(e[n])}function Rt(n,e){return He(e[n.index])}function Mu(n,e){return n.data[e]}function kt(n,e){const t=e[n];return Dt(t)?t:t[0]}function ha(n){return 64==(64&n[2])}function hi(n,e){return null==e?null:n[e]}function dg(n){n[18]=0}function Au(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const H={lFrame:Cg(null),bindingsEnabled:!0};function fg(){return H.bindingsEnabled}function w(){return H.lFrame.lView}function ne(){return H.lFrame.tView}function fa(n){return H.lFrame.contextLView=n,n[8]}function pa(n){return H.lFrame.contextLView=null,n}function Ge(){let n=pg();for(;null!==n&&64===n.type;)n=n.parent;return n}function pg(){return H.lFrame.currentTNode}function Dn(n,e){const t=H.lFrame;t.currentTNode=n,t.isParent=e}function Iu(){return H.lFrame.isParent}function Tu(){H.lFrame.isParent=!1}function Cr(){return H.lFrame.bindingIndex++}function zn(n){const e=H.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function $A(n,e){const t=H.lFrame;t.bindingIndex=t.bindingRootIndex=n,xu(e)}function xu(n){H.lFrame.currentDirectiveIndex=n}function Ru(n){const e=H.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}function yg(){return H.lFrame.currentQueryIndex}function ku(n){H.lFrame.currentQueryIndex=n}function GA(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function vg(n,e,t){if(t&F.SkipSelf){let r=e,o=n;for(;!(r=r.parent,null!==r||t&F.Host||(r=GA(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;e=r,n=o}const i=H.lFrame=bg();return i.currentTNode=e,i.lView=n,!0}function Fu(n){const e=bg(),t=n[1];H.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function bg(){const n=H.lFrame,e=null===n?null:n.child;return null===e?Cg(n):e}function Cg(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function wg(){const n=H.lFrame;return H.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Dg=wg;function Ou(){const n=wg();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function mt(){return H.lFrame.selectedIndex}function fi(n){H.lFrame.selectedIndex=n}function Ie(){const n=H.lFrame;return Mu(n.tView,n.selectedIndex)}function ma(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t=i)break}else e[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===e){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Oo{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function ya(n,e,t){let i=0;for(;ie){s=o-1;break}}}for(;o>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let Lu=!0;function ba(n){const e=Lu;return Lu=n,e}let sI=0;const En={};function No(n,e){const t=Bu(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,Vu(i.data,n),Vu(e,null),Vu(i.blueprint,null));const r=Ca(n,e),o=n.injectorIndex;if(Ig(r)){const s=wr(r),a=Dr(r,e),l=a[1].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=r,o}function Vu(n,e){n.push(0,0,0,0,0,0,0,0,e)}function Bu(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function Ca(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){if(i=Lg(r),null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function wa(n,e,t){!function aI(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Io)&&(i=t[Io]),null==i&&(i=t[Io]=sI++);const r=255&i;e.data[n+(r>>5)]|=1<=0?255&e:dI:e}(t);if("function"==typeof o){if(!vg(e,n,i))return i&F.Host?Rg(r,0,i):kg(e,t,i,r);try{const s=o(i);if(null!=s||i&F.Optional)return s;na()}finally{Dg()}}else if("number"==typeof o){let s=null,a=Bu(n,e),l=-1,c=i&F.Host?e[16][6]:null;for((-1===a||i&F.SkipSelf)&&(l=-1===a?Ca(n,e):e[a+8],-1!==l&&Ng(i,!1)?(s=e[1],a=wr(l),e=Dr(l,e)):a=-1);-1!==a;){const u=e[1];if(Pg(o,a,u.data)){const d=cI(a,e,t,s,i,c);if(d!==En)return d}l=e[a+8],-1!==l&&Ng(i,e[1].data[a+8]===c)&&Pg(o,a,e)?(s=u,a=wr(l),e=Dr(l,e)):a=-1}}return r}function cI(n,e,t,i,r,o){const s=e[1],a=s.data[n+8],u=Da(a,s,t,null==i?ca(a)&&Lu:i!=s&&0!=(3&a.type),r&F.Host&&o===a);return null!==u?Lo(e,s,u,a):En}function Da(n,e,t,i,r){const o=n.providerIndexes,s=e.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===t)return f}if(r){const f=s[l];if(f&&hn(f)&&f.type===t)return l}return null}function Lo(n,e,t,i){let r=n[t];const o=e.data;if(function tI(n){return n instanceof Oo}(r)){const s=r;s.resolving&&function sA(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new C(-200,`Circular dependency in DI detected for ${n}${t}`)}(function se(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():j(n)}(o[t]));const a=ba(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Gt(s.injectImpl):null;vg(n,i,F.Default);try{r=n[t]=s.factory(void 0,o,n,i),e.firstCreatePass&&t>=i.directiveStart&&function JA(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(i){const s=lg(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o))}(t,o[t],e)}finally{null!==l&&Gt(l),ba(a),s.resolving=!1,Dg()}}return r}function Pg(n,e,t){return!!(t[e+(n>>5)]&1<{const e=n.prototype.constructor,t=e[Un]||Hu(e),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[Un]||Hu(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Hu(n){return pu(n)?()=>{const e=Hu(V(n));return e&&e()}:Bi(n)}function Lg(n){const e=n[1],t=e.type;return 2===t?e.declTNode:1===t?n[6]:null}function Sr(n){return function lI(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r{const i=function ju(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Ar)?l[Ar]:Object.defineProperty(l,Ar,{value:[]})[Ar];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class E{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=S({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ft(n,e){void 0===e&&(e=n);for(let t=0;tArray.isArray(t)?Gn(t,e):e(t))}function Bg(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Ea(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Ho(n,e){const t=[];for(let i=0;i=0?n[1|i]=t:(i=~i,function gI(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function $u(n,e){const t=xr(n,e);if(t>=0)return n[1|t]}function xr(n,e){return function Ug(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const o=i+(r-i>>1),s=n[o<e?r=o:i=o+1}return~(r<((Et=Et||{})[Et.Important=1]="Important",Et[Et.DashCase=2]="DashCase",Et))();const Qu=new Map;let GI=0;const Ju="__ngContext__";function at(n,e){Dt(e)?(n[Ju]=e[20],function qI(n){Qu.set(n[20],n)}(e)):n[Ju]=e}function td(n,e){return undefined(n,e)}function qo(n){const e=n[3];return dn(e)?e[3]:e}function nd(n){return u_(n[13])}function id(n){return u_(n[4])}function u_(n){for(;null!==n&&!dn(n);)n=n[4];return n}function Or(n,e,t,i,r){if(null!=i){let o,s=!1;dn(i)?o=i:Dt(i)&&(s=!0,i=i[0]);const a=He(i);0===n&&null!==t?null==r?g_(e,t,a):Hi(e,t,a,r||null,!0):1===n&&null!==t?Hi(e,t,a,r||null,!0):2===n?function ud(n,e,t){const i=Ta(n,e);i&&function mT(n,e,t,i){n.removeChild(e,t,i)}(n,i,e,t)}(e,a,s):3===n&&e.destroyNode(a),null!=o&&function yT(n,e,t,i,r){const o=t[7];o!==He(t)&&Or(e,n,i,o,r);for(let a=10;a0&&(n[t-1][4]=i[4]);const o=Ea(n,10+e);!function aT(n,e){Ko(n,e,e[G],2,null,null),e[0]=null,e[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function f_(n,e){if(!(128&e[2])){const t=e[G];t.destroyNode&&Ko(n,e,t,3,null,null),function uT(n){let e=n[13];if(!e)return ad(n[1],n);for(;e;){let t=null;if(Dt(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)Dt(e)&&ad(e[1],e),e=e[3];null===e&&(e=n),Dt(e)&&ad(e[1],e),t=e&&e[4]}e=t}}(e)}}function ad(n,e){if(!(128&e[2])){e[2]&=-65,e[2]|=128,function pT(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=t[o+1]];t[o].call(s)}if(null!==i){for(let o=r+1;on,createScript:n=>n,createScriptURL:n=>n})}catch{}return ka}()?.createHTML(n)||n}function I_(n){return function md(){if(void 0===Fa&&(Fa=null,ye.trustedTypes))try{Fa=ye.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Fa}()?.createScriptURL(n)||n}class Ui{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class ET extends Ui{getTypeName(){return"HTML"}}class ST extends Ui{getTypeName(){return"Style"}}class MT extends Ui{getTypeName(){return"Script"}}class AT extends Ui{getTypeName(){return"URL"}}class IT extends Ui{getTypeName(){return"ResourceURL"}}function Pt(n){return n instanceof Ui?n.changingThisBreaksApplicationSecurity:n}function Sn(n,e){const t=function TT(n){return n instanceof Ui&&n.getTypeName()||null}(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}class PT{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(ji(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch{return null}}}class NT{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=ji(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=ji(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0"),!0}endElement(e){const t=e.nodeName.toLowerCase();gd.hasOwnProperty(t)&&!x_.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(O_(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const jT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,UT=/([^\#-~ |!])/g;function O_(n){return n.replace(/&/g,"&").replace(jT,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(UT,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Pa;function P_(n,e){let t=null;try{Pa=Pa||function T_(n){const e=new NT(n);return function LT(){try{return!!(new window.DOMParser).parseFromString(ji(""),"text/html")}catch{return!1}}()?new PT(e):e}(n);let i=e?String(e):"";t=Pa.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=t.innerHTML,t=Pa.getInertBodyElement(i)}while(i!==o);return ji((new HT).sanitizeChildren(yd(t)||t))}finally{if(t){const i=yd(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function yd(n){return"content"in n&&function $T(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var le=(()=>((le=le||{})[le.NONE=0]="NONE",le[le.HTML=1]="HTML",le[le.STYLE=2]="STYLE",le[le.SCRIPT=3]="SCRIPT",le[le.URL=4]="URL",le[le.RESOURCE_URL=5]="RESOURCE_URL",le))();function bd(n){const e=function Zo(){const n=w();return n&&n[12]}();if(e)return I_(e.sanitize(le.RESOURCE_URL,n)||"");if(Sn(n,"ResourceURL"))return I_(Pt(n));throw new C(904,!1)}const Cd=new E("ENVIRONMENT_INITIALIZER"),N_=new E("INJECTOR",-1),L_=new E("INJECTOR_DEF_TYPES");class V_{get(e,t=jo){if(t===jo){const i=new Error(`NullInjectorError: No provider for ${me(e)}!`);throw i.name="NullInjectorError",i}return t}}function QT(...n){return{\u0275providers:B_(0,n)}}function B_(n,...e){const t=[],i=new Set;let r;return Gn(e,o=>{const s=o;wd(s,t,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&H_(r,t),t}function H_(n,e){for(let t=0;t{e.push(o)})}}function wd(n,e,t,i){if(!(n=V(n)))return!1;let r=null,o=Jm(n);const s=!o&&ue(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=Jm(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)wd(c,e,t,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Gn(o.imports,u=>{wd(u,e,t,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&H_(c,e)}if(!a){const c=Bi(r)||(()=>new r);e.push({provide:r,useFactory:c,deps:ae},{provide:L_,useValue:r,multi:!0},{provide:Cd,useValue:()=>y(r),multi:!0})}const l=o.providers;null==l||a||Gn(l,u=>{e.push(u)})}}return r!==n&&void 0!==n.providers}const XT=pe({provide:String,useValue:pe});function Dd(n){return null!==n&&"object"==typeof n&&XT in n}function $i(n){return"function"==typeof n}const Ed=new E("Set Injector scope."),Na={},ex={};let Sd;function La(){return void 0===Sd&&(Sd=new V_),Sd}class gi{}class $_ extends gi{constructor(e,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ad(e,s=>this.processProvider(s)),this.records.set(N_,Pr(void 0,this)),r.has("environment")&&this.records.set(gi,Pr(void 0,this));const o=this.records.get(Ed);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(L_.multi,ae,F.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();for(const e of this._onDestroyHooks)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(e){this._onDestroyHooks.push(e)}runInContext(e){this.assertNotDestroyed();const t=Rr(this),i=Gt(void 0);try{return e()}finally{Rr(t),Gt(i)}}get(e,t=jo,i=F.Default){this.assertNotDestroyed();const r=Rr(this),o=Gt(void 0);try{if(!(i&F.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function ox(n){return"function"==typeof n||"object"==typeof n&&n instanceof E}(e)&&ia(e);a=l&&this.injectableDefInScope(l)?Pr(Md(e),Na):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&F.Self?La():this.parent).get(e,t=i&F.Optional&&t===jo?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[Ma]=s[Ma]||[]).unshift(me(e)),r)throw s;return function II(n,e,t,i){const r=n[Ma];throw e[$g]&&r.unshift(e[$g]),n.message=function TI(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=me(e);if(Array.isArray(e))r=e.map(me).join(" -> ");else if("object"==typeof e){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):me(a)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(EI,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[Ma]=null,n}(s,e,"R3InjectorError",this.source)}throw s}finally{Gt(o),Rr(r)}}resolveInjectorInitializers(){const e=Rr(this),t=Gt(void 0);try{const i=this.get(Cd.multi,ae,F.Self);for(const r of i)r()}finally{Rr(e),Gt(t)}}toString(){const e=[],t=this.records;for(const i of t.keys())e.push(me(i));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(e){let t=$i(e=V(e))?e:V(e&&e.provide);const i=function nx(n){return Dd(n)?Pr(void 0,n.useValue):Pr(function z_(n,e,t){let i;if($i(n)){const r=V(n);return Bi(r)||Md(r)}if(Dd(n))i=()=>V(n.useValue);else if(function U_(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Wu(n.deps||[]));else if(function j_(n){return!(!n||!n.useExisting)}(n))i=()=>y(V(n.useExisting));else{const r=V(n&&(n.useClass||n.provide));if(!function ix(n){return!!n.deps}(n))return Bi(r)||Md(r);i=()=>new r(...Wu(n.deps))}return i}(n),Na)}(e);if($i(e)||!0!==e.multi)this.records.get(t);else{let r=this.records.get(t);r||(r=Pr(void 0,Na,!0),r.factory=()=>Wu(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,i)}hydrate(e,t){return t.value===Na&&(t.value=ex,t.value=t.factory()),"object"==typeof t.value&&t.value&&function rx(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=V(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function Md(n){const e=ia(n),t=null!==e?e.factory:Bi(n);if(null!==t)return t;if(n instanceof E)throw new C(204,!1);if(n instanceof Function)return function tx(n){const e=n.length;if(e>0)throw Ho(e,"?"),new C(204,!1);const t=function hA(n){const e=n&&(n[ra]||n[eg]);if(e){const t=function fA(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new C(204,!1)}function Pr(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function sx(n){return!!n.\u0275providers}function Ad(n,e){for(const t of n)Array.isArray(t)?Ad(t,e):sx(t)?Ad(t.\u0275providers,e):e(t)}class G_{}class cx{resolveComponentFactory(e){throw function lx(n){const e=Error(`No component factory found for ${me(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let zi=(()=>{class n{}return n.NULL=new cx,n})();function ux(){return Nr(Ge(),w())}function Nr(n,e){return new je(Rt(n,e))}let je=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=ux,n})();function dx(n){return n instanceof je?n.nativeElement:n}class Qo{}let fx=(()=>{class n{}return n.\u0275prov=S({token:n,providedIn:"root",factory:()=>null}),n})();class Gi{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const px=new Gi("14.3.0"),Id={};function xd(n){return n.ngOriginalError}class Kn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&xd(e);for(;t&&xd(t);)t=xd(t);return t||null}}function q_(n){return n.ownerDocument}function Yn(n){return n instanceof Function?n():n}function Y_(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const o=e.length;if(r+o===i||n.charCodeAt(r+o)<=32)return r}t=r+1}}const Z_="ng-template";function Ex(n,e,t){let i=0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Y_(f,c,0)||2&i&&c!==h){if(fn(i))return!1;s=!0}}}}else{if(!s&&!fn(i)&&!fn(l))return!1;if(s&&fn(l))continue;s=!1,i=l|1&i}}return fn(i)||s}function fn(n){return 0==(1&n)}function Ax(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let o=!1;for(;r-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!fn(s)&&(e+=J_(o,r),r=""),i=s,o=o||!fn(i);t++}return""!==r&&(e+=J_(o,r)),e}const U={};function de(n){ey(ne(),w(),mt()+n,!1)}function ey(n,e,t,i){if(!i)if(3==(3&e[2])){const o=n.preOrderCheckHooks;null!==o&&ga(e,o,t)}else{const o=n.preOrderHooks;null!==o&&_a(e,o,0,t)}fi(t)}function ry(n,e=null,t=null,i){const r=oy(n,e,t,i);return r.resolveInjectorInitializers(),r}function oy(n,e=null,t=null,i,r=new Set){const o=[t||ae,QT(n)];return i=i||("object"==typeof n?void 0:me(n)),new $_(o,e||La(),i||null,r)}let Ke=(()=>{class n{static create(t,i){if(Array.isArray(t))return ry({name:""},i,t,"");{const r=t.name??"";return ry({name:r},t.parent,t.providers,r)}}}return n.THROW_IF_NOT_FOUND=jo,n.NULL=new V_,n.\u0275prov=S({token:n,providedIn:"any",factory:()=>y(N_)}),n.__NG_ELEMENT_ID__=-1,n})();function g(n,e=F.Default){const t=w();return null===t?y(n,e):Fg(Ge(),t,V(n),e)}function Ba(){throw new Error("invalid")}function Ha(n,e){return n<<17|e<<2}function pn(n){return n>>17&32767}function Pd(n){return 2|n}function Zn(n){return(131068&n)>>2}function Nd(n,e){return-131069&n|e<<2}function Ld(n){return 1|n}function wy(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i22&&ey(n,e,22,!1),t(i,r)}finally{fi(o)}}function qd(n,e,t){!fg()||(function vR(n,e,t,i){const r=t.directiveStart,o=t.directiveEnd;n.firstCreatePass||No(t,e),at(i,e);const s=t.initialInputs;for(let a=r;a0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function Ry(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function ky(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function DR(n,e,t){if(t){if(e.exportAs)for(let i=0;i0&&Xd(t)}}function Xd(n){for(let i=nd(n);null!==i;i=id(i))for(let r=10;r0&&Xd(o)}const t=n[1].components;if(null!==t)for(let i=0;i0&&Xd(r)}}function xR(n,e){const t=kt(e,n),i=t[1];(function RR(n,e){for(let t=e.length;t-1&&(sd(e,i),Ea(t,i))}this._attachedToViewContainer=!1}f_(this._lView[1],this._lView)}onDestroy(e){My(this._lView[1],this._lView,null,e)}markForCheck(){Jd(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Wa(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function cT(n,e){Ko(n,e,e[G],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=e}}class kR extends Xo{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;Wa(e[1],e,e[8],!1)}checkNoChanges(){}get context(){return null}}class nh extends zi{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ue(e);return new Jo(t,this.ngModule)}}function Hy(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class OR{constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,i){const r=this.injector.get(e,Id,i);return r!==Id||t===Id?r:this.parentInjector.get(e,t,i)}}class Jo extends G_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function Fx(n){return n.map(kx).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Hy(this.componentDef.inputs)}get outputs(){return Hy(this.componentDef.outputs)}create(e,t,i,r){let o=(r=r||this.ngModule)instanceof gi?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new OR(e,o):e,a=s.get(Qo,null);if(null===a)throw new C(407,!1);const l=s.get(fx,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function fR(n,e,t){return n.selectRootElement(e,t===cn.ShadowDom)}(c,i,this.componentDef.encapsulation):od(c,u,function FR(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(u)),h=this.componentDef.onPush?288:272,f=Yd(0,null,null,1,0,null,null,null,null,null),p=$a(null,f,null,h,null,null,a,c,l,s,null);let m,_;Fu(p);try{const b=function LR(n,e,t,i,r,o){const s=t[1];t[22]=n;const l=Br(s,22,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(qa(l,c,!0),null!==n&&(ya(r,n,c),null!==l.classes&&hd(r,n,l.classes),null!==l.styles&&E_(r,n,l.styles)));const u=i.createRenderer(n,e),d=$a(t,Sy(e),null,e.onPush?32:16,t[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(wa(No(l,t),s,e.type),ky(s,l),Fy(l,t.length,1)),Ga(t,d),t[22]=d}(d,this.componentDef,p,a,c);if(d)if(i)ya(c,d,["ng-version",px.full]);else{const{attrs:D,classes:v}=function Ox(n){const e=[],t=[];let i=1,r=2;for(;i0&&hd(c,d,v.join(" "))}if(_=Mu(f,22),void 0!==t){const D=_.projection=[];for(let v=0;v=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=va(r.hostAttrs,t=va(t,r.hostAttrs))}}(i)}function ih(n){return n===mr?{}:n===ae?[]:n}function jR(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function UR(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,o)=>{e(i,r,o),t(i,r,o)}:e}function $R(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let Ya=null;function Wi(){if(!Ya){const n=ye.Symbol;if(n&&n.iterator)Ya=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ta(He(q[i.index])):i.index;let I=null;if(!a&&l&&(I=function nk(n,e,t,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,e,r,i.index)),null!==I)(I.__ngLastListenerFn__||I).__ngNextListenerFn__=o,I.__ngLastListenerFn__=o,f=!1;else{o=tv(i,e,d,o,!1);const q=t.listen(b,r,o);h.push(o,q),u&&u.push(r,v,D,D+1)}}else o=tv(i,e,d,o,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const _=m.length;if(_)for(let b=0;b<_;b+=2){const te=e[m[b]][m[b+1]].subscribe(o),Re=h.length;h.push(o,te),u&&u.push(r,i.index,Re,-(Re+1))}}}function ev(n,e,t,i){try{return!1!==t(i)}catch(r){return By(n,r),!1}}function tv(n,e,t,i,r){return function o(s){if(s===Function)return i;Jd(2&n.flags?kt(n.index,e):e);let l=ev(e,0,i,s),c=o.__ngNextListenerFn__;for(;c;)l=ev(e,0,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function Vt(n=1){return function WA(n){return(H.lFrame.contextLView=function qA(n,e){for(;n>0;)e=e[15],n--;return e}(n,H.lFrame.contextLView))[8]}(n)}function ik(n,e){let t=null;const i=function Ix(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r=0}function dh(n,e,t){return mn(n,e,t,!1),dh}function Xt(n,e){return mn(n,e,null,!0),Xt}function mn(n,e,t,i){const r=w(),o=ne(),s=zn(2);o.firstUpdatePass&&function Cv(n,e,t,i){const r=n.data;if(null===r[t+1]){const o=r[mt()],s=function bv(n,e){return e>=n.expandoStartIndex}(n,t);(function Sv(n,e){return 0!=(n.flags&(e?16:32))})(o,i)&&null===e&&!s&&(e=!1),e=function mk(n,e,t,i){const r=Ru(n);let o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=is(t=hh(null,n,e,t,i),e.attrs,i),o=null);else{const s=e.directiveStylingLast;if(-1===s||n[s]!==r)if(t=hh(r,n,e,t,i),null===o){let l=function gk(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==Zn(i))return n[pn(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=hh(null,n,e,l[1],i),l=is(l,e.attrs,i),function _k(n,e,t,i){n[pn(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else o=function yk(n,e,t){let i;const r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=pn(n[a+1]);n[i+1]=Ha(h,a),0!==h&&(n[h+1]=Nd(n[h+1],i)),n[a+1]=function Jx(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=Ha(a,0),0!==a&&(n[a+1]=Nd(n[a+1],i)),a=i;else n[i+1]=Ha(l,0),0===a?a=i:n[l+1]=Nd(n[l+1],i),l=i;c&&(n[i+1]=Pd(n[i+1])),fv(n,u,i,!0),fv(n,u,i,!1),function ok(n,e,t,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof e&&xr(o,e)>=0&&(t[i+1]=Ld(t[i+1]))}(e,u,n,i,o),s=Ha(a,l),o?e.classBindings=s:e.styleBindings=s}(r,o,e,t,s,i)}}(o,n,s,i),e!==U&<(r,s,e)&&function Dv(n,e,t,i,r,o,s,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];Xa(function py(n){return 1==(1&n)}(c)?Ev(l,e,t,r,Zn(c),s):void 0)||(Xa(o)||function fy(n){return 2==(2&n)}(c)&&(o=Ev(l,null,t,r,a,s)),function vT(n,e,t,i,r){if(e)r?n.addClass(t,i):n.removeClass(t,i);else{let o=-1===i.indexOf("-")?void 0:Et.DashCase;null==r?n.removeStyle(t,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=Et.Important),n.setStyle(t,i,r,o))}}(i,s,da(mt(),t),r,o))}(o,o.data[mt()],r,r[G],n,r[s+1]=function Ck(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=me(Pt(n)))),n}(e,t),i,s)}function hh(n,e,t,i,r){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===U&&(h=d?ae:void 0);let f=d?$u(h,i):u===i?h:void 0;if(c&&!Xa(f)&&(f=$u(l,i)),Xa(f)&&(a=f,s))return a;const p=n[r+1];r=s?pn(p):Zn(p)}if(null!==e){let l=o?e.residualClasses:e.residualStyles;null!=l&&(a=$u(l,i))}return a}function Xa(n){return void 0!==n}function Te(n,e=""){const t=w(),i=ne(),r=n+22,o=i.firstCreatePass?Br(i,r,1,e,null):i.data[r],s=t[r]=function rd(n,e){return n.createText(e)}(t[G],e);xa(i,t,s,o),Dn(o,!1)}function ct(n){return Qr("",n,""),ct}function Qr(n,e,t){const i=w(),r=function Ur(n,e,t,i){return lt(n,Cr(),t)?e+j(t)+i:U}(i,n,e,t);return r!==U&&Qn(i,mt(),r),Qr}function fh(n,e,t,i,r,o,s){const a=w(),l=zr(a,n,e,t,i,r,o,s);return l!==U&&Qn(a,mt(),l),fh}function ph(n,e,t){const i=w();return lt(i,Cr(),e)&&Nt(ne(),Ie(),i,n,e,i[G],t,!0),ph}function mh(n,e,t){const i=w();if(lt(i,Cr(),e)){const o=ne(),s=Ie();Nt(o,s,i,n,e,Vy(Ru(o.data),s,i),t,!0)}return mh}const Jr="en-US";let zv=Jr;class Yi{}class gb{}class _b extends Yi{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new nh(this);const i=Tt(e);this._bootstrapComponents=Yn(i.bootstrap),this._r3Injector=oy(e,t,[{provide:Yi,useValue:this},{provide:zi,useValue:this.componentFactoryResolver}],me(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class wh extends gb{constructor(e){super(),this.moduleType=e}create(e){return new _b(this.moduleType,e)}}class jF extends Yi{constructor(e,t,i){super(),this.componentFactoryResolver=new nh(this),this.instance=null;const r=new $_([...e,{provide:Yi,useValue:this},{provide:zi,useValue:this.componentFactoryResolver}],t||La(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function il(n,e,t=null){return new jF(n,e,t).injector}let UF=(()=>{class n{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const i=B_(0,t.type),r=i.length>0?il([i],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,r)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=S({token:n,providedIn:"environment",factory:()=>new n(y(gi))}),n})();function yb(n){n.getStandaloneInjector=e=>e.get(UF).getOrCreateStandaloneInjector(n)}function Eh(n){return e=>{setTimeout(n,void 0,e)}}const we=class pO extends he{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){let r=e,o=t||(()=>null),s=i;if(e&&"object"==typeof e){const l=e;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Eh(o),r&&(r=Eh(r)),s&&(s=Eh(s)));const a=super.subscribe({next:r,error:o,complete:s});return e instanceof tt&&e.add(a),a}};function mO(){return this._results[Wi()]()}class Sh{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Wi(),i=Sh.prototype;i[t]||(i[t]=mO)}get changes(){return this._changes||(this._changes=new we)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const r=Ft(e);(this._changesDetected=!function pI(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=yO,n})();const gO=xn,_O=class extends gO{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e,t){const i=this._declarationTContainer.tViews,r=$a(this._declarationLView,i,e,16,null,i.declTNode,null,null,null,null,t||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),Wd(i,r,e),new Xo(r)}};function yO(){return rl(Ge(),w())}function rl(n,e){return 4&n.type?new _O(e,n,Nr(n,e)):null}let Jt=(()=>{class n{}return n.__NG_ELEMENT_ID__=vO,n})();function vO(){return kb(Ge(),w())}const bO=Jt,xb=class extends bO{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return Nr(this._hostTNode,this._hostLView)}get injector(){return new Er(this._hostTNode,this._hostLView)}get parentInjector(){const e=Ca(this._hostTNode,this._hostLView);if(Ig(e)){const t=Dr(e,this._hostLView),i=wr(e);return new Er(t[1].data[i+8],t)}return new Er(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Rb(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=e.createEmbeddedView(t||{},o);return this.insert(s,r),s}createComponent(e,t,i,r,o){const s=e&&!function Bo(n){return"function"==typeof n}(e);let a;if(s)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?e:new Jo(ue(e)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(gi,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function PA(n){return dn(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new xb(d,d[6],d[3]);h.detach(h.indexOf(e))}}const o=this._adjustIndex(t),s=this._lContainer;!function dT(n,e,t,i){const r=10+i,o=t.length;i>0&&(t[r-1][4]=e),i0)i.push(s[a/2]);else{const c=o[a+1],u=e[-l];for(let d=10;d{class n{constructor(t){this.appInits=t,this.resolve=ll,this.reject=ll,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});t.push(s)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(y(cl,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hs=new E("AppId",{providedIn:"root",factory:function iC(){return`${Lh()}${Lh()}${Lh()}`}});function Lh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const rC=new E("Platform Initializer"),Vh=new E("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),oC=new E("appBootstrapListener"),dl=new E("AnimationModuleType");let YO=(()=>{class n{log(t){console.log(t)}warn(t){console.warn(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Rn=new E("LocaleId",{providedIn:"root",factory:()=>Ce(Rn,F.Optional|F.SkipSelf)||function ZO(){return typeof $localize<"u"&&$localize.locale||Jr}()});class XO{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}let Bh=(()=>{class n{compileModuleSync(t){return new wh(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),o=Yn(Tt(t).declarations).reduce((s,a)=>{const l=ue(a);return l&&s.push(new Jo(l)),s},[]);return new XO(i,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const tP=(()=>Promise.resolve(0))();function Hh(n){typeof Zone>"u"?tP.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ie{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new we(!1),this.onMicrotaskEmpty=new we(!1),this.onStable=new we(!1),this.onError=new we(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function nP(){let n=ye.requestAnimationFrame,e=ye.cancelAnimationFrame;if(typeof Zone<"u"&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function oP(n){const e=()=>{!function rP(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(ye,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Uh(n),n.isCheckStableRunning=!0,jh(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Uh(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,o,s,a)=>{try{return lC(n),t.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&e(),cC(n)}},onInvoke:(t,i,r,o,s,a,l)=>{try{return lC(n),t.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),cC(n)}},onHasTask:(t,i,r,o)=>{t.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Uh(n),jh(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,i,r,o)=>(t.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ie.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(ie.isInAngularZone())throw new C(909,!1)}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,iP,ll,ll);try{return o.runTask(s,t,i)}finally{o.cancelTask(s)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const iP={};function jh(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Uh(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function lC(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function cC(n){n._nesting--,jh(n)}class sP{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new we,this.onMicrotaskEmpty=new we,this.onStable=new we,this.onError=new we}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}const uC=new E(""),hl=new E("");let Gh,$h=(()=>{class n{constructor(t,i,r){this._ngZone=t,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Gh||(function aP(n){Gh=n}(r),r.addToWindow(i)),this._watchAngularEvents(),t.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:()=>{ie.assertNotInAngularZone(),Hh(()=>{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())Hh(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(y(ie),y(zh),y(hl))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),zh=(()=>{class n{constructor(){this._applications=new Map}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return Gh?.findTestabilityInTree(this,t,i)??null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),vi=null;const dC=new E("AllowMultipleToken"),Wh=new E("PlatformDestroyListeners");class hC{constructor(e,t){this.name=e,this.token=t}}function pC(n,e,t=[]){const i=`Platform: ${e}`,r=new E(i);return(o=[])=>{let s=qh();if(!s||s.injector.get(dC,!1)){const a=[...t,...o,{provide:r,useValue:!0}];n?n(a):function uP(n){if(vi&&!vi.get(dC,!1))throw new C(400,!1);vi=n;const e=n.get(gC);(function fC(n){const e=n.get(rC,null);e&&e.forEach(t=>t())})(n)}(function mC(n=[],e){return Ke.create({name:e,providers:[{provide:Ed,useValue:"platform"},{provide:Wh,useValue:new Set([()=>vi=null])},...n]})}(a,i))}return function hP(n){const e=qh();if(!e)throw new C(401,!1);return e}()}}function qh(){return vi?.get(gC)??null}let gC=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const r=function yC(n,e){let t;return t="noop"===n?new sP:("zone.js"===n?void 0:n)||new ie(e),t}(i?.ngZone,function _C(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:ie,useValue:r}];return r.run(()=>{const s=Ke.create({providers:o,parent:this.injector,name:t.moduleType.name}),a=t.create(s),l=a.injector.get(Kn,null);if(!l)throw new C(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{fl(this._modules,a),c.unsubscribe()})}),function vC(n,e,t){try{const i=t();return ns(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(ul);return c.runInitializers(),c.donePromise.then(()=>(function Gv(n){It(n,"Expected localeId to be defined"),"string"==typeof n&&(zv=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Rn,Jr)||Jr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(t,i=[]){const r=bC({},i);return function lP(n,e,t){const i=new wh(t);return Promise.resolve(i)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(t){const i=t.injector.get(no);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new C(403,!1);t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(Wh,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(y(Ke))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function bC(n,e){return Array.isArray(e)?e.reduce(bC,n):{...n,...e}}let no=(()=>{class n{constructor(t,i,r){this._zone=t,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new De(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new De(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{ie.assertNotInAngularZone(),Hh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{ie.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=uu(o,s.pipe(Qm()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,i){const r=t instanceof G_;if(!this._injector.get(ul).done)throw!r&&function gr(n){const e=ue(n)||ht(n)||ft(n);return null!==e&&e.standalone}(t),new C(405,false);let s;s=r?t:this._injector.get(zi).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function cP(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Yi),c=s.create(Ke.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(uC,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),fl(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;fl(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(oC,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>fl(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new C(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(t){return new(t||n)(y(ie),y(gi),y(Kn))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function fl(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let wC=!0,fs=(()=>{class n{}return n.__NG_ELEMENT_ID__=mP,n})();function mP(n){return function gP(n,e,t){if(ca(n)&&!t){const i=kt(n.index,e);return new Xo(i,i)}return 47&n.type?new Xo(e[16],e):null}(Ge(),w(),16==(16&n))}class AC{constructor(){}supports(e){return es(e)}create(e){return new wP(e)}}const CP=(n,e)=>e;class wP{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||CP}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,o=null;for(;t||i;){const s=!i||t&&t.currentIndex{s=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,a,s,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):e=this._addAfter(new DP(t,i),o,r),e}_verifyReinsertion(e,t,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new IC),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new IC),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class DP{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class EP{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class IC{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new EP,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function TC(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||RC()),deps:[[n,new kr,new mi]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new C(901,!1)}}return n.\u0275prov=S({token:n,providedIn:"root",factory:RC}),n})();const TP=pC(null,"core",[]);let xP=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(y(no))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})(),_l=null;function kn(){return _l}const K=new E("DocumentToken");let Xh=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(){return function OP(){return y(FC)}()},providedIn:"platform"}),n})();const PP=new E("Location Initialized");let FC=(()=>{class n extends Xh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return kn().getBaseHref(this._doc)}onPopState(t){const i=kn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=kn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){OC()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){OC()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=S({token:n,factory:function(){return function NP(){return new FC(y(K))}()},providedIn:"platform"}),n})();function OC(){return!!window.history.pushState}function Jh(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function PC(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function ti(n){return n&&"?"!==n[0]?"?"+n:n}let Qi=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(){return Ce(LC)},providedIn:"root"}),n})();const NC=new E("appBaseHref");let LC=(()=>{class n extends Qi{constructor(t,i){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Ce(K).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Jh(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+ti(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const s=this.prepareExternalUrl(r+ti(o));this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){const s=this.prepareExternalUrl(r+ti(o));this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(y(Xh),y(NC,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),LP=(()=>{class n extends Qi{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=Jh(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,o){let s=this.prepareExternalUrl(r+ti(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){let s=this.prepareExternalUrl(r+ti(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(y(Xh),y(NC,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),ms=(()=>{class n{constructor(t){this._subject=new we,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._baseHref=PC(VC(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+ti(i))}normalize(t){return n.stripTrailingSlash(function BP(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,VC(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._locationStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ti(i)),r)}replaceState(t,i="",r=null){this._locationStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ti(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=ti,n.joinWithSlash=Jh,n.stripTrailingSlash=PC,n.\u0275fac=function(t){return new(t||n)(y(Qi))},n.\u0275prov=S({token:n,factory:function(){return function VP(){return new ms(y(Qi))}()},providedIn:"root"}),n})();function VC(n){return n.replace(/\/index.html$/,"")}class SN{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Xi=(()=>{class n{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new SN(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),YC(a,r)}});for(let r=0,o=i.length;r{YC(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(g(Jt),g(xn),g(gl))},n.\u0275dir=P({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function YC(n,e){n.context.$implicit=e.item}let ZC=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new AN,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){QC("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){QC("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(g(Jt),g(xn))},n.\u0275dir=P({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class AN{constructor(){this.$implicit=null,this.ngIf=null}}function QC(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${me(e)}'.`)}let ew=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})();const tw="browser";let o1=(()=>{class n{}return n.\u0275prov=S({token:n,providedIn:"root",factory:()=>new s1(y(K),window)}),n})();class s1{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function a1(n,e){const t=n.getElementById(e)||n.getElementsByName(e)[0];if(t)return t;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),i=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=nw(this.window.history)||nw(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function nw(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class _f extends class P1 extends class FP{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function kP(n){_l||(_l=n)}(new _f)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function N1(){return vs=vs||document.querySelector("base"),vs?vs.getAttribute("href"):null}();return null==t?null:function L1(n){Tl=Tl||document.createElement("a"),Tl.setAttribute("href",n);const e=Tl.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){vs=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function wN(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,o]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}(document.cookie,e)}}let Tl,vs=null;const aw=new E("TRANSITION_ID"),B1=[{provide:cl,useFactory:function V1(n,e,t){return()=>{t.get(ul).donePromise.then(()=>{const i=kn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const xl=new E("EventManagerPlugins");let Rl=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),bs=(()=>{class n extends cw{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(uw),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(uw))}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function uw(n){kn().remove(n)}const yf={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/"},vf=/%COMP%/g;function kl(n,e,t){for(let i=0;i{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Fl=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new bf(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case cn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new q1(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case cn.ShadowDom:return new K1(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=kl(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(y(Rl),y(bs),y(hs))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class bf{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(yf[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){(mw(e)?e.content:e).appendChild(t)}insertBefore(e,t,i){e&&(mw(e)?e.content:e).insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const o=yf[r];o?e.setAttributeNS(o,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=yf[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(Et.DashCase|Et.Important)?e.style.setProperty(t,i,r&Et.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Et.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,fw(i)):this.eventManager.addEventListener(e,t,fw(i))}}function mw(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class q1 extends bf{constructor(e,t,i,r){super(e),this.component=i;const o=kl(r+"-"+i.id,i.styles,[]);t.addStyles(o),this.contentAttr=function z1(n){return"_ngcontent-%COMP%".replace(vf,n)}(r+"-"+i.id),this.hostAttr=function G1(n){return"_nghost-%COMP%".replace(vf,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class K1 extends bf{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=kl(r.id,r.styles,[]);for(let s=0;s{class n extends lw{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const gw=["alt","control","meta","shift"],Z1={"\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"},Q1={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let X1=(()=>{class n extends lw{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>kn().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),gw.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(t,i){let r=Z1[t.key]||t.key,o="";return i.indexOf("code.")>-1&&(r=t.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),gw.forEach(s=>{s!==r&&(0,Q1[s])(t)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(t,i,r){return o=>{n.matchEventFullKeyCode(o,t)&&r.runGuarded(()=>i(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const nL=pC(TP,"browser",[{provide:Vh,useValue:tw},{provide:rC,useValue:function J1(){_f.makeCurrent()},multi:!0},{provide:K,useFactory:function tL(){return function DT(n){pd=n}(document),document},deps:[]}]),vw=new E(""),bw=[{provide:hl,useClass:class H1{addToWindow(e){ye.getAngularTestability=(i,r=!0)=>{const o=e.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},ye.getAllAngularTestabilities=()=>e.getAllTestabilities(),ye.getAllAngularRootElements=()=>e.getAllRootElements(),ye.frameworkStabilizers||(ye.frameworkStabilizers=[]),ye.frameworkStabilizers.push(i=>{const r=ye.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){return null==t?null:e.getTestability(t)??(i?kn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},deps:[]},{provide:uC,useClass:$h,deps:[ie,zh,hl]},{provide:$h,useClass:$h,deps:[ie,zh,hl]}],Cw=[{provide:Ed,useValue:"root"},{provide:Kn,useFactory:function eL(){return new Kn},deps:[]},{provide:xl,useClass:Y1,multi:!0,deps:[K,ie,Vh]},{provide:xl,useClass:X1,multi:!0,deps:[K]},{provide:Fl,useClass:Fl,deps:[Rl,bs,hs]},{provide:Qo,useExisting:Fl},{provide:cw,useExisting:bs},{provide:bs,useClass:bs,deps:[K]},{provide:Rl,useClass:Rl,deps:[xl,ie]},{provide:class l1{},useClass:j1,deps:[]},[]];let ww=(()=>{class n{constructor(t){}static withServerTransition(t){return{ngModule:n,providers:[{provide:hs,useValue:t.appId},{provide:aw,useExisting:hs},B1]}}}return n.\u0275fac=function(t){return new(t||n)(y(vw,12))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[...Cw,...bw],imports:[ew,xP]}),n})(),Dw=(()=>{class n{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=S({token:n,factory:function(t){let i=null;return i=t?new t:function rL(){return new Dw(y(K))}(),i},providedIn:"root"}),n})();typeof window<"u"&&window;let Ol=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(t){let i=null;return i=t?new(t||n):y(Mw),i},providedIn:"root"}),n})(),Mw=(()=>{class n extends Ol{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case le.NONE:return i;case le.HTML:return Sn(i,"HTML")?Pt(i):P_(this._doc,String(i)).toString();case le.STYLE:return Sn(i,"Style")?Pt(i):i;case le.SCRIPT:if(Sn(i,"Script"))return Pt(i);throw new Error("unsafe value used in a script context");case le.URL:return Sn(i,"URL")?Pt(i):Oa(String(i));case le.RESOURCE_URL:if(Sn(i,"ResourceURL"))return Pt(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function xT(n){return new ET(n)}(t)}bypassSecurityTrustStyle(t){return function RT(n){return new ST(n)}(t)}bypassSecurityTrustScript(t){return function kT(n){return new MT(n)}(t)}bypassSecurityTrustUrl(t){return function FT(n){return new AT(n)}(t)}bypassSecurityTrustResourceUrl(t){return function OT(n){return new IT(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=S({token:n,factory:function(t){let i=null;return i=t?new t:function dL(n){return new Mw(n.get(K))}(y(Ke)),i},providedIn:"root"}),n})();function R(...n){return Be(n,Ao(n))}class Mt extends he{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){const{hasError:e,thrownError:t,_value:i}=this;if(e)throw t;return this._throwIfClosed(),i}next(e){super.next(this._value=e)}}const Pl=So(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:hL}=Array,{getPrototypeOf:fL,prototype:pL,keys:mL}=Object;function Aw(n){if(1===n.length){const e=n[0];if(hL(e))return{args:e,keys:null};if(function gL(n){return n&&"object"==typeof n&&fL(n)===pL}(e)){const t=mL(e);return{args:t.map(i=>e[i]),keys:t}}}return{args:n,keys:null}}const{isArray:_L}=Array;function Df(n){return B(e=>function yL(n,e){return _L(e)?n(...e):n(e)}(n,e))}function Iw(n,e){return n.reduce((t,i,r)=>(t[i]=e[r],t),{})}function Ef(...n){const e=Ao(n),t=qm(n),{args:i,keys:r}=Aw(n);if(0===i.length)return Be([],e);const o=new De(function vL(n,e,t=ci){return i=>{Tw(e,()=>{const{length:r}=n,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=Be(n[l],e);let u=!1;c.subscribe(Ee(i,d=>{o[l]=d,u||(u=!0,a--),a||i.next(t(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,e,r?s=>Iw(r,s):ci));return t?o.pipe(Df(t)):o}function Tw(n,e,t){n?Bn(t,n,e):e()}function Nl(...n){return function bL(){return pr(1)}()(Be(n,Ao(n)))}function Ll(n){return new De(e=>{Ct(n()).subscribe(e)})}function io(n,e){const t=re(n)?n:()=>n,i=r=>r.error(t());return new De(e?r=>e.schedule(i,0,r):i)}function Sf(){return Fe((n,e)=>{let t=null;n._refCount++;const i=Ee(e,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(t=null);const r=n._connection,o=t;t=null,r&&(!o||r===o)&&r.unsubscribe(),e.unsubscribe()});n.subscribe(i),i.closed||(t=n.connect())})}class xw extends De{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,km(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new tt;const t=this.getSubject();e.add(this.source.subscribe(Ee(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),e.closed&&(this._connection=null,e=tt.EMPTY)}return e}refCount(){return Sf()(this)}}function Fn(n,e){return Fe((t,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();t.subscribe(Ee(i,l=>{r?.unsubscribe();let c=0;const u=o++;Ct(n(l,u)).subscribe(r=Ee(i,d=>i.next(e?e(l,d,u,c++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function nn(n){return n<=0?()=>Hn:Fe((e,t)=>{let i=0;e.subscribe(Ee(t,r=>{++i<=n&&(t.next(r),n<=i&&t.complete())}))})}function Vl(...n){const e=Ao(n);return Fe((t,i)=>{(e?Nl(n,t,e):Nl(n,t)).subscribe(i)})}function vt(n,e){return Fe((t,i)=>{let r=0;t.subscribe(Ee(i,o=>n.call(e,o,r++)&&i.next(o)))})}function Bl(n){return Fe((e,t)=>{let i=!1;e.subscribe(Ee(t,r=>{i=!0,t.next(r)},()=>{i||t.next(n),t.complete()}))})}function Rw(n=CL){return Fe((e,t)=>{let i=!1;e.subscribe(Ee(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(n())))})}function CL(){return new Pl}function Ci(n,e){const t=arguments.length>=2;return i=>i.pipe(n?vt((r,o)=>n(r,o,i)):ci,nn(1),t?Bl(e):Rw(()=>new Pl))}function wi(n,e){return re(e)?Xe(n,e,1):Xe(n,1)}function Qe(n,e,t){const i=re(n)||e||t?{next:n,error:e,complete:t}:n;return i?Fe((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(Ee(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):ci}function ii(n){return Fe((e,t)=>{let o,i=null,r=!1;i=e.subscribe(Ee(t,void 0,void 0,s=>{o=Ct(n(s,ii(n)(e))),i?(i.unsubscribe(),i=null,o.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(t))})}function wL(n,e,t,i,r){return(o,s)=>{let a=t,l=e,c=0;o.subscribe(Ee(s,u=>{const d=c++;l=a?n(l,u,d):(a=!0,u),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function kw(n,e){return Fe(wL(n,e,arguments.length>=2,!0))}function Mf(n){return n<=0?()=>Hn:Fe((e,t)=>{let i=[];e.subscribe(Ee(t,r=>{i.push(r),n{for(const r of i)t.next(r);t.complete()},void 0,()=>{i=null}))})}function Fw(n,e){const t=arguments.length>=2;return i=>i.pipe(n?vt((r,o)=>n(r,o,i)):ci,Mf(1),t?Bl(e):Rw(()=>new Pl))}function Hl(n){return Fe((e,t)=>{try{e.subscribe(t)}finally{t.add(n)}})}const Y="primary",Cs=Symbol("RouteTitle");class SL{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function ro(n){return new SL(n)}function ML(n,e,t){const i=t.path.split("/");if(i.length>n.length||"full"===t.pathMatch&&(e.hasChildren()||i.lengthi[o]===r)}return n===e}function Pw(n){return Array.prototype.concat.apply([],n)}function Nw(n){return n.length>0?n[n.length-1]:null}function it(n,e){for(const t in n)n.hasOwnProperty(t)&&e(n[t],t)}function Di(n){return lh(n)?n:ns(n)?Be(Promise.resolve(n)):R(n)}const TL={exact:function Bw(n,e,t){if(!er(n.segments,e.segments)||!jl(n.segments,e.segments,t)||n.numberOfChildren!==e.numberOfChildren)return!1;for(const i in e.children)if(!n.children[i]||!Bw(n.children[i],e.children[i],t))return!1;return!0},subset:Hw},Lw={exact:function xL(n,e){return On(n,e)},subset:function RL(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(t=>Ow(n[t],e[t]))},ignored:()=>!0};function Vw(n,e,t){return TL[t.paths](n.root,e.root,t.matrixParams)&&Lw[t.queryParams](n.queryParams,e.queryParams)&&!("exact"===t.fragment&&n.fragment!==e.fragment)}function Hw(n,e,t){return jw(n,e,e.segments,t)}function jw(n,e,t,i){if(n.segments.length>t.length){const r=n.segments.slice(0,t.length);return!(!er(r,t)||e.hasChildren()||!jl(r,t,i))}if(n.segments.length===t.length){if(!er(n.segments,t)||!jl(n.segments,t,i))return!1;for(const r in e.children)if(!n.children[r]||!Hw(n.children[r],e.children[r],i))return!1;return!0}{const r=t.slice(0,n.segments.length),o=t.slice(n.segments.length);return!!(er(n.segments,r)&&jl(n.segments,r,i)&&n.children[Y])&&jw(n.children[Y],e,o,i)}}function jl(n,e,t){return e.every((i,r)=>Lw[t](n[r].parameters,i.parameters))}class Ji{constructor(e,t,i){this.root=e,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ro(this.queryParams)),this._queryParamMap}toString(){return OL.serialize(this)}}class Q{constructor(e,t){this.segments=e,this.children=t,this.parent=null,it(t,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ul(this)}}class ws{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=ro(this.parameters)),this._parameterMap}toString(){return Gw(this)}}function er(n,e){return n.length===e.length&&n.every((t,i)=>t.path===e[i].path)}let Uw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(){return new If},providedIn:"root"}),n})();class If{parse(e){const t=new $L(e);return new Ji(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${Ds(e.root,!0)}`,i=function LL(n){const e=Object.keys(n).map(t=>{const i=n[t];return Array.isArray(i)?i.map(r=>`${$l(t)}=${$l(r)}`).join("&"):`${$l(t)}=${$l(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(e.queryParams);return`${t}${i}${"string"==typeof e.fragment?`#${function PL(n){return encodeURI(n)}(e.fragment)}`:""}`}}const OL=new If;function Ul(n){return n.segments.map(e=>Gw(e)).join("/")}function Ds(n,e){if(!n.hasChildren())return Ul(n);if(e){const t=n.children[Y]?Ds(n.children[Y],!1):"",i=[];return it(n.children,(r,o)=>{o!==Y&&i.push(`${o}:${Ds(r,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function FL(n,e){let t=[];return it(n.children,(i,r)=>{r===Y&&(t=t.concat(e(i,r)))}),it(n.children,(i,r)=>{r!==Y&&(t=t.concat(e(i,r)))}),t}(n,(i,r)=>r===Y?[Ds(n.children[Y],!1)]:[`${r}:${Ds(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Y]?`${Ul(n)}/${t[0]}`:`${Ul(n)}/(${t.join("//")})`}}function $w(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function $l(n){return $w(n).replace(/%3B/gi,";")}function Tf(n){return $w(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zl(n){return decodeURIComponent(n)}function zw(n){return zl(n.replace(/\+/g,"%20"))}function Gw(n){return`${Tf(n.path)}${function NL(n){return Object.keys(n).map(e=>`;${Tf(e)}=${Tf(n[e])}`).join("")}(n.parameters)}`}const VL=/^[^\/()?;=#]+/;function Gl(n){const e=n.match(VL);return e?e[0]:""}const BL=/^[^=?&#]+/,jL=/^[^&#]+/;class $L{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Q([],{}):new Q([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(i[Y]=new Q(e,t)),i}parseSegment(){const e=Gl(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(e),new ws(zl(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Gl(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=Gl(this.remaining);r&&(i=r,this.capture(i))}e[zl(t)]=zl(i)}parseQueryParam(e){const t=function HL(n){const e=n.match(BL);return e?e[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const s=function UL(n){const e=n.match(jL);return e?e[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=zw(t),o=zw(i);if(e.hasOwnProperty(r)){let s=e[r];Array.isArray(s)||(s=[s],e[r]=s),s.push(o)}else e[r]=o}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Gl(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new C(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=Y);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[Y]:new Q([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new C(4011,!1)}}function xf(n){return n.segments.length>0?new Q([],{[Y]:n}):n}function Wl(n){const e={};for(const i of Object.keys(n.children)){const o=Wl(n.children[i]);(o.segments.length>0||o.hasChildren())&&(e[i]=o)}return function zL(n){if(1===n.numberOfChildren&&n.children[Y]){const e=n.children[Y];return new Q(n.segments.concat(e.segments),e.children)}return n}(new Q(n.segments,e))}function tr(n){return n instanceof Ji}function qL(n,e,t,i,r){if(0===t.length)return oo(e.root,e.root,e.root,i,r);const o=function Kw(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new qw(!0,0,n);let e=0,t=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return it(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?e++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new qw(t,e,i)}(t);return o.toRoot()?oo(e.root,e.root,new Q([],{}),i,r):function s(l){const c=function YL(n,e,t,i){if(n.isAbsolute)return new so(e.root,!0,0);if(-1===i)return new so(t,t===e.root,0);return function Yw(n,e,t){let i=n,r=e,o=t;for(;o>r;){if(o-=r,i=i.parent,!i)throw new C(4005,!1);r=i.segments.length}return new so(i,!1,r-o)}(t,i+(Es(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,e,n.snapshot?._urlSegment,l),u=c.processChildren?Ms(c.segmentGroup,c.index,o.commands):kf(c.segmentGroup,c.index,o.commands);return oo(e.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function Es(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Ss(n){return"object"==typeof n&&null!=n&&n.outlets}function oo(n,e,t,i,r){let s,o={};i&&it(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===e?t:Ww(n,e,t);const a=xf(Wl(s));return new Ji(a,o,r)}function Ww(n,e,t){const i={};return it(n.children,(r,o)=>{i[o]=r===e?t:Ww(r,e,t)}),new Q(n.segments,i)}class qw{constructor(e,t,i){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=i,e&&i.length>0&&Es(i[0]))throw new C(4003,!1);const r=i.find(Ss);if(r&&r!==Nw(i))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class so{constructor(e,t,i){this.segmentGroup=e,this.processChildren=t,this.index=i}}function kf(n,e,t){if(n||(n=new Q([],{})),0===n.segments.length&&n.hasChildren())return Ms(n,e,t);const i=function QL(n,e,t){let i=0,r=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=t.length)return o;const s=n.segments[r],a=t[i];if(Ss(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!Qw(l,c,s))return o;i+=2}else{if(!Qw(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,e,t),r=t.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=kf(n.children[s],e,o))}),it(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new Q(n.segments,r)}}function Ff(n,e,t){const i=n.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=Ff(new Q([],{}),0,t))}),e}function Zw(n){const e={};return it(n,(t,i)=>e[i]=`${t}`),e}function Qw(n,e,t){return n==t.path&&On(e,t.parameters)}class ri{constructor(e,t){this.id=e,this.url=t}}class Of extends ri{constructor(e,t,i="imperative",r=null){super(e,t),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class nr extends ri{constructor(e,t,i){super(e,t),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ql extends ri{constructor(e,t,i,r){super(e,t),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Xw extends ri{constructor(e,t,i,r){super(e,t),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class JL extends ri{constructor(e,t,i,r){super(e,t),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eV extends ri{constructor(e,t,i,r){super(e,t),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tV extends ri{constructor(e,t,i,r,o){super(e,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class nV extends ri{constructor(e,t,i,r){super(e,t),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class iV extends ri{constructor(e,t,i,r){super(e,t),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rV{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class oV{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class sV{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class aV{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lV{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cV{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jw{constructor(e,t,i){this.routerEvent=e,this.position=t,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class eD{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Pf(e,this._root);return t?t.children.map(i=>i.value):[]}firstChild(e){const t=Pf(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Nf(e,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return Nf(e,this._root).map(t=>t.value)}}function Pf(n,e){if(n===e.value)return e;for(const t of e.children){const i=Pf(n,t);if(i)return i}return null}function Nf(n,e){if(n===e.value)return[e];for(const t of e.children){const i=Nf(n,t);if(i.length)return i.unshift(e),i}return[]}class oi{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function ao(n){const e={};return n&&n.children.forEach(t=>e[t.value.outlet]=t),e}class tD extends eD{constructor(e,t){super(e),this.snapshot=t,Lf(this,e)}toString(){return this.snapshot.toString()}}function nD(n,e){const t=function dV(n,e){const s=new Kl([],{},{},"",{},Y,e,null,n.root,-1,{});return new rD("",new oi(s,[]))}(n,e),i=new Mt([new ws("",{})]),r=new Mt({}),o=new Mt({}),s=new Mt({}),a=new Mt(""),l=new bn(i,r,s,a,o,Y,e,t.root);return l.snapshot=t.root,new tD(new oi(l,[]),t)}class bn{constructor(e,t,i,r,o,s,a,l){this.url=e,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(B(c=>c[Cs]))??R(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(B(e=>ro(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(B(e=>ro(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function iD(n,e="emptyOnly"){const t=n.pathFromRoot;let i=0;if("always"!==e)for(i=t.length-1;i>=1;){const r=t[i],o=t[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function hV(n){return n.reduce((e,t)=>({params:{...e.params,...t.params},data:{...e.data,...t.data},resolve:{...t.data,...e.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(i))}class Kl{constructor(e,t,i,r,o,s,a,l,c,u,d,h){this.url=e,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[Cs],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=h??u,this._resolve=d}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=ro(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ro(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class rD extends eD{constructor(e,t){super(t),this.url=e,Lf(this,t)}toString(){return oD(this._root)}}function Lf(n,e){e.value._routerState=n,e.children.forEach(t=>Lf(n,t))}function oD(n){const e=n.children.length>0?` { ${n.children.map(oD).join(", ")} } `:"";return`${n.value}${e}`}function Vf(n){if(n.snapshot){const e=n.snapshot,t=n._futureSnapshot;n.snapshot=t,On(e.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),e.fragment!==t.fragment&&n.fragment.next(t.fragment),On(e.params,t.params)||n.params.next(t.params),function AL(n,e){if(n.length!==e.length)return!1;for(let t=0;tOn(t.parameters,e[i].parameters))}(n.url,e.url);return t&&!(!n.parent!=!e.parent)&&(!n.parent||Bf(n.parent,e.parent))}function As(n,e,t){if(t&&n.shouldReuseRoute(e.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=e.value;const r=function pV(n,e,t){return e.children.map(i=>{for(const r of t.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return As(n,i,r);return As(n,i)})}(n,e,t);return new oi(i,r)}{if(n.shouldAttach(e.value)){const o=n.retrieve(e.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>As(n,a)),s}}const i=function mV(n){return new bn(new Mt(n.url),new Mt(n.params),new Mt(n.queryParams),new Mt(n.fragment),new Mt(n.data),n.outlet,n.component,n)}(e.value),r=e.children.map(o=>As(n,o));return new oi(i,r)}}const Hf="ngNavigationCancelingError";function sD(n,e){const{redirectTo:t,navigationBehaviorOptions:i}=tr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=aD(!1,0,e);return r.url=t,r.navigationBehaviorOptions=i,r}function aD(n,e,t){const i=new Error("NavigationCancelingError: "+(n||""));return i[Hf]=!0,i.cancellationCode=e,t&&(i.url=t),i}function lD(n){return cD(n)&&tr(n.url)}function cD(n){return n&&n[Hf]}class gV{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Is,this.attachRef=null}}let Is=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(t,i){const r=this.getOrCreateContext(t);r.outlet=i,this.contexts.set(t,r)}onChildOutletDestroyed(t){const i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new gV,this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Yl=!1;let lo=(()=>{class n{constructor(t,i,r,o,s){this.parentContexts=t,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new we,this.deactivateEvents=new we,this.attachEvents=new we,this.detachEvents=new we,this.name=r||Y,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,Yl);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,Yl);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,Yl);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new C(4013,Yl);this._activatedRoute=t;const r=this.location,s=t._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new _V(t,a,r.injector);if(i&&function yV(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(t){return new(t||n)(g(Is),g(Jt),Sr("name"),g(fs),g(gi))},n.\u0275dir=P({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),n})();class _V{constructor(e,t,i){this.route=e,this.childContexts=t,this.parent=i}get(e,t){return e===bn?this.route:e===Is?this.childContexts:this.parent.get(e,t)}}let jf=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Se({type:n,selectors:[["ng-component"]],standalone:!0,features:[yb],decls:1,vars:0,template:function(t,i){1&t&&Xn(0,"router-outlet")},dependencies:[lo],encapsulation:2}),n})();function uD(n,e){return n.providers&&!n._injector&&(n._injector=il(n.providers,e,`Route: ${n.path}`)),n._injector??e}function $f(n){const e=n.children&&n.children.map($f),t=e?{...n,children:e}:{...n};return!t.component&&!t.loadComponent&&(e||t.loadChildren)&&t.outlet&&t.outlet!==Y&&(t.component=jf),t}function rn(n){return n.outlet||Y}function dD(n,e){const t=n.filter(i=>rn(i)===e);return t.push(...n.filter(i=>rn(i)!==e)),t}function Ts(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class DV{constructor(e,t,i,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=i,this.forwardEvent=r}activate(e){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,e),Vf(this.futureState.root),this.activateChildRoutes(t,i,e)}deactivateChildRoutes(e,t,i){const r=ao(t);e.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),it(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(e,t,i){const r=e.value,o=t?t.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,i);else o&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const i=t.getContext(e.value.outlet),r=i&&e.value.component?i.children:t,o=ao(e);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,t){const i=t.getContext(e.value.outlet),r=i&&e.value.component?i.children:t,o=ao(e);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(e,t,i){const r=ao(t);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new cV(o.value.snapshot))}),e.children.length&&this.forwardEvent(new aV(e.value.snapshot))}activateRoutes(e,t,i){const r=e.value,o=t?t.value:null;if(Vf(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Vf(a.route.value),this.activateChildRoutes(e,null,s.children)}else{const a=Ts(r.snapshot),l=a?.get(zi)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,i)}}class hD{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Zl{constructor(e,t){this.component=e,this.route=t}}function EV(n,e,t){const i=n._root;return xs(i,e?e._root:null,t,[i.value])}function co(n,e){const t=Symbol(),i=e.get(n,t);return i===t?"function"!=typeof n||function dA(n){return null!==ia(n)}(n)?e.get(n):n:i}function xs(n,e,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=ao(e);return n.children.forEach(s=>{(function MV(n,e,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=e?e.value:null,a=t?t.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function AV(n,e,t){if("function"==typeof t)return t(n,e);switch(t){case"pathParamsChange":return!er(n.url,e.url);case"pathParamsOrQueryParamsChange":return!er(n.url,e.url)||!On(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Bf(n,e)||!On(n.queryParams,e.queryParams);default:return!Bf(n,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new hD(i)):(o.data=s.data,o._resolvedData=s._resolvedData),xs(n,e,o.component?a?a.children:null:t,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Zl(a.outlet.component,s))}else s&&Rs(e,a,r),r.canActivateChecks.push(new hD(i)),xs(n,null,o.component?a?a.children:null:t,i,r)})(s,o[s.value.outlet],t,i.concat([s.value]),r),delete o[s.value.outlet]}),it(o,(s,a)=>Rs(s,t.getContext(a),r)),r}function Rs(n,e,t){const i=ao(n),r=n.value;it(i,(o,s)=>{Rs(o,r.component?e?e.children.getContext(s):null:e,t)}),t.canDeactivateChecks.push(new Zl(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}function ks(n){return"function"==typeof n}function zf(n){return n instanceof Pl||"EmptyError"===n?.name}const Ql=Symbol("INITIAL_VALUE");function uo(){return Fn(n=>Ef(n.map(e=>e.pipe(nn(1),Vl(Ql)))).pipe(B(e=>{for(const t of e)if(!0!==t){if(t===Ql)return Ql;if(!1===t||t instanceof Ji)return t}return!0}),vt(e=>e!==Ql),nn(1)))}function fD(n){return function hM(...n){return Tm(n)}(Qe(e=>{if(tr(e))throw sD(0,e)}),B(e=>!0===e))}const Gf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function pD(n,e,t,i,r){const o=Wf(n,e,t);return o.matched?function zV(n,e,t,i){const r=e.canMatch;return r&&0!==r.length?R(r.map(s=>{const a=co(s,n);return Di(function FV(n){return n&&ks(n.canMatch)}(a)?a.canMatch(e,t):n.runInContext(()=>a(e,t)))})).pipe(uo(),fD()):R(!0)}(i=uD(e,i),e,t).pipe(B(s=>!0===s?o:{...Gf})):R(o)}function Wf(n,e,t){if(""===e.path)return"full"===e.pathMatch&&(n.hasChildren()||t.length>0)?{...Gf}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(e.matcher||ML)(t,n,e);if(!r)return{...Gf};const o={};it(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:t.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Xl(n,e,t,i,r="corrected"){if(t.length>0&&function qV(n,e,t){return t.some(i=>Jl(n,e,i)&&rn(i)!==Y)}(n,t,i)){const s=new Q(e,function WV(n,e,t,i){const r={};r[Y]=i,i._sourceSegment=n,i._segmentIndexShift=e.length;for(const o of t)if(""===o.path&&rn(o)!==Y){const s=new Q([],{});s._sourceSegment=n,s._segmentIndexShift=e.length,r[rn(o)]=s}return r}(n,e,i,new Q(t,n.children)));return s._sourceSegment=n,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===t.length&&function KV(n,e,t){return t.some(i=>Jl(n,e,i))}(n,t,i)){const s=new Q(n.segments,function GV(n,e,t,i,r,o){const s={};for(const a of i)if(Jl(n,t,a)&&!r[rn(a)]){const l=new Q([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:e.length,s[rn(a)]=l}return{...r,...s}}(n,e,t,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:t}}const o=new Q(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:t}}function Jl(n,e,t){return(!(n.hasChildren()||e.length>0)||"full"!==t.pathMatch)&&""===t.path}function mD(n,e,t,i){return!!(rn(n)===i||i!==Y&&Jl(e,t,n))&&("**"===n.path||Wf(e,n,t).matched)}function gD(n,e,t){return 0===e.length&&!n.children[t]}const ec=!1;class tc{constructor(e){this.segmentGroup=e||null}}class _D{constructor(e){this.urlTree=e}}function Fs(n){return io(new tc(n))}function yD(n){return io(new _D(n))}class XV{constructor(e,t,i,r,o){this.injector=e,this.configLoader=t,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const e=Xl(this.urlTree.root,[],[],this.config).segmentGroup,t=new Q(e.segments,e.children);return this.expandSegmentGroup(this.injector,this.config,t,Y).pipe(B(o=>this.createUrlTree(Wl(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(ii(o=>{if(o instanceof _D)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof tc?this.noMatchError(o):o}))}match(e){return this.expandSegmentGroup(this.injector,this.config,e.root,Y).pipe(B(r=>this.createUrlTree(Wl(r),e.queryParams,e.fragment))).pipe(ii(r=>{throw r instanceof tc?this.noMatchError(r):r}))}noMatchError(e){return new C(4002,ec)}createUrlTree(e,t,i){const r=xf(e);return new Ji(r,t,i)}expandSegmentGroup(e,t,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(e,t,i).pipe(B(o=>new Q([],o))):this.expandSegment(e,i,t,i.segments,r,!0)}expandChildren(e,t,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Be(r).pipe(wi(o=>{const s=i.children[o],a=dD(t,o);return this.expandSegmentGroup(e,a,s,o).pipe(B(l=>({segment:l,outlet:o})))}),kw((o,s)=>(o[s.outlet]=s.segment,o),{}),Fw())}expandSegment(e,t,i,r,o,s){return Be(i).pipe(wi(a=>this.expandSegmentAgainstRoute(e,t,i,a,r,o,s).pipe(ii(c=>{if(c instanceof tc)return R(null);throw c}))),Ci(a=>!!a),ii((a,l)=>{if(zf(a))return gD(t,r,o)?R(new Q([],{})):Fs(t);throw a}))}expandSegmentAgainstRoute(e,t,i,r,o,s,a){return mD(r,t,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,i,r,o,s):Fs(t):Fs(t)}expandSegmentAgainstRouteUsingRedirect(e,t,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?yD(o):this.lineralizeSegments(i,o).pipe(Xe(s=>{const a=new Q(s,{});return this.expandSegment(e,a,t,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Wf(t,r,o);if(!a)return Fs(t);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?yD(d):this.lineralizeSegments(r,d).pipe(Xe(h=>this.expandSegment(e,t,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(e,t,i,r,o){return"**"===i.path?(e=uD(i,e),i.loadChildren?(i._loadedRoutes?R({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(e,i)).pipe(B(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Q(r,{})))):R(new Q(r,{}))):pD(t,i,r,e).pipe(Fn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(e=i._injector??e,i,r).pipe(Xe(u=>{const d=u.injector??e,h=u.routes,{segmentGroup:f,slicedSegments:p}=Xl(t,a,l,h),m=new Q(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(d,h,m).pipe(B(v=>new Q(a,v)));if(0===h.length&&0===p.length)return R(new Q(a,{}));const _=rn(i)===o;return this.expandSegment(d,m,h,p,_?Y:o,!0).pipe(B(D=>new Q(a.concat(D.segments),D.children)))})):Fs(t)))}getChildConfig(e,t,i){return t.children?R({routes:t.children,injector:e}):t.loadChildren?void 0!==t._loadedRoutes?R({routes:t._loadedRoutes,injector:t._loadedInjector}):function $V(n,e,t,i){const r=e.canLoad;return void 0===r||0===r.length?R(!0):R(r.map(s=>{const a=co(s,n);return Di(function TV(n){return n&&ks(n.canLoad)}(a)?a.canLoad(e,t):n.runInContext(()=>a(e,t)))})).pipe(uo(),fD())}(e,t,i).pipe(Xe(r=>r?this.configLoader.loadChildren(e,t).pipe(Qe(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function ZV(n){return io(aD(ec,3))}())):R({routes:[],injector:e})}lineralizeSegments(e,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return R(i);if(r.numberOfChildren>1||!r.children[Y])return io(new C(4e3,ec));r=r.children[Y]}}applyRedirectCommands(e,t,i){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,i)}applyRedirectCreateUrlTree(e,t,i,r){const o=this.createSegmentGroup(e,t.root,i,r);return new Ji(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const i={};return it(e,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=t[a]}else i[o]=r}),i}createSegmentGroup(e,t,i,r){const o=this.createSegments(e,t.segments,i,r);let s={};return it(t.children,(a,l)=>{s[l]=this.createSegmentGroup(e,a,i,r)}),new Q(o,s)}createSegments(e,t,i,r){return t.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,r):this.findOrReturn(o,i))}findPosParam(e,t,i){const r=i[t.path.substring(1)];if(!r)throw new C(4001,ec);return r}findOrReturn(e,t){let i=0;for(const r of t){if(r.path===e.path)return t.splice(i),r;i++}return e}}class eB{}class iB{constructor(e,t,i,r,o,s,a,l){this.injector=e,this.rootComponentType=t,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const e=Xl(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,e,Y).pipe(B(t=>{if(null===t)return null;const i=new Kl([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Y,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new oi(i,t),o=new rD(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(e){const t=e.value,i=iD(t,this.paramsInheritanceStrategy);t.params=Object.freeze(i.params),t.data=Object.freeze(i.data),e.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(e,t,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(e,t,i):this.processSegment(e,t,i,i.segments,r)}processChildren(e,t,i){return Be(Object.keys(i.children)).pipe(wi(r=>{const o=i.children[r],s=dD(t,r);return this.processSegmentGroup(e,s,o,r)}),kw((r,o)=>r&&o?(r.push(...o),r):null),function DL(n,e=!1){return Fe((t,i)=>{let r=0;t.subscribe(Ee(i,o=>{const s=n(o,r++);(s||e)&&i.next(o),!s&&i.complete()}))})}(r=>null!==r),Bl(null),Fw(),B(r=>{if(null===r)return null;const o=vD(r);return function rB(n){n.sort((e,t)=>e.value.outlet===Y?-1:t.value.outlet===Y?1:e.value.outlet.localeCompare(t.value.outlet))}(o),o}))}processSegment(e,t,i,r,o){return Be(t).pipe(wi(s=>this.processSegmentAgainstRoute(s._injector??e,s,i,r,o)),Ci(s=>!!s),ii(s=>{if(zf(s))return gD(i,r,o)?R([]):R(null);throw s}))}processSegmentAgainstRoute(e,t,i,r,o){if(t.redirectTo||!mD(t,i,r,o))return R(null);let s;if("**"===t.path){const a=r.length>0?Nw(r).parameters:{},l=CD(i)+r.length;s=R({snapshot:new Kl(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,DD(t),rn(t),t.component??t._loadedComponent??null,t,bD(i),l,ED(t),l),consumedSegments:[],remainingSegments:[]})}else s=pD(i,t,r,e).pipe(B(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=CD(i)+l.length;return{snapshot:new Kl(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,DD(t),rn(t),t.component??t._loadedComponent??null,t,bD(i),d,ED(t),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(Fn(a=>{if(null===a)return R(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;e=t._injector??e;const d=t._loadedInjector??e,h=function oB(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(t),{segmentGroup:f,slicedSegments:p}=Xl(i,c,u,h.filter(_=>void 0===_.redirectTo),this.relativeLinkResolution);if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe(B(_=>null===_?null:[new oi(l,_)]));if(0===h.length&&0===p.length)return R([new oi(l,[])]);const m=rn(t)===o;return this.processSegment(d,h,f,p,m?Y:o).pipe(B(_=>null===_?null:[new oi(l,_)]))}))}}function sB(n){const e=n.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function vD(n){const e=[],t=new Set;for(const i of n){if(!sB(i)){e.push(i);continue}const r=e.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),t.add(r)):e.push(i)}for(const i of t){const r=vD(i.children);e.push(new oi(i.value,r))}return e.filter(i=>!t.has(i))}function bD(n){let e=n;for(;e._sourceSegment;)e=e._sourceSegment;return e}function CD(n){let e=n,t=e._segmentIndexShift??0;for(;e._sourceSegment;)e=e._sourceSegment,t+=e._segmentIndexShift??0;return t-1}function DD(n){return n.data||{}}function ED(n){return n.resolve||{}}function SD(n){return"string"==typeof n.title||null===n.title}function qf(n){return Fn(e=>{const t=n(e);return t?Be(t).pipe(B(()=>e)):R(e)})}let MD=(()=>{class n{buildTitle(t){let i,r=t.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Y);return i}getResolvedTitleForRoute(t){return t.data[Cs]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(){return Ce(AD)},providedIn:"root"}),n})(),AD=(()=>{class n extends MD{constructor(t){super(),this.title=t}updateTitle(t){const i=this.buildTitle(t);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(t){return new(t||n)(y(Dw))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class pB{}class gB extends class mB{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const ic=new E("",{providedIn:"root",factory:()=>({})}),Kf=new E("ROUTES");let Yf=(()=>{class n{constructor(t,i){this.injector=t,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return R(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=Di(t.loadComponent()).pipe(Qe(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Hl(()=>{this.componentLoaders.delete(t)})),r=new xw(i,()=>new he).pipe(Sf());return this.componentLoaders.set(t,r),r}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return R({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(B(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(t).injector,c=Pw(l.get(Kf,[],F.Self|F.Optional)));return{routes:c.map($f),injector:l}}),Hl(()=>{this.childrenLoaders.delete(i)})),s=new xw(o,()=>new he).pipe(Sf());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(t){return Di(t()).pipe(Xe(i=>i instanceof gb||Array.isArray(i)?R(i):Be(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(t){return new(t||n)(y(Ke),y(Bh))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class yB{}class vB{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function bB(n){throw n}function CB(n,e,t){return e.parse("/")}const wB={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},DB={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function TD(){const n=Ce(Uw),e=Ce(Is),t=Ce(ms),i=Ce(Ke),r=Ce(Bh),o=Ce(Kf,{optional:!0})??[],s=Ce(ic,{optional:!0})??{},a=Ce(AD),l=Ce(MD,{optional:!0}),c=Ce(yB,{optional:!0}),u=Ce(pB,{optional:!0}),d=new Ve(null,n,e,t,i,r,Pw(o));return c&&(d.urlHandlingStrategy=c),u&&(d.routeReuseStrategy=u),d.titleStrategy=l??a,function EB(n,e){n.errorHandler&&(e.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(e.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(e.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(e.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(e.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(e.canceledNavigationResolution=n.canceledNavigationResolution)}(s,d),d}let Ve=(()=>{class n{constructor(t,i,r,o,s,a,l){this.rootComponentType=t,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new he,this.errorHandler=bB,this.malformedUriErrorHandler=CB,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>R(void 0),this.urlHandlingStrategy=new vB,this.routeReuseStrategy=new gB,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(Yf),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new oV(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new rV(h)),this.ngModule=s.get(Yi),this.console=s.get(YO);const d=s.get(ie);this.isNgZoneEnabled=d instanceof ie&&ie.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function IL(){return new Ji(new Q([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=nD(this.currentUrlTree,this.rootComponentType),this.transitions=new Mt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(t){const i=this.events;return t.pipe(vt(r=>0!==r.id),B(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Fn(r=>{let o=!1,s=!1;return R(r).pipe(Qe(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Fn(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return xD(a.source)&&(this.browserUrlTree=a.extractedUrl),R(a).pipe(Fn(d=>{const h=this.transitions.getValue();return i.next(new Of(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?Hn:Promise.resolve(d)}),function JV(n,e,t,i){return Fn(r=>function QV(n,e,t,i,r){return new XV(n,e,t,i,r).apply()}(n,e,t,r.extractedUrl,i).pipe(B(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Qe(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function lB(n,e,t,i,r,o){return Xe(s=>function nB(n,e,t,i,r,o,s="emptyOnly",a="legacy"){return new iB(n,e,t,i,r,s,a,o).recognize().pipe(Fn(l=>null===l?function tB(n){return new De(e=>e.error(n))}(new eB):R(l)))}(n,e,t,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(B(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Qe(d=>{if(r.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const f=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(f,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new JL(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:p,restoredState:m,extras:_}=a,b=new Of(h,this.serializeUrl(f),p,m);i.next(b);const D=nD(f,this.rootComponentType).snapshot;return R(r={...a,targetSnapshot:D,urlAfterRedirects:f,extras:{..._,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),Hn}),Qe(a=>{const l=new eV(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),B(a=>r={...a,guards:EV(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function PV(n,e){return Xe(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?R({...t,guardsResult:!0}):function NV(n,e,t,i){return Be(n).pipe(Xe(r=>function UV(n,e,t,i,r){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?R(o.map(a=>{const l=Ts(e)??r,c=co(a,l);return Di(function kV(n){return n&&ks(n.canDeactivate)}(c)?c.canDeactivate(n,e,t,i):l.runInContext(()=>c(n,e,t,i))).pipe(Ci())})).pipe(uo()):R(!0)}(r.component,r.route,t,e,i)),Ci(r=>!0!==r,!0))}(s,i,r,n).pipe(Xe(a=>a&&function IV(n){return"boolean"==typeof n}(a)?function LV(n,e,t,i){return Be(e).pipe(wi(r=>Nl(function BV(n,e){return null!==n&&e&&e(new sV(n)),R(!0)}(r.route.parent,i),function VV(n,e){return null!==n&&e&&e(new lV(n)),R(!0)}(r.route,i),function jV(n,e,t){const i=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>function SV(n){const e=n.routeConfig?n.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:n,guards:e}:null}(s)).filter(s=>null!==s).map(s=>Ll(()=>R(s.guards.map(l=>{const c=Ts(s.node)??t,u=co(l,c);return Di(function RV(n){return n&&ks(n.canActivateChild)}(u)?u.canActivateChild(i,n):c.runInContext(()=>u(i,n))).pipe(Ci())})).pipe(uo())));return R(o).pipe(uo())}(n,r.path,t),function HV(n,e,t){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return R(!0);const r=i.map(o=>Ll(()=>{const s=Ts(e)??t,a=co(o,s);return Di(function xV(n){return n&&ks(n.canActivate)}(a)?a.canActivate(e,n):s.runInContext(()=>a(e,n))).pipe(Ci())}));return R(r).pipe(uo())}(n,r.route,t))),Ci(r=>!0!==r,!0))}(i,o,n,e):R(a)),B(a=>({...t,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Qe(a=>{if(r.guardsResult=a.guardsResult,tr(a.guardsResult))throw sD(0,a.guardsResult);const l=new tV(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),vt(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),qf(a=>{if(a.guards.canActivateChecks.length)return R(a).pipe(Qe(l=>{const c=new nV(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Fn(l=>{let c=!1;return R(l).pipe(function cB(n,e){return Xe(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return R(t);let o=0;return Be(r).pipe(wi(s=>function uB(n,e,t,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!SD(r)&&(o[Cs]=r.title),function dB(n,e,t,i){const r=function hB(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return R({});const o={};return Be(r).pipe(Xe(s=>function fB(n,e,t,i){const r=Ts(e)??i,o=co(n,r);return Di(o.resolve?o.resolve(e,t):r.runInContext(()=>o(e,t)))}(n[s],e,t,i).pipe(Ci(),Qe(a=>{o[s]=a}))),Mf(1),function EL(n){return B(()=>n)}(o),ii(s=>zf(s)?Hn:io(s)))}(o,n,e,i).pipe(B(s=>(n._resolvedData=s,n.data=iD(n,t).resolve,r&&SD(r)&&(n.data[Cs]=r.title),null)))}(s.route,i,n,e)),Qe(()=>o++),Mf(1),Xe(s=>o===r.length?R(t):Hn))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Qe({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Qe(l=>{const c=new iV(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),qf(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(Qe(d=>{c.component=d}),B(()=>{})));for(const d of c.children)u.push(...l(d));return u};return Ef(l(a.targetSnapshot.root)).pipe(Bl(),nn(1))}),qf(()=>this.afterPreactivation()),B(a=>{const l=function fV(n,e,t){const i=As(n,e._root,t?t._root:void 0);return new tD(i,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Qe(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,e,t)=>B(i=>(new DV(e,i.targetRouterState,i.currentRouterState,t).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Qe({next(){o=!0},complete(){o=!0}}),Hl(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),ii(a=>{if(s=!0,cD(a)){lD(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new ql(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),lD(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||xD(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new Xw(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return Hn}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next({...this.transitions.value,...t})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const i="popstate"===t.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=t.state?.navigationId?t.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(t.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){this.config=t.map($f),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),qL(c,this.currentUrlTree,t,d,u??null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=tr(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(t,i={skipLocationChange:!1}){return function SB(n){for(let e=0;e{const o=t[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new nr(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,f)=>{a=h,l=f});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(t,i){const r=this.urlSerializer.serialize(t),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,i,r){const o=new ql(t.id,this.serializeUrl(t.extractedUrl),i,r);this.triggerEvent(o),t.resolve(!1)}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}}return n.\u0275fac=function(t){Ba()},n.\u0275prov=S({token:n,factory:function(){return TD()},providedIn:"root"}),n})();function xD(n){return"imperative"!==n}class RD{}let IB=(()=>{class n{constructor(t,i,r,o,s){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(vt(t=>t instanceof nr),wi(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=il(o.providers,t,`Route: ${o.path}`));const s=o._injector??t,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Be(r).pipe(pr())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):R(null);const o=r.pipe(Xe(s=>null===s?R(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return i.loadComponent&&!i._loadedComponent?Be([o,this.loader.loadComponent(i)]).pipe(pr()):o})}}return n.\u0275fac=function(t){return new(t||n)(y(Ve),y(Bh),y(gi),y(RD),y(Yf))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Xf=new E("");let kD=(()=>{class n{constructor(t,i,r={}){this.router=t,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Of?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof nr&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Jw&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.router.triggerEvent(new Jw(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(t){Ba()},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function ho(n,e){return{\u0275kind:n,\u0275providers:e}}function Jf(n){return[{provide:Kf,multi:!0,useValue:n}]}function OD(){const n=Ce(Ke);return e=>{const t=n.get(no);if(e!==t.components[0])return;const i=n.get(Ve),r=n.get(PD);1===n.get(ep)&&i.initialNavigation(),n.get(ND,null,F.Optional)?.setUpPreloading(),n.get(Xf,null,F.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const PD=new E("",{factory:()=>new he}),ep=new E("",{providedIn:"root",factory:()=>1});const ND=new E("");function kB(n){return ho(0,[{provide:ND,useExisting:IB},{provide:RD,useExisting:n}])}const LD=new E("ROUTER_FORROOT_GUARD"),FB=[ms,{provide:Uw,useClass:If},{provide:Ve,useFactory:TD},Is,{provide:bn,useFactory:function FD(n){return n.routerState.root},deps:[Ve]},Yf];function OB(){return new hC("Router",Ve)}let VD=(()=>{class n{constructor(t){}static forRoot(t,i){return{ngModule:n,providers:[FB,[],Jf(t),{provide:LD,useFactory:VB,deps:[[Ve,new mi,new kr]]},{provide:ic,useValue:i||{}},i?.useHash?{provide:Qi,useClass:LP}:{provide:Qi,useClass:LC},{provide:Xf,useFactory:()=>{const n=Ce(Ve),e=Ce(o1),t=Ce(ic);return t.scrollOffset&&e.setOffset(t.scrollOffset),new kD(n,e,t)}},i?.preloadingStrategy?kB(i.preloadingStrategy).\u0275providers:[],{provide:hC,multi:!0,useFactory:OB},i?.initialNavigation?BB(i):[],[{provide:BD,useFactory:OD},{provide:oC,multi:!0,useExisting:BD}]]}}static forChild(t){return{ngModule:n,providers:[Jf(t)]}}}return n.\u0275fac=function(t){return new(t||n)(y(LD,8))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[jf]}),n})();function VB(n){return"guarded"}function BB(n){return["disabled"===n.initialNavigation?ho(3,[{provide:cl,multi:!0,useFactory:()=>{const e=Ce(Ve);return()=>{e.setUpLocationChangeListener()}}},{provide:ep,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?ho(2,[{provide:ep,useValue:0},{provide:cl,multi:!0,deps:[Ke],useFactory:e=>{const t=e.get(PP,Promise.resolve());let i=!1;return()=>t.then(()=>new Promise(o=>{const s=e.get(Ve),a=e.get(PD);(function r(o){e.get(Ve).events.pipe(vt(a=>a instanceof nr||a instanceof ql||a instanceof Xw),B(a=>a instanceof nr||a instanceof ql&&(0===a.code||1===a.code)&&null),vt(a=>null!==a),nn(1)).subscribe(()=>{o()})})(()=>{o(!0),i=!0}),s.afterPreactivation=()=>(o(!0),i||a.closed?R(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const BD=new E("");let tp=(()=>{class n{constructor(t,i){this.route=t,this.router=i,this.navs=[]}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}ngOnInit(){throw new Error("need impl")}isActiveHeader(t){const i=this.route.firstChild?.component?.name==t.component;return i&&(this.currentNav=t),i}selectHeader(t,i=[]){i.push(t.path),this.router.navigate(i)}choiceHeader(t){if(null!=this.currentNav){const i=this.navs.indexOf(this.currentNav);switch(t){case"KeyA":this.selectHeader(i-1<0?this.navs[this.navs.length-1]:this.navs[i-1]);break;case"KeyD":this.selectHeader(i+1>=this.navs.length?this.navs[0]:this.navs[i+1])}}}}return n.\u0275fac=function(t){return new(t||n)(g(bn),g(Ve))},n.\u0275cmp=Se({type:n,selectors:[["abs-navs-header"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})(),HD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Se({type:n,selectors:[["app-status-lower-header"]],decls:2,vars:0,template:function(t,i){1&t&&(ee(0,"p"),Te(1,"status"),J())},encapsulation:2}),n})(),fo=(()=>{class n{}return n.UNKNOWN=0,n.RESERVED=1,n.SYSSTATS=2,n.SPACESTATS=3,n.WIFI=4,n})(),np=(()=>{class n{}return n.UNKNOWN=0,n.SELF=1,n.EXTERNAL=2,n})();class ac{static getRandom(e,t){return Math.random()*(t-e)+e}static getRandomRound(e,t){return Math.round(this.getRandom(e,t))}}let jD=(()=>{class n{constructor(){this.events=new Mt("{}"),console.log("random data to ws create"),setInterval(()=>{this.events.next(JSON.stringify({event:fo.SYSSTATS,device:np.SELF,data:{cpu:ac.getRandom(0,99.9),mem:ac.getRandom(0,400)}})),this.events.next(JSON.stringify({event:fo.SPACESTATS,device:np.SELF,data:{free:ac.getRandom(0,40),total:50,format:"GB"}})),this.events.next(JSON.stringify({event:fo.WIFI,device:np.SELF,data:1==ac.getRandomRound(1,2)?{state:"Connected",ap:"nyk",ip:"192.168.1.2"}:{state:"Disconnected",ap:"",ip:""}}))},1e3)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function jB(n,e){if(1&n){const t=Qa();ee(0,"p",6),nt("click",function(){const o=fa(t).$implicit;return pa(Vt().selectHeader(o))}),Te(1),J()}if(2&n){const t=e.$implicit;Xt("inactiveHeader",!Vt().isActiveHeader(t)),de(1),ct(t.name)}}let ip,UD=(()=>{class n extends tp{constructor(t,i,r){super(t,i),this.ws=r,this.cpu=0,this.mem=0,this.wifi="",super.navs=[{name:"status",path:"status",action:()=>{},component:HD.name},{name:"2",path:"2",action:()=>{},component:""},{name:"3",path:"3",action:()=>{},component:""}]}ngOnInit(){this.ws.events.pipe(B(t=>JSON.parse(t))).subscribe(t=>{t.event==fo.SYSSTATS&&(this.cpu=Math.round(t.data.cpu),this.mem=Math.round(t.data.mem)),t.event==fo.WIFI&&(this.wifi=t.data.ip?`${t.data.state} to ${t.data.ap} (${t.data.ip})`:t.data.state)})}}return n.\u0275fac=function(t){return new(t||n)(g(bn),g(Ve),g(jD))},n.\u0275cmp=Se({type:n,selectors:[["app-stats-header"]],features:[z],decls:14,vars:4,consts:[[2,"display","flex","align-items","center","justify-content","flex-start","padding-left","45px"],["style","text-transform: uppercase;font-weight: bold; margin-bottom: 0; margin-top: 5px; padding-left: 5px",3,"inactiveHeader","click",4,"ngFor","ngForOf"],[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","19.5%"],[1,"footer-text",2,"width","60%"],[2,"text-transform","uppercase","font-weight","bold","margin-bottom","0","margin-top","5px","padding-left","5px",3,"click"]],template:function(t,i){1&t&&(ee(0,"div",0),Zt(1,jB,2,3,"p",1),J(),Xn(2,"router-outlet"),ee(3,"div",2)(4,"div",3)(5,"div",4)(6,"span"),Te(7),J()(),ee(8,"div",5)(9,"span"),Te(10),J()(),ee(11,"div",4)(12,"span"),Te(13),J()()()()),2&t&&(de(1),Qt("ngForOf",i.navs),de(6),Qr("CPU ",i.cpu,"%"),de(3),ct(i.wifi),de(3),Qr("MEM ",i.mem,"MB"))},dependencies:[Xi,lo],encapsulation:2}),n})();try{ip=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ip=!1}let Os,ir,rp,Pn=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function r1(n){return n===tw}(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&&!ip)&&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}}return n.\u0275fac=function(t){return new(t||n)(y(Vh))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function lc(n){return function UB(){if(null==Os&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Os=!0}))}finally{Os=Os||!1}return Os}()?n:!!n.capture}function $B(){if(null==ir){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ir=!1,ir;if("scrollBehavior"in document.documentElement.style)ir=!0;else{const n=Element.prototype.scrollTo;ir=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return ir}function op(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const e=n.shadowRoot.activeElement;if(e===n)break;n=e}return n}function rr(n){return n.composedPath?n.composedPath()[0]:n.target}function sp(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function GD(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function WD(n){return vt((e,t)=>n<=t)}function XB(n,e){return n===e}function ap(n){return Fe((e,t)=>{Ct(n).subscribe(Ee(t,()=>t.complete(),Qc)),!t.closed&&e.subscribe(t)})}function uc(n){return Array.isArray(n)?n:[n]}function ze(n){return null==n?"":"string"==typeof n?n:`${n}px`}function dc(n){return n instanceof je?n.nativeElement:n}let tH=(()=>{class n{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[tH]}),n})();class nH extends tt{constructor(e,t){super()}schedule(e,t=0){return this}}const hc={setInterval(n,e,...t){const{delegate:i}=hc;return i?.setInterval?i.setInterval(n,e,...t):setInterval(n,e,...t)},clearInterval(n){const{delegate:e}=hc;return(e?.clearInterval||clearInterval)(n)},delegate:void 0};class lp extends nH{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var i;if(this.closed)return this;this.state=e;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,t),this}requestAsyncId(e,t,i=0){return hc.setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;null!=t&&hc.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:e,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,fr(i,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}}const KD={now:()=>(KD.delegate||Date).now(),delegate:void 0};class Ps{constructor(e,t=Ps.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,i){return new this.schedulerActionCtor(this,e).schedule(i,t)}}Ps.now=KD.now;class cp extends Ps{constructor(e,t=Ps.now){super(e,t),this.actions=[],this._active=!1}flush(e){const{actions:t}=this;if(this._active)return void t.push(e);let i;this._active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const up=new cp(lp),iH=up,YD=new Set;let mo,oH=(()=>{class n{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):aH}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function sH(n){if(!YD.has(n))try{mo||(mo=document.createElement("style"),mo.setAttribute("type","text/css"),document.head.appendChild(mo)),mo.sheet&&(mo.sheet.insertRule(`@media ${n} {body{ }}`,0),YD.add(n))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return n.\u0275fac=function(t){return new(t||n)(y(Pn))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function aH(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let lH=(()=>{class n{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new he}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return ZD(uc(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let o=Ef(ZD(uc(t)).map(s=>this._registerQuery(s).observable));return o=Nl(o.pipe(nn(1)),o.pipe(WD(1),function rH(n,e=up){return Fe((t,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,i.next(c)}};function l(){const c=s+n,u=e.now();if(u{o=c,s=e.now(),r||(r=e.schedule(l,n),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}(0))),o.pipe(B(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),o={observable:new De(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Vl(i),B(({matches:s})=>({query:t,matches:s})),ap(this._destroySubject)),mql:i};return this._queries.set(t,o),o}}return n.\u0275fac=function(t){return new(t||n)(y(oH),y(ie))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ZD(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}let fc=(()=>{class n{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function hH(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const i=function dH(n){try{return n.frameElement}catch{return null}}(function bH(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(t));if(i&&(-1===eE(i)||!this.isVisible(i)))return!1;let r=t.nodeName.toLowerCase(),o=eE(t);return t.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function yH(n){let e=n.nodeName.toLowerCase(),t="input"===e&&n.type;return"text"===t||"password"===t||"select"===e||"textarea"===e}(t))&&("audio"===r?!!t.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,i){return function vH(n){return!function pH(n){return function gH(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function fH(n){let e=n.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(n)||function mH(n){return function _H(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||JD(n))}(t)&&!this.isDisabled(t)&&(i?.ignoreVisibility||this.isVisible(t))}}return n.\u0275fac=function(t){return new(t||n)(y(Pn))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function JD(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let e=n.getAttribute("tabindex");return!(!e||isNaN(parseInt(e,10)))}function eE(n){if(!JD(n))return null;const e=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class CH{constructor(e,t,i,r,o=!1){this._element=e,this._checker=t,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.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(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){const t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){const i=this._getFirstTabbableElement(t);return i?.focus(e),!!i}return t.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){const t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){const t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;const t=e.children;for(let i=0;i=0;i--){const r=t[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[i]):null;if(r)return r}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(nn(1)).subscribe(e)}}let dp=(()=>{class n{constructor(t,i,r){this._checker=t,this._ngZone=i,this._document=r}create(t,i=!1){return new CH(t,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(t){return new(t||n)(y(fc),y(ie),y(K))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const EH=new E("cdk-input-modality-detector-options"),SH={ignoreKeys:[18,17,224,91,16]},go=lc({passive:!0,capture:!0});let MH=(()=>{class n{constructor(t,i,r,o){this._platform=t,this._mostRecentTarget=null,this._modality=new Mt(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=rr(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(function wH(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}(s)?"keyboard":"mouse"),this._mostRecentTarget=rr(s))},this._onTouchstart=s=>{!function DH(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}(s)?(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=rr(s)):this._modality.next("keyboard")},this._options={...SH,...o},this.modalityDetected=this._modality.pipe(WD(1)),this.modalityChanged=this.modalityDetected.pipe(function QB(n,e=ci){return n=n??XB,Fe((t,i)=>{let r,o=!0;t.subscribe(Ee(i,s=>{const a=e(s);(o||!n(r,a))&&(o=!1,r=a,i.next(s))}))})}()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,go),r.addEventListener("mousedown",this._onMousedown,go),r.addEventListener("touchstart",this._onTouchstart,go)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,go),document.removeEventListener("mousedown",this._onMousedown,go),document.removeEventListener("touchstart",this._onTouchstart,go))}}return n.\u0275fac=function(t){return new(t||n)(y(Pn),y(ie),y(K),y(EH,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const IH=new E("cdk-focus-monitor-default-options"),pc=lc({passive:!0,capture:!0});let hp=(()=>{class n{constructor(t,i,r,o,s){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new he,this._rootNodeFocusAndBlurListener=a=>{for(let c=rr(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||0}monitor(t,i=!1){const r=dc(t);if(!this._platform.isBrowser||1!==r.nodeType)return R(null);const o=function GB(n){if(function zB(){if(null==rp){const n=typeof document<"u"?document.head:null;rp=!(!n||!n.createShadowRoot&&!n.attachShadow)}return rp}()){const e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new he,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=dc(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const o=dc(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),o=rr(t);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(t,i){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,pc),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,pc)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ap(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,pc),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,pc),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(t){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===t||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||t.disabled)return!1;const o=t.labels;if(o)for(let s=0;s{class n{constructor(t,i){this._platform=t,this._document=i,this._breakpointSubscription=Ce(lH).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){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 t=this._document.body.classList;t.remove(fp,nE,iE),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?t.add(fp,nE):2===i&&t.add(fp,iE)}}}return n.\u0275fac=function(t){return new(t||n)(y(Pn),y(K))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),TH=(()=>{class n{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(t){return new(t||n)(y(rE))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[qD]}),n})();const xH=["addListener","removeListener"],RH=["addEventListener","removeEventListener"],kH=["on","off"];function pp(n,e,t,i){if(re(t)&&(i=t,t=void 0),i)return pp(n,e,t).pipe(Df(i));const[r,o]=function PH(n){return re(n.addEventListener)&&re(n.removeEventListener)}(n)?RH.map(s=>a=>n[s](e,a,t)):function FH(n){return re(n.addListener)&&re(n.removeListener)}(n)?xH.map(oE(n,e)):function OH(n){return re(n.on)&&re(n.off)}(n)?kH.map(oE(n,e)):[];if(!r&&lu(n))return Xe(s=>pp(s,e,t))(Ct(n));if(!r)throw new TypeError("Invalid event target");return new De(s=>{const a=(...l)=>s.next(1o(a)})}function oE(n,e){return t=>i=>n[t](e,i)}const Ns={schedule(n){let e=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:i}=Ns;i&&(e=i.requestAnimationFrame,t=i.cancelAnimationFrame);const r=e(o=>{t=void 0,n(o)});return new tt(()=>t?.(r))},requestAnimationFrame(...n){const{delegate:e}=Ns;return(e?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:e}=Ns;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};new class LH extends cp{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;e=e||i.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=i[0])&&e.id===t&&i.shift());if(this._active=!1,r){for(;(e=i[0])&&e.id===t&&i.shift();)e.unsubscribe();throw r}}}(class NH extends lp{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e._scheduled||(e._scheduled=Ns.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(e,t,i);const{actions:o}=e;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(Ns.cancelAnimationFrame(t),e._scheduled=void 0)}});let mp,BH=1;const mc={};function sE(n){return n in mc&&(delete mc[n],!0)}const HH={setImmediate(n){const e=BH++;return mc[e]=!0,mp||(mp=Promise.resolve()),mp.then(()=>sE(e)&&n()),e},clearImmediate(n){sE(n)}},{setImmediate:jH,clearImmediate:UH}=HH,gc={setImmediate(...n){const{delegate:e}=gc;return(e?.setImmediate||jH)(...n)},clearImmediate(n){const{delegate:e}=gc;return(e?.clearImmediate||UH)(n)},delegate:void 0};new class zH extends cp{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;e=e||i.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=i[0])&&e.id===t&&i.shift());if(this._active=!1,r){for(;(e=i[0])&&e.id===t&&i.shift();)e.unsubscribe();throw r}}}(class $H extends lp{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e._scheduled||(e._scheduled=gc.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(e,t,i);const{actions:o}=e;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(gc.clearImmediate(t),e._scheduled=void 0)}});function aE(n,e=up){return function WH(n){return Fe((e,t)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const c=r;r=null,t.next(c)}s&&t.complete()},l=()=>{o=null,s&&t.complete()};e.subscribe(Ee(t,c=>{i=!0,r=c,o||Ct(n(c)).subscribe(o=Ee(t,a,l))},()=>{s=!0,(!i||!o||o.closed)&&t.complete()}))})}(()=>function KH(n=0,e,t=iH){let i=-1;return null!=e&&(Wm(e)?t=e:i=e),new De(r=>{let o=function qH(n){return n instanceof Date&&!isNaN(n)}(n)?+n-t.now():n;o<0&&(o=0);let s=0;return t.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}(n,e))}const YH=new E("cdk-dir-doc",{providedIn:"root",factory:function ZH(){return Ce(K)}}),QH=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let gp=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new we,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function XH(n){const e=n?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&navigator?.language?QH.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(y(YH,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ls=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})(),ej=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new he,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new De(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(aE(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):R()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(vt(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,t)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=dc(i),o=t.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>pp(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(y(ie),y(Pn),y(K,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lE=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new he,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,o=r.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(aE(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(y(Pn),y(ie),y(K,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})(),uE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[Ls,cE,Ls,cE]}),n})();class _p{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class yp extends _p{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class dE extends _p{constructor(e,t,i,r){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class nj extends _p{constructor(e){super(),this.element=e instanceof je?e.nativeElement:e}}class vp{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof yp?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof dE?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof nj?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ij extends vp{constructor(e,t,i,r,o){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector||Ke.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let bp=(()=>{class n extends vp{constructor(t,i,r){super(),this._componentFactoryResolver=t,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new we,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const i=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,o=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),s=i.createComponent(o,i.length,t.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=t,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(t){t.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return n.\u0275fac=function(t){return new(t||n)(g(zi),g(Jt),g(K))},n.\u0275dir=P({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[z]}),n})(),_c=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})();const hE=$B();class rj{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=ze(-this._previousScrollPosition.left),e.style.top=ze(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),hE&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),hE&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class oj{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class fE{enable(){}disable(){}attach(){}}function Cp(n,e){return e.some(t=>n.bottomt.bottom||n.rightt.right)}function pE(n,e){return e.some(t=>n.topt.bottom||n.leftt.right)}class sj{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Cp(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let aj=(()=>{class n{constructor(t,i,r,o){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new fE,this.close=s=>new oj(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new rj(this._viewportRuler,this._document),this.reposition=s=>new sj(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(t){return new(t||n)(y(ej),y(lE),y(ie),y(K))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class mE{constructor(e){if(this.scrollStrategy=new fE,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class lj{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}let gE=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cj=(()=>{class n extends gE{constructor(t,i){super(t),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(t){return new(t||n)(y(K),y(ie,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),uj=(()=>{class n extends gE{constructor(t,i,r){super(t),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=rr(o)},this._clickListener=o=>{const s=rr(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(s)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(o)):d.next(o)}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(t){return new(t||n)(y(K),y(Pn),y(ie,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),yc=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||sp()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;othis._backdropClick.next(d),this._backdropTransitionendHandler=d=>{this._disposeBackdrop(d.target)},this._keydownEvents=new he,this._outsidePointerEvents=new he,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(nn(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 t?.onDestroy&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config={...this._config,...e},this._updateElementSize()}setDirection(e){this._config={...this._config,direction:e},this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=ze(this._config.width),e.height=ze(this._config.height),e.minWidth=ze(this._config.minWidth),e.minHeight=ze(this._config.minHeight),e.maxWidth=ze(this._config.maxWidth),e.maxHeight=ze(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._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(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(e){if(this._animationsDisabled)return void this._disposeBackdrop(e);e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,t,i){const r=uc(t||[]).filter(o=>!!o);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(ap(uu(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const _E="cdk-overlay-connected-position-bounding-box",dj=/([A-Za-z%]+)$/;class hj{constructor(e,t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o,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 he,this._resizeSubscription=tt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(_E),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?o.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&or(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(_E),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r,o;if("center"==i.originX)r=e.left+e.width/2;else{const s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==i.originX?s:a}return t.left<0&&(r-=t.left),o="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,t.top<0&&(o-=t.top),{x:r,y:o}}_getOverlayPoint(e,t,i){let r,o;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,o="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+o}}_getOverlayFit(e,t,i,r){const o=vE(t);let{x:s,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-i.height,p=this._subtractOverflows(o.width,0-s,s+o.width-i.width),m=this._subtractOverflows(o.height,h,f),_=p*m;return{visibleArea:_,isCompletelyWithinViewport:o.width*o.height===_,fitsInViewportVertically:m===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,o=i.right-t.x,s=yE(this._overlayRef.getConfig().minHeight),a=yE(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=o;return(e.fitsInViewportVertically||null!=s&&s<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=vE(t),o=this._viewportRect,s=Math.max(e.x+r.width-o.width,0),a=Math.max(e.y+r.height-o.height,0),l=Math.max(o.top-i.top-e.y,0),c=Math.max(o.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=o.width?c||-s:e.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=ze(i.height),r.top=ze(i.top),r.bottom=ze(i.bottom),r.width=ze(i.width),r.left=ze(i.left),r.right=ze(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=ze(o)),s&&(r.maxWidth=ze(s))}this._lastBoundingBoxSize=i,or(this._boundingBox.style,r)}_resetBoundingBoxStyles(){or(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){or(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();or(i,this._getExactOverlayY(t,e,u)),or(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=ze(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=ze(s.maxWidth):o&&(i.maxWidth="")),or(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=ze(o.y),r}_getExactOverlayX(e,t,i){let s,r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=ze(o.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:pE(e,i),isOriginOutsideView:Cp(e,i),isOverlayClipped:pE(t,i),isOverlayOutsideView:Cp(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?e.offsetX??this._offsetX:e.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&uc(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof je)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function or(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function yE(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(dj);return t&&"px"!==t?null:parseFloat(e)}return n||null}function vE(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const bE="cdk-global-overlay-wrapper";class fj{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(bE),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,d=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",p="",m="";l?m="flex-start":"center"===u?(m="center",h?p=d:f=d):h?"left"===u||"end"===u?(m="flex-end",f=d):("right"===u||"start"===u)&&(m="flex-start",p=d):"left"===u||"start"===u?(m="flex-start",f=d):("right"===u||"end"===u)&&(m="flex-end",p=d),e.position=this._cssPosition,e.marginLeft=l?"0":f,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":p,t.justifyContent=m,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(bE),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let pj=(()=>{class n{constructor(t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new fj}flexibleConnectedTo(t){return new hj(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(y(lE),y(K),y(Pn),y(yc))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mj=0,_o=(()=>{class n{constructor(t,i,r,o,s,a,l,c,u,d,h,f){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new mE(t);return s.direction=s.direction||this._directionality.value,new Vs(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+mj++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(no)),new ij(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(y(aj),y(yc),y(zi),y(pj),y(cj),y(Ke),y(ie),y(K),y(gp),y(ms),y(uj),y(dl,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const yj={provide:new E("cdk-connected-overlay-scroll-strategy"),deps:[_o],useFactory:function _j(n){return()=>n.scrollStrategies.reposition()}};let CE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[_o,yj],imports:[Ls,_c,uE,uE]}),n})();function vj(n,e){}class vc{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}}let wE=(()=>{class n extends vp{constructor(t,i,r,o,s,a,l,c){super(),this._elementRef=t,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const d=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),d},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),i}attachTemplatePortal(t){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,i){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{t.removeEventListener("blur",r),t.removeEventListener("mousedown",r),t.removeAttribute("tabindex")};t.addEventListener("blur",r),t.addEventListener("mousedown",r)})),t.focus(i)}_focusByCssSelector(t,i){let r=this._elementRef.nativeElement.querySelector(t);r&&this._forceFocus(r,i)}_trapFocus(){const t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.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 t=this._config.restoreFocus;let i=null;if("string"==typeof t?i=this._document.querySelector(t):"boolean"==typeof t?i=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(i=t),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=op(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(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 t=this._elementRef.nativeElement,i=op();return t===i||t.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=op())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(t){return new(t||n)(g(je),g(dp),g(K,8),g(vc),g(fc),g(ie),g(Vs),g(hp))},n.\u0275cmp=Se({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(t,i){if(1&t&&Pb(bp,7),2&t){let r;ol(r=function sl(){return function AO(n,e){return n[19].queries[e].queryList}(w(),yg())}())&&(i._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,i){2&t&&Lt("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[z],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){1&t&&Zt(0,vj,0,0,"ng-template",0)},dependencies:[bp],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class wp{constructor(e,t){this.overlayRef=e,this.config=t,this.closed=new he,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!GD(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(e,t){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this.overlayRef.dispose(),i.next(e),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",t=""){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}}const DE=new E("DialogScrollStrategy"),bj=new E("DialogData"),Cj=new E("DefaultDialogConfig"),Dj={provide:DE,deps:[_o],useFactory:function wj(n){return()=>n.scrollStrategies.block()}};let Ej=0,EE=(()=>{class n{constructor(t,i,r,o,s,a){this._overlay=t,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new he,this._afterOpenedAtThisLevel=new he,this._ariaHiddenElements=new Map,this.afterAllClosed=Ll(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vl(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(t,i){(i={...this._defaultOptions||new vc,...i}).id=i.id||"cdk-dialog-"+Ej++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new wp(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(t,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){Dp(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(i=>i.id===t)}ngOnDestroy(){Dp(this._openDialogsAtThisLevel,t=>{!1===t.config.closeOnDestroy&&this._removeOpenDialog(t,!1)}),Dp(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){const i=new mE({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(i.backdropClass=t.backdropClass),i}_attachContainer(t,i,r){const o=r.injector||r.viewContainerRef?.injector,s=[{provide:vc,useValue:r},{provide:wp,useValue:i},{provide:Vs,useValue:t}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=wE;const l=new yp(a,r.viewContainerRef,Ke.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return t.attach(l).instance}_attachDialogContent(t,i,r,o){if(t instanceof xn){const s=this._createInjector(o,i,r,void 0);let a={$implicit:o.data,dialogRef:i};o.templateContext&&(a={...a,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new dE(t,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new yp(t,o.viewContainerRef,s,o.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(t,i,r,o){const s=t.injector||t.viewContainerRef?.injector,a=[{provide:bj,useValue:t.data},{provide:wp,useValue:i}];return t.providers&&("function"==typeof t.providers?a.push(...t.providers(i,t,r)):a.push(...t.providers)),t.direction&&(!s||!s.get(gp,null,F.Optional))&&a.push({provide:gp,useValue:{value:t.direction,change:R()}}),Ke.create({parent:s||o,providers:a})}_removeOpenDialog(t,i){const r=this.openDialogs.indexOf(t);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const i=t.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==t&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(t){return new(t||n)(y(_o),y(Ke),y(Cj,8),y(n,12),y(yc),y(DE))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function Dp(n,e){let t=n.length;for(;t--;)e(n[t])}let Sj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[EE,Dj],imports:[CE,_c,TH,_c]}),n})();const Aj=new E("mat-sanity-checks",{providedIn:"root",factory:function Mj(){return!0}});let Cn=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!sp()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(y(rE),y(Aj,8),y(K))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[Ls,Ls]}),n})();function Ij(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}let xj=(()=>{class n{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Oj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[Cn,Cn]}),n})();class xE{}const si="*";function RE(n,e){return{type:7,name:n,definitions:e,options:{}}}function Sp(n,e=null){return{type:4,styles:e,timings:n}}function kE(n,e=null){return{type:3,steps:n,options:e}}function FE(n,e=null){return{type:2,steps:n,options:e}}function Ei(n){return{type:6,styles:n,offset:null}}function Mp(n,e,t){return{type:0,name:n,styles:e,options:t}}function Ap(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function OE(n=null){return{type:9,options:n}}function PE(n,e,t=null){return{type:11,selector:n,animation:e,options:t}}function NE(n){Promise.resolve().then(n)}class Hs{constructor(e=0,t=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=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){NE(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class LE{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,r=0;const o=this.players.length;0==o?NE(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}function Nj(n,e){}const yo={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Lj={dialogContainer:RE("dialogContainer",[Mp("void, exit",Ei({opacity:0,transform:"scale(0.7)"})),Mp("enter",Ei({transform:"none"})),Ap("* => enter",kE([Sp("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ei({transform:"none",opacity:1})),PE("@*",OE(),{optional:!0})]),yo),Ap("* => void, * => exit",kE([Sp("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ei({opacity:0})),PE("@*",OE(),{optional:!0})]),yo)])};class bc{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,this.enterAnimationDuration=yo.params.enterAnimationDuration,this.exitAnimationDuration=yo.params.exitAnimationDuration}}let Vj=(()=>{class n extends wE{constructor(t,i,r,o,s,a,l,c){super(t,i,r,o,s,a,l,c),this._animationStateChanged=new we}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}}return n.\u0275fac=function(t){return new(t||n)(g(je),g(dp),g(K,8),g(bc),g(fc),g(ie),g(Vs),g(hp))},n.\u0275cmp=Se({type:n,selectors:[["ng-component"]],features:[z],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})(),Bj=(()=>{class n extends Vj{constructor(t,i,r,o,s,a,l,c,u){super(t,i,r,o,s,a,l,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:t,totalTime:i}){"enter"===t?this._openAnimationDone(i):"exit"===t&&this._animationStateChanged.next({state:"closed",totalTime:i})}_onAnimationStart({toState:t,totalTime:i}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||yo.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||yo.params.exitAnimationDuration}}}}return n.\u0275fac=function(t){return new(t||n)(g(je),g(dp),g(K,8),g(bc),g(fc),g(ie),g(Vs),g(fs),g(hp))},n.\u0275cmp=Se({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(t,i){1&t&&ch("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&t&&(ph("id",i._config.id),Lt("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),mh("@dialogContainer",i._getAnimationState()))},features:[z],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){1&t&&Zt(0,Nj,0,0,"ng-template",0)},dependencies:[bp],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Lj.dialogContainer]}}),n})();class VE{constructor(e,t,i){this._ref=e,this._containerInstance=i,this._afterOpened=new he,this._beforeClosed=new he,this._state=0,this.disableClose=t.disableClose,this.id=e.id,i._animationStateChanged.pipe(vt(r=>"opened"===r.state),nn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(vt(r=>"closed"===r.state),nn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),uu(this.backdropClick(),this.keydownEvents().pipe(vt(r=>27===r.keyCode&&!this.disableClose&&!GD(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function Hj(n,e,t){n._closeInteractionType=e,n.close(t)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(vt(t=>"closing"===t.state),nn(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.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(e){let t=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",t=""){return this._ref.updateSize(e,t),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const BE=new E("MatDialogData"),jj=new E("mat-dialog-default-options"),HE=new E("mat-dialog-scroll-strategy"),$j={provide:HE,deps:[_o],useFactory:function Uj(n){return()=>n.scrollStrategies.block()}};let zj=0,Gj=(()=>{class n{constructor(t,i,r,o,s,a,l,c,u,d){this._overlay=t,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new he,this._afterOpenedAtThisLevel=new he,this._idPrefix="mat-dialog-",this.afterAllClosed=Ll(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vl(void 0))),this._scrollStrategy=a,this._dialog=i.get(EE)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,i){let r;(i={...this._defaultOptions||new bc,...i}).id=i.id||`${this._idPrefix}${zj++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(t,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:bc,useValue:i},{provide:vc,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(i=>i.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let i=t.length;for(;i--;)t[i].close()}}return n.\u0275fac=function(t){Ba()},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),jE=(()=>{class n extends Gj{constructor(t,i,r,o,s,a,l,c){super(t,i,o,a,l,s,VE,Bj,BE,c)}}return n.\u0275fac=function(t){return new(t||n)(y(_o),y(Ke),y(ms,8),y(jj,8),y(HE),y(n,12),y(yc),y(dl,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),Tp=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=P({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),Wj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[jE,$j],imports:[Sj,CE,_c,Cn,Cn]}),n})(),vo=(()=>{class n{constructor(){this.keys=new Mt("")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xp=(()=>{class n{constructor(t,i,r,o){this.data=t,this.ref=i,this.sanitazer=r,this.io=o}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}ngOnInit(){this.sub=this.io.keys.subscribe(t=>{"Enter"==t&&this.ref.close()})}}return n.\u0275fac=function(t){return new(t||n)(g(BE),g(VE),g(Ol),g(vo))},n.\u0275cmp=Se({type:n,selectors:[["app-abs-app"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})(),qj=(()=>{class n extends xp{constructor(){super(...arguments),this.clockTxt="",this.inverval=null}ngOnInit(){super.ngOnInit(),this.genClock(),null==this.inverval&&(this.inverval=setInterval(()=>{this.genClock()},1e3))}genClock(){this.clockTxt=(new Date).toLocaleTimeString()}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=We(n)))(i||n)}}(),n.\u0275cmp=Se({type:n,selectors:[["app-clock-app"]],features:[z],decls:4,vars:1,consts:[["mat-dialog-content",""],[2,"display","flex","justify-content","center"],[2,"font-family","TechMono, sans-serif","font-size","60px"]],template:function(t,i){1&t&&(ee(0,"div",0)(1,"div",1)(2,"p",2),Te(3),J()()()),2&t&&(de(3),ct(i.clockTxt))},dependencies:[Tp],encapsulation:2}),n})(),Kj=(()=>{class n extends xp{constructor(){super(...arguments),this.content={}}ngOnInit(){super.ngOnInit(),this.content.url=this.sanitazer.bypassSecurityTrustResourceUrl(this.data.url)}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=We(n)))(i||n)}}(),n.\u0275cmp=Se({type:n,selectors:[["iframe-opener"]],features:[z],decls:2,vars:1,consts:[["mat-dialog-content",""],["width","100%","height","100%",3,"src"]],template:function(t,i){1&t&&(ee(0,"div",0),Xn(1,"iframe",1),J()),2&t&&(de(1),Qt("src",i.content.url,bd))},dependencies:[Tp]}),n})(),UE=(()=>{class n{constructor(){this.elements=[],this.elementsRight=[],this.currentSide="LEFT"}choiceItem(t){switch(this.currentSide){case"LEFT":return this.choiceLeft(t);case"RIGHT":return this.choiceRight(t)}}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}choiceLeft(t){if("LEFT"!=this.currentSide)return;let i=this.elements.indexOf(this.selected);switch(t){case"KeyS":i+1>=this.elements.length&&(i=-1),this.selected=this.elements[i+1];break;case"KeyW":i-1<0&&(i=this.elements.length),this.selected=this.elements[i-1];break;case"Enter":this.selected.action()}}choiceRight(t){if("RIGHT"!=this.currentSide)return;let i=this.elementsRight.indexOf(this.selectedRight);switch(t){case"KeyS":i+1>=this.elementsRight.length&&(i=-1),this.selectedRight=this.elementsRight[i+1];break;case"KeyW":i-1<0&&(i=this.elementsRight.length),this.selectedRight=this.elementsRight[i-1];break;case"Enter":this.selectedRight.action()}}ngOnInit(){throw new Error("need impl")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Se({type:n,selectors:[["ng-component"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})();function Yj(n,e){if(1&n&&(ee(0,"p",5),Te(1),J()),2&n){const t=e.$implicit,i=e.index,r=Vt().index,o=Vt();dh("text-transform",o.caps?"uppercase":""),Xt("keyboard_current",o.isCurrentKey(r,i)),de(1),ct(t)}}function Zj(n,e){if(1&n&&(ee(0,"div",3),Zt(1,Yj,2,5,"p",4),J()),2&n){const t=e.$implicit;de(1),Qt("ngForOf",t)}}let Qj=(()=>{class n extends xp{constructor(){super(...arguments),this.keyboard=[],this.keyboards={ru:["\u0439\u0446\u0443\u043a\u0435\u043d\u0433\u0448\u0449\u0437\u0445\u044a".split(""),"\u0444\u044b\u0432\u0430\u043f\u0440\u043e\u043b\u0434\u0436\u044d".split(""),"\u044f\u0447\u0441\u043c\u0438\u0442\u044c\u0431\u044e.,".split("")],en:["qwertyuiop[]".split(""),"asdfghjkl;'\"".split(""),"zxcvbnm,./".split("")]},this.current="ru",this.text="",this.caps=!1,this.x=0,this.y=0}isCurrentKey(t,i){return t==this.x&&i==this.y}createKeyboard(){this.x=0,this.y=0,this.keyboard=[],this.keyboard.push("1234567890-=".split("").concat(["<--"])),this.keyboards[this.current].forEach(t=>{this.keyboard.push(t)}),this.keyboard.push(["change","caps","space","wipe","exit","save"])}closeKeyboard(t=!1){this.ref.close(t?this.text:null)}ngOnInit(){this.createKeyboard(),this.sub=this.io.keys.subscribe(t=>{switch(t){case"KeyW":return this.x<=0&&(this.x=this.keyboard.length),this.x--,void(this.keyboard[this.x].length=this.keyboard.length-1&&(this.x=-1),this.x++,this.keyboard[this.x].length=this.keyboard[this.x].length-1&&(this.y=-1),this.y++;break;case"Enter":{const i=this.keyboard[this.x][this.y];switch(i){case"change":switch(this.current){case"en":this.current="ru";break;case"ru":this.current="en"}this.createKeyboard();break;case"caps":this.caps=!this.caps;break;case"wipe":this.text="";break;case"space":this.text+=" ";break;case"exit":this.closeKeyboard();break;case"save":this.closeKeyboard(!0);break;case"<--":this.text=this.text.slice(0,-1);break;default:this.text+=this.caps?i.toUpperCase():i}break}}})}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=We(n)))(i||n)}}(),n.\u0275cmp=Se({type:n,selectors:[["app-keyboard"]],features:[z],decls:7,vars:2,consts:[["mat-dialog-content",""],[2,"display","flex","justify-content","center","height","150px","word-break","break-all","align-items","center","border","1px solid rgb(0 242 0 / 30%)"],["style","display: flex; flex-direction: row; justify-content: space-between",4,"ngFor","ngForOf"],[2,"display","flex","flex-direction","row","justify-content","space-between"],["class","keyboard_key",3,"keyboard_current","text-transform",4,"ngFor","ngForOf"],[1,"keyboard_key"]],template:function(t,i){1&t&&(ee(0,"div",0)(1,"div")(2,"div",1)(3,"p"),Te(4),J()(),ee(5,"div"),Zt(6,Zj,2,1,"div",2),J()()()),2&t&&(de(4),ct(i.text),de(2),Qt("ngForOf",i.keyboard))},dependencies:[Xi,Tp],encapsulation:2}),n})(),$E=(()=>{class n{constructor(){this.inApp=!1}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Xj{}class Si{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),o=r.toLowerCase(),s=t.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let i=e[t];const r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Si?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Si;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Si?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const o=e.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class Jj{encodeKey(e){return GE(e)}encodeValue(e){return GE(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const t2=/%(\d[a-f0-9])/gi,n2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function GE(n){return encodeURIComponent(n).replace(t2,(e,t)=>n2[t]??e)}function Cc(n){return`${n}`}class Mi{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Jj,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function e2(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t],r=Array.isArray(i)?i.map(Cc):[Cc(i)];this.map.set(t,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)?r.forEach(o=>{t.push({param:i,value:o,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Mi({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(Cc(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let i=this.map.get(e.param)||[];const r=i.indexOf(Cc(e.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class r2{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function WE(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function qE(n){return typeof Blob<"u"&&n instanceof Blob}function KE(n){return typeof FormData<"u"&&n instanceof FormData}class js{constructor(e,t,i,r){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function o2(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Si),this.context||(this.context=new r2),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ad.set(h,e.setHeaders[h]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((d,h)=>d.set(h,e.setParams[h]),c)),new js(t,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var rt=(()=>((rt=rt||{})[rt.Sent=0]="Sent",rt[rt.UploadProgress=1]="UploadProgress",rt[rt.ResponseHeader=2]="ResponseHeader",rt[rt.DownloadProgress=3]="DownloadProgress",rt[rt.Response=4]="Response",rt[rt.User=5]="User",rt))();class Rp extends class a2{constructor(e,t=200,i="OK"){this.headers=e.headers||new Si,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=rt.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Rp({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function kp(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let ZE=(()=>{class n{constructor(t){this.handler=t}request(t,i,r={}){let o;if(t instanceof js)o=t;else{let l,c;l=r.headers instanceof Si?r.headers:new Si(r.headers),r.params&&(c=r.params instanceof Mi?r.params:new Mi({fromObject:r.params})),o=new js(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=R(o).pipe(wi(l=>this.handler.handle(l)));if(t instanceof js||"events"===r.observe)return s;const a=s.pipe(vt(l=>l instanceof Rp));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(B(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(B(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(B(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(B(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new Mi).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,kp(r,i))}post(t,i,r={}){return this.request("POST",t,kp(r,i))}put(t,i,r={}){return this.request("PUT",t,kp(r,i))}}return n.\u0275fac=function(t){return new(t||n)(y(Xj))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const c2=["*"];let wc;function Us(n){return function u2(){if(void 0===wc&&(wc=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(wc=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return wc}()?.createHTML(n)||n}function QE(n){return Error(`Unable to find icon with the name "${n}"`)}function XE(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function JE(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class sr{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}}let Dc=(()=>{class n{constructor(t,i,r,o){this._httpClient=t,this._sanitizer=i,this._errorHandler=o,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=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,o){return this._addSvgIconConfig(t,i,new sr(r,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,o){const s=this._sanitizer.sanitize(le.HTML,r);if(!s)throw JE(r);const a=Us(s);return this._addSvgIconConfig(t,i,new sr("",a,o))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new sr(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const o=this._sanitizer.sanitize(le.HTML,i);if(!o)throw JE(i);const s=Us(o);return this._addSvgIconSetConfig(t,new sr("",s,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(le.RESOURCE_URL,t);if(!i)throw XE(t);const r=this._cachedIconsByUrl.get(i);return r?R(Ec(r)):this._loadSvgIconFromConfig(new sr(t,null)).pipe(Qe(o=>this._cachedIconsByUrl.set(i,o)),B(o=>Ec(o)))}getNamedSvgIcon(t,i=""){const r=e0(i,t);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,t),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(t,s):io(QE(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?R(Ec(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(B(i=>Ec(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);return r?R(r):function zE(...n){const e=qm(n),{args:t,keys:i}=Aw(n),r=new De(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(i?Iw(i,a):a),o.complete())}))}});return e?r.pipe(Df(e)):r}(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(ii(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(le.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),R(null)})))).pipe(B(()=>{const s=this._extractIconWithNameFromAnySet(t,i);if(!s)throw QE(t);return s}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,t,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Qe(i=>t.svgText=i),B(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?R(null):this._fetchIcon(t).pipe(Qe(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const o=t.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(Us(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString(Us("")),r=t.attributes;for(let o=0;oUs(c)),Hl(()=>this._inProgressUrlFetches.delete(s)),Qm());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(e0(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;re?e.pathname+e.search:""}}}),t0=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],y2=t0.map(n=>`[${n}]`).join(", "),v2=/^url\(['"]?#(.*?)['"]?\)$/;let n0=(()=>{class n extends p2{constructor(t,i,r,o,s,a){super(t),this._iconRegistry=i,this._location=o,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=tt.EMPTY,a&&(a.color&&(this.color=this.defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=function JB(n){return null!=n&&"false"!=`${n}`}(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>t.classList.remove(r)),i.forEach(r=>t.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(y2),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match(v2):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(nn(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(g(je),g(Dc),Sr("aria-hidden"),g(g2),g(Kn),g(m2,8))},n.\u0275cmp=Se({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(t,i){2&t&&(Lt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),Xt("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[z],ngContentSelectors:c2,decls:1,vars:0,template:function(t,i){1&t&&(function nv(n){const e=w()[16][6];if(!e.projection){const i=e.projection=Ho(n?n.length:1,null),r=i.slice();let o=e.child;for(;null!==o;){const s=n?ik(o,n):0;null!==s&&(r[s]?r[s].projectionNext=o:i[s]=o,r[s]=o),o=o.next}}}(),function iv(n,e=0,t){const i=w(),r=ne(),o=Br(r,22+n,16,null,t||null);null===o.projection&&(o.projection=e),Tu(),64!=(64&o.flags)&&function _T(n,e,t){D_(e[G],0,e,t,p_(n,t,e),y_(t.parent||e[6],t,e))}(r,i,o)}(0))},styles:[".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}),n})(),b2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[Cn,Cn]}),n})();function C2(n,e){if(1&n&&(ee(0,"div")(1,"p",6),Te(2),J()()),2&n){const t=e.$implicit;Xt("menu-selected",t==Vt().selected),de(2),ct(t.name)}}function w2(n,e){if(1&n&&(ee(0,"mat-icon",7),Te(1),J()),2&n){const t=Vt();de(1),ct(t.selected.icon)}}let r0=(()=>{class n extends UE{constructor(t,i,r){super(),this.dialog=t,this.io=i,this.apps=r,this.elements=[{name:"Clock",action:()=>{this.openApp(qj)},matIcon:!0,icon:"access_time",about:"\u0417\u0430\u0431\u044b\u0442\u044b\u0435 \u0447\u0430\u0441\u044b \u0441\u0430\u043c\u043e\u0433\u043e \u0442\u043e\u0434\u0434\u0430 \u0433\u043e\u0432\u0430\u0440\u0434\u0430. \u041e\u043d \u0437\u0430\u0431\u044b\u043b \u0438\u0445 \u0432 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u0442\u043d\u043e\u0439 \u0438\u0433\u0440\u0435 \u043a\u0430\u043b\u043b\u0430\u0443\u044276."},{name:"KeyboardTest",action:()=>{this.openApp(Qj)},matIcon:!0,icon:"help",about:"Keyboard input test"},{name:"Rick Roll",action:()=>{this.openApp(Kj,{url:"https://youtu.be/dQw4w9WgXcQ?output=embed"})},matIcon:!0,icon:"record_voice_over",about:"\u041d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0443\u0447\u0448\u0435 \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0440\u0438\u043a\u0440\u043e\u043b\u043b\u0430"}],this.selected=this.elements[0]}createSub(){this.sub=this.io.keys.subscribe(t=>{this.apps.inApp||super.choiceItem(t)})}ngOnInit(){this.createSub()}openApp(t,i={}){this.apps.inApp=!0,this.dialog.open(t,{width:"100%",height:"100%",disableClose:!0,data:i}).afterClosed().subscribe(()=>this.apps.inApp=!1)}}return n.\u0275fac=function(t){return new(t||n)(g(jE),g(vo),g($E))},n.\u0275cmp=Se({type:n,selectors:[["app-inventory-apps-component"]],features:[z],decls:9,vars:3,consts:[[2,"display","flex","flex-direction","row","justify-content","center","height","84%"],[2,"width","45%"],[3,"menu-selected",4,"ngFor","ngForOf"],[2,"width","45%","display","flex","flex-direction","column"],[2,"text-align","center"],["class","rotating-image","style","font-size: 100px; height: 100px; width: 100px",4,"ngIf"],[2,"margin","0 0"],[1,"rotating-image",2,"font-size","100px","height","100px","width","100px"]],template:function(t,i){1&t&&(ee(0,"div",0)(1,"div",1),Zt(2,C2,3,3,"div",2),J(),ee(3,"div",3)(4,"div",4),Zt(5,w2,2,1,"mat-icon",5),J(),ee(6,"div")(7,"p"),Te(8),J()()()()),2&t&&(de(2),Qt("ngForOf",i.elements),de(3),Qt("ngIf",i.selected.matIcon),de(3),ct(i.selected.about))},dependencies:[Xi,ZC,n0],encapsulation:2}),n})(),o0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Se({type:n,selectors:[["app-inventory-custom"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})();function D2(n,e){if(1&n){const t=Qa();ee(0,"p",7),nt("click",function(){const o=fa(t).$implicit;return pa(Vt().selectHeader(o))}),Te(1),J()}if(2&n){const t=e.$implicit;Xt("inactiveHeader",!Vt().isActiveHeader(t)),de(1),ct(t.name)}}let s0=(()=>{class n extends tp{constructor(t,i,r,o,s){super(t,i),this.ws=r,this.io=o,this.apps=s,this.free=0,this.total=0,this.format="",this.path="inventory",super.navs=[{name:"apps",path:"apps",action:()=>{},component:r0.name},{name:"custom",path:"custom",action:()=>{},component:o0.name}]}selectHeader(t){super.selectHeader(t,[this.path])}ngOnInit(){this.ws.events.pipe(B(t=>JSON.parse(t))).subscribe(t=>{t.event==fo.SPACESTATS&&(this.free=Math.round(t.data.free),this.total=Math.round(t.data.total),this.format=t.data.format)}),this.sub=this.io.keys.subscribe(t=>{this.apps.inApp||super.choiceHeader(t)})}}return n.\u0275fac=function(t){return new(t||n)(g(bn),g(Ve),g(jD),g(vo),g($E))},n.\u0275cmp=Se({type:n,selectors:[["app-inv-header"]],features:[z],decls:15,vars:4,consts:[[2,"display","flex","align-items","center","justify-content","flex-start","padding-left","45px"],["style","text-transform: uppercase;font-weight: bold; margin-bottom: 0; margin-top: 5px; padding-left: 5px",3,"inactiveHeader","click",4,"ngFor","ngForOf"],[2,"padding-top","2.5%"],[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","19.5%"],[1,"footer-text",2,"width","60%"],[2,"text-transform","uppercase","font-weight","bold","margin-bottom","0","margin-top","5px","padding-left","5px",3,"click"]],template:function(t,i){1&t&&(ee(0,"div",0),Zt(1,D2,2,3,"p",1),J(),ee(2,"div",2),Xn(3,"router-outlet"),J(),ee(4,"div",3)(5,"div",4)(6,"div",5)(7,"span"),Te(8),J()(),ee(9,"div",5)(10,"span"),Te(11,"\u0445\u0437 \u0447\u0442\u043e \u0442\u0443\u0442 \u043d\u0430\u0434\u043e"),J()(),ee(12,"div",6)(13,"span"),Te(14,"nigger"),J()()()()),2&t&&(de(1),Qt("ngForOf",i.navs),de(7),fh("",i.free,"/",i.total,"",i.format,""))},dependencies:[Xi,lo],encapsulation:2}),n})(),a0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Se({type:n,selectors:[["app-data-header"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})(),l0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Se({type:n,selectors:[["app-map-header"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})(),c0=(()=>{class n{constructor(){this.name="",this.volume=.5,this.tracks=[],this.player=new Audio,this.player.addEventListener("ended",()=>{let t=this.tracks.pop();t&&this.playThis(t.src,t.name)})}playThis(t,i){this.player.src=t,this.player.volume=this.volume,this.name=i,this.player.play()}stop(){this.player.pause()}volumeUp(){this.volume>.9||(this.volume=this.volume+.1,this.player.volume=this.volume)}volumeDown(){this.volume<.1||(this.volume=this.volume-.1,this.player.volume=this.volume)}getVolume(){return Math.round(100*this.volume)}getTime(){return this.player.duration?this.player.duration<60?"0:"+Math.floor(this.player.currentTime)+" / 0:"+Math.floor(this.player.duration):Math.floor(this.player.currentTime)+" / "+Math.floor(this.player.duration):"0:00 / 0:00"}getName(){return this.name?"\u0421\u0435\u0439\u0447\u0430\u0441 \u0438\u0433\u0440\u0430\u0435\u0442: "+this.name:"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u0433\u0440\u0430\u0435\u0442"}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function E2(n,e){if(1&n&&(ee(0,"div")(1,"p",6),Te(2),J()()),2&n){const t=e.$implicit,i=Vt();Xt("menu-selected",t==i.selected&&"LEFT"==i.currentSide),de(2),ct(t.name)}}function S2(n,e){if(1&n&&(ee(0,"div")(1,"p",6),Te(2),J()()),2&n){const t=e.$implicit,i=Vt();Xt("menu-selected",t==i.selectedRight&&"RIGHT"==i.currentSide),de(2),ct(t.name)}}let M2=(()=>{class n extends UE{constructor(t,i){super(),this.player=t,this.io=i,this.elements=[{name:"niggers",src:"../../../../assets/music/pvz.mp3",action:()=>{this.play()}}],this.selected=this.elements[0],this.elementsRight=[{name:"STOP",action:()=>this.player.stop()},{name:"Volume UP",action:()=>this.player.volumeUp()},{name:"Volume DOWN",action:()=>this.player.volumeDown()}],this.selectedRight=this.elementsRight[0]}ngOnInit(){this.sub=this.io.keys.subscribe(t=>{switch(t){case"KeyA":this.currentSide="LEFT";break;case"KeyD":this.currentSide="RIGHT";break;default:super.choiceItem(t)}})}play(){this.player.playThis(this.selected.src,this.selected.name)}}return n.\u0275fac=function(t){return new(t||n)(g(c0),g(vo))},n.\u0275cmp=Se({type:n,selectors:[["app-radio"]],features:[z],decls:8,vars:2,consts:[[2,"display","flex","flex-direction","row","justify-content","center","height","81%","padding-top","7%"],[2,"width","45%"],[3,"menu-selected",4,"ngFor","ngForOf"],[2,"width","45%","display","flex","flex-direction","column"],[2,"text-align","center"],[1,"rotating-image",2,"font-size","100px","height","100px","width","100px"],[2,"margin","0 0"]],template:function(t,i){1&t&&(ee(0,"div",0)(1,"div",1),Zt(2,E2,3,3,"div",2),J(),ee(3,"div",3)(4,"div",4)(5,"mat-icon",5),Te(6,"audiotrack"),J()(),Zt(7,S2,3,3,"div",2),J()()),2&t&&(de(2),Qt("ngForOf",i.elements),de(5),Qt("ngForOf",i.elementsRight))},dependencies:[Xi,n0],encapsulation:2}),n})(),u0=(()=>{class n{constructor(t){this.player=t}}return n.\u0275fac=function(t){return new(t||n)(g(c0))},n.\u0275cmp=Se({type:n,selectors:[["app-radio-header"]],decls:12,vars:3,consts:[[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","65%"],[1,"footer-text",2,"width","9.5%","text-align","center"],[1,"footer-text",2,"width","24.5%","text-align","right"]],template:function(t,i){1&t&&(Xn(0,"app-radio"),ee(1,"div",0)(2,"div",1)(3,"div",2)(4,"span"),Te(5),J()(),ee(6,"div",3)(7,"span"),Te(8),J()(),ee(9,"div",4)(10,"span"),Te(11),J()()()()),2&t&&(de(5),ct(i.player.getName()),de(3),Qr("",i.player.getVolume()," %"),de(3),ct(i.player.getTime()))},dependencies:[M2],encapsulation:2}),n})();function A2(n,e){if(1&n){const t=Qa();ee(0,"p",2),nt("click",function(){const o=fa(t).$implicit;return pa(Vt().selectHeader(o))}),Te(1),J()}if(2&n){const t=e.$implicit;Xt("activeHeader",Vt().isActiveHeader(t))("baseActiveHeader",!0),de(1),ct(t.name)}}const I2=[{path:"",component:(()=>{class n extends tp{constructor(t,i,r){super(t,i),this.io=r,super.navs=[{name:"stat",path:"stats",action:()=>{},component:UD.name},{name:"inv",path:"inventory",action:()=>{},component:s0.name},{name:"data",path:"data",action:()=>{},component:a0.name},{name:"map",path:"map",action:()=>{},component:l0.name},{name:"radio",path:"radio",action:()=>{},component:u0.name}]}ngOnInit(){this.sub=this.io.keys.subscribe(t=>{if(null!=this.currentNav&&t.startsWith("Digit")&&6==t.length){let i=Number.parseInt(t.replace("Digit",""))-1;this.navs[i]&&this.selectHeader(this.navs[i])}})}}return n.\u0275fac=function(t){return new(t||n)(g(bn),g(Ve),g(vo))},n.\u0275cmp=Se({type:n,selectors:[["ui"]],features:[z],decls:3,vars:1,consts:[[2,"display","flex","align-items","center","justify-content","space-evenly","border-bottom","1px solid rgb(0, 242, 0)"],[3,"activeHeader","baseActiveHeader","click",4,"ngFor","ngForOf"],[3,"click"]],template:function(t,i){1&t&&(ee(0,"div",0),Zt(1,A2,2,5,"p",1),J(),Xn(2,"router-outlet")),2&t&&(de(1),Qt("ngForOf",i.navs))},dependencies:[Xi,lo],encapsulation:2}),n})(),children:[{path:"",redirectTo:"stats",pathMatch:"full"},{path:"stats",component:UD,children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:HD}]},{path:"inventory",component:s0,children:[{path:"",redirectTo:"apps",pathMatch:"full"},{path:"apps",component:r0},{path:"custom",component:o0}]},{path:"data",component:a0},{path:"map",component:l0},{path:"radio",component:u0}]}];let T2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[VD.forRoot(I2),VD]}),n})(),x2=(()=>{class n{constructor(t){this.io=t}pressKeys(t){this.io.keys.next(t.code),this.io.keys.next("")}}return n.\u0275fac=function(t){return new(t||n)(g(vo))},n.\u0275cmp=Se({type:n,selectors:[["app-root"]],hostBindings:function(t,i){1&t&&nt("keypress",function(o){return i.pressKeys(o)},0,q_)},decls:1,vars:0,template:function(t,i){1&t&&Xn(0,"router-outlet")},dependencies:[lo]}),n})();function d0(n){return new C(3e3,!1)}function dU(){return typeof window<"u"&&typeof window.document<"u"}function Fp(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ai(n){switch(n.length){case 0:return new Hs;case 1:return n[0];default:return new LE(n)}}function h0(n,e,t,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,m)=>{let _=m,b=p;if("offset"!==m)switch(_=e.normalizePropertyName(_,s),b){case"!":b=r.get(m);break;case si:b=o.get(m);break;default:b=e.normalizeStyleValue(m,_,b,s)}f.set(_,b)}),h||a.push(f),c=f,l=d}),s.length)throw function J2(n){return new C(3502,!1)}();return a}function Op(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Pp(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Pp(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Pp(t,"destroy",n)))}}function Pp(n,e,t){const o=Np(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t.totalTime??n.totalTime,!!t.disabled),s=n._data;return null!=s&&(o._data=s),o}function Np(n,e,t,i,r="",o=0,s){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Bt(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function f0(n){const e=n.indexOf(":");return[n.substring(1,e),n.slice(e+1)]}let Lp=(n,e)=>!1,p0=(n,e,t)=>[],m0=null;function Vp(n){const e=n.parentNode||n.host;return e===m0?null:e}(Fp()||typeof Element<"u")&&(dU()?(m0=(()=>document.documentElement)(),Lp=(n,e)=>{for(;e;){if(e===n)return!0;e=Vp(e)}return!1}):Lp=(n,e)=>n.contains(e),p0=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let ar=null,g0=!1;const _0=Lp,y0=p0;let v0=(()=>{class n{validateStyleProperty(t){return function fU(n){ar||(ar=function pU(){return typeof document<"u"?document.body:null}()||{},g0=!!ar.style&&"WebkitAppearance"in ar.style);let e=!0;return ar.style&&!function hU(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in ar.style,!e&&g0&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in ar.style)),e}(t)}matchesElement(t,i){return!1}containsElement(t,i){return _0(t,i)}getParentElement(t){return Vp(t)}query(t,i,r){return y0(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,o,s,a=[],l){return new Hs(r,o)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),Bp=(()=>{class n{}return n.NOOP=new v0,n})();const Hp="ng-enter",Sc="ng-leave",Mc="ng-trigger",Ac=".ng-trigger",C0="ng-animating",jp=".ng-animating";function ai(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Up(parseFloat(e[1]),e[2])}function Up(n,e){return"s"===e?1e3*n:n}function Ic(n,e,t){return n.hasOwnProperty("duration")?n:function _U(n,e,t){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(d0()),{duration:0,delay:0,easing:""};r=Up(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Up(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function R2(){return new C(3100,!1)}()),a=!0),o<0&&(e.push(function k2(){return new C(3101,!1)}()),a=!0),a&&e.splice(l,0,d0())}return{duration:r,delay:o,easing:s}}(n,e,t)}function $s(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function w0(n){const e=new Map;return Object.keys(n).forEach(t=>{e.set(t,n[t])}),e}function Ii(n,e=new Map,t){if(t)for(let[i,r]of t)e.set(i,r);for(let[i,r]of n)e.set(i,r);return e}function E0(n,e,t){return t?e+":"+t+";":""}function S0(n){let e="";for(let t=0;t{const o=zp(r);t&&!t.has(r)&&t.set(r,n.style[o]),n.style[o]=i}),Fp()&&S0(n))}function lr(n,e){n.style&&(e.forEach((t,i)=>{const r=zp(i);n.style[r]=""}),Fp()&&S0(n))}function zs(n){return Array.isArray(n)?1==n.length?n[0]:FE(n):n}const $p=new RegExp("{{\\s*(.+?)\\s*}}","g");function M0(n){let e=[];if("string"==typeof n){let t;for(;t=$p.exec(n);)e.push(t[1]);$p.lastIndex=0}return e}function Gs(n,e,t){const i=n.toString(),r=i.replace($p,(o,s)=>{let a=e[s];return null==a&&(t.push(function O2(n){return new C(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function Tc(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const bU=/-+([a-z0-9])/g;function zp(n){return n.replace(bU,(...e)=>e[1].toUpperCase())}function CU(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ht(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function P2(n){return new C(3004,!1)}()}}function A0(n,e){return window.getComputedStyle(n)[e]}function AU(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function IU(n,e,t){if(":"==n[0]){const l=function TU(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function K2(n){return new C(3015,!1)}()),e;const r=i[1],o=i[2],s=i[3];e.push(I0(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&e.push(I0(s,r))}(i,t,e)):t.push(n),t}const Fc=new Set(["true","1"]),Oc=new Set(["false","0"]);function I0(n,e){const t=Fc.has(n)||Oc.has(n),i=Fc.has(e)||Oc.has(e);return(r,o)=>{let s="*"==n||n==r,a="*"==e||e==o;return!s&&t&&"boolean"==typeof r&&(s=r?Fc.has(n):Oc.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?Fc.has(e):Oc.has(e)),s&&a}}const xU=new RegExp("s*:selfs*,?","g");function Gp(n,e,t,i){return new RU(n).build(e,t,i)}class RU{constructor(e){this._driver=e}build(e,t,i){const r=new OU(t);return this._resetContextStyleTimingState(r),Ht(this,zs(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const o=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push(function L2(){return new C(3006,!1)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,s.push(l)}else t.errors.push(function V2(){return new C(3007,!1)}())}),{type:7,name:e.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{M0(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Tc(o.values()),t.errors.push(function B2(n,e){return new C(3008,!1)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Ht(this,zs(e.animation),t);return{type:1,matchers:AU(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:cr(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Ht(this,i,t)),options:cr(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const o=e.steps.map(s=>{t.currentTime=i;const a=Ht(this,s,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:o,options:cr(e.options)}}visitAnimate(e,t){const i=function NU(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Wp(Ic(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Wp(0,0,"");return o.dynamic=!0,o.strValue=t,o}const r=Ic(t,e);return Wp(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,o=e.styles?e.styles:Ei({});if(5==o.type)r=this.visitKeyframes(o,t);else{let s=e.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Ei(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)"string"==typeof a?a===si?i.push(a):t.errors.push(new C(3002,!1)):i.push(w0(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(t.errors.push(function j2(n,e,t,i,r){return new C(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),t.options&&function vU(n,e,t){const i=e.params||{},r=M0(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||t.push(function F2(n){return new C(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function U2(){return new C(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=e.steps.map(b=>{const D=this._makeStyleAst(b,t);let v=null!=D.offset?D.offset:function PU(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){const i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}(D.styles),I=0;return null!=v&&(o++,I=D.offset=v),l=l||I<0||I>1,a=a||I0&&o{const v=h>0?D==f?1:h*D:s[D],I=v*_;t.currentTime=p+m.delay+I,m.duration=I,this._validateStyleAst(b,t),b.offset=v,i.styles.push(b)}),i}visitReference(e,t){return{type:8,animation:Ht(this,zs(e.animation),t),options:cr(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:cr(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:cr(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[o,s]=function kU(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(xU,"")),n=n.replace(/@\*/g,Ac).replace(/@\w+/g,t=>Ac+"-"+t.slice(1)).replace(/:animating/g,jp),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+o:o,Bt(t.collectedStyles,t.currentQuerySelector,new Map);const a=Ht(this,zs(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:cr(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function W2(){return new C(3013,!1)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:Ic(e.timings,t.errors,!0);return{type:12,animation:Ht(this,zs(e.animation),t),timings:i,options:null}}}class OU{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function cr(n){return n?(n=$s(n)).params&&(n.params=function FU(n){return n?$s(n):null}(n.params)):n={},n}function Wp(n,e,t){return{duration:n,delay:e,easing:t}}function qp(n,e,t,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Pc{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const BU=new RegExp(":enter","g"),jU=new RegExp(":leave","g");function Kp(n,e,t,i,r,o=new Map,s=new Map,a,l,c=[]){return(new UU).buildKeyframes(n,e,t,i,r,o,s,a,l,c)}class UU{buildKeyframes(e,t,i,r,o,s,a,l,c,u=[]){c=c||new Pc;const d=new Yp(e,t,c,r,o,u,[]);d.options=l;const h=l.delay?ai(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),Ht(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const _=f[m];if(_.element===t){p=_;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[qp(t,[],[],[],0,h,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(const r of e){const o=r?.delay;if(o){const s="number"==typeof o?o:ai(Gs(o,r?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(e,t,i){let o=t.currentTimeline.currentTime;const s=null!=i.duration?ai(i.duration):null,a=null!=i.delay?ai(i.delay):null;return 0!==s&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,t){t.updateOptions(e.options,!0),Ht(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const o=e.options;if(o&&(o.params||o.delay)&&(r=t.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Nc);const s=ai(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>Ht(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const o=e.options&&e.options.delay?ai(e.options.delay):0;e.steps.forEach(s=>{const a=t.createSubContext(e.options);o&&a.delayNextStep(o),Ht(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return Ic(t.params?Gs(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const o=e.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(i.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(o):i.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,o=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+o),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?ai(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Nc);let s=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);o&&d.delayNextStep(o),c===t.element&&(l=d.currentTimeline),Ht(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1);let l=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Ht(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Nc={};class Yp{constructor(e,t,i,r,o,s,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Nc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Lc(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=ai(i.duration)),null!=i.delay&&(r.delay=ai(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=Gs(o[a],s,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,o=new Yp(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Nc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},o=new $U(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,o,s){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(BU,"."+this._enterClassName)).replace(jU,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function q2(n){return new C(3014,!1)}()),a}}class Lc{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new Lc(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||si),this._currentKeyframe.set(t,si);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);const o=r&&r.params||{},s=function zU(n,e){const t=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||e.keys();for(let o of i)t.set(o,si)}else Ii(r,t)}),t}(e,this._globalTimelineStyles);for(let[a,l]of s){const c=Gs(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??si),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{const r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Ii(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?e.add(d):u===si&&t.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=e.size?Tc(e.values()):[],s=t.size?Tc(t.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return qp(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class $U extends Lc{constructor(e,t,i,r,o,s,a=!1){super(e,t,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],s=i+t,a=t/s,l=Ii(e[0]);l.set("offset",0),o.push(l);const c=Ii(e[0]);c.set("offset",R0(a)),o.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=Ii(e[d]);const f=h.get("offset");h.set("offset",R0((t+f*i)/s)),o.push(h)}i=s,t=0,r="",e=o}return qp(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function R0(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class Zp{}const GU=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 WU extends Zp{normalizePropertyName(e,t){return zp(e)}normalizeStyleValue(e,t,i,r){let o="";const s=i.toString().trim();if(GU.has(t)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function N2(n,e){return new C(3005,!1)}())}return s+o}}function k0(n,e,t,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Qp={};class F0{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function qU(n,e,t,i,r){return n.some(o=>o(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){let r=this._stateStyles.get("*");return void 0!==e&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,i):new Map}build(e,t,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Qp,p=this.buildStyles(i,a&&a.params||Qp,d),m=l&&l.params||Qp,_=this.buildStyles(r,m,d),b=new Set,D=new Map,v=new Map,I="void"===r,q={params:KU(m,h),delay:this.ast.options?.delay},te=u?[]:Kp(e,t,this.ast.animation,o,s,p,_,q,c,d);let Re=0;if(te.forEach(Ut=>{Re=Math.max(Ut.duration+Ut.delay,Re)}),d.length)return k0(t,this._triggerName,i,r,I,p,_,[],[],D,v,Re,d);te.forEach(Ut=>{const $t=Ut.element,wo=Bt(D,$t,new Set);Ut.preStyleProps.forEach(wn=>wo.add(wn));const li=Bt(v,$t,new Set);Ut.postStyleProps.forEach(wn=>li.add(wn)),$t!==t&&b.add($t)});const jt=Tc(b.values());return k0(t,this._triggerName,i,r,I,p,_,te,jt,D,v,Re)}}function KU(n,e){const t=$s(e);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(t[i]=n[i]);return t}class YU{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i=new Map,r=$s(this.defaultParams);return Object.keys(e).forEach(o=>{const s=e[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Gs(s,r,t));const l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),i.set(l,s)})}),i}}class QU{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{this.states.set(r.name,new YU(r.style,r.options&&r.options.params||{},i))}),O0(this.states,"true","1"),O0(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new F0(e,r,this.states))}),this.fallbackTransition=function XU(n,e,t){return new F0(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(s=>s.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function O0(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}const JU=new Pc;class e${constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const i=[],o=Gp(this._driver,t,i,[]);if(i.length)throw function eU(n){return new C(3503,!1)}();this._animations.set(e,o)}_buildPlayer(e,t,i){const r=e.element,o=h0(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],o=this._animations.get(e);let s;const a=new Map;if(o?(s=Kp(this._driver,t,o,Hp,Sc,new Map,new Map,i,JU,r),s.forEach(u=>{const d=Bt(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function tU(){return new C(3300,!1)}()),s=[]),r.length)throw function nU(n){return new C(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,si))})});const c=Ai(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function iU(n){return new C(3301,!1)}();return t}listen(e,t,i,r){const o=Np(t,"","","");return Op(this._getPlayer(e),i,o,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const o=this._getPlayer(e);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const P0="ng-animate-queued",Xp="ng-animate-disabled",o$=[],N0={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},s$={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},on="__ng_removed";class Jp{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function u$(n){return n??null}(i?e.value:e),i){const o=$s(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const Ws="void",em=new Jp(Ws);class a${constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,sn(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw function rU(n,e){return new C(3302,!1)}();if(null==i||0==i.length)throw function oU(n){return new C(3303,!1)}();if(!function d$(n){return"start"==n||"done"==n}(i))throw function sU(n,e){return new C(3400,!1)}();const o=Bt(this._elementListeners,e,[]),s={name:t,phase:i,callback:r};o.push(s);const a=Bt(this._engine.statesByElement,e,new Map);return a.has(t)||(sn(e,Mc),sn(e,Mc+"-"+t),a.set(t,em)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw function aU(n){return new C(3401,!1)}();return t}trigger(e,t,i,r=!0){const o=this._getTrigger(t),s=new tm(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(sn(e,Mc),sn(e,Mc+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t);const c=new Jp(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=em),c.value!==Ws&&l.value===c.value){if(!function p$(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r{lr(e,_),Nn(e,b)})}return}const h=Bt(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(sn(e,P0),s.onStart(()=>{bo(e,P0)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(e);if(_){let b=_.indexOf(s);b>=0&&_.splice(b,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,Ac,!0);i.forEach(r=>{if(r[on])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const o=this._engine.statesByElement.get(e),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(e,c,Ws,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,s),i&&Ai(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||em,u=new Jp(Ws),d=new tm(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else{let s=e;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const o=e[on];(!o||o===N0)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){sn(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Np(o,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Op(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class l${constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new a$(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&t.add(o)}return t}trigger(e,t,i,r){if(Vc(t)){const o=this._fetchNamespace(e);if(o)return o.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!Vc(t))return;const o=t[on];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),sn(e,Xp)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),bo(e,Xp))}removeNode(e,t,i,r){if(Vc(t)){const o=e?this._fetchNamespace(e):null;if(o?o.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,o){this.collectedLeaveElements.push(t),t[on]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,t,i,r,o){return Vc(t)?this._fetchNamespace(e).listen(t,i,r,o):()=>{}}_buildInstruction(e,t,i,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,o)}destroyInnerAnimations(e){let t=this.driver.query(e,Ac,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,jp,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ai(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[on];if(t&&t.setForRemoval){if(e[on]=N0,t.namespaceId){this.destroyInnerAnimations(e);const i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Xp)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?Ai(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function lU(n){return new C(3402,!1)}()}_flushAnimations(e,t){const i=new Pc,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(x=>{u.add(x);const k=this.driver.query(x,".ng-animate-queued",!0);for(let L=0;L{const L=Hp+m++;p.set(k,L),x.forEach(oe=>sn(oe,L))});const _=[],b=new Set,D=new Set;for(let x=0;xb.add(oe)):D.add(k))}const v=new Map,I=B0(h,Array.from(b));I.forEach((x,k)=>{const L=Sc+m++;v.set(k,L),x.forEach(oe=>sn(oe,L))}),e.push(()=>{f.forEach((x,k)=>{const L=p.get(k);x.forEach(oe=>bo(oe,L))}),I.forEach((x,k)=>{const L=v.get(k);x.forEach(oe=>bo(oe,L))}),_.forEach(x=>{this.processLeaveNode(x)})});const q=[],te=[];for(let x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(t).forEach(L=>{const oe=L.player,et=L.element;if(q.push(oe),this.collectedEnterElements.length){const dt=et[on];if(dt&&dt.setForMove){if(dt.previousTriggersValues&&dt.previousTriggersValues.has(L.triggerName)){const hr=dt.previousTriggersValues.get(L.triggerName),an=this.statesByElement.get(L.element);if(an&&an.has(L.triggerName)){const Zc=an.get(L.triggerName);Zc.value=hr,an.set(L.triggerName,Zc)}}return void oe.destroy()}}const Vn=!d||!this.driver.containsElement(d,et),zt=v.get(et),ki=p.get(et),ke=this._buildInstruction(L,i,ki,zt,Vn);if(ke.errors&&ke.errors.length)return void te.push(ke);if(Vn)return oe.onStart(()=>lr(et,ke.fromStyles)),oe.onDestroy(()=>Nn(et,ke.toStyles)),void r.push(oe);if(L.isFallbackTransition)return oe.onStart(()=>lr(et,ke.fromStyles)),oe.onDestroy(()=>Nn(et,ke.toStyles)),void r.push(oe);const iM=[];ke.timelines.forEach(dt=>{dt.stretchStartingKeyframe=!0,this.disabledNodes.has(dt.element)||iM.push(dt)}),ke.timelines=iM,i.append(et,ke.timelines),s.push({instruction:ke,player:oe,element:et}),ke.queriedElements.forEach(dt=>Bt(a,dt,[]).push(oe)),ke.preStyleProps.forEach((dt,hr)=>{if(dt.size){let an=l.get(hr);an||l.set(hr,an=new Set),dt.forEach((Zc,Em)=>an.add(Em))}}),ke.postStyleProps.forEach((dt,hr)=>{let an=c.get(hr);an||c.set(hr,an=new Set),dt.forEach((Zc,Em)=>an.add(Em))})});if(te.length){const x=[];te.forEach(k=>{x.push(function cU(n,e){return new C(3505,!1)}())}),q.forEach(k=>k.destroy()),this.reportError(x)}const Re=new Map,jt=new Map;s.forEach(x=>{const k=x.element;i.has(k)&&(jt.set(k,k),this._beforeAnimationBuild(x.player.namespaceId,x.instruction,Re))}),r.forEach(x=>{const k=x.element;this._getPreviousPlayers(k,!1,x.namespaceId,x.triggerName,null).forEach(oe=>{Bt(Re,k,[]).push(oe),oe.destroy()})});const Ut=_.filter(x=>j0(x,l,c)),$t=new Map;V0($t,this.driver,D,c,si).forEach(x=>{j0(x,l,c)&&Ut.push(x)});const li=new Map;f.forEach((x,k)=>{V0(li,this.driver,new Set(x),l,"!")}),Ut.forEach(x=>{const k=$t.get(x),L=li.get(x);$t.set(x,new Map([...Array.from(k?.entries()??[]),...Array.from(L?.entries()??[])]))});const wn=[],Do=[],Eo={};s.forEach(x=>{const{element:k,player:L,instruction:oe}=x;if(i.has(k)){if(u.has(k))return L.onDestroy(()=>Nn(k,oe.toStyles)),L.disabled=!0,L.overrideTotalTime(oe.totalTime),void r.push(L);let et=Eo;if(jt.size>1){let zt=k;const ki=[];for(;zt=zt.parentNode;){const ke=jt.get(zt);if(ke){et=ke;break}ki.push(zt)}ki.forEach(ke=>jt.set(ke,et))}const Vn=this._buildAnimation(L.namespaceId,oe,Re,o,li,$t);if(L.setRealPlayer(Vn),et===Eo)wn.push(L);else{const zt=this.playersByElement.get(et);zt&&zt.length&&(L.parentPlayer=Ai(zt)),r.push(L)}}else lr(k,oe.fromStyles),L.onDestroy(()=>Nn(k,oe.toStyles)),Do.push(L),u.has(k)&&r.push(L)}),Do.forEach(x=>{const k=o.get(x.element);if(k&&k.length){const L=Ai(k);x.setRealPlayer(L)}}),r.forEach(x=>{x.parentPlayer?x.syncPlayerEvents(x.parentPlayer):x.destroy()});for(let x=0;x<_.length;x++){const k=_[x],L=k[on];if(bo(k,Sc),L&&L.hasAnimation)continue;let oe=[];if(a.size){let Vn=a.get(k);Vn&&Vn.length&&oe.push(...Vn);let zt=this.driver.query(k,jp,!0);for(let ki=0;ki!Vn.destroyed);et.length?h$(this,k,et):this.processLeaveNode(k)}return _.length=0,wn.forEach(x=>{this.players.push(x),x.onDone(()=>{x.destroy();const k=this.players.indexOf(x);this.players.splice(k,1)}),x.play()}),wn}elementContainsData(e,t){let i=!1;const r=t[on];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,o){let s=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(s=a)}else{const a=this.playersByElement.get(e);if(a){const l=!o||o==Ws;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(e,t,i){const o=t.element,s=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==o,d=Bt(i,c,[]);this._getPreviousPlayers(c,u,s,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}lr(o,t.fromStyles)}_buildAnimation(e,t,i,r,o,s){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const m=p.element;u.add(m);const _=m[on];if(_&&_.removedBeforeQueried)return new Hs(p.duration,p.delay);const b=m!==l,D=function f$(n){const e=[];return H0(n,e),e}((i.get(m)||o$).map(Re=>Re.getRealPlayer())).filter(Re=>!!Re.element&&Re.element===m),v=o.get(m),I=s.get(m),q=h0(0,this._normalizer,0,p.keyframes,v,I),te=this._buildPlayer(p,q,D);if(p.subTimeline&&r&&d.add(m),b){const Re=new tm(e,a,m);Re.setRealPlayer(te),c.push(Re)}return te});c.forEach(p=>{Bt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function c$(n,e,t){let i=n.get(e);if(i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>sn(p,C0));const f=Ai(h);return f.onDestroy(()=>{u.forEach(p=>bo(p,C0)),Nn(l,t.toStyles)}),d.forEach(p=>{Bt(r,p,[]).push(f)}),f}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Hs(e.duration,e.delay)}}class tm{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Hs,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>Op(e,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Bt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Vc(n){return n&&1===n.nodeType}function L0(n,e){const t=n.style.display;return n.style.display=e??"none",t}function V0(n,e,t,i,r){const o=[];t.forEach(l=>o.push(L0(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=e.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[on]=s$,s.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>L0(l,o[a++])),s}function B0(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return e.forEach(a=>{const l=s(a);1!==l&&t.get(l).push(a)}),t}function sn(n,e){n.classList?.add(e)}function bo(n,e){n.classList?.remove(e)}function h$(n,e,t){Ai(t).onDone(()=>n.processLeaveNode(e))}function H0(n,e){for(let t=0;tr.add(o)):e.set(n,i),t.delete(n),!0}class Bc{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new l$(e,t,i),this._timelineEngine=new e$(e,t,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,t,i,r,o){const s=e+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=Gp(this._driver,o,l,[]);if(l.length)throw function X2(n,e){return new C(3404,!1)}();a=function ZU(n,e,t){return new QU(n,e,t)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[o,s]=f0(i);this._timelineEngine.command(o,t,s,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,o){if("@"==i.charAt(0)){const[s,a]=f0(i);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(e,t,i,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let g$=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(t);o||n.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Nn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Nn(this._element,this._initialStyles),this._endStyles&&(Nn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(lr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(lr(this._element,this._endStyles),this._endStyles=null),Nn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function nm(n){let e=null;return n.forEach((t,i)=>{(function _$(n){return"display"===n||"position"===n})(i)&&(e=e||new Map,e.set(i,t))}),e}class U0{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._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(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&e.set(r,this._finished?i:A0(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class y${validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return _0(e,t)}getParentElement(e){return Vp(e)}query(e,t,i){return y0(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof U0);(function wU(n,e){return 0===n||0===e})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function yU(n){return n.length?n[0]instanceof Map?n:n.map(e=>w0(e)):[]}(t).map(f=>Ii(f));d=function DU(n,e,t){if(t.size&&e.length){let i=e[0],r=[];if(t.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,A0(n,a)))}}return e}(e,d,c);const h=function m$(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=nm(e[0]),e.length>1&&(i=nm(e[e.length-1]))):e instanceof Map&&(t=nm(e)),t||i?new g$(n,t,i):null}(e,d);return new U0(e,d,l,h)}}let v$=(()=>{class n extends xE{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:cn.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?FE(t):t;return $0(this._renderer,null,i,"register",[r]),new b$(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(y(Qo),y(K))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class b$ extends class Pj{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new C$(this._id,e,t||{},this._renderer)}}class C${constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return $0(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function $0(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const z0="@.disabled";let w$=(()=>{class n{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(t,i){const o=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new G0("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,t,u.name,u)};return i.data.animation.forEach(l),new D$(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&ti(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(t){return new(t||n)(y(Qo),y(Bc),y(ie))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class G0{constructor(e,t,i,r){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>t.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==z0?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class D$ extends G0{constructor(e,t,i,r,o){super(t,i,r,o),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==z0?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function E$(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let o=t.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function S$(n){const e=n.indexOf(".");return[n.substring(0,e),n.slice(e+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}const W0=[{provide:xE,useClass:v$},{provide:Zp,useFactory:function A$(){return new WU}},{provide:Bc,useClass:(()=>{class n extends Bc{constructor(t,i,r,o){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(y(K),y(Bp),y(Zp),y(no))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})()},{provide:Qo,useFactory:function I$(n,e,t){return new w$(n,e,t)},deps:[Fl,Bc,ie]}],im=[{provide:Bp,useFactory:()=>new y$},{provide:dl,useValue:"BrowserAnimations"},...W0],q0=[{provide:Bp,useClass:v0},{provide:dl,useValue:"NoopAnimations"},...W0];let T$=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?q0:im}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:im,imports:[ww]}),n})(),K0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})(),Y0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[ew,Cn,qD,Cn]}),n})(),O$=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[xj],imports:[K0,Y0,Cn,K0,Y0]}),n})(),BS=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})(),Fz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[BS]}),n})(),Oz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[Fz]}),n})(),Nz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[Oj,Cn,Cn]}),n})(),Lz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n,bootstrap:[x2]}),n.\u0275inj=fe({imports:[ww,T2,T$,Wj,O$,Oz,Nz,b2]}),n})();(function pP(){wC=!1})(),nL().bootstrapModule(Lz).catch(n=>console.error(n))}},re=>{re(re.s=166)}]); \ No newline at end of file diff --git a/pipboyUI/dist/pipboy-ui/main.dcb951af32c9d3b0.js b/pipboyUI/dist/pipboy-ui/main.dcb951af32c9d3b0.js new file mode 100644 index 0000000..6562571 --- /dev/null +++ b/pipboyUI/dist/pipboy-ui/main.dcb951af32c9d3b0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkpipboyUI=self.webpackChunkpipboyUI||[]).push([[179],{112:()=>{function oe(n){return"function"==typeof n}function So(n){const t=n(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const Qs=So(n=>function(t){n(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function pr(n,e){if(n){const t=n.indexOf(e);0<=t&&n.splice(t,1)}}class Je{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(oe(i))try{i()}catch(o){e=o instanceof Qs?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Rm(o)}catch(s){e=e??[],s instanceof Qs?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Qs(e)}}add(e){var t;if(e&&e!==this)if(this.closed)Rm(e);else{if(e instanceof Je){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&pr(t,e)}remove(e){const{_finalizers:t}=this;t&&pr(t,e),e instanceof Je&&e._removeParent(this)}}Je.EMPTY=(()=>{const n=new Je;return n.closed=!0,n})();const Tm=Je.EMPTY;function xm(n){return n instanceof Je||n&&"closed"in n&&oe(n.remove)&&oe(n.add)&&oe(n.unsubscribe)}function Rm(n){oe(n)?n():n.unsubscribe()}const Oi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Xs={setTimeout(n,e,...t){const{delegate:i}=Xs;return i?.setTimeout?i.setTimeout(n,e,...t):setTimeout(n,e,...t)},clearTimeout(n){const{delegate:e}=Xs;return(e?.clearTimeout||clearTimeout)(n)},delegate:void 0};function km(n){Xs.setTimeout(()=>{const{onUnhandledError:e}=Oi;if(!e)throw n;e(n)})}function Xc(){}const aM=Jc("C",void 0,void 0);function Jc(n,e,t){return{kind:n,value:e,error:t}}let Pi=null;function Js(n){if(Oi.useDeprecatedSynchronousErrorHandling){const e=!Pi;if(e&&(Pi={errorThrown:!1,error:null}),n(),e){const{errorThrown:t,error:i}=Pi;if(Pi=null,t)throw i}}else n()}class ea extends Je{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,xm(e)&&e.add(this)):this.destination=pM}static create(e,t,i){return new Mo(e,t,i)}next(e){this.isStopped?tu(function cM(n){return Jc("N",n,void 0)}(e),this):this._next(e)}error(e){this.isStopped?tu(function lM(n){return Jc("E",void 0,n)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?tu(aM,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const dM=Function.prototype.bind;function eu(n,e){return dM.call(n,e)}class hM{constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(i){ta(i)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(i){ta(i)}else ta(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){ta(t)}}}class Mo extends ea{constructor(e,t,i){let r;if(super(),oe(e)||!e)r={next:e??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&Oi.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&eu(e.next,o),error:e.error&&eu(e.error,o),complete:e.complete&&eu(e.complete,o)}):r=e}this.destination=new hM(r)}}function ta(n){Oi.useDeprecatedSynchronousErrorHandling?function uM(n){Oi.useDeprecatedSynchronousErrorHandling&&Pi&&(Pi.errorThrown=!0,Pi.error=n)}(n):km(n)}function tu(n,e){const{onStoppedNotification:t}=Oi;t&&Xs.setTimeout(()=>t(n,e))}const pM={closed:!0,next:Xc,error:function fM(n){throw n},complete:Xc},nu="function"==typeof Symbol&&Symbol.observable||"@@observable";function ci(n){return n}function Fm(n){return 0===n.length?ci:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}let ye=(()=>{class n{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const o=function _M(n){return n&&n instanceof ea||function gM(n){return n&&oe(n.next)&&oe(n.error)&&oe(n.complete)}(n)&&xm(n)}(t)?t:new Mo(t,i,r);return Js(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=Om(i))((r,o)=>{const s=new Mo({next:a=>{try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[nu](){return this}pipe(...t){return Fm(t)(this)}toPromise(t){return new(t=Om(t))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=e=>new n(e),n})();function Om(n){var e;return null!==(e=n??Oi.Promise)&&void 0!==e?e:Promise}const yM=So(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ae=(()=>{class n extends ye{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new iu(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new yM}next(t){Js(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){Js(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){Js(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:r,observers:o}=this;return i||r?Tm:(this.currentObservers=null,o.push(t),new Je(()=>{this.currentObservers=null,pr(o,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){const t=new ye;return t.source=this,t}}return n.create=(e,t)=>new iu(e,t),n})();class iu extends ae{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,e)}error(e){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==i?i:Tm}}function Pm(n){return oe(n?.lift)}function Fe(n){return e=>{if(Pm(e))return e.lift(function(t){try{return n(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Me(n,e,t,i,r){return new vM(n,e,t,i,r)}class vM extends ea{constructor(e,t,i,r,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){e.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function B(n,e){return Fe((t,i)=>{let r=0;t.subscribe(Me(i,o=>{i.next(n.call(e,o,r++))}))})}function ui(n){return this instanceof ui?(this.v=n,this):new ui(n)}function Vm(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(n,e||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(f){return function(p){return Promise.resolve(p).then(f,d)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(f,p){i[f]&&(r[f]=function(m){return new Promise(function(_,b){o.push([f,m,_,b])>1||l(f,m)})},p&&(r[f]=p(r[f])))}function l(f,p){try{!function c(f){f.value instanceof ui?Promise.resolve(f.value.v).then(u,d):h(o[0][2],f)}(i[f](p))}catch(m){h(o[0][3],m)}}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Bm(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=function au(n){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&n[e],i=0;if(t)return t.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=n[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=n[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const cu=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Hm(n){return oe(n?.then)}function jm(n){return oe(n[nu])}function Um(n){return Symbol.asyncIterator&&oe(n?.[Symbol.asyncIterator])}function $m(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const zm=function GM(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Wm(n){return oe(n?.[zm])}function Gm(n){return Vm(this,arguments,function*(){const t=n.getReader();try{for(;;){const{value:i,done:r}=yield ui(t.read());if(r)return yield ui(void 0);yield yield ui(i)}}finally{t.releaseLock()}})}function qm(n){return oe(n?.getReader)}function wt(n){if(n instanceof ye)return n;if(null!=n){if(jm(n))return function qM(n){return new ye(e=>{const t=n[nu]();if(oe(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(cu(n))return function KM(n){return new ye(e=>{for(let t=0;t{n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,km)})}(n);if(Um(n))return Km(n);if(Wm(n))return function ZM(n){return new ye(e=>{for(const t of n)if(e.next(t),e.closed)return;e.complete()})}(n);if(qm(n))return function QM(n){return Km(Gm(n))}(n)}throw $m(n)}function Km(n){return new ye(e=>{(function XM(n,e){var t,i,r,o;return function Nm(n,e,t,i){return new(t||(t=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function r(o){return o instanceof t?o:new t(function(s){s(o)})}(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Bm(n);!(i=yield t.next()).done;)if(e.next(i.value),e.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}e.complete()})})(n,e).catch(t=>e.error(t))})}function Hn(n,e,t,i=0,r=!1){const o=e.schedule(function(){t(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function et(n,e,t=1/0){return oe(e)?et((i,r)=>B((o,s)=>e(i,o,r,s))(wt(n(i,r))),t):("number"==typeof e&&(t=e),Fe((i,r)=>function JM(n,e,t,i,r,o,s,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&e.complete()},f=m=>c{o&&e.next(m),c++;let _=!1;wt(t(m,u++)).subscribe(Me(e,b=>{r?.(b),o?f(b):e.next(b)},()=>{_=!0},void 0,()=>{if(_)try{for(c--;l.length&&cp(b)):p(b)}h()}catch(b){e.error(b)}}))};return n.subscribe(Me(e,f,()=>{d=!0,h()})),()=>{a?.()}}(i,r,n,t)))}function mr(n=1/0){return et(ci,n)}const jn=new ye(n=>n.complete());function Ym(n){return n&&oe(n.schedule)}function uu(n){return n[n.length-1]}function Zm(n){return oe(uu(n))?n.pop():void 0}function Ao(n){return Ym(uu(n))?n.pop():void 0}function Qm(n,e=0){return Fe((t,i)=>{t.subscribe(Me(i,r=>Hn(i,n,()=>i.next(r),e),()=>Hn(i,n,()=>i.complete(),e),r=>Hn(i,n,()=>i.error(r),e)))})}function Xm(n,e=0){return Fe((t,i)=>{i.add(n.schedule(()=>t.subscribe(i),e))})}function Jm(n,e){if(!n)throw new Error("Iterable cannot be null");return new ye(t=>{Hn(t,e,()=>{const i=n[Symbol.asyncIterator]();Hn(t,e,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function Be(n,e){return e?function aA(n,e){if(null!=n){if(jm(n))return function nA(n,e){return wt(n).pipe(Xm(e),Qm(e))}(n,e);if(cu(n))return function rA(n,e){return new ye(t=>{let i=0;return e.schedule(function(){i===n.length?t.complete():(t.next(n[i++]),t.closed||this.schedule())})})}(n,e);if(Hm(n))return function iA(n,e){return wt(n).pipe(Xm(e),Qm(e))}(n,e);if(Um(n))return Jm(n,e);if(Wm(n))return function oA(n,e){return new ye(t=>{let i;return Hn(t,e,()=>{i=n[zm](),Hn(t,e,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void t.error(s)}o?t.complete():t.next(r)},0,!0)}),()=>oe(i?.return)&&i.return()})}(n,e);if(qm(n))return function sA(n,e){return Jm(Gm(n),e)}(n,e)}throw $m(n)}(n,e):wt(n)}function du(...n){const e=Ao(n),t=function tA(n,e){return"number"==typeof uu(n)?n.pop():e}(n,1/0),i=n;return i.length?1===i.length?wt(i[0]):mr(t)(Be(i,e)):jn}function eg(n={}){const{connector:e=(()=>new ae),resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let s,a,l,c=0,u=!1,d=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=l=void 0,u=d=!1},p=()=>{const m=s;f(),m?.unsubscribe()};return Fe((m,_)=>{c++,!d&&!u&&h();const b=l=l??e();_.add(()=>{c--,0===c&&!d&&!u&&(a=hu(p,r))}),b.subscribe(_),!s&&c>0&&(s=new Mo({next:D=>b.next(D),error:D=>{d=!0,h(),a=hu(f,t,D),b.error(D)},complete:()=>{u=!0,h(),a=hu(f,i),b.complete()}}),wt(m).subscribe(s))})(o)}}function hu(n,e,...t){if(!0===e)return void n();if(!1===e)return;const i=new Mo({next:()=>{i.unsubscribe(),n()}});return e(...t).subscribe(i)}function me(n){for(let e in n)if(n[e]===me)return e;throw Error("Could not find renamed property on target object.")}function fu(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function ge(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ge).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function pu(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const lA=me({__forward_ref__:me});function ve(n){return n.__forward_ref__=ve,n.toString=function(){return ge(this())},n}function V(n){return mu(n)?n():n}function mu(n){return"function"==typeof n&&n.hasOwnProperty(lA)&&n.__forward_ref__===ve}class C extends Error{constructor(e,t){super(function na(n,e){return`NG0${Math.abs(n)}${e?": "+e.trim():""}`}(e,t)),this.code=e}}function j(n){return"string"==typeof n?n:null==n?"":String(n)}function ia(n,e){throw new C(-201,!1)}function It(n,e){null==n&&function de(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function S(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function pe(n){return{providers:n.providers||[],imports:n.imports||[]}}function ra(n){return tg(n,oa)||tg(n,ig)}function tg(n,e){return n.hasOwnProperty(e)?n[e]:null}function ng(n){return n&&(n.hasOwnProperty(gu)||n.hasOwnProperty(_A))?n[gu]:null}const oa=me({\u0275prov:me}),gu=me({\u0275inj:me}),ig=me({ngInjectableDef:me}),_A=me({ngInjectorDef:me});var F=(()=>((F=F||{})[F.Default=0]="Default",F[F.Host=1]="Host",F[F.Self=2]="Self",F[F.SkipSelf=4]="SkipSelf",F[F.Optional=8]="Optional",F))();let _u;function qt(n){const e=_u;return _u=n,e}function rg(n,e,t){const i=ra(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&F.Optional?null:void 0!==e?e:void ia(ge(n))}function di(n){return{toString:n}.toString()}var ln=(()=>((ln=ln||{})[ln.OnPush=0]="OnPush",ln[ln.Default=1]="Default",ln))(),cn=(()=>{return(n=cn||(cn={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",cn;var n})();const be=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),gr={},ce=[],sa=me({\u0275cmp:me}),yu=me({\u0275dir:me}),vu=me({\u0275pipe:me}),og=me({\u0275mod:me}),$n=me({\u0275fac:me}),Io=me({__NG_ELEMENT_ID__:me});let vA=0;function De(n){return di(()=>{const t=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===ln.OnPush,directiveDefs:null,pipeDefs:null,standalone:t,dependencies:t&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||ce,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||cn.Emulated,id:"c"+vA++,styles:n.styles||ce,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=lg(n.inputs,i),r.outputs=lg(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(sg).filter(ag):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(ft).filter(ag):null,r})}function sg(n){return he(n)||ht(n)}function ag(n){return null!==n}function _e(n){return di(()=>({type:n.type,bootstrap:n.bootstrap||ce,declarations:n.declarations||ce,imports:n.imports||ce,exports:n.exports||ce,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function lg(n,e){if(null==n)return gr;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),t[r]=i,e&&(e[r]=o)}return t}const P=De;function he(n){return n[sa]||null}function ht(n){return n[yu]||null}function ft(n){return n[vu]||null}function Tt(n,e){const t=n[og]||null;if(!t&&!0===e)throw new Error(`Type ${ge(n)} does not have '\u0275mod' property.`);return t}const G=11;function Et(n){return Array.isArray(n)&&"object"==typeof n[1]}function dn(n){return Array.isArray(n)&&!0===n[1]}function wu(n){return 0!=(8&n.flags)}function ua(n){return 2==(2&n.flags)}function da(n){return 1==(1&n.flags)}function hn(n){return null!==n.template}function SA(n){return 0!=(256&n[2])}function Hi(n,e){return n.hasOwnProperty($n)?n[$n]:null}class IA{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function dg(n){return n.type.prototype.ngOnChanges&&(n.setInput=xA),TA}function TA(){const n=fg(this),e=n?.current;if(e){const t=n.previous;if(t===gr)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function xA(n,e,t,i){const r=fg(n)||function RA(n,e){return n[hg]=e}(n,{previous:gr,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[t],l=s[a];o[a]=new IA(l&&l.currentValue,e,s===gr),n[i]=e}const hg="__ngSimpleChanges__";function fg(n){return n[hg]||null}function He(n){for(;Array.isArray(n);)n=n[0];return n}function ha(n,e){return He(e[n])}function Rt(n,e){return He(e[n.index])}function Au(n,e){return n.data[e]}function kt(n,e){const t=e[n];return Et(t)?t:t[0]}function fa(n){return 64==(64&n[2])}function hi(n,e){return null==e?null:n[e]}function pg(n){n[18]=0}function Iu(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const H={lFrame:Eg(null),bindingsEnabled:!0};function gg(){return H.bindingsEnabled}function w(){return H.lFrame.lView}function ne(){return H.lFrame.tView}function pa(n){return H.lFrame.contextLView=n,n[8]}function ma(n){return H.lFrame.contextLView=null,n}function We(){let n=_g();for(;null!==n&&64===n.type;)n=n.parent;return n}function _g(){return H.lFrame.currentTNode}function Dn(n,e){const t=H.lFrame;t.currentTNode=n,t.isParent=e}function Tu(){return H.lFrame.isParent}function xu(){H.lFrame.isParent=!1}function wr(){return H.lFrame.bindingIndex++}function Wn(n){const e=H.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function GA(n,e){const t=H.lFrame;t.bindingIndex=t.bindingRootIndex=n,Ru(e)}function Ru(n){H.lFrame.currentDirectiveIndex=n}function ku(n){const e=H.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}function Cg(){return H.lFrame.currentQueryIndex}function Fu(n){H.lFrame.currentQueryIndex=n}function KA(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function wg(n,e,t){if(t&F.SkipSelf){let r=e,o=n;for(;!(r=r.parent,null!==r||t&F.Host||(r=KA(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;e=r,n=o}const i=H.lFrame=Dg();return i.currentTNode=e,i.lView=n,!0}function Ou(n){const e=Dg(),t=n[1];H.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function Dg(){const n=H.lFrame,e=null===n?null:n.child;return null===e?Eg(n):e}function Eg(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function Sg(){const n=H.lFrame;return H.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Mg=Sg;function Pu(){const n=Sg();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function mt(){return H.lFrame.selectedIndex}function fi(n){H.lFrame.selectedIndex=n}function Te(){const n=H.lFrame;return Au(n.tView,n.selectedIndex)}function ga(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t=i)break}else e[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===e){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Oo{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function va(n,e,t){let i=0;for(;ie){s=o-1;break}}}for(;o>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let Vu=!0;function Ca(n){const e=Vu;return Vu=n,e}let cI=0;const En={};function No(n,e){const t=Hu(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,Bu(i.data,n),Bu(e,null),Bu(i.blueprint,null));const r=wa(n,e),o=n.injectorIndex;if(Rg(r)){const s=Dr(r),a=Er(r,e),l=a[1].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=r,o}function Bu(n,e){n.push(0,0,0,0,0,0,0,0,e)}function Hu(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function wa(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){if(i=Hg(r),null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function Da(n,e,t){!function uI(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Io)&&(i=t[Io]),null==i&&(i=t[Io]=cI++);const r=255&i;e.data[n+(r>>5)]|=1<=0?255&e:pI:e}(t);if("function"==typeof o){if(!wg(e,n,i))return i&F.Host?Og(r,0,i):Pg(e,t,i,r);try{const s=o(i);if(null!=s||i&F.Optional)return s;ia()}finally{Mg()}}else if("number"==typeof o){let s=null,a=Hu(n,e),l=-1,c=i&F.Host?e[16][6]:null;for((-1===a||i&F.SkipSelf)&&(l=-1===a?wa(n,e):e[a+8],-1!==l&&Bg(i,!1)?(s=e[1],a=Dr(l),e=Er(l,e)):a=-1);-1!==a;){const u=e[1];if(Vg(o,a,u.data)){const d=hI(a,e,t,s,i,c);if(d!==En)return d}l=e[a+8],-1!==l&&Bg(i,e[1].data[a+8]===c)&&Vg(o,a,e)?(s=u,a=Dr(l),e=Er(l,e)):a=-1}}return r}function hI(n,e,t,i,r,o){const s=e[1],a=s.data[n+8],u=Ea(a,s,t,null==i?ua(a)&&Vu:i!=s&&0!=(3&a.type),r&F.Host&&o===a);return null!==u?Lo(e,s,u,a):En}function Ea(n,e,t,i,r){const o=n.providerIndexes,s=e.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===t)return f}if(r){const f=s[l];if(f&&hn(f)&&f.type===t)return l}return null}function Lo(n,e,t,i){let r=n[t];const o=e.data;if(function rI(n){return n instanceof Oo}(r)){const s=r;s.resolving&&function cA(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new C(-200,`Circular dependency in DI detected for ${n}${t}`)}(function le(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():j(n)}(o[t]));const a=Ca(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?qt(s.injectImpl):null;wg(n,i,F.Default);try{r=n[t]=s.factory(void 0,o,n,i),e.firstCreatePass&&t>=i.directiveStart&&function nI(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(i){const s=dg(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o))}(t,o[t],e)}finally{null!==l&&qt(l),Ca(a),s.resolving=!1,Mg()}}return r}function Vg(n,e,t){return!!(t[e+(n>>5)]&1<{const e=n.prototype.constructor,t=e[$n]||ju(e),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[$n]||ju(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function ju(n){return mu(n)?()=>{const e=ju(V(n));return e&&e()}:Hi(n)}function Hg(n){const e=n[1],t=e.type;return 2===t?e.declTNode:1===t?n[6]:null}function Mr(n){return function dI(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r{const i=function Uu(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Ir)?l[Ir]:Object.defineProperty(l,Ir,{value:[]})[Ir];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class E{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=S({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ft(n,e){void 0===e&&(e=n);for(let t=0;tArray.isArray(t)?Gn(t,e):e(t))}function Ug(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Sa(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Ho(n,e){const t=[];for(let i=0;i=0?n[1|i]=t:(i=~i,function vI(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function zu(n,e){const t=Rr(n,e);if(t>=0)return n[1|t]}function Rr(n,e){return function Wg(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const o=i+(r-i>>1),s=n[o<e?r=o:i=o+1}return~(r<((St=St||{})[St.Important=1]="Important",St[St.DashCase=2]="DashCase",St))();const Xu=new Map;let KI=0;const ed="__ngContext__";function lt(n,e){Et(e)?(n[ed]=e[20],function ZI(n){Xu.set(n[20],n)}(e)):n[ed]=e}function nd(n,e){return undefined(n,e)}function qo(n){const e=n[3];return dn(e)?e[3]:e}function id(n){return f_(n[13])}function rd(n){return f_(n[4])}function f_(n){for(;null!==n&&!dn(n);)n=n[4];return n}function Pr(n,e,t,i,r){if(null!=i){let o,s=!1;dn(i)?o=i:Et(i)&&(s=!0,i=i[0]);const a=He(i);0===n&&null!==t?null==r?v_(e,t,a):ji(e,t,a,r||null,!0):1===n&&null!==t?ji(e,t,a,r||null,!0):2===n?function dd(n,e,t){const i=xa(n,e);i&&function yT(n,e,t,i){n.removeChild(e,t,i)}(n,i,e,t)}(e,a,s):3===n&&e.destroyNode(a),null!=o&&function CT(n,e,t,i,r){const o=t[7];o!==He(t)&&Pr(e,n,i,o,r);for(let a=10;a0&&(n[t-1][4]=i[4]);const o=Sa(n,10+e);!function uT(n,e){Ko(n,e,e[G],2,null,null),e[0]=null,e[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function g_(n,e){if(!(128&e[2])){const t=e[G];t.destroyNode&&Ko(n,e,t,3,null,null),function fT(n){let e=n[13];if(!e)return ld(n[1],n);for(;e;){let t=null;if(Et(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)Et(e)&&ld(e[1],e),e=e[3];null===e&&(e=n),Et(e)&&ld(e[1],e),t=e&&e[4]}e=t}}(e)}}function ld(n,e){if(!(128&e[2])){e[2]&=-65,e[2]|=128,function _T(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=t[o+1]];t[o].call(s)}if(null!==i){for(let o=r+1;on,createScript:n=>n,createScriptURL:n=>n})}catch{}return Fa}()?.createHTML(n)||n}function R_(n){return function gd(){if(void 0===Oa&&(Oa=null,be.trustedTypes))try{Oa=be.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Oa}()?.createScriptURL(n)||n}class $i{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class AT extends $i{getTypeName(){return"HTML"}}class IT extends $i{getTypeName(){return"Style"}}class TT extends $i{getTypeName(){return"Script"}}class xT extends $i{getTypeName(){return"URL"}}class RT extends $i{getTypeName(){return"ResourceURL"}}function Pt(n){return n instanceof $i?n.changingThisBreaksApplicationSecurity:n}function Sn(n,e){const t=function kT(n){return n instanceof $i&&n.getTypeName()||null}(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}class VT{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(Ui(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch{return null}}}class BT{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Ui(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=Ui(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0"),!0}endElement(e){const t=e.nodeName.toLowerCase();_d.hasOwnProperty(t)&&!F_.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(L_(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const zT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,WT=/([^\#-~ |!])/g;function L_(n){return n.replace(/&/g,"&").replace(zT,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(WT,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Na;function V_(n,e){let t=null;try{Na=Na||function k_(n){const e=new BT(n);return function HT(){try{return!!(new window.DOMParser).parseFromString(Ui(""),"text/html")}catch{return!1}}()?new VT(e):e}(n);let i=e?String(e):"";t=Na.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=t.innerHTML,t=Na.getInertBodyElement(i)}while(i!==o);return Ui((new $T).sanitizeChildren(vd(t)||t))}finally{if(t){const i=vd(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function vd(n){return"content"in n&&function GT(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ue=(()=>((ue=ue||{})[ue.NONE=0]="NONE",ue[ue.HTML=1]="HTML",ue[ue.STYLE=2]="STYLE",ue[ue.SCRIPT=3]="SCRIPT",ue[ue.URL=4]="URL",ue[ue.RESOURCE_URL=5]="RESOURCE_URL",ue))();function Cd(n){const e=function Zo(){const n=w();return n&&n[12]}();if(e)return R_(e.sanitize(ue.RESOURCE_URL,n)||"");if(Sn(n,"ResourceURL"))return R_(Pt(n));throw new C(904,!1)}const wd=new E("ENVIRONMENT_INITIALIZER"),B_=new E("INJECTOR",-1),H_=new E("INJECTOR_DEF_TYPES");class j_{get(e,t=jo){if(t===jo){const i=new Error(`NullInjectorError: No provider for ${ge(e)}!`);throw i.name="NullInjectorError",i}return t}}function ex(...n){return{\u0275providers:U_(0,n)}}function U_(n,...e){const t=[],i=new Set;let r;return Gn(e,o=>{const s=o;Dd(s,t,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&$_(r,t),t}function $_(n,e){for(let t=0;t{e.push(o)})}}function Dd(n,e,t,i){if(!(n=V(n)))return!1;let r=null,o=ng(n);const s=!o&&he(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=ng(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Dd(c,e,t,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Gn(o.imports,u=>{Dd(u,e,t,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&$_(c,e)}if(!a){const c=Hi(r)||(()=>new r);e.push({provide:r,useFactory:c,deps:ce},{provide:H_,useValue:r,multi:!0},{provide:wd,useValue:()=>y(r),multi:!0})}const l=o.providers;null==l||a||Gn(l,u=>{e.push(u)})}}return r!==n&&void 0!==n.providers}const tx=me({provide:String,useValue:me});function Ed(n){return null!==n&&"object"==typeof n&&tx in n}function zi(n){return"function"==typeof n}const Sd=new E("Set Injector scope."),La={},ix={};let Md;function Va(){return void 0===Md&&(Md=new j_),Md}class gi{}class G_ extends gi{constructor(e,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Id(e,s=>this.processProvider(s)),this.records.set(B_,Nr(void 0,this)),r.has("environment")&&this.records.set(gi,Nr(void 0,this));const o=this.records.get(Sd);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(H_.multi,ce,F.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();for(const e of this._onDestroyHooks)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(e){this._onDestroyHooks.push(e)}runInContext(e){this.assertNotDestroyed();const t=kr(this),i=qt(void 0);try{return e()}finally{kr(t),qt(i)}}get(e,t=jo,i=F.Default){this.assertNotDestroyed();const r=kr(this),o=qt(void 0);try{if(!(i&F.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function lx(n){return"function"==typeof n||"object"==typeof n&&n instanceof E}(e)&&ra(e);a=l&&this.injectableDefInScope(l)?Nr(Ad(e),La):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&F.Self?Va():this.parent).get(e,t=i&F.Optional&&t===jo?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[Aa]=s[Aa]||[]).unshift(ge(e)),r)throw s;return function RI(n,e,t,i){const r=n[Aa];throw e[Gg]&&r.unshift(e[Gg]),n.message=function kI(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=ge(e);if(Array.isArray(e))r=e.map(ge).join(" -> ");else if("object"==typeof e){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):ge(a)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(AI,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[Aa]=null,n}(s,e,"R3InjectorError",this.source)}throw s}finally{qt(o),kr(r)}}resolveInjectorInitializers(){const e=kr(this),t=qt(void 0);try{const i=this.get(wd.multi,ce,F.Self);for(const r of i)r()}finally{kr(e),qt(t)}}toString(){const e=[],t=this.records;for(const i of t.keys())e.push(ge(i));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(e){let t=zi(e=V(e))?e:V(e&&e.provide);const i=function ox(n){return Ed(n)?Nr(void 0,n.useValue):Nr(function q_(n,e,t){let i;if(zi(n)){const r=V(n);return Hi(r)||Ad(r)}if(Ed(n))i=()=>V(n.useValue);else if(function W_(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...qu(n.deps||[]));else if(function z_(n){return!(!n||!n.useExisting)}(n))i=()=>y(V(n.useExisting));else{const r=V(n&&(n.useClass||n.provide));if(!function sx(n){return!!n.deps}(n))return Hi(r)||Ad(r);i=()=>new r(...qu(n.deps))}return i}(n),La)}(e);if(zi(e)||!0!==e.multi)this.records.get(t);else{let r=this.records.get(t);r||(r=Nr(void 0,La,!0),r.factory=()=>qu(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,i)}hydrate(e,t){return t.value===La&&(t.value=ix,t.value=t.factory()),"object"==typeof t.value&&t.value&&function ax(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=V(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function Ad(n){const e=ra(n),t=null!==e?e.factory:Hi(n);if(null!==t)return t;if(n instanceof E)throw new C(204,!1);if(n instanceof Function)return function rx(n){const e=n.length;if(e>0)throw Ho(e,"?"),new C(204,!1);const t=function mA(n){const e=n&&(n[oa]||n[ig]);if(e){const t=function gA(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new C(204,!1)}function Nr(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function cx(n){return!!n.\u0275providers}function Id(n,e){for(const t of n)Array.isArray(t)?Id(t,e):cx(t)?Id(t.\u0275providers,e):e(t)}class K_{}class hx{resolveComponentFactory(e){throw function dx(n){const e=Error(`No component factory found for ${ge(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let Wi=(()=>{class n{}return n.NULL=new hx,n})();function fx(){return Lr(We(),w())}function Lr(n,e){return new je(Rt(n,e))}let je=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=fx,n})();function px(n){return n instanceof je?n.nativeElement:n}class Qo{}let gx=(()=>{class n{}return n.\u0275prov=S({token:n,providedIn:"root",factory:()=>null}),n})();class Gi{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const _x=new Gi("14.3.0"),Td={};function Rd(n){return n.ngOriginalError}class Yn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Rd(e);for(;t&&Rd(t);)t=Rd(t);return t||null}}function Z_(n){return n.ownerDocument}function Zn(n){return n instanceof Function?n():n}function X_(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const o=e.length;if(r+o===i||n.charCodeAt(r+o)<=32)return r}t=r+1}}const J_="ng-template";function Ax(n,e,t){let i=0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==X_(f,c,0)||2&i&&c!==h){if(fn(i))return!1;s=!0}}}}else{if(!s&&!fn(i)&&!fn(l))return!1;if(s&&fn(l))continue;s=!1,i=l|1&i}}return fn(i)||s}function fn(n){return 0==(1&n)}function xx(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let o=!1;for(;r-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!fn(s)&&(e+=ny(o,r),r=""),i=s,o=o||!fn(i);t++}return""!==r&&(e+=ny(o,r)),e}const U={};function ie(n){iy(ne(),w(),mt()+n,!1)}function iy(n,e,t,i){if(!i)if(3==(3&e[2])){const o=n.preOrderCheckHooks;null!==o&&_a(e,o,t)}else{const o=n.preOrderHooks;null!==o&&ya(e,o,0,t)}fi(t)}function ay(n,e=null,t=null,i){const r=ly(n,e,t,i);return r.resolveInjectorInitializers(),r}function ly(n,e=null,t=null,i,r=new Set){const o=[t||ce,ex(n)];return i=i||("object"==typeof n?void 0:ge(n)),new G_(o,e||Va(),i||null,r)}let Ke=(()=>{class n{static create(t,i){if(Array.isArray(t))return ay({name:""},i,t,"");{const r=t.name??"";return ay({name:r},t.parent,t.providers,r)}}}return n.THROW_IF_NOT_FOUND=jo,n.NULL=new j_,n.\u0275prov=S({token:n,providedIn:"any",factory:()=>y(B_)}),n.__NG_ELEMENT_ID__=-1,n})();function g(n,e=F.Default){const t=w();return null===t?y(n,e):Ng(We(),t,V(n),e)}function Ha(){throw new Error("invalid")}function ja(n,e){return n<<17|e<<2}function pn(n){return n>>17&32767}function Nd(n){return 2|n}function Qn(n){return(131068&n)>>2}function Ld(n,e){return-131069&n|e<<2}function Vd(n){return 1|n}function Sy(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i22&&iy(n,e,22,!1),t(i,r)}finally{fi(o)}}function Kd(n,e,t){!gg()||(function wR(n,e,t,i){const r=t.directiveStart,o=t.directiveEnd;n.firstCreatePass||No(t,e),lt(i,e);const s=t.initialInputs;for(let a=r;a0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function Oy(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function Py(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function MR(n,e,t){if(t){if(e.exportAs)for(let i=0;i0&&Jd(t)}}function Jd(n){for(let i=id(n);null!==i;i=rd(i))for(let r=10;r0&&Jd(o)}const t=n[1].components;if(null!==t)for(let i=0;i0&&Jd(r)}}function FR(n,e){const t=kt(e,n),i=t[1];(function OR(n,e){for(let t=e.length;t-1&&(ad(e,i),Sa(t,i))}this._attachedToViewContainer=!1}g_(this._lView[1],this._lView)}onDestroy(e){Ty(this._lView[1],this._lView,null,e)}markForCheck(){eh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){qa(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function hT(n,e){Ko(n,e,e[G],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=e}}class PR extends Xo{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;qa(e[1],e,e[8],!1)}checkNoChanges(){}get context(){return null}}class ih extends Wi{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=he(e);return new Jo(t,this.ngModule)}}function $y(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class LR{constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,i){const r=this.injector.get(e,Td,i);return r!==Td||t===Td?r:this.parentInjector.get(e,t,i)}}class Jo extends K_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function Nx(n){return n.map(Px).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return $y(this.componentDef.inputs)}get outputs(){return $y(this.componentDef.outputs)}create(e,t,i,r){let o=(r=r||this.ngModule)instanceof gi?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new LR(e,o):e,a=s.get(Qo,null);if(null===a)throw new C(407,!1);const l=s.get(gx,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function gR(n,e,t){return n.selectRootElement(e,t===cn.ShadowDom)}(c,i,this.componentDef.encapsulation):sd(c,u,function NR(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(u)),h=this.componentDef.onPush?288:272,f=Zd(0,null,null,1,0,null,null,null,null,null),p=za(null,f,null,h,null,null,a,c,l,s,null);let m,_;Ou(p);try{const b=function HR(n,e,t,i,r,o){const s=t[1];t[22]=n;const l=Hr(s,22,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(Ka(l,c,!0),null!==n&&(va(r,n,c),null!==l.classes&&fd(r,n,l.classes),null!==l.styles&&A_(r,n,l.styles)));const u=i.createRenderer(n,e),d=za(t,Iy(e),null,e.onPush?32:16,t[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(Da(No(l,t),s,e.type),Py(s,l),Ny(l,t.length,1)),Ga(t,d),t[22]=d}(d,this.componentDef,p,a,c);if(d)if(i)va(c,d,["ng-version",_x.full]);else{const{attrs:D,classes:v}=function Lx(n){const e=[],t=[];let i=1,r=2;for(;i0&&fd(c,d,v.join(" "))}if(_=Au(f,22),void 0!==t){const D=_.projection=[];for(let v=0;v=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=ba(r.hostAttrs,t=ba(t,r.hostAttrs))}}(i)}function rh(n){return n===gr?{}:n===ce?[]:n}function zR(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function WR(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,o)=>{e(i,r,o),t(i,r,o)}:e}function GR(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let Za=null;function qi(){if(!Za){const n=be.Symbol;if(n&&n.iterator)Za=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ta(He(Y[i.index])):i.index;let I=null;if(!a&&l&&(I=function ok(n,e,t,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,e,r,i.index)),null!==I)(I.__ngLastListenerFn__||I).__ngNextListenerFn__=o,I.__ngLastListenerFn__=o,f=!1;else{o=rv(i,e,d,o,!1);const Y=t.listen(b,r,o);h.push(o,Y),u&&u.push(r,v,D,D+1)}}else o=rv(i,e,d,o,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const _=m.length;if(_)for(let b=0;b<_;b+=2){const te=e[m[b]][m[b+1]].subscribe(o),Re=h.length;h.push(o,te),u&&u.push(r,i.index,Re,-(Re+1))}}}function iv(n,e,t,i){try{return!1!==t(i)}catch(r){return Uy(n,r),!1}}function rv(n,e,t,i,r){return function o(s){if(s===Function)return i;eh(2&n.flags?kt(n.index,e):e);let l=iv(e,0,i,s),c=o.__ngNextListenerFn__;for(;c;)l=iv(e,0,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function Ht(n=1){return function YA(n){return(H.lFrame.contextLView=function ZA(n,e){for(;n>0;)e=e[15],n--;return e}(n,H.lFrame.contextLView))[8]}(n)}function sk(n,e){let t=null;const i=function Rx(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r=0}function hh(n,e,t){return mn(n,e,t,!1),hh}function Xt(n,e){return mn(n,e,null,!0),Xt}function mn(n,e,t,i){const r=w(),o=ne(),s=Wn(2);o.firstUpdatePass&&function Ev(n,e,t,i){const r=n.data;if(null===r[t+1]){const o=r[mt()],s=function Dv(n,e){return e>=n.expandoStartIndex}(n,t);(function Iv(n,e){return 0!=(n.flags&(e?16:32))})(o,i)&&null===e&&!s&&(e=!1),e=function yk(n,e,t,i){const r=ku(n);let o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=is(t=fh(null,n,e,t,i),e.attrs,i),o=null);else{const s=e.directiveStylingLast;if(-1===s||n[s]!==r)if(t=fh(r,n,e,t,i),null===o){let l=function vk(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==Qn(i))return n[pn(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=fh(null,n,e,l[1],i),l=is(l,e.attrs,i),function bk(n,e,t,i){n[pn(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else o=function Ck(n,e,t){let i;const r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=pn(n[a+1]);n[i+1]=ja(h,a),0!==h&&(n[h+1]=Ld(n[h+1],i)),n[a+1]=function nR(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=ja(a,0),0!==a&&(n[a+1]=Ld(n[a+1],i)),a=i;else n[i+1]=ja(l,0),0===a?a=i:n[l+1]=Ld(n[l+1],i),l=i;c&&(n[i+1]=Nd(n[i+1])),gv(n,u,i,!0),gv(n,u,i,!1),function lk(n,e,t,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof e&&Rr(o,e)>=0&&(t[i+1]=Vd(t[i+1]))}(e,u,n,i,o),s=ja(a,l),o?e.classBindings=s:e.styleBindings=s}(r,o,e,t,s,i)}}(o,n,s,i),e!==U&&ct(r,s,e)&&function Mv(n,e,t,i,r,o,s,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];Ja(function _y(n){return 1==(1&n)}(c)?Av(l,e,t,r,Qn(c),s):void 0)||(Ja(o)||function gy(n){return 2==(2&n)}(c)&&(o=Av(l,null,t,r,a,s)),function wT(n,e,t,i,r){if(e)r?n.addClass(t,i):n.removeClass(t,i);else{let o=-1===i.indexOf("-")?void 0:St.DashCase;null==r?n.removeStyle(t,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=St.Important),n.setStyle(t,i,r,o))}}(i,s,ha(mt(),t),r,o))}(o,o.data[mt()],r,r[G],n,r[s+1]=function Ek(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=ge(Pt(n)))),n}(e,t),i,s)}function fh(n,e,t,i,r){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===U&&(h=d?ce:void 0);let f=d?zu(h,i):u===i?h:void 0;if(c&&!Ja(f)&&(f=zu(l,i)),Ja(f)&&(a=f,s))return a;const p=n[r+1];r=s?pn(p):Qn(p)}if(null!==e){let l=o?e.residualClasses:e.residualStyles;null!=l&&(a=zu(l,i))}return a}function Ja(n){return void 0!==n}function fe(n,e=""){const t=w(),i=ne(),r=n+22,o=i.firstCreatePass?Hr(i,r,1,e,null):i.data[r],s=t[r]=function od(n,e){return n.createText(e)}(t[G],e);Ra(i,t,s,o),Dn(o,!1)}function Ze(n){return Yi("",n,""),Ze}function Yi(n,e,t){const i=w(),r=function $r(n,e,t,i){return ct(n,wr(),t)?e+j(t)+i:U}(i,n,e,t);return r!==U&&Xn(i,mt(),r),Yi}function ph(n,e,t,i,r,o,s){const a=w(),l=Wr(a,n,e,t,i,r,o,s);return l!==U&&Xn(a,mt(),l),ph}function mh(n,e,t){const i=w();return ct(i,wr(),e)&&Nt(ne(),Te(),i,n,e,i[G],t,!0),mh}function gh(n,e,t){const i=w();if(ct(i,wr(),e)){const o=ne(),s=Te();Nt(o,s,i,n,e,jy(ku(o.data),s,i),t,!0)}return gh}const Jr="en-US";let qv=Jr;class Qi{}class vb{}class bb extends Qi{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ih(this);const i=Tt(e);this._bootstrapComponents=Zn(i.bootstrap),this._r3Injector=ly(e,t,[{provide:Qi,useValue:this},{provide:Wi,useValue:this.componentFactoryResolver}],ge(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Dh extends vb{constructor(e){super(),this.moduleType=e}create(e){return new bb(this.moduleType,e)}}class zF extends Qi{constructor(e,t,i){super(),this.componentFactoryResolver=new ih(this),this.instance=null;const r=new G_([...e,{provide:Qi,useValue:this},{provide:Wi,useValue:this.componentFactoryResolver}],t||Va(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function rl(n,e,t=null){return new zF(n,e,t).injector}let WF=(()=>{class n{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const i=U_(0,t.type),r=i.length>0?rl([i],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,r)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=S({token:n,providedIn:"environment",factory:()=>new n(y(gi))}),n})();function Cb(n){n.getStandaloneInjector=e=>e.get(WF).getOrCreateStandaloneInjector(n)}function Sh(n){return e=>{setTimeout(n,void 0,e)}}const Se=class _O extends ae{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){let r=e,o=t||(()=>null),s=i;if(e&&"object"==typeof e){const l=e;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Sh(o),r&&(r=Sh(r)),s&&(s=Sh(s)));const a=super.subscribe({next:r,error:o,complete:s});return e instanceof Je&&e.add(a),a}};function yO(){return this._results[qi()]()}class Mh{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=qi(),i=Mh.prototype;i[t]||(i[t]=yO)}get changes(){return this._changes||(this._changes=new Se)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const r=Ft(e);(this._changesDetected=!function _I(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=CO,n})();const vO=Rn,bO=class extends vO{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e,t){const i=this._declarationTContainer.tViews,r=za(this._declarationLView,i,e,16,null,i.declTNode,null,null,null,null,t||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),qd(i,r,e),new Xo(r)}};function CO(){return ol(We(),w())}function ol(n,e){return 4&n.type?new bO(e,n,Lr(n,e)):null}let Jt=(()=>{class n{}return n.__NG_ELEMENT_ID__=wO,n})();function wO(){return Pb(We(),w())}const DO=Jt,Fb=class extends DO{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return Lr(this._hostTNode,this._hostLView)}get injector(){return new Sr(this._hostTNode,this._hostLView)}get parentInjector(){const e=wa(this._hostTNode,this._hostLView);if(Rg(e)){const t=Er(e,this._hostLView),i=Dr(e);return new Sr(t[1].data[i+8],t)}return new Sr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Ob(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=e.createEmbeddedView(t||{},o);return this.insert(s,r),s}createComponent(e,t,i,r,o){const s=e&&!function Bo(n){return"function"==typeof n}(e);let a;if(s)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?e:new Jo(he(e)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(gi,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function VA(n){return dn(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new Fb(d,d[6],d[3]);h.detach(h.indexOf(e))}}const o=this._adjustIndex(t),s=this._lContainer;!function pT(n,e,t,i){const r=10+i,o=t.length;i>0&&(t[r-1][4]=e),i0)i.push(s[a/2]);else{const c=o[a+1],u=e[-l];for(let d=10;d{class n{constructor(t){this.appInits=t,this.resolve=cl,this.reject=cl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});t.push(s)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(y(ul,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hs=new E("AppId",{providedIn:"root",factory:function sC(){return`${Vh()}${Vh()}${Vh()}`}});function Vh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const aC=new E("Platform Initializer"),Bh=new E("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),lC=new E("appBootstrapListener"),hl=new E("AnimationModuleType");let XO=(()=>{class n{log(t){console.log(t)}warn(t){console.warn(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const kn=new E("LocaleId",{providedIn:"root",factory:()=>Ee(kn,F.Optional|F.SkipSelf)||function JO(){return typeof $localize<"u"&&$localize.locale||Jr}()});class tP{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}let Hh=(()=>{class n{compileModuleSync(t){return new Dh(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),o=Zn(Tt(t).declarations).reduce((s,a)=>{const l=he(a);return l&&s.push(new Jo(l)),s},[]);return new tP(i,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rP=(()=>Promise.resolve(0))();function jh(n){typeof Zone>"u"?rP.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class re{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Se(!1),this.onMicrotaskEmpty=new Se(!1),this.onStable=new Se(!1),this.onError=new Se(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function oP(){let n=be.requestAnimationFrame,e=be.cancelAnimationFrame;if(typeof Zone<"u"&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function lP(n){const e=()=>{!function aP(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(be,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,$h(n),n.isCheckStableRunning=!0,Uh(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),$h(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,o,s,a)=>{try{return dC(n),t.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&e(),hC(n)}},onInvoke:(t,i,r,o,s,a,l)=>{try{return dC(n),t.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),hC(n)}},onHasTask:(t,i,r,o)=>{t.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,$h(n),Uh(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,i,r,o)=>(t.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!re.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(re.isInAngularZone())throw new C(909,!1)}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,sP,cl,cl);try{return o.runTask(s,t,i)}finally{o.cancelTask(s)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const sP={};function Uh(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function $h(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function dC(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function hC(n){n._nesting--,Uh(n)}class cP{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Se,this.onMicrotaskEmpty=new Se,this.onStable=new Se,this.onError=new Se}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}const fC=new E(""),fl=new E("");let Gh,zh=(()=>{class n{constructor(t,i,r){this._ngZone=t,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Gh||(function uP(n){Gh=n}(r),r.addToWindow(i)),this._watchAngularEvents(),t.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:()=>{re.assertNotInAngularZone(),jh(()=>{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())jh(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(y(re),y(Wh),y(fl))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),Wh=(()=>{class n{constructor(){this._applications=new Map}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return Gh?.findTestabilityInTree(this,t,i)??null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),vi=null;const pC=new E("AllowMultipleToken"),qh=new E("PlatformDestroyListeners");class mC{constructor(e,t){this.name=e,this.token=t}}function _C(n,e,t=[]){const i=`Platform: ${e}`,r=new E(i);return(o=[])=>{let s=Kh();if(!s||s.injector.get(pC,!1)){const a=[...t,...o,{provide:r,useValue:!0}];n?n(a):function fP(n){if(vi&&!vi.get(pC,!1))throw new C(400,!1);vi=n;const e=n.get(vC);(function gC(n){const e=n.get(aC,null);e&&e.forEach(t=>t())})(n)}(function yC(n=[],e){return Ke.create({name:e,providers:[{provide:Sd,useValue:"platform"},{provide:qh,useValue:new Set([()=>vi=null])},...n]})}(a,i))}return function mP(n){const e=Kh();if(!e)throw new C(401,!1);return e}()}}function Kh(){return vi?.get(vC)??null}let vC=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const r=function CC(n,e){let t;return t="noop"===n?new cP:("zone.js"===n?void 0:n)||new re(e),t}(i?.ngZone,function bC(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:re,useValue:r}];return r.run(()=>{const s=Ke.create({providers:o,parent:this.injector,name:t.moduleType.name}),a=t.create(s),l=a.injector.get(Yn,null);if(!l)throw new C(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{pl(this._modules,a),c.unsubscribe()})}),function wC(n,e,t){try{const i=t();return ns(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(dl);return c.runInitializers(),c.donePromise.then(()=>(function Kv(n){It(n,"Expected localeId to be defined"),"string"==typeof n&&(qv=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(kn,Jr)||Jr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(t,i=[]){const r=DC({},i);return function dP(n,e,t){const i=new Dh(t);return Promise.resolve(i)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(t){const i=t.injector.get(no);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new C(403,!1);t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(qh,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(y(Ke))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function DC(n,e){return Array.isArray(e)?e.reduce(DC,n):{...n,...e}}let no=(()=>{class n{constructor(t,i,r){this._zone=t,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new ye(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new ye(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{re.assertNotInAngularZone(),jh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{re.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=du(o,s.pipe(eg()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,i){const r=t instanceof K_;if(!this._injector.get(dl).done)throw!r&&function _r(n){const e=he(n)||ht(n)||ft(n);return null!==e&&e.standalone}(t),new C(405,false);let s;s=r?t:this._injector.get(Wi).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function hP(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Qi),c=s.create(Ke.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(fC,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),pl(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;pl(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(lC,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>pl(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new C(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(t){return new(t||n)(y(re),y(gi),y(Yn))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function pl(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let SC=!0,fs=(()=>{class n{}return n.__NG_ELEMENT_ID__=yP,n})();function yP(n){return function vP(n,e,t){if(ua(n)&&!t){const i=kt(n.index,e);return new Xo(i,i)}return 47&n.type?new Xo(e[16],e):null}(We(),w(),16==(16&n))}class xC{constructor(){}supports(e){return es(e)}create(e){return new SP(e)}}const EP=(n,e)=>e;class SP{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||EP}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,o=null;for(;t||i;){const s=!i||t&&t.currentIndex{s=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,a,s,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):e=this._addAfter(new MP(t,i),o,r),e}_verifyReinsertion(e,t,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new RC),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new RC),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class MP{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class AP{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class RC{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new AP,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function kC(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||OC()),deps:[[n,new Fr,new mi]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new C(901,!1)}}return n.\u0275prov=S({token:n,providedIn:"root",factory:OC}),n})();const kP=_C(null,"core",[]);let FP=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(y(no))},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({}),n})(),yl=null;function Fn(){return yl}const Q=new E("DocumentToken");let Jh=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(){return function LP(){return y(NC)}()},providedIn:"platform"}),n})();const VP=new E("Location Initialized");let NC=(()=>{class n extends Jh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Fn().getBaseHref(this._doc)}onPopState(t){const i=Fn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Fn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){LC()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){LC()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(y(Q))},n.\u0275prov=S({token:n,factory:function(){return function BP(){return new NC(y(Q))}()},providedIn:"platform"}),n})();function LC(){return!!window.history.pushState}function ef(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function VC(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function ti(n){return n&&"?"!==n[0]?"?"+n:n}let Ji=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(){return Ee(HC)},providedIn:"root"}),n})();const BC=new E("appBaseHref");let HC=(()=>{class n extends Ji{constructor(t,i){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Ee(Q).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return ef(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+ti(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const s=this.prepareExternalUrl(r+ti(o));this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){const s=this.prepareExternalUrl(r+ti(o));this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(y(Jh),y(BC,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),HP=(()=>{class n extends Ji{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=ef(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,o){let s=this.prepareExternalUrl(r+ti(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){let s=this.prepareExternalUrl(r+ti(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(y(Jh),y(BC,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),ms=(()=>{class n{constructor(t){this._subject=new Se,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._baseHref=VC(jC(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+ti(i))}normalize(t){return n.stripTrailingSlash(function UP(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,jC(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._locationStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ti(i)),r)}replaceState(t,i="",r=null){this._locationStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ti(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=ti,n.joinWithSlash=ef,n.stripTrailingSlash=VC,n.\u0275fac=function(t){return new(t||n)(y(Ji))},n.\u0275prov=S({token:n,factory:function(){return function jP(){return new ms(y(Ji))}()},providedIn:"root"}),n})();function jC(n){return n.replace(/\/index.html$/,"")}class IN{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let bi=(()=>{class n{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new IN(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),XC(a,r)}});for(let r=0,o=i.length;r{XC(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(g(Jt),g(Rn),g(_l))},n.\u0275dir=P({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function XC(n,e){n.context.$implicit=e.item}let JC=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new xN,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){ew("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){ew("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(g(Jt),g(Rn))},n.\u0275dir=P({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class xN{constructor(){this.$implicit=null,this.ngIf=null}}function ew(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${ge(e)}'.`)}let iw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({}),n})();const rw="browser";let l1=(()=>{class n{}return n.\u0275prov=S({token:n,providedIn:"root",factory:()=>new c1(y(Q),window)}),n})();class c1{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function u1(n,e){const t=n.getElementById(e)||n.getElementsByName(e)[0];if(t)return t;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),i=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=ow(this.window.history)||ow(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ow(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class yf extends class V1 extends class NP{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function PP(n){yl||(yl=n)}(new yf)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function B1(){return vs=vs||document.querySelector("base"),vs?vs.getAttribute("href"):null}();return null==t?null:function H1(n){xl=xl||document.createElement("a"),xl.setAttribute("href",n);const e=xl.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){vs=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function SN(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,o]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}(document.cookie,e)}}let xl,vs=null;const uw=new E("TRANSITION_ID"),U1=[{provide:ul,useFactory:function j1(n,e,t){return()=>{t.get(dl).donePromise.then(()=>{const i=Fn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const Rl=new E("EventManagerPlugins");let kl=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),bs=(()=>{class n extends hw{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(fw),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(fw))}}return n.\u0275fac=function(t){return new(t||n)(y(Q))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function fw(n){Fn().remove(n)}const vf={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/"},bf=/%COMP%/g;function Fl(n,e,t){for(let i=0;i{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Ol=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Cf(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case cn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new Z1(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case cn.ShadowDom:return new Q1(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=Fl(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(y(kl),y(bs),y(hs))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class Cf{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(vf[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){(yw(e)?e.content:e).appendChild(t)}insertBefore(e,t,i){e&&(yw(e)?e.content:e).insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const o=vf[r];o?e.setAttributeNS(o,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=vf[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(St.DashCase|St.Important)?e.style.setProperty(t,i,r&St.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&St.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,gw(i)):this.eventManager.addEventListener(e,t,gw(i))}}function yw(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class Z1 extends Cf{constructor(e,t,i,r){super(e),this.component=i;const o=Fl(r+"-"+i.id,i.styles,[]);t.addStyles(o),this.contentAttr=function q1(n){return"_ngcontent-%COMP%".replace(bf,n)}(r+"-"+i.id),this.hostAttr=function K1(n){return"_nghost-%COMP%".replace(bf,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class Q1 extends Cf{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Fl(r.id,r.styles,[]);for(let s=0;s{class n extends dw{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(y(Q))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const vw=["alt","control","meta","shift"],J1={"\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"},eL={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let tL=(()=>{class n extends dw{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Fn().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),vw.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(t,i){let r=J1[t.key]||t.key,o="";return i.indexOf("code.")>-1&&(r=t.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),vw.forEach(s=>{s!==r&&(0,eL[s])(t)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(t,i,r){return o=>{n.matchEventFullKeyCode(o,t)&&r.runGuarded(()=>i(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(y(Q))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const oL=_C(kP,"browser",[{provide:Bh,useValue:rw},{provide:aC,useValue:function nL(){yf.makeCurrent()},multi:!0},{provide:Q,useFactory:function rL(){return function MT(n){md=n}(document),document},deps:[]}]),ww=new E(""),Dw=[{provide:fl,useClass:class $1{addToWindow(e){be.getAngularTestability=(i,r=!0)=>{const o=e.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},be.getAllAngularTestabilities=()=>e.getAllTestabilities(),be.getAllAngularRootElements=()=>e.getAllRootElements(),be.frameworkStabilizers||(be.frameworkStabilizers=[]),be.frameworkStabilizers.push(i=>{const r=be.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){return null==t?null:e.getTestability(t)??(i?Fn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},deps:[]},{provide:fC,useClass:zh,deps:[re,Wh,fl]},{provide:zh,useClass:zh,deps:[re,Wh,fl]}],Ew=[{provide:Sd,useValue:"root"},{provide:Yn,useFactory:function iL(){return new Yn},deps:[]},{provide:Rl,useClass:X1,multi:!0,deps:[Q,re,Bh]},{provide:Rl,useClass:tL,multi:!0,deps:[Q]},{provide:Ol,useClass:Ol,deps:[kl,bs,hs]},{provide:Qo,useExisting:Ol},{provide:hw,useExisting:bs},{provide:bs,useClass:bs,deps:[Q]},{provide:kl,useClass:kl,deps:[Rl,re]},{provide:class d1{},useClass:z1,deps:[]},[]];let Sw=(()=>{class n{constructor(t){}static withServerTransition(t){return{ngModule:n,providers:[{provide:hs,useValue:t.appId},{provide:uw,useExisting:hs},U1]}}}return n.\u0275fac=function(t){return new(t||n)(y(ww,12))},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({providers:[...Ew,...Dw],imports:[iw,FP]}),n})(),Mw=(()=>{class n{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return n.\u0275fac=function(t){return new(t||n)(y(Q))},n.\u0275prov=S({token:n,factory:function(t){let i=null;return i=t?new t:function aL(){return new Mw(y(Q))}(),i},providedIn:"root"}),n})();typeof window<"u"&&window;let Pl=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(t){let i=null;return i=t?new(t||n):y(Tw),i},providedIn:"root"}),n})(),Tw=(()=>{class n extends Pl{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case ue.NONE:return i;case ue.HTML:return Sn(i,"HTML")?Pt(i):V_(this._doc,String(i)).toString();case ue.STYLE:return Sn(i,"Style")?Pt(i):i;case ue.SCRIPT:if(Sn(i,"Script"))return Pt(i);throw new Error("unsafe value used in a script context");case ue.URL:return Sn(i,"URL")?Pt(i):Pa(String(i));case ue.RESOURCE_URL:if(Sn(i,"ResourceURL"))return Pt(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function FT(n){return new AT(n)}(t)}bypassSecurityTrustStyle(t){return function OT(n){return new IT(n)}(t)}bypassSecurityTrustScript(t){return function PT(n){return new TT(n)}(t)}bypassSecurityTrustUrl(t){return function NT(n){return new xT(n)}(t)}bypassSecurityTrustResourceUrl(t){return function LT(n){return new RT(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(y(Q))},n.\u0275prov=S({token:n,factory:function(t){let i=null;return i=t?new t:function pL(n){return new Tw(n.get(Q))}(y(Ke)),i},providedIn:"root"}),n})();function R(...n){return Be(n,Ao(n))}class vt extends ae{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){const{hasError:e,thrownError:t,_value:i}=this;if(e)throw t;return this._throwIfClosed(),i}next(e){super.next(this._value=e)}}const Nl=So(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:mL}=Array,{getPrototypeOf:gL,prototype:_L,keys:yL}=Object;function xw(n){if(1===n.length){const e=n[0];if(mL(e))return{args:e,keys:null};if(function vL(n){return n&&"object"==typeof n&&gL(n)===_L}(e)){const t=yL(e);return{args:t.map(i=>e[i]),keys:t}}}return{args:n,keys:null}}const{isArray:bL}=Array;function Ef(n){return B(e=>function CL(n,e){return bL(e)?n(...e):n(e)}(n,e))}function Rw(n,e){return n.reduce((t,i,r)=>(t[i]=e[r],t),{})}function Sf(...n){const e=Ao(n),t=Zm(n),{args:i,keys:r}=xw(n);if(0===i.length)return Be([],e);const o=new ye(function wL(n,e,t=ci){return i=>{kw(e,()=>{const{length:r}=n,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=Be(n[l],e);let u=!1;c.subscribe(Me(i,d=>{o[l]=d,u||(u=!0,a--),a||i.next(t(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,e,r?s=>Rw(r,s):ci));return t?o.pipe(Ef(t)):o}function kw(n,e,t){n?Hn(t,n,e):e()}function Ll(...n){return function DL(){return mr(1)}()(Be(n,Ao(n)))}function Vl(n){return new ye(e=>{wt(n()).subscribe(e)})}function io(n,e){const t=oe(n)?n:()=>n,i=r=>r.error(t());return new ye(e?r=>e.schedule(i,0,r):i)}function Mf(){return Fe((n,e)=>{let t=null;n._refCount++;const i=Me(e,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(t=null);const r=n._connection,o=t;t=null,r&&(!o||r===o)&&r.unsubscribe(),e.unsubscribe()});n.subscribe(i),i.closed||(t=n.connect())})}class Fw extends ye{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Pm(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Je;const t=this.getSubject();e.add(this.source.subscribe(Me(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Je.EMPTY)}return e}refCount(){return Mf()(this)}}function On(n,e){return Fe((t,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();t.subscribe(Me(i,l=>{r?.unsubscribe();let c=0;const u=o++;wt(n(l,u)).subscribe(r=Me(i,d=>i.next(e?e(l,d,u,c++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function nn(n){return n<=0?()=>jn:Fe((e,t)=>{let i=0;e.subscribe(Me(t,r=>{++i<=n&&(t.next(r),n<=i&&t.complete())}))})}function Bl(...n){const e=Ao(n);return Fe((t,i)=>{(e?Ll(n,t,e):Ll(n,t)).subscribe(i)})}function bt(n,e){return Fe((t,i)=>{let r=0;t.subscribe(Me(i,o=>n.call(e,o,r++)&&i.next(o)))})}function Hl(n){return Fe((e,t)=>{let i=!1;e.subscribe(Me(t,r=>{i=!0,t.next(r)},()=>{i||t.next(n),t.complete()}))})}function Ow(n=EL){return Fe((e,t)=>{let i=!1;e.subscribe(Me(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(n())))})}function EL(){return new Nl}function wi(n,e){const t=arguments.length>=2;return i=>i.pipe(n?bt((r,o)=>n(r,o,i)):ci,nn(1),t?Hl(e):Ow(()=>new Nl))}function Di(n,e){return oe(e)?et(n,e,1):et(n,1)}function Xe(n,e,t){const i=oe(n)||e||t?{next:n,error:e,complete:t}:n;return i?Fe((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(Me(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):ci}function ii(n){return Fe((e,t)=>{let o,i=null,r=!1;i=e.subscribe(Me(t,void 0,void 0,s=>{o=wt(n(s,ii(n)(e))),i?(i.unsubscribe(),i=null,o.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(t))})}function SL(n,e,t,i,r){return(o,s)=>{let a=t,l=e,c=0;o.subscribe(Me(s,u=>{const d=c++;l=a?n(l,u,d):(a=!0,u),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function Pw(n,e){return Fe(SL(n,e,arguments.length>=2,!0))}function Af(n){return n<=0?()=>jn:Fe((e,t)=>{let i=[];e.subscribe(Me(t,r=>{i.push(r),n{for(const r of i)t.next(r);t.complete()},void 0,()=>{i=null}))})}function Nw(n,e){const t=arguments.length>=2;return i=>i.pipe(n?bt((r,o)=>n(r,o,i)):ci,Af(1),t?Hl(e):Ow(()=>new Nl))}function jl(n){return Fe((e,t)=>{try{e.subscribe(t)}finally{t.add(n)}})}const X="primary",Cs=Symbol("RouteTitle");class IL{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function ro(n){return new IL(n)}function TL(n,e,t){const i=t.path.split("/");if(i.length>n.length||"full"===t.pathMatch&&(e.hasChildren()||i.lengthi[o]===r)}return n===e}function Vw(n){return Array.prototype.concat.apply([],n)}function Bw(n){return n.length>0?n[n.length-1]:null}function rt(n,e){for(const t in n)n.hasOwnProperty(t)&&e(n[t],t)}function Ei(n){return ch(n)?n:ns(n)?Be(Promise.resolve(n)):R(n)}const kL={exact:function Uw(n,e,t){if(!tr(n.segments,e.segments)||!Ul(n.segments,e.segments,t)||n.numberOfChildren!==e.numberOfChildren)return!1;for(const i in e.children)if(!n.children[i]||!Uw(n.children[i],e.children[i],t))return!1;return!0},subset:$w},Hw={exact:function FL(n,e){return Pn(n,e)},subset:function OL(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(t=>Lw(n[t],e[t]))},ignored:()=>!0};function jw(n,e,t){return kL[t.paths](n.root,e.root,t.matrixParams)&&Hw[t.queryParams](n.queryParams,e.queryParams)&&!("exact"===t.fragment&&n.fragment!==e.fragment)}function $w(n,e,t){return zw(n,e,e.segments,t)}function zw(n,e,t,i){if(n.segments.length>t.length){const r=n.segments.slice(0,t.length);return!(!tr(r,t)||e.hasChildren()||!Ul(r,t,i))}if(n.segments.length===t.length){if(!tr(n.segments,t)||!Ul(n.segments,t,i))return!1;for(const r in e.children)if(!n.children[r]||!$w(n.children[r],e.children[r],i))return!1;return!0}{const r=t.slice(0,n.segments.length),o=t.slice(n.segments.length);return!!(tr(n.segments,r)&&Ul(n.segments,r,i)&&n.children[X])&&zw(n.children[X],e,o,i)}}function Ul(n,e,t){return e.every((i,r)=>Hw[t](n[r].parameters,i.parameters))}class er{constructor(e,t,i){this.root=e,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ro(this.queryParams)),this._queryParamMap}toString(){return LL.serialize(this)}}class J{constructor(e,t){this.segments=e,this.children=t,this.parent=null,rt(t,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return $l(this)}}class ws{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=ro(this.parameters)),this._parameterMap}toString(){return Kw(this)}}function tr(n,e){return n.length===e.length&&n.every((t,i)=>t.path===e[i].path)}let Ww=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(){return new Tf},providedIn:"root"}),n})();class Tf{parse(e){const t=new GL(e);return new er(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${Ds(e.root,!0)}`,i=function HL(n){const e=Object.keys(n).map(t=>{const i=n[t];return Array.isArray(i)?i.map(r=>`${zl(t)}=${zl(r)}`).join("&"):`${zl(t)}=${zl(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(e.queryParams);return`${t}${i}${"string"==typeof e.fragment?`#${function VL(n){return encodeURI(n)}(e.fragment)}`:""}`}}const LL=new Tf;function $l(n){return n.segments.map(e=>Kw(e)).join("/")}function Ds(n,e){if(!n.hasChildren())return $l(n);if(e){const t=n.children[X]?Ds(n.children[X],!1):"",i=[];return rt(n.children,(r,o)=>{o!==X&&i.push(`${o}:${Ds(r,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function NL(n,e){let t=[];return rt(n.children,(i,r)=>{r===X&&(t=t.concat(e(i,r)))}),rt(n.children,(i,r)=>{r!==X&&(t=t.concat(e(i,r)))}),t}(n,(i,r)=>r===X?[Ds(n.children[X],!1)]:[`${r}:${Ds(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[X]?`${$l(n)}/${t[0]}`:`${$l(n)}/(${t.join("//")})`}}function Gw(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function zl(n){return Gw(n).replace(/%3B/gi,";")}function xf(n){return Gw(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wl(n){return decodeURIComponent(n)}function qw(n){return Wl(n.replace(/\+/g,"%20"))}function Kw(n){return`${xf(n.path)}${function BL(n){return Object.keys(n).map(e=>`;${xf(e)}=${xf(n[e])}`).join("")}(n.parameters)}`}const jL=/^[^\/()?;=#]+/;function Gl(n){const e=n.match(jL);return e?e[0]:""}const UL=/^[^=?&#]+/,zL=/^[^&#]+/;class GL{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new J([],{}):new J([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(i[X]=new J(e,t)),i}parseSegment(){const e=Gl(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(e),new ws(Wl(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Gl(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=Gl(this.remaining);r&&(i=r,this.capture(i))}e[Wl(t)]=Wl(i)}parseQueryParam(e){const t=function $L(n){const e=n.match(UL);return e?e[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const s=function WL(n){const e=n.match(zL);return e?e[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=qw(t),o=qw(i);if(e.hasOwnProperty(r)){let s=e[r];Array.isArray(s)||(s=[s],e[r]=s),s.push(o)}else e[r]=o}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Gl(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new C(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=X);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[X]:new J([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new C(4011,!1)}}function Rf(n){return n.segments.length>0?new J([],{[X]:n}):n}function ql(n){const e={};for(const i of Object.keys(n.children)){const o=ql(n.children[i]);(o.segments.length>0||o.hasChildren())&&(e[i]=o)}return function qL(n){if(1===n.numberOfChildren&&n.children[X]){const e=n.children[X];return new J(n.segments.concat(e.segments),e.children)}return n}(new J(n.segments,e))}function nr(n){return n instanceof er}function ZL(n,e,t,i,r){if(0===t.length)return oo(e.root,e.root,e.root,i,r);const o=function Qw(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new Zw(!0,0,n);let e=0,t=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return rt(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?e++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new Zw(t,e,i)}(t);return o.toRoot()?oo(e.root,e.root,new J([],{}),i,r):function s(l){const c=function XL(n,e,t,i){if(n.isAbsolute)return new so(e.root,!0,0);if(-1===i)return new so(t,t===e.root,0);return function Xw(n,e,t){let i=n,r=e,o=t;for(;o>r;){if(o-=r,i=i.parent,!i)throw new C(4005,!1);r=i.segments.length}return new so(i,!1,r-o)}(t,i+(Es(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,e,n.snapshot?._urlSegment,l),u=c.processChildren?Ms(c.segmentGroup,c.index,o.commands):Ff(c.segmentGroup,c.index,o.commands);return oo(e.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function Es(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Ss(n){return"object"==typeof n&&null!=n&&n.outlets}function oo(n,e,t,i,r){let s,o={};i&&rt(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===e?t:Yw(n,e,t);const a=Rf(ql(s));return new er(a,o,r)}function Yw(n,e,t){const i={};return rt(n.children,(r,o)=>{i[o]=r===e?t:Yw(r,e,t)}),new J(n.segments,i)}class Zw{constructor(e,t,i){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=i,e&&i.length>0&&Es(i[0]))throw new C(4003,!1);const r=i.find(Ss);if(r&&r!==Bw(i))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class so{constructor(e,t,i){this.segmentGroup=e,this.processChildren=t,this.index=i}}function Ff(n,e,t){if(n||(n=new J([],{})),0===n.segments.length&&n.hasChildren())return Ms(n,e,t);const i=function eV(n,e,t){let i=0,r=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=t.length)return o;const s=n.segments[r],a=t[i];if(Ss(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!eD(l,c,s))return o;i+=2}else{if(!eD(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,e,t),r=t.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=Ff(n.children[s],e,o))}),rt(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new J(n.segments,r)}}function Of(n,e,t){const i=n.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=Of(new J([],{}),0,t))}),e}function Jw(n){const e={};return rt(n,(t,i)=>e[i]=`${t}`),e}function eD(n,e,t){return n==t.path&&Pn(e,t.parameters)}class ri{constructor(e,t){this.id=e,this.url=t}}class Pf extends ri{constructor(e,t,i="imperative",r=null){super(e,t),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ir extends ri{constructor(e,t,i){super(e,t),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Kl extends ri{constructor(e,t,i,r){super(e,t),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class tD extends ri{constructor(e,t,i,r){super(e,t),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class nV extends ri{constructor(e,t,i,r){super(e,t),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class iV extends ri{constructor(e,t,i,r){super(e,t),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rV extends ri{constructor(e,t,i,r,o){super(e,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class oV extends ri{constructor(e,t,i,r){super(e,t),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sV extends ri{constructor(e,t,i,r){super(e,t),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class aV{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class lV{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class cV{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class uV{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dV{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hV{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nD{constructor(e,t,i){this.routerEvent=e,this.position=t,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class iD{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Nf(e,this._root);return t?t.children.map(i=>i.value):[]}firstChild(e){const t=Nf(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Lf(e,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return Lf(e,this._root).map(t=>t.value)}}function Nf(n,e){if(n===e.value)return e;for(const t of e.children){const i=Nf(n,t);if(i)return i}return null}function Lf(n,e){if(n===e.value)return[e];for(const t of e.children){const i=Lf(n,t);if(i.length)return i.unshift(e),i}return[]}class oi{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function ao(n){const e={};return n&&n.children.forEach(t=>e[t.value.outlet]=t),e}class rD extends iD{constructor(e,t){super(e),this.snapshot=t,Vf(this,e)}toString(){return this.snapshot.toString()}}function oD(n,e){const t=function pV(n,e){const s=new Yl([],{},{},"",{},X,e,null,n.root,-1,{});return new aD("",new oi(s,[]))}(n,e),i=new vt([new ws("",{})]),r=new vt({}),o=new vt({}),s=new vt({}),a=new vt(""),l=new bn(i,r,s,a,o,X,e,t.root);return l.snapshot=t.root,new rD(new oi(l,[]),t)}class bn{constructor(e,t,i,r,o,s,a,l){this.url=e,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(B(c=>c[Cs]))??R(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(B(e=>ro(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(B(e=>ro(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function sD(n,e="emptyOnly"){const t=n.pathFromRoot;let i=0;if("always"!==e)for(i=t.length-1;i>=1;){const r=t[i],o=t[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function mV(n){return n.reduce((e,t)=>({params:{...e.params,...t.params},data:{...e.data,...t.data},resolve:{...t.data,...e.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(i))}class Yl{constructor(e,t,i,r,o,s,a,l,c,u,d,h){this.url=e,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[Cs],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=h??u,this._resolve=d}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=ro(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ro(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class aD extends iD{constructor(e,t){super(t),this.url=e,Vf(this,t)}toString(){return lD(this._root)}}function Vf(n,e){e.value._routerState=n,e.children.forEach(t=>Vf(n,t))}function lD(n){const e=n.children.length>0?` { ${n.children.map(lD).join(", ")} } `:"";return`${n.value}${e}`}function Bf(n){if(n.snapshot){const e=n.snapshot,t=n._futureSnapshot;n.snapshot=t,Pn(e.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),e.fragment!==t.fragment&&n.fragment.next(t.fragment),Pn(e.params,t.params)||n.params.next(t.params),function xL(n,e){if(n.length!==e.length)return!1;for(let t=0;tPn(t.parameters,e[i].parameters))}(n.url,e.url);return t&&!(!n.parent!=!e.parent)&&(!n.parent||Hf(n.parent,e.parent))}function As(n,e,t){if(t&&n.shouldReuseRoute(e.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=e.value;const r=function _V(n,e,t){return e.children.map(i=>{for(const r of t.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return As(n,i,r);return As(n,i)})}(n,e,t);return new oi(i,r)}{if(n.shouldAttach(e.value)){const o=n.retrieve(e.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>As(n,a)),s}}const i=function yV(n){return new bn(new vt(n.url),new vt(n.params),new vt(n.queryParams),new vt(n.fragment),new vt(n.data),n.outlet,n.component,n)}(e.value),r=e.children.map(o=>As(n,o));return new oi(i,r)}}const jf="ngNavigationCancelingError";function cD(n,e){const{redirectTo:t,navigationBehaviorOptions:i}=nr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=uD(!1,0,e);return r.url=t,r.navigationBehaviorOptions=i,r}function uD(n,e,t){const i=new Error("NavigationCancelingError: "+(n||""));return i[jf]=!0,i.cancellationCode=e,t&&(i.url=t),i}function dD(n){return hD(n)&&nr(n.url)}function hD(n){return n&&n[jf]}class vV{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Is,this.attachRef=null}}let Is=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(t,i){const r=this.getOrCreateContext(t);r.outlet=i,this.contexts.set(t,r)}onChildOutletDestroyed(t){const i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new vV,this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Zl=!1;let lo=(()=>{class n{constructor(t,i,r,o,s){this.parentContexts=t,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Se,this.deactivateEvents=new Se,this.attachEvents=new Se,this.detachEvents=new Se,this.name=r||X,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,Zl);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,Zl);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,Zl);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new C(4013,Zl);this._activatedRoute=t;const r=this.location,s=t._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new bV(t,a,r.injector);if(i&&function CV(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(t){return new(t||n)(g(Is),g(Jt),Mr("name"),g(fs),g(gi))},n.\u0275dir=P({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),n})();class bV{constructor(e,t,i){this.route=e,this.childContexts=t,this.parent=i}get(e,t){return e===bn?this.route:e===Is?this.childContexts:this.parent.get(e,t)}}let Uf=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=De({type:n,selectors:[["ng-component"]],standalone:!0,features:[Cb],decls:1,vars:0,template:function(t,i){1&t&&In(0,"router-outlet")},dependencies:[lo],encapsulation:2}),n})();function fD(n,e){return n.providers&&!n._injector&&(n._injector=rl(n.providers,e,`Route: ${n.path}`)),n._injector??e}function zf(n){const e=n.children&&n.children.map(zf),t=e?{...n,children:e}:{...n};return!t.component&&!t.loadComponent&&(e||t.loadChildren)&&t.outlet&&t.outlet!==X&&(t.component=Uf),t}function rn(n){return n.outlet||X}function pD(n,e){const t=n.filter(i=>rn(i)===e);return t.push(...n.filter(i=>rn(i)!==e)),t}function Ts(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class MV{constructor(e,t,i,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=i,this.forwardEvent=r}activate(e){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,e),Bf(this.futureState.root),this.activateChildRoutes(t,i,e)}deactivateChildRoutes(e,t,i){const r=ao(t);e.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),rt(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(e,t,i){const r=e.value,o=t?t.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,i);else o&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const i=t.getContext(e.value.outlet),r=i&&e.value.component?i.children:t,o=ao(e);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,t){const i=t.getContext(e.value.outlet),r=i&&e.value.component?i.children:t,o=ao(e);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(e,t,i){const r=ao(t);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new hV(o.value.snapshot))}),e.children.length&&this.forwardEvent(new uV(e.value.snapshot))}activateRoutes(e,t,i){const r=e.value,o=t?t.value:null;if(Bf(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Bf(a.route.value),this.activateChildRoutes(e,null,s.children)}else{const a=Ts(r.snapshot),l=a?.get(Wi)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,i)}}class mD{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Ql{constructor(e,t){this.component=e,this.route=t}}function AV(n,e,t){const i=n._root;return xs(i,e?e._root:null,t,[i.value])}function co(n,e){const t=Symbol(),i=e.get(n,t);return i===t?"function"!=typeof n||function pA(n){return null!==ra(n)}(n)?e.get(n):n:i}function xs(n,e,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=ao(e);return n.children.forEach(s=>{(function TV(n,e,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=e?e.value:null,a=t?t.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function xV(n,e,t){if("function"==typeof t)return t(n,e);switch(t){case"pathParamsChange":return!tr(n.url,e.url);case"pathParamsOrQueryParamsChange":return!tr(n.url,e.url)||!Pn(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Hf(n,e)||!Pn(n.queryParams,e.queryParams);default:return!Hf(n,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new mD(i)):(o.data=s.data,o._resolvedData=s._resolvedData),xs(n,e,o.component?a?a.children:null:t,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ql(a.outlet.component,s))}else s&&Rs(e,a,r),r.canActivateChecks.push(new mD(i)),xs(n,null,o.component?a?a.children:null:t,i,r)})(s,o[s.value.outlet],t,i.concat([s.value]),r),delete o[s.value.outlet]}),rt(o,(s,a)=>Rs(s,t.getContext(a),r)),r}function Rs(n,e,t){const i=ao(n),r=n.value;rt(i,(o,s)=>{Rs(o,r.component?e?e.children.getContext(s):null:e,t)}),t.canDeactivateChecks.push(new Ql(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}function ks(n){return"function"==typeof n}function Wf(n){return n instanceof Nl||"EmptyError"===n?.name}const Xl=Symbol("INITIAL_VALUE");function uo(){return On(n=>Sf(n.map(e=>e.pipe(nn(1),Bl(Xl)))).pipe(B(e=>{for(const t of e)if(!0!==t){if(t===Xl)return Xl;if(!1===t||t instanceof er)return t}return!0}),bt(e=>e!==Xl),nn(1)))}function gD(n){return function mM(...n){return Fm(n)}(Xe(e=>{if(nr(e))throw cD(0,e)}),B(e=>!0===e))}const Gf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function _D(n,e,t,i,r){const o=qf(n,e,t);return o.matched?function qV(n,e,t,i){const r=e.canMatch;return r&&0!==r.length?R(r.map(s=>{const a=co(s,n);return Ei(function NV(n){return n&&ks(n.canMatch)}(a)?a.canMatch(e,t):n.runInContext(()=>a(e,t)))})).pipe(uo(),gD()):R(!0)}(i=fD(e,i),e,t).pipe(B(s=>!0===s?o:{...Gf})):R(o)}function qf(n,e,t){if(""===e.path)return"full"===e.pathMatch&&(n.hasChildren()||t.length>0)?{...Gf}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(e.matcher||TL)(t,n,e);if(!r)return{...Gf};const o={};rt(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:t.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Jl(n,e,t,i,r="corrected"){if(t.length>0&&function ZV(n,e,t){return t.some(i=>ec(n,e,i)&&rn(i)!==X)}(n,t,i)){const s=new J(e,function YV(n,e,t,i){const r={};r[X]=i,i._sourceSegment=n,i._segmentIndexShift=e.length;for(const o of t)if(""===o.path&&rn(o)!==X){const s=new J([],{});s._sourceSegment=n,s._segmentIndexShift=e.length,r[rn(o)]=s}return r}(n,e,i,new J(t,n.children)));return s._sourceSegment=n,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===t.length&&function QV(n,e,t){return t.some(i=>ec(n,e,i))}(n,t,i)){const s=new J(n.segments,function KV(n,e,t,i,r,o){const s={};for(const a of i)if(ec(n,t,a)&&!r[rn(a)]){const l=new J([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:e.length,s[rn(a)]=l}return{...r,...s}}(n,e,t,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:t}}const o=new J(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:t}}function ec(n,e,t){return(!(n.hasChildren()||e.length>0)||"full"!==t.pathMatch)&&""===t.path}function yD(n,e,t,i){return!!(rn(n)===i||i!==X&&ec(e,t,n))&&("**"===n.path||qf(e,n,t).matched)}function vD(n,e,t){return 0===e.length&&!n.children[t]}const tc=!1;class nc{constructor(e){this.segmentGroup=e||null}}class bD{constructor(e){this.urlTree=e}}function Fs(n){return io(new nc(n))}function CD(n){return io(new bD(n))}class tB{constructor(e,t,i,r,o){this.injector=e,this.configLoader=t,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const e=Jl(this.urlTree.root,[],[],this.config).segmentGroup,t=new J(e.segments,e.children);return this.expandSegmentGroup(this.injector,this.config,t,X).pipe(B(o=>this.createUrlTree(ql(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(ii(o=>{if(o instanceof bD)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof nc?this.noMatchError(o):o}))}match(e){return this.expandSegmentGroup(this.injector,this.config,e.root,X).pipe(B(r=>this.createUrlTree(ql(r),e.queryParams,e.fragment))).pipe(ii(r=>{throw r instanceof nc?this.noMatchError(r):r}))}noMatchError(e){return new C(4002,tc)}createUrlTree(e,t,i){const r=Rf(e);return new er(r,t,i)}expandSegmentGroup(e,t,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(e,t,i).pipe(B(o=>new J([],o))):this.expandSegment(e,i,t,i.segments,r,!0)}expandChildren(e,t,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Be(r).pipe(Di(o=>{const s=i.children[o],a=pD(t,o);return this.expandSegmentGroup(e,a,s,o).pipe(B(l=>({segment:l,outlet:o})))}),Pw((o,s)=>(o[s.outlet]=s.segment,o),{}),Nw())}expandSegment(e,t,i,r,o,s){return Be(i).pipe(Di(a=>this.expandSegmentAgainstRoute(e,t,i,a,r,o,s).pipe(ii(c=>{if(c instanceof nc)return R(null);throw c}))),wi(a=>!!a),ii((a,l)=>{if(Wf(a))return vD(t,r,o)?R(new J([],{})):Fs(t);throw a}))}expandSegmentAgainstRoute(e,t,i,r,o,s,a){return yD(r,t,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,i,r,o,s):Fs(t):Fs(t)}expandSegmentAgainstRouteUsingRedirect(e,t,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?CD(o):this.lineralizeSegments(i,o).pipe(et(s=>{const a=new J(s,{});return this.expandSegment(e,a,t,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=qf(t,r,o);if(!a)return Fs(t);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?CD(d):this.lineralizeSegments(r,d).pipe(et(h=>this.expandSegment(e,t,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(e,t,i,r,o){return"**"===i.path?(e=fD(i,e),i.loadChildren?(i._loadedRoutes?R({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(e,i)).pipe(B(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new J(r,{})))):R(new J(r,{}))):_D(t,i,r,e).pipe(On(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(e=i._injector??e,i,r).pipe(et(u=>{const d=u.injector??e,h=u.routes,{segmentGroup:f,slicedSegments:p}=Jl(t,a,l,h),m=new J(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(d,h,m).pipe(B(v=>new J(a,v)));if(0===h.length&&0===p.length)return R(new J(a,{}));const _=rn(i)===o;return this.expandSegment(d,m,h,p,_?X:o,!0).pipe(B(D=>new J(a.concat(D.segments),D.children)))})):Fs(t)))}getChildConfig(e,t,i){return t.children?R({routes:t.children,injector:e}):t.loadChildren?void 0!==t._loadedRoutes?R({routes:t._loadedRoutes,injector:t._loadedInjector}):function GV(n,e,t,i){const r=e.canLoad;return void 0===r||0===r.length?R(!0):R(r.map(s=>{const a=co(s,n);return Ei(function kV(n){return n&&ks(n.canLoad)}(a)?a.canLoad(e,t):n.runInContext(()=>a(e,t)))})).pipe(uo(),gD())}(e,t,i).pipe(et(r=>r?this.configLoader.loadChildren(e,t).pipe(Xe(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function JV(n){return io(uD(tc,3))}())):R({routes:[],injector:e})}lineralizeSegments(e,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return R(i);if(r.numberOfChildren>1||!r.children[X])return io(new C(4e3,tc));r=r.children[X]}}applyRedirectCommands(e,t,i){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,i)}applyRedirectCreateUrlTree(e,t,i,r){const o=this.createSegmentGroup(e,t.root,i,r);return new er(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const i={};return rt(e,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=t[a]}else i[o]=r}),i}createSegmentGroup(e,t,i,r){const o=this.createSegments(e,t.segments,i,r);let s={};return rt(t.children,(a,l)=>{s[l]=this.createSegmentGroup(e,a,i,r)}),new J(o,s)}createSegments(e,t,i,r){return t.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,r):this.findOrReturn(o,i))}findPosParam(e,t,i){const r=i[t.path.substring(1)];if(!r)throw new C(4001,tc);return r}findOrReturn(e,t){let i=0;for(const r of t){if(r.path===e.path)return t.splice(i),r;i++}return e}}class iB{}class sB{constructor(e,t,i,r,o,s,a,l){this.injector=e,this.rootComponentType=t,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const e=Jl(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,e,X).pipe(B(t=>{if(null===t)return null;const i=new Yl([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},X,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new oi(i,t),o=new aD(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(e){const t=e.value,i=sD(t,this.paramsInheritanceStrategy);t.params=Object.freeze(i.params),t.data=Object.freeze(i.data),e.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(e,t,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(e,t,i):this.processSegment(e,t,i,i.segments,r)}processChildren(e,t,i){return Be(Object.keys(i.children)).pipe(Di(r=>{const o=i.children[r],s=pD(t,r);return this.processSegmentGroup(e,s,o,r)}),Pw((r,o)=>r&&o?(r.push(...o),r):null),function ML(n,e=!1){return Fe((t,i)=>{let r=0;t.subscribe(Me(i,o=>{const s=n(o,r++);(s||e)&&i.next(o),!s&&i.complete()}))})}(r=>null!==r),Hl(null),Nw(),B(r=>{if(null===r)return null;const o=wD(r);return function aB(n){n.sort((e,t)=>e.value.outlet===X?-1:t.value.outlet===X?1:e.value.outlet.localeCompare(t.value.outlet))}(o),o}))}processSegment(e,t,i,r,o){return Be(t).pipe(Di(s=>this.processSegmentAgainstRoute(s._injector??e,s,i,r,o)),wi(s=>!!s),ii(s=>{if(Wf(s))return vD(i,r,o)?R([]):R(null);throw s}))}processSegmentAgainstRoute(e,t,i,r,o){if(t.redirectTo||!yD(t,i,r,o))return R(null);let s;if("**"===t.path){const a=r.length>0?Bw(r).parameters:{},l=ED(i)+r.length;s=R({snapshot:new Yl(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,MD(t),rn(t),t.component??t._loadedComponent??null,t,DD(i),l,AD(t),l),consumedSegments:[],remainingSegments:[]})}else s=_D(i,t,r,e).pipe(B(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=ED(i)+l.length;return{snapshot:new Yl(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,MD(t),rn(t),t.component??t._loadedComponent??null,t,DD(i),d,AD(t),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(On(a=>{if(null===a)return R(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;e=t._injector??e;const d=t._loadedInjector??e,h=function lB(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(t),{segmentGroup:f,slicedSegments:p}=Jl(i,c,u,h.filter(_=>void 0===_.redirectTo),this.relativeLinkResolution);if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe(B(_=>null===_?null:[new oi(l,_)]));if(0===h.length&&0===p.length)return R([new oi(l,[])]);const m=rn(t)===o;return this.processSegment(d,h,f,p,m?X:o).pipe(B(_=>null===_?null:[new oi(l,_)]))}))}}function cB(n){const e=n.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function wD(n){const e=[],t=new Set;for(const i of n){if(!cB(i)){e.push(i);continue}const r=e.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),t.add(r)):e.push(i)}for(const i of t){const r=wD(i.children);e.push(new oi(i.value,r))}return e.filter(i=>!t.has(i))}function DD(n){let e=n;for(;e._sourceSegment;)e=e._sourceSegment;return e}function ED(n){let e=n,t=e._segmentIndexShift??0;for(;e._sourceSegment;)e=e._sourceSegment,t+=e._segmentIndexShift??0;return t-1}function MD(n){return n.data||{}}function AD(n){return n.resolve||{}}function ID(n){return"string"==typeof n.title||null===n.title}function Kf(n){return On(e=>{const t=n(e);return t?Be(t).pipe(B(()=>e)):R(e)})}let TD=(()=>{class n{buildTitle(t){let i,r=t.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===X);return i}getResolvedTitleForRoute(t){return t.data[Cs]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(){return Ee(xD)},providedIn:"root"}),n})(),xD=(()=>{class n extends TD{constructor(t){super(),this.title=t}updateTitle(t){const i=this.buildTitle(t);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(t){return new(t||n)(y(Mw))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class _B{}class vB extends class yB{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const rc=new E("",{providedIn:"root",factory:()=>({})}),Yf=new E("ROUTES");let Zf=(()=>{class n{constructor(t,i){this.injector=t,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return R(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=Ei(t.loadComponent()).pipe(Xe(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),jl(()=>{this.componentLoaders.delete(t)})),r=new Fw(i,()=>new ae).pipe(Mf());return this.componentLoaders.set(t,r),r}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return R({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(B(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(t).injector,c=Vw(l.get(Yf,[],F.Self|F.Optional)));return{routes:c.map(zf),injector:l}}),jl(()=>{this.childrenLoaders.delete(i)})),s=new Fw(o,()=>new ae).pipe(Mf());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(t){return Ei(t()).pipe(et(i=>i instanceof vb||Array.isArray(i)?R(i):Be(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(t){return new(t||n)(y(Ke),y(Hh))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class CB{}class wB{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function DB(n){throw n}function EB(n,e,t){return e.parse("/")}const SB={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},MB={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function kD(){const n=Ee(Ww),e=Ee(Is),t=Ee(ms),i=Ee(Ke),r=Ee(Hh),o=Ee(Yf,{optional:!0})??[],s=Ee(rc,{optional:!0})??{},a=Ee(xD),l=Ee(TD,{optional:!0}),c=Ee(CB,{optional:!0}),u=Ee(_B,{optional:!0}),d=new Ve(null,n,e,t,i,r,Vw(o));return c&&(d.urlHandlingStrategy=c),u&&(d.routeReuseStrategy=u),d.titleStrategy=l??a,function AB(n,e){n.errorHandler&&(e.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(e.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(e.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(e.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(e.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(e.canceledNavigationResolution=n.canceledNavigationResolution)}(s,d),d}let Ve=(()=>{class n{constructor(t,i,r,o,s,a,l){this.rootComponentType=t,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ae,this.errorHandler=DB,this.malformedUriErrorHandler=EB,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>R(void 0),this.urlHandlingStrategy=new wB,this.routeReuseStrategy=new vB,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(Zf),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new lV(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new aV(h)),this.ngModule=s.get(Qi),this.console=s.get(XO);const d=s.get(re);this.isNgZoneEnabled=d instanceof re&&re.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function RL(){return new er(new J([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=oD(this.currentUrlTree,this.rootComponentType),this.transitions=new vt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(t){const i=this.events;return t.pipe(bt(r=>0!==r.id),B(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),On(r=>{let o=!1,s=!1;return R(r).pipe(Xe(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),On(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return FD(a.source)&&(this.browserUrlTree=a.extractedUrl),R(a).pipe(On(d=>{const h=this.transitions.getValue();return i.next(new Pf(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?jn:Promise.resolve(d)}),function nB(n,e,t,i){return On(r=>function eB(n,e,t,i,r){return new tB(n,e,t,i,r).apply()}(n,e,t,r.extractedUrl,i).pipe(B(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Xe(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function dB(n,e,t,i,r,o){return et(s=>function oB(n,e,t,i,r,o,s="emptyOnly",a="legacy"){return new sB(n,e,t,i,r,s,a,o).recognize().pipe(On(l=>null===l?function rB(n){return new ye(e=>e.error(n))}(new iB):R(l)))}(n,e,t,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(B(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Xe(d=>{if(r.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const f=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(f,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new nV(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:p,restoredState:m,extras:_}=a,b=new Pf(h,this.serializeUrl(f),p,m);i.next(b);const D=oD(f,this.rootComponentType).snapshot;return R(r={...a,targetSnapshot:D,urlAfterRedirects:f,extras:{..._,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),jn}),Xe(a=>{const l=new iV(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),B(a=>r={...a,guards:AV(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function VV(n,e){return et(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?R({...t,guardsResult:!0}):function BV(n,e,t,i){return Be(n).pipe(et(r=>function WV(n,e,t,i,r){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?R(o.map(a=>{const l=Ts(e)??r,c=co(a,l);return Ei(function PV(n){return n&&ks(n.canDeactivate)}(c)?c.canDeactivate(n,e,t,i):l.runInContext(()=>c(n,e,t,i))).pipe(wi())})).pipe(uo()):R(!0)}(r.component,r.route,t,e,i)),wi(r=>!0!==r,!0))}(s,i,r,n).pipe(et(a=>a&&function RV(n){return"boolean"==typeof n}(a)?function HV(n,e,t,i){return Be(e).pipe(Di(r=>Ll(function UV(n,e){return null!==n&&e&&e(new cV(n)),R(!0)}(r.route.parent,i),function jV(n,e){return null!==n&&e&&e(new dV(n)),R(!0)}(r.route,i),function zV(n,e,t){const i=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>function IV(n){const e=n.routeConfig?n.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:n,guards:e}:null}(s)).filter(s=>null!==s).map(s=>Vl(()=>R(s.guards.map(l=>{const c=Ts(s.node)??t,u=co(l,c);return Ei(function OV(n){return n&&ks(n.canActivateChild)}(u)?u.canActivateChild(i,n):c.runInContext(()=>u(i,n))).pipe(wi())})).pipe(uo())));return R(o).pipe(uo())}(n,r.path,t),function $V(n,e,t){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return R(!0);const r=i.map(o=>Vl(()=>{const s=Ts(e)??t,a=co(o,s);return Ei(function FV(n){return n&&ks(n.canActivate)}(a)?a.canActivate(e,n):s.runInContext(()=>a(e,n))).pipe(wi())}));return R(r).pipe(uo())}(n,r.route,t))),wi(r=>!0!==r,!0))}(i,o,n,e):R(a)),B(a=>({...t,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Xe(a=>{if(r.guardsResult=a.guardsResult,nr(a.guardsResult))throw cD(0,a.guardsResult);const l=new rV(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),bt(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),Kf(a=>{if(a.guards.canActivateChecks.length)return R(a).pipe(Xe(l=>{const c=new oV(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),On(l=>{let c=!1;return R(l).pipe(function hB(n,e){return et(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return R(t);let o=0;return Be(r).pipe(Di(s=>function fB(n,e,t,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!ID(r)&&(o[Cs]=r.title),function pB(n,e,t,i){const r=function mB(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return R({});const o={};return Be(r).pipe(et(s=>function gB(n,e,t,i){const r=Ts(e)??i,o=co(n,r);return Ei(o.resolve?o.resolve(e,t):r.runInContext(()=>o(e,t)))}(n[s],e,t,i).pipe(wi(),Xe(a=>{o[s]=a}))),Af(1),function AL(n){return B(()=>n)}(o),ii(s=>Wf(s)?jn:io(s)))}(o,n,e,i).pipe(B(s=>(n._resolvedData=s,n.data=sD(n,t).resolve,r&&ID(r)&&(n.data[Cs]=r.title),null)))}(s.route,i,n,e)),Xe(()=>o++),Af(1),et(s=>o===r.length?R(t):jn))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Xe({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Xe(l=>{const c=new sV(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),Kf(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(Xe(d=>{c.component=d}),B(()=>{})));for(const d of c.children)u.push(...l(d));return u};return Sf(l(a.targetSnapshot.root)).pipe(Hl(),nn(1))}),Kf(()=>this.afterPreactivation()),B(a=>{const l=function gV(n,e,t){const i=As(n,e._root,t?t._root:void 0);return new rD(i,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Xe(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,e,t)=>B(i=>(new MV(e,i.targetRouterState,i.currentRouterState,t).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Xe({next(){o=!0},complete(){o=!0}}),jl(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),ii(a=>{if(s=!0,hD(a)){dD(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new Kl(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),dD(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||FD(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new tD(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return jn}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next({...this.transitions.value,...t})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const i="popstate"===t.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=t.state?.navigationId?t.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(t.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){this.config=t.map(zf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),ZL(c,this.currentUrlTree,t,d,u??null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=nr(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(t,i={skipLocationChange:!1}){return function IB(n){for(let e=0;e{const o=t[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new ir(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,f)=>{a=h,l=f});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(t,i){const r=this.urlSerializer.serialize(t),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,i,r){const o=new Kl(t.id,this.serializeUrl(t.extractedUrl),i,r);this.triggerEvent(o),t.resolve(!1)}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}}return n.\u0275fac=function(t){Ha()},n.\u0275prov=S({token:n,factory:function(){return kD()},providedIn:"root"}),n})();function FD(n){return"imperative"!==n}class OD{}let RB=(()=>{class n{constructor(t,i,r,o,s){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(bt(t=>t instanceof ir),Di(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=rl(o.providers,t,`Route: ${o.path}`));const s=o._injector??t,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Be(r).pipe(mr())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):R(null);const o=r.pipe(et(s=>null===s?R(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return i.loadComponent&&!i._loadedComponent?Be([o,this.loader.loadComponent(i)]).pipe(mr()):o})}}return n.\u0275fac=function(t){return new(t||n)(y(Ve),y(Hh),y(gi),y(OD),y(Zf))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Jf=new E("");let PD=(()=>{class n{constructor(t,i,r={}){this.router=t,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Pf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ir&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof nD&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.router.triggerEvent(new nD(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(t){Ha()},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function ho(n,e){return{\u0275kind:n,\u0275providers:e}}function ep(n){return[{provide:Yf,multi:!0,useValue:n}]}function LD(){const n=Ee(Ke);return e=>{const t=n.get(no);if(e!==t.components[0])return;const i=n.get(Ve),r=n.get(VD);1===n.get(tp)&&i.initialNavigation(),n.get(BD,null,F.Optional)?.setUpPreloading(),n.get(Jf,null,F.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const VD=new E("",{factory:()=>new ae}),tp=new E("",{providedIn:"root",factory:()=>1});const BD=new E("");function PB(n){return ho(0,[{provide:BD,useExisting:RB},{provide:OD,useExisting:n}])}const HD=new E("ROUTER_FORROOT_GUARD"),NB=[ms,{provide:Ww,useClass:Tf},{provide:Ve,useFactory:kD},Is,{provide:bn,useFactory:function ND(n){return n.routerState.root},deps:[Ve]},Zf];function LB(){return new mC("Router",Ve)}let jD=(()=>{class n{constructor(t){}static forRoot(t,i){return{ngModule:n,providers:[NB,[],ep(t),{provide:HD,useFactory:jB,deps:[[Ve,new mi,new Fr]]},{provide:rc,useValue:i||{}},i?.useHash?{provide:Ji,useClass:HP}:{provide:Ji,useClass:HC},{provide:Jf,useFactory:()=>{const n=Ee(Ve),e=Ee(l1),t=Ee(rc);return t.scrollOffset&&e.setOffset(t.scrollOffset),new PD(n,e,t)}},i?.preloadingStrategy?PB(i.preloadingStrategy).\u0275providers:[],{provide:mC,multi:!0,useFactory:LB},i?.initialNavigation?UB(i):[],[{provide:UD,useFactory:LD},{provide:lC,multi:!0,useExisting:UD}]]}}static forChild(t){return{ngModule:n,providers:[ep(t)]}}}return n.\u0275fac=function(t){return new(t||n)(y(HD,8))},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[Uf]}),n})();function jB(n){return"guarded"}function UB(n){return["disabled"===n.initialNavigation?ho(3,[{provide:ul,multi:!0,useFactory:()=>{const e=Ee(Ve);return()=>{e.setUpLocationChangeListener()}}},{provide:tp,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?ho(2,[{provide:tp,useValue:0},{provide:ul,multi:!0,deps:[Ke],useFactory:e=>{const t=e.get(VP,Promise.resolve());let i=!1;return()=>t.then(()=>new Promise(o=>{const s=e.get(Ve),a=e.get(VD);(function r(o){e.get(Ve).events.pipe(bt(a=>a instanceof ir||a instanceof Kl||a instanceof tD),B(a=>a instanceof ir||a instanceof Kl&&(0===a.code||1===a.code)&&null),bt(a=>null!==a),nn(1)).subscribe(()=>{o()})})(()=>{o(!0),i=!0}),s.afterPreactivation=()=>(o(!0),i||a.closed?R(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const UD=new E("");let np=(()=>{class n{constructor(t,i){this.route=t,this.router=i,this.navs=[]}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}ngOnInit(){throw new Error("need impl")}isActiveHeader(t){const i=this.route.firstChild?.component?.name==t.component;return i&&(this.currentNav=t),i}selectHeader(t,i=[]){i.push(t.path),this.router.navigate(i)}choiceHeader(t){if(null!=this.currentNav){const i=this.navs.indexOf(this.currentNav);switch(t){case"KeyA":this.selectHeader(i-1<0?this.navs[this.navs.length-1]:this.navs[i-1]);break;case"KeyD":this.selectHeader(i+1>=this.navs.length?this.navs[0]:this.navs[i+1])}}}}return n.\u0275fac=function(t){return new(t||n)(g(bn),g(Ve))},n.\u0275cmp=De({type:n,selectors:[["abs-navs-header"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})(),$D=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=De({type:n,selectors:[["app-status-lower-header"]],decls:2,vars:0,template:function(t,i){1&t&&(q(0,"p"),fe(1,"status"),$())},encapsulation:2}),n})(),fo=(()=>{class n{}return n.UNKNOWN=0,n.RESERVED=1,n.SYSSTATS=2,n.SPACESTATS=3,n.WIFI=4,n})(),ip=(()=>{class n{}return n.UNKNOWN=0,n.SELF=1,n.EXTERNAL=2,n})();class lc{static getRandom(e,t){return Math.random()*(t-e)+e}static getRandomRound(e,t){return Math.round(this.getRandom(e,t))}}let zD=(()=>{class n{constructor(){this.events=new vt("{}"),console.log("random data to ws create"),setInterval(()=>{this.events.next(JSON.stringify({event:fo.SYSSTATS,device:ip.SELF,data:{cpu:lc.getRandom(0,99.9),mem:lc.getRandom(0,400)}})),this.events.next(JSON.stringify({event:fo.SPACESTATS,device:ip.SELF,data:{free:lc.getRandom(0,40),total:50,format:"GB"}})),this.events.next(JSON.stringify({event:fo.WIFI,device:ip.SELF,data:1==lc.getRandomRound(1,2)?{state:"Connected",ap:"nyk",ip:"192.168.1.2"}:{state:"Disconnected",ap:"",ip:""}}))},1e3)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function zB(n,e){if(1&n){const t=Xa();q(0,"p",6),it("click",function(){const o=pa(t).$implicit;return ma(Ht().selectHeader(o))}),fe(1),$()}if(2&n){const t=e.$implicit;Xt("inactiveHeader",!Ht().isActiveHeader(t)),ie(1),Ze(t.name)}}let rp,WD=(()=>{class n extends np{constructor(t,i,r){super(t,i),this.ws=r,this.cpu=0,this.mem=0,this.wifi="",super.navs=[{name:"status",path:"status",action:()=>{},component:$D.name},{name:"2",path:"2",action:()=>{},component:""},{name:"3",path:"3",action:()=>{},component:""}]}ngOnInit(){this.ws.events.pipe(B(t=>JSON.parse(t))).subscribe(t=>{t.event==fo.SYSSTATS&&(this.cpu=Math.round(t.data.cpu),this.mem=Math.round(t.data.mem)),t.event==fo.WIFI&&(this.wifi=t.data.ip?`${t.data.state} to ${t.data.ap} (${t.data.ip})`:t.data.state)})}}return n.\u0275fac=function(t){return new(t||n)(g(bn),g(Ve),g(zD))},n.\u0275cmp=De({type:n,selectors:[["app-stats-header"]],features:[W],decls:14,vars:4,consts:[[2,"display","flex","align-items","center","justify-content","flex-start","padding-left","45px"],["style","text-transform: uppercase;font-weight: bold; margin-bottom: 0; margin-top: 5px; padding-left: 5px",3,"inactiveHeader","click",4,"ngFor","ngForOf"],[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","19.5%"],[1,"footer-text",2,"width","60%"],[2,"text-transform","uppercase","font-weight","bold","margin-bottom","0","margin-top","5px","padding-left","5px",3,"click"]],template:function(t,i){1&t&&(q(0,"div",0),Vt(1,zB,2,3,"p",1),$(),In(2,"router-outlet"),q(3,"div",2)(4,"div",3)(5,"div",4)(6,"span"),fe(7),$()(),q(8,"div",5)(9,"span"),fe(10),$()(),q(11,"div",4)(12,"span"),fe(13),$()()()()),2&t&&(ie(1),Bt("ngForOf",i.navs),ie(6),Yi("CPU ",i.cpu,"%"),ie(3),Ze(i.wifi),ie(3),Yi("MEM ",i.mem,"MB"))},dependencies:[bi,lo],encapsulation:2}),n})();try{rp=typeof Intl<"u"&&Intl.v8BreakIterator}catch{rp=!1}let Os,rr,op,Nn=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function a1(n){return n===rw}(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&&!rp)&&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}}return n.\u0275fac=function(t){return new(t||n)(y(Bh))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function cc(n){return function WB(){if(null==Os&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Os=!0}))}finally{Os=Os||!1}return Os}()?n:!!n.capture}function GB(){if(null==rr){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return rr=!1,rr;if("scrollBehavior"in document.documentElement.style)rr=!0;else{const n=Element.prototype.scrollTo;rr=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return rr}function sp(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const e=n.shadowRoot.activeElement;if(e===n)break;n=e}return n}function or(n){return n.composedPath?n.composedPath()[0]:n.target}function ap(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function KD(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function YD(n){return bt((e,t)=>n<=t)}function tH(n,e){return n===e}function lp(n){return Fe((e,t)=>{wt(n).subscribe(Me(t,()=>t.complete(),Xc)),!t.closed&&e.subscribe(t)})}function dc(n){return Array.isArray(n)?n:[n]}function ze(n){return null==n?"":"string"==typeof n?n:`${n}px`}function hc(n){return n instanceof je?n.nativeElement:n}let rH=(()=>{class n{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ZD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({providers:[rH]}),n})();class oH extends Je{constructor(e,t){super()}schedule(e,t=0){return this}}const fc={setInterval(n,e,...t){const{delegate:i}=fc;return i?.setInterval?i.setInterval(n,e,...t):setInterval(n,e,...t)},clearInterval(n){const{delegate:e}=fc;return(e?.clearInterval||clearInterval)(n)},delegate:void 0};class cp extends oH{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var i;if(this.closed)return this;this.state=e;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,t),this}requestAsyncId(e,t,i=0){return fc.setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;null!=t&&fc.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:e,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,pr(i,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}}const up={now:()=>(up.delegate||Date).now(),delegate:void 0};class Ps{constructor(e,t=Ps.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,i){return new this.schedulerActionCtor(this,e).schedule(i,t)}}Ps.now=up.now;class dp extends Ps{constructor(e,t=Ps.now){super(e,t),this.actions=[],this._active=!1}flush(e){const{actions:t}=this;if(this._active)return void t.push(e);let i;this._active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const hp=new dp(cp),sH=hp,QD=new Set;let mo,lH=(()=>{class n{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):uH}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function cH(n){if(!QD.has(n))try{mo||(mo=document.createElement("style"),mo.setAttribute("type","text/css"),document.head.appendChild(mo)),mo.sheet&&(mo.sheet.insertRule(`@media ${n} {body{ }}`,0),QD.add(n))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return n.\u0275fac=function(t){return new(t||n)(y(Nn))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function uH(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let dH=(()=>{class n{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new ae}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return XD(dc(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let o=Sf(XD(dc(t)).map(s=>this._registerQuery(s).observable));return o=Ll(o.pipe(nn(1)),o.pipe(YD(1),function aH(n,e=hp){return Fe((t,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,i.next(c)}};function l(){const c=s+n,u=e.now();if(u{o=c,s=e.now(),r||(r=e.schedule(l,n),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}(0))),o.pipe(B(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),o={observable:new ye(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Bl(i),B(({matches:s})=>({query:t,matches:s})),lp(this._destroySubject)),mql:i};return this._queries.set(t,o),o}}return n.\u0275fac=function(t){return new(t||n)(y(lH),y(re))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function XD(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}let pc=(()=>{class n{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function mH(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const i=function pH(n){try{return n.frameElement}catch{return null}}(function DH(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(t));if(i&&(-1===nE(i)||!this.isVisible(i)))return!1;let r=t.nodeName.toLowerCase(),o=nE(t);return t.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function CH(n){let e=n.nodeName.toLowerCase(),t="input"===e&&n.type;return"text"===t||"password"===t||"select"===e||"textarea"===e}(t))&&("audio"===r?!!t.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,i){return function wH(n){return!function _H(n){return function vH(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function gH(n){let e=n.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(n)||function yH(n){return function bH(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||tE(n))}(t)&&!this.isDisabled(t)&&(i?.ignoreVisibility||this.isVisible(t))}}return n.\u0275fac=function(t){return new(t||n)(y(Nn))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function tE(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let e=n.getAttribute("tabindex");return!(!e||isNaN(parseInt(e,10)))}function nE(n){if(!tE(n))return null;const e=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class EH{constructor(e,t,i,r,o=!1){this._element=e,this._checker=t,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.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(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){const t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){const i=this._getFirstTabbableElement(t);return i?.focus(e),!!i}return t.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){const t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){const t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;const t=e.children;for(let i=0;i=0;i--){const r=t[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[i]):null;if(r)return r}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(nn(1)).subscribe(e)}}let fp=(()=>{class n{constructor(t,i,r){this._checker=t,this._ngZone=i,this._document=r}create(t,i=!1){return new EH(t,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(t){return new(t||n)(y(pc),y(re),y(Q))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const AH=new E("cdk-input-modality-detector-options"),IH={ignoreKeys:[18,17,224,91,16]},go=cc({passive:!0,capture:!0});let TH=(()=>{class n{constructor(t,i,r,o){this._platform=t,this._mostRecentTarget=null,this._modality=new vt(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=or(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(function SH(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}(s)?"keyboard":"mouse"),this._mostRecentTarget=or(s))},this._onTouchstart=s=>{!function MH(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}(s)?(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=or(s)):this._modality.next("keyboard")},this._options={...IH,...o},this.modalityDetected=this._modality.pipe(YD(1)),this.modalityChanged=this.modalityDetected.pipe(function eH(n,e=ci){return n=n??tH,Fe((t,i)=>{let r,o=!0;t.subscribe(Me(i,s=>{const a=e(s);(o||!n(r,a))&&(o=!1,r=a,i.next(s))}))})}()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,go),r.addEventListener("mousedown",this._onMousedown,go),r.addEventListener("touchstart",this._onTouchstart,go)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,go),document.removeEventListener("mousedown",this._onMousedown,go),document.removeEventListener("touchstart",this._onTouchstart,go))}}return n.\u0275fac=function(t){return new(t||n)(y(Nn),y(re),y(Q),y(AH,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const RH=new E("cdk-focus-monitor-default-options"),mc=cc({passive:!0,capture:!0});let pp=(()=>{class n{constructor(t,i,r,o,s){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ae,this._rootNodeFocusAndBlurListener=a=>{for(let c=or(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||0}monitor(t,i=!1){const r=hc(t);if(!this._platform.isBrowser||1!==r.nodeType)return R(null);const o=function KB(n){if(function qB(){if(null==op){const n=typeof document<"u"?document.head:null;op=!(!n||!n.createShadowRoot&&!n.attachShadow)}return op}()){const e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new ae,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=hc(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const o=hc(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),o=or(t);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(t,i){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,mc),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,mc)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(lp(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,mc),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,mc),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(t){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===t||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||t.disabled)return!1;const o=t.labels;if(o)for(let s=0;s{class n{constructor(t,i){this._platform=t,this._document=i,this._breakpointSubscription=Ee(dH).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){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 t=this._document.body.classList;t.remove(mp,rE,oE),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?t.add(mp,rE):2===i&&t.add(mp,oE)}}}return n.\u0275fac=function(t){return new(t||n)(y(Nn),y(Q))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kH=(()=>{class n{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(t){return new(t||n)(y(sE))},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[ZD]}),n})();const FH=["addListener","removeListener"],OH=["addEventListener","removeEventListener"],PH=["on","off"];function gp(n,e,t,i){if(oe(t)&&(i=t,t=void 0),i)return gp(n,e,t).pipe(Ef(i));const[r,o]=function VH(n){return oe(n.addEventListener)&&oe(n.removeEventListener)}(n)?OH.map(s=>a=>n[s](e,a,t)):function NH(n){return oe(n.addListener)&&oe(n.removeListener)}(n)?FH.map(aE(n,e)):function LH(n){return oe(n.on)&&oe(n.off)}(n)?PH.map(aE(n,e)):[];if(!r&&cu(n))return et(s=>gp(s,e,t))(wt(n));if(!r)throw new TypeError("Invalid event target");return new ye(s=>{const a=(...l)=>s.next(1o(a)})}function aE(n,e){return t=>i=>n[t](e,i)}const Ns={schedule(n){let e=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:i}=Ns;i&&(e=i.requestAnimationFrame,t=i.cancelAnimationFrame);const r=e(o=>{t=void 0,n(o)});return new Je(()=>t?.(r))},requestAnimationFrame(...n){const{delegate:e}=Ns;return(e?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:e}=Ns;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};new class HH extends dp{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;e=e||i.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=i[0])&&e.id===t&&i.shift());if(this._active=!1,r){for(;(e=i[0])&&e.id===t&&i.shift();)e.unsubscribe();throw r}}}(class BH extends cp{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e._scheduled||(e._scheduled=Ns.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(e,t,i);const{actions:o}=e;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(Ns.cancelAnimationFrame(t),e._scheduled=void 0)}});let _p,UH=1;const gc={};function lE(n){return n in gc&&(delete gc[n],!0)}const $H={setImmediate(n){const e=UH++;return gc[e]=!0,_p||(_p=Promise.resolve()),_p.then(()=>lE(e)&&n()),e},clearImmediate(n){lE(n)}},{setImmediate:zH,clearImmediate:WH}=$H,_c={setImmediate(...n){const{delegate:e}=_c;return(e?.setImmediate||zH)(...n)},clearImmediate(n){const{delegate:e}=_c;return(e?.clearImmediate||WH)(n)},delegate:void 0};new class qH extends dp{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;e=e||i.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=i[0])&&e.id===t&&i.shift());if(this._active=!1,r){for(;(e=i[0])&&e.id===t&&i.shift();)e.unsubscribe();throw r}}}(class GH extends cp{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e._scheduled||(e._scheduled=_c.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(e,t,i);const{actions:o}=e;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(_c.clearImmediate(t),e._scheduled=void 0)}});function cE(n,e=hp){return function YH(n){return Fe((e,t)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const c=r;r=null,t.next(c)}s&&t.complete()},l=()=>{o=null,s&&t.complete()};e.subscribe(Me(t,c=>{i=!0,r=c,o||wt(n(c)).subscribe(o=Me(t,a,l))},()=>{s=!0,(!i||!o||o.closed)&&t.complete()}))})}(()=>function QH(n=0,e,t=sH){let i=-1;return null!=e&&(Ym(e)?t=e:i=e),new ye(r=>{let o=function ZH(n){return n instanceof Date&&!isNaN(n)}(n)?+n-t.now():n;o<0&&(o=0);let s=0;return t.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}(n,e))}const XH=new E("cdk-dir-doc",{providedIn:"root",factory:function JH(){return Ee(Q)}}),e2=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let yp=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new Se,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function t2(n){const e=n?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&navigator?.language?e2.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(y(XH,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ls=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({}),n})(),r2=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new ae,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new ye(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(cE(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):R()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(bt(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,t)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=hc(i),o=t.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>gp(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(y(re),y(Nn),y(Q,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),uE=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new ae,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,o=r.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(cE(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(y(Nn),y(re),y(Q,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({}),n})(),hE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[Ls,dE,Ls,dE]}),n})();class vp{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class bp extends vp{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class fE extends vp{constructor(e,t,i,r){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class s2 extends vp{constructor(e){super(),this.element=e instanceof je?e.nativeElement:e}}class Cp{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof bp?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof fE?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof s2?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class a2 extends Cp{constructor(e,t,i,r,o){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector||Ke.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let wp=(()=>{class n extends Cp{constructor(t,i,r){super(),this._componentFactoryResolver=t,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Se,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const i=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,o=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),s=i.createComponent(o,i.length,t.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=t,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(t){t.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return n.\u0275fac=function(t){return new(t||n)(g(Wi),g(Jt),g(Q))},n.\u0275dir=P({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[W]}),n})(),yc=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({}),n})();const pE=GB();class l2{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=ze(-this._previousScrollPosition.left),e.style.top=ze(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),pE&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),pE&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class c2{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class mE{enable(){}disable(){}attach(){}}function Dp(n,e){return e.some(t=>n.bottomt.bottom||n.rightt.right)}function gE(n,e){return e.some(t=>n.topt.bottom||n.leftt.right)}class u2{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Dp(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let d2=(()=>{class n{constructor(t,i,r,o){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new mE,this.close=s=>new c2(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new l2(this._viewportRuler,this._document),this.reposition=s=>new u2(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(t){return new(t||n)(y(r2),y(uE),y(re),y(Q))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class _E{constructor(e){if(this.scrollStrategy=new mE,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class h2{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}let yE=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(y(Q))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),f2=(()=>{class n extends yE{constructor(t,i){super(t),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(t){return new(t||n)(y(Q),y(re,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),p2=(()=>{class n extends yE{constructor(t,i,r){super(t),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=or(o)},this._clickListener=o=>{const s=or(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(s)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(o)):d.next(o)}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(t){return new(t||n)(y(Q),y(Nn),y(re,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vc=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||ap()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;othis._backdropClick.next(d),this._backdropTransitionendHandler=d=>{this._disposeBackdrop(d.target)},this._keydownEvents=new ae,this._outsidePointerEvents=new ae,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(nn(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 t?.onDestroy&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config={...this._config,...e},this._updateElementSize()}setDirection(e){this._config={...this._config,direction:e},this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=ze(this._config.width),e.height=ze(this._config.height),e.minWidth=ze(this._config.minWidth),e.minHeight=ze(this._config.minHeight),e.maxWidth=ze(this._config.maxWidth),e.maxHeight=ze(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._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(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(e){if(this._animationsDisabled)return void this._disposeBackdrop(e);e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,t,i){const r=dc(t||[]).filter(o=>!!o);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(lp(du(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const vE="cdk-overlay-connected-position-bounding-box",m2=/([A-Za-z%]+)$/;class g2{constructor(e,t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o,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 ae,this._resizeSubscription=Je.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(vE),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?o.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&sr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(vE),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r,o;if("center"==i.originX)r=e.left+e.width/2;else{const s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==i.originX?s:a}return t.left<0&&(r-=t.left),o="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,t.top<0&&(o-=t.top),{x:r,y:o}}_getOverlayPoint(e,t,i){let r,o;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,o="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+o}}_getOverlayFit(e,t,i,r){const o=CE(t);let{x:s,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-i.height,p=this._subtractOverflows(o.width,0-s,s+o.width-i.width),m=this._subtractOverflows(o.height,h,f),_=p*m;return{visibleArea:_,isCompletelyWithinViewport:o.width*o.height===_,fitsInViewportVertically:m===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,o=i.right-t.x,s=bE(this._overlayRef.getConfig().minHeight),a=bE(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=o;return(e.fitsInViewportVertically||null!=s&&s<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=CE(t),o=this._viewportRect,s=Math.max(e.x+r.width-o.width,0),a=Math.max(e.y+r.height-o.height,0),l=Math.max(o.top-i.top-e.y,0),c=Math.max(o.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=o.width?c||-s:e.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=ze(i.height),r.top=ze(i.top),r.bottom=ze(i.bottom),r.width=ze(i.width),r.left=ze(i.left),r.right=ze(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=ze(o)),s&&(r.maxWidth=ze(s))}this._lastBoundingBoxSize=i,sr(this._boundingBox.style,r)}_resetBoundingBoxStyles(){sr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){sr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();sr(i,this._getExactOverlayY(t,e,u)),sr(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=ze(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=ze(s.maxWidth):o&&(i.maxWidth="")),sr(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=ze(o.y),r}_getExactOverlayX(e,t,i){let s,r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=ze(o.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:gE(e,i),isOriginOutsideView:Dp(e,i),isOverlayClipped:gE(t,i),isOverlayOutsideView:Dp(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?e.offsetX??this._offsetX:e.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&dc(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof je)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function sr(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function bE(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(m2);return t&&"px"!==t?null:parseFloat(e)}return n||null}function CE(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const wE="cdk-global-overlay-wrapper";class _2{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(wE),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,d=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",p="",m="";l?m="flex-start":"center"===u?(m="center",h?p=d:f=d):h?"left"===u||"end"===u?(m="flex-end",f=d):("right"===u||"start"===u)&&(m="flex-start",p=d):"left"===u||"start"===u?(m="flex-start",f=d):("right"===u||"end"===u)&&(m="flex-end",p=d),e.position=this._cssPosition,e.marginLeft=l?"0":f,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":p,t.justifyContent=m,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(wE),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let y2=(()=>{class n{constructor(t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new _2}flexibleConnectedTo(t){return new g2(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(y(uE),y(Q),y(Nn),y(vc))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),v2=0,_o=(()=>{class n{constructor(t,i,r,o,s,a,l,c,u,d,h,f){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new _E(t);return s.direction=s.direction||this._directionality.value,new Vs(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+v2++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(no)),new a2(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(y(d2),y(vc),y(Wi),y(y2),y(f2),y(Ke),y(re),y(Q),y(yp),y(ms),y(p2),y(hl,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const w2={provide:new E("cdk-connected-overlay-scroll-strategy"),deps:[_o],useFactory:function C2(n){return()=>n.scrollStrategies.reposition()}};let DE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({providers:[_o,w2],imports:[Ls,yc,hE,hE]}),n})();function D2(n,e){}class bc{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}}let EE=(()=>{class n extends Cp{constructor(t,i,r,o,s,a,l,c){super(),this._elementRef=t,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const d=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),d},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),i}attachTemplatePortal(t){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,i){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{t.removeEventListener("blur",r),t.removeEventListener("mousedown",r),t.removeAttribute("tabindex")};t.addEventListener("blur",r),t.addEventListener("mousedown",r)})),t.focus(i)}_focusByCssSelector(t,i){let r=this._elementRef.nativeElement.querySelector(t);r&&this._forceFocus(r,i)}_trapFocus(){const t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.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 t=this._config.restoreFocus;let i=null;if("string"==typeof t?i=this._document.querySelector(t):"boolean"==typeof t?i=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(i=t),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=sp(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(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 t=this._elementRef.nativeElement,i=sp();return t===i||t.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=sp())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(t){return new(t||n)(g(je),g(fp),g(Q,8),g(bc),g(pc),g(re),g(Vs),g(pp))},n.\u0275cmp=De({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(t,i){if(1&t&&Vb(wp,7),2&t){let r;sl(r=function al(){return function xO(n,e){return n[19].queries[e].queryList}(w(),Cg())}())&&(i._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,i){2&t&&Lt("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[W],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){1&t&&Vt(0,D2,0,0,"ng-template",0)},dependencies:[wp],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class Ep{constructor(e,t){this.overlayRef=e,this.config=t,this.closed=new ae,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!KD(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(e,t){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this.overlayRef.dispose(),i.next(e),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",t=""){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}}const SE=new E("DialogScrollStrategy"),E2=new E("DialogData"),S2=new E("DefaultDialogConfig"),A2={provide:SE,deps:[_o],useFactory:function M2(n){return()=>n.scrollStrategies.block()}};let I2=0,ME=(()=>{class n{constructor(t,i,r,o,s,a){this._overlay=t,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ae,this._afterOpenedAtThisLevel=new ae,this._ariaHiddenElements=new Map,this.afterAllClosed=Vl(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Bl(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(t,i){(i={...this._defaultOptions||new bc,...i}).id=i.id||"cdk-dialog-"+I2++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new Ep(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(t,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){Sp(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(i=>i.id===t)}ngOnDestroy(){Sp(this._openDialogsAtThisLevel,t=>{!1===t.config.closeOnDestroy&&this._removeOpenDialog(t,!1)}),Sp(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){const i=new _E({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(i.backdropClass=t.backdropClass),i}_attachContainer(t,i,r){const o=r.injector||r.viewContainerRef?.injector,s=[{provide:bc,useValue:r},{provide:Ep,useValue:i},{provide:Vs,useValue:t}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=EE;const l=new bp(a,r.viewContainerRef,Ke.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return t.attach(l).instance}_attachDialogContent(t,i,r,o){if(t instanceof Rn){const s=this._createInjector(o,i,r,void 0);let a={$implicit:o.data,dialogRef:i};o.templateContext&&(a={...a,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new fE(t,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new bp(t,o.viewContainerRef,s,o.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(t,i,r,o){const s=t.injector||t.viewContainerRef?.injector,a=[{provide:E2,useValue:t.data},{provide:Ep,useValue:i}];return t.providers&&("function"==typeof t.providers?a.push(...t.providers(i,t,r)):a.push(...t.providers)),t.direction&&(!s||!s.get(yp,null,F.Optional))&&a.push({provide:yp,useValue:{value:t.direction,change:R()}}),Ke.create({parent:s||o,providers:a})}_removeOpenDialog(t,i){const r=this.openDialogs.indexOf(t);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const i=t.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==t&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(t){return new(t||n)(y(_o),y(Ke),y(S2,8),y(n,12),y(vc),y(SE))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function Sp(n,e){let t=n.length;for(;t--;)e(n[t])}let T2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({providers:[ME,A2],imports:[DE,yc,kH,yc]}),n})();const R2=new E("mat-sanity-checks",{providedIn:"root",factory:function x2(){return!0}});let Cn=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!ap()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(y(sE),y(R2,8),y(Q))},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[Ls,Ls]}),n})();function k2(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}let O2=(()=>{class n{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),V2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[Cn,Cn]}),n})();class kE{}const si="*";function FE(n,e){return{type:7,name:n,definitions:e,options:{}}}function Ap(n,e=null){return{type:4,styles:e,timings:n}}function OE(n,e=null){return{type:3,steps:n,options:e}}function PE(n,e=null){return{type:2,steps:n,options:e}}function Si(n){return{type:6,styles:n,offset:null}}function Ip(n,e,t){return{type:0,name:n,styles:e,options:t}}function Tp(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function NE(n=null){return{type:9,options:n}}function LE(n,e,t=null){return{type:11,selector:n,animation:e,options:t}}function VE(n){Promise.resolve().then(n)}class Hs{constructor(e=0,t=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=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){VE(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class BE{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,r=0;const o=this.players.length;0==o?VE(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}function H2(n,e){}const yo={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},j2={dialogContainer:FE("dialogContainer",[Ip("void, exit",Si({opacity:0,transform:"scale(0.7)"})),Ip("enter",Si({transform:"none"})),Tp("* => enter",OE([Ap("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Si({transform:"none",opacity:1})),LE("@*",NE(),{optional:!0})]),yo),Tp("* => void, * => exit",OE([Ap("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Si({opacity:0})),LE("@*",NE(),{optional:!0})]),yo)])};class Cc{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,this.enterAnimationDuration=yo.params.enterAnimationDuration,this.exitAnimationDuration=yo.params.exitAnimationDuration}}let U2=(()=>{class n extends EE{constructor(t,i,r,o,s,a,l,c){super(t,i,r,o,s,a,l,c),this._animationStateChanged=new Se}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}}return n.\u0275fac=function(t){return new(t||n)(g(je),g(fp),g(Q,8),g(Cc),g(pc),g(re),g(Vs),g(pp))},n.\u0275cmp=De({type:n,selectors:[["ng-component"]],features:[W],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})(),$2=(()=>{class n extends U2{constructor(t,i,r,o,s,a,l,c,u){super(t,i,r,o,s,a,l,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:t,totalTime:i}){"enter"===t?this._openAnimationDone(i):"exit"===t&&this._animationStateChanged.next({state:"closed",totalTime:i})}_onAnimationStart({toState:t,totalTime:i}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||yo.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||yo.params.exitAnimationDuration}}}}return n.\u0275fac=function(t){return new(t||n)(g(je),g(fp),g(Q,8),g(Cc),g(pc),g(re),g(Vs),g(fs),g(pp))},n.\u0275cmp=De({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(t,i){1&t&&uh("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&t&&(mh("id",i._config.id),Lt("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),gh("@dialogContainer",i._getAnimationState()))},features:[W],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){1&t&&Vt(0,H2,0,0,"ng-template",0)},dependencies:[wp],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[j2.dialogContainer]}}),n})();class HE{constructor(e,t,i){this._ref=e,this._containerInstance=i,this._afterOpened=new ae,this._beforeClosed=new ae,this._state=0,this.disableClose=t.disableClose,this.id=e.id,i._animationStateChanged.pipe(bt(r=>"opened"===r.state),nn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(bt(r=>"closed"===r.state),nn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),du(this.backdropClick(),this.keydownEvents().pipe(bt(r=>27===r.keyCode&&!this.disableClose&&!KD(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function z2(n,e,t){n._closeInteractionType=e,n.close(t)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(bt(t=>"closing"===t.state),nn(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.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(e){let t=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",t=""){return this._ref.updateSize(e,t),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const jE=new E("MatDialogData"),W2=new E("mat-dialog-default-options"),UE=new E("mat-dialog-scroll-strategy"),q2={provide:UE,deps:[_o],useFactory:function G2(n){return()=>n.scrollStrategies.block()}};let K2=0,Y2=(()=>{class n{constructor(t,i,r,o,s,a,l,c,u,d){this._overlay=t,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ae,this._afterOpenedAtThisLevel=new ae,this._idPrefix="mat-dialog-",this.afterAllClosed=Vl(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Bl(void 0))),this._scrollStrategy=a,this._dialog=i.get(ME)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,i){let r;(i={...this._defaultOptions||new Cc,...i}).id=i.id||`${this._idPrefix}${K2++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(t,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Cc,useValue:i},{provide:bc,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(i=>i.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let i=t.length;for(;i--;)t[i].close()}}return n.\u0275fac=function(t){Ha()},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),$E=(()=>{class n extends Y2{constructor(t,i,r,o,s,a,l,c){super(t,i,o,a,l,s,HE,$2,jE,c)}}return n.\u0275fac=function(t){return new(t||n)(y(_o),y(Ke),y(ms,8),y(W2,8),y(UE),y(n,12),y(vc),y(hl,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),Rp=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=P({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),Z2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({providers:[$E,q2],imports:[T2,DE,yc,Cn,Cn]}),n})(),vo=(()=>{class n{constructor(){this.keys=new vt("")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kp=(()=>{class n{constructor(t,i,r,o){this.data=t,this.ref=i,this.sanitazer=r,this.io=o}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}ngOnInit(){this.sub=this.io.keys.subscribe(t=>{"Enter"==t&&this.ref.close()})}}return n.\u0275fac=function(t){return new(t||n)(g(jE),g(HE),g(Pl),g(vo))},n.\u0275cmp=De({type:n,selectors:[["app-abs-app"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})(),Q2=(()=>{class n extends kp{constructor(){super(...arguments),this.clockTxt="",this.inverval=null}ngOnInit(){super.ngOnInit(),this.genClock(),null==this.inverval&&(this.inverval=setInterval(()=>{this.genClock()},1e3))}genClock(){this.clockTxt=(new Date).toLocaleTimeString()}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ge(n)))(i||n)}}(),n.\u0275cmp=De({type:n,selectors:[["app-clock-app"]],features:[W],decls:4,vars:1,consts:[["mat-dialog-content",""],[2,"display","flex","justify-content","center"],[2,"font-family","TechMono, sans-serif","font-size","60px"]],template:function(t,i){1&t&&(q(0,"div",0)(1,"div",1)(2,"p",2),fe(3),$()()()),2&t&&(ie(3),Ze(i.clockTxt))},dependencies:[Rp],encapsulation:2}),n})(),X2=(()=>{class n extends kp{constructor(){super(...arguments),this.content={}}ngOnInit(){super.ngOnInit(),this.content.url=this.sanitazer.bypassSecurityTrustResourceUrl(this.data.url)}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ge(n)))(i||n)}}(),n.\u0275cmp=De({type:n,selectors:[["iframe-opener"]],features:[W],decls:2,vars:1,consts:[["mat-dialog-content",""],["width","100%","height","100%",3,"src"]],template:function(t,i){1&t&&(q(0,"div",0),In(1,"iframe",1),$()),2&t&&(ie(1),Bt("src",i.content.url,Cd))},dependencies:[Rp]}),n})(),zE=(()=>{class n{constructor(){this.elements=[],this.elementsRight=[],this.currentSide="LEFT"}choiceItem(t){switch(this.currentSide){case"LEFT":return this.choiceLeft(t);case"RIGHT":return this.choiceRight(t)}}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}choiceLeft(t){if("LEFT"!=this.currentSide)return;let i=this.elements.indexOf(this.selected);switch(t){case"KeyS":i+1>=this.elements.length&&(i=-1),this.selected=this.elements[i+1];break;case"KeyW":i-1<0&&(i=this.elements.length),this.selected=this.elements[i-1];break;case"Enter":this.selected.action()}}choiceRight(t){if("RIGHT"!=this.currentSide)return;let i=this.elementsRight.indexOf(this.selectedRight);switch(t){case"KeyS":i+1>=this.elementsRight.length&&(i=-1),this.selectedRight=this.elementsRight[i+1];break;case"KeyW":i-1<0&&(i=this.elementsRight.length),this.selectedRight=this.elementsRight[i-1];break;case"Enter":this.selectedRight.action()}}ngOnInit(){throw new Error("need impl")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=De({type:n,selectors:[["ng-component"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})();function J2(n,e){if(1&n&&(q(0,"p",5),fe(1),$()),2&n){const t=e.$implicit,i=e.index,r=Ht().index,o=Ht();hh("text-transform",o.caps?"uppercase":""),Xt("keyboard_current",o.isCurrentKey(r,i)),ie(1),Ze(t)}}function ej(n,e){if(1&n&&(q(0,"div",3),Vt(1,J2,2,5,"p",4),$()),2&n){const t=e.$implicit;ie(1),Bt("ngForOf",t)}}let tj=(()=>{class n extends kp{constructor(){super(...arguments),this.keyboard=[],this.keyboards={ru:["\u0439\u0446\u0443\u043a\u0435\u043d\u0433\u0448\u0449\u0437\u0445\u044a".split(""),"\u0444\u044b\u0432\u0430\u043f\u0440\u043e\u043b\u0434\u0436\u044d".split(""),"\u044f\u0447\u0441\u043c\u0438\u0442\u044c\u0431\u044e.,".split("")],en:["qwertyuiop[]".split(""),"asdfghjkl;'\"".split(""),"zxcvbnm,./".split("")]},this.current="ru",this.text="",this.caps=!1,this.x=0,this.y=0}isCurrentKey(t,i){return t==this.x&&i==this.y}createKeyboard(){this.x=0,this.y=0,this.keyboard=[],this.keyboard.push("1234567890-=".split("").concat(["<--"])),this.keyboards[this.current].forEach(t=>{this.keyboard.push(t)}),this.keyboard.push(["change","caps","space","wipe","exit","save"])}closeKeyboard(t=!1){this.ref.close(t?this.text:null)}ngOnInit(){this.createKeyboard(),this.sub=this.io.keys.subscribe(t=>{switch(t){case"KeyW":return this.x<=0&&(this.x=this.keyboard.length),this.x--,void(this.keyboard[this.x].length=this.keyboard.length-1&&(this.x=-1),this.x++,this.keyboard[this.x].length=this.keyboard[this.x].length-1&&(this.y=-1),this.y++;break;case"Enter":{const i=this.keyboard[this.x][this.y];switch(i){case"change":switch(this.current){case"en":this.current="ru";break;case"ru":this.current="en"}this.createKeyboard();break;case"caps":this.caps=!this.caps;break;case"wipe":this.text="";break;case"space":this.text+=" ";break;case"exit":this.closeKeyboard();break;case"save":this.closeKeyboard(!0);break;case"<--":this.text=this.text.slice(0,-1);break;default:this.text+=this.caps?i.toUpperCase():i}break}}})}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ge(n)))(i||n)}}(),n.\u0275cmp=De({type:n,selectors:[["app-keyboard"]],features:[W],decls:7,vars:2,consts:[["mat-dialog-content",""],[2,"display","flex","justify-content","center","height","150px","word-break","break-all","align-items","center","border","1px solid rgb(0 242 0 / 30%)"],["style","display: flex; flex-direction: row; justify-content: space-between",4,"ngFor","ngForOf"],[2,"display","flex","flex-direction","row","justify-content","space-between"],["class","keyboard_key",3,"keyboard_current","text-transform",4,"ngFor","ngForOf"],[1,"keyboard_key"]],template:function(t,i){1&t&&(q(0,"div",0)(1,"div")(2,"div",1)(3,"p"),fe(4),$()(),q(5,"div"),Vt(6,ej,2,1,"div",2),$()()()),2&t&&(ie(4),Ze(i.text),ie(2),Bt("ngForOf",i.keyboard))},dependencies:[bi,Rp],encapsulation:2}),n})(),WE=(()=>{class n{constructor(){this.inApp=!1}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class nj{}class Mi{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),o=r.toLowerCase(),s=t.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let i=e[t];const r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Mi?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Mi;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Mi?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const o=e.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class ij{encodeKey(e){return qE(e)}encodeValue(e){return qE(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const oj=/%(\d[a-f0-9])/gi,sj={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function qE(n){return encodeURIComponent(n).replace(oj,(e,t)=>sj[t]??e)}function wc(n){return`${n}`}class Ai{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new ij,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function rj(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t],r=Array.isArray(i)?i.map(wc):[wc(i)];this.map.set(t,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)?r.forEach(o=>{t.push({param:i,value:o,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Ai({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(wc(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let i=this.map.get(e.param)||[];const r=i.indexOf(wc(e.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class aj{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function KE(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function YE(n){return typeof Blob<"u"&&n instanceof Blob}function ZE(n){return typeof FormData<"u"&&n instanceof FormData}class js{constructor(e,t,i,r){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function lj(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Mi),this.context||(this.context=new aj),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ad.set(h,e.setHeaders[h]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((d,h)=>d.set(h,e.setParams[h]),c)),new js(t,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var ot=(()=>((ot=ot||{})[ot.Sent=0]="Sent",ot[ot.UploadProgress=1]="UploadProgress",ot[ot.ResponseHeader=2]="ResponseHeader",ot[ot.DownloadProgress=3]="DownloadProgress",ot[ot.Response=4]="Response",ot[ot.User=5]="User",ot))();class Fp extends class uj{constructor(e,t=200,i="OK"){this.headers=e.headers||new Mi,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=ot.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Fp({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function Op(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let XE=(()=>{class n{constructor(t){this.handler=t}request(t,i,r={}){let o;if(t instanceof js)o=t;else{let l,c;l=r.headers instanceof Mi?r.headers:new Mi(r.headers),r.params&&(c=r.params instanceof Ai?r.params:new Ai({fromObject:r.params})),o=new js(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=R(o).pipe(Di(l=>this.handler.handle(l)));if(t instanceof js||"events"===r.observe)return s;const a=s.pipe(bt(l=>l instanceof Fp));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(B(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(B(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(B(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(B(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new Ai).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,Op(r,i))}post(t,i,r={}){return this.request("POST",t,Op(r,i))}put(t,i,r={}){return this.request("PUT",t,Op(r,i))}}return n.\u0275fac=function(t){return new(t||n)(y(nj))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const hj=["*"];let Dc;function Us(n){return function fj(){if(void 0===Dc&&(Dc=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(Dc=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return Dc}()?.createHTML(n)||n}function JE(n){return Error(`Unable to find icon with the name "${n}"`)}function e0(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function t0(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class ar{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}}let Ec=(()=>{class n{constructor(t,i,r,o){this._httpClient=t,this._sanitizer=i,this._errorHandler=o,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=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,o){return this._addSvgIconConfig(t,i,new ar(r,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,o){const s=this._sanitizer.sanitize(ue.HTML,r);if(!s)throw t0(r);const a=Us(s);return this._addSvgIconConfig(t,i,new ar("",a,o))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new ar(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const o=this._sanitizer.sanitize(ue.HTML,i);if(!o)throw t0(i);const s=Us(o);return this._addSvgIconSetConfig(t,new ar("",s,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(ue.RESOURCE_URL,t);if(!i)throw e0(t);const r=this._cachedIconsByUrl.get(i);return r?R(Sc(r)):this._loadSvgIconFromConfig(new ar(t,null)).pipe(Xe(o=>this._cachedIconsByUrl.set(i,o)),B(o=>Sc(o)))}getNamedSvgIcon(t,i=""){const r=n0(i,t);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,t),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(t,s):io(JE(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?R(Sc(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(B(i=>Sc(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);return r?R(r):function GE(...n){const e=Zm(n),{args:t,keys:i}=xw(n),r=new ye(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(i?Rw(i,a):a),o.complete())}))}});return e?r.pipe(Ef(e)):r}(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(ii(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(ue.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),R(null)})))).pipe(B(()=>{const s=this._extractIconWithNameFromAnySet(t,i);if(!s)throw JE(t);return s}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,t,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Xe(i=>t.svgText=i),B(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?R(null):this._fetchIcon(t).pipe(Xe(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const o=t.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(Us(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString(Us("")),r=t.attributes;for(let o=0;oUs(c)),jl(()=>this._inProgressUrlFetches.delete(s)),eg());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(n0(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;re?e.pathname+e.search:""}}}),r0=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Cj=r0.map(n=>`[${n}]`).join(", "),wj=/^url\(['"]?#(.*?)['"]?\)$/;let o0=(()=>{class n extends _j{constructor(t,i,r,o,s,a){super(t),this._iconRegistry=i,this._location=o,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Je.EMPTY,a&&(a.color&&(this.color=this.defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=function nH(n){return null!=n&&"false"!=`${n}`}(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>t.classList.remove(r)),i.forEach(r=>t.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(Cj),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match(wj):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(nn(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(g(je),g(Ec),Mr("aria-hidden"),g(vj),g(Yn),g(yj,8))},n.\u0275cmp=De({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(t,i){2&t&&(Lt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),Xt("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[W],ngContentSelectors:hj,decls:1,vars:0,template:function(t,i){1&t&&(function ov(n){const e=w()[16][6];if(!e.projection){const i=e.projection=Ho(n?n.length:1,null),r=i.slice();let o=e.child;for(;null!==o;){const s=n?sk(o,n):0;null!==s&&(r[s]?r[s].projectionNext=o:i[s]=o,r[s]=o),o=o.next}}}(),function sv(n,e=0,t){const i=w(),r=ne(),o=Hr(r,22+n,16,null,t||null);null===o.projection&&(o.projection=e),xu(),64!=(64&o.flags)&&function bT(n,e,t){M_(e[G],0,e,t,__(n,t,e),C_(t.parent||e[6],t,e))}(r,i,o)}(0))},styles:[".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}),n})(),Dj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[Cn,Cn]}),n})();function Ej(n,e){if(1&n&&(q(0,"div")(1,"p",6),fe(2),$()()),2&n){const t=e.$implicit;Xt("menu-selected",t==Ht().selected),ie(2),Ze(t.name)}}function Sj(n,e){if(1&n&&(q(0,"mat-icon",7),fe(1),$()),2&n){const t=Ht();ie(1),Ze(t.selected.icon)}}let s0=(()=>{class n extends zE{constructor(t,i,r){super(),this.dialog=t,this.io=i,this.apps=r,this.elements=[{name:"Clock",action:()=>{this.openApp(Q2)},matIcon:!0,icon:"access_time",about:"\u0417\u0430\u0431\u044b\u0442\u044b\u0435 \u0447\u0430\u0441\u044b \u0441\u0430\u043c\u043e\u0433\u043e \u0442\u043e\u0434\u0434\u0430 \u0433\u043e\u0432\u0430\u0440\u0434\u0430. \u041e\u043d \u0437\u0430\u0431\u044b\u043b \u0438\u0445 \u0432 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u0442\u043d\u043e\u0439 \u0438\u0433\u0440\u0435 \u043a\u0430\u043b\u043b\u0430\u0443\u044276."},{name:"KeyboardTest",action:()=>{this.openApp(tj)},matIcon:!0,icon:"help",about:"Keyboard input test"},{name:"Rick Roll",action:()=>{this.openApp(X2,{url:"https://youtu.be/dQw4w9WgXcQ?output=embed"})},matIcon:!0,icon:"record_voice_over",about:"\u041d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0443\u0447\u0448\u0435 \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0440\u0438\u043a\u0440\u043e\u043b\u043b\u0430"}],this.selected=this.elements[0]}createSub(){this.sub=this.io.keys.subscribe(t=>{this.apps.inApp||super.choiceItem(t)})}ngOnInit(){this.createSub()}openApp(t,i={}){this.apps.inApp=!0,this.dialog.open(t,{width:"100%",height:"100%",disableClose:!0,data:i}).afterClosed().subscribe(()=>this.apps.inApp=!1)}}return n.\u0275fac=function(t){return new(t||n)(g($E),g(vo),g(WE))},n.\u0275cmp=De({type:n,selectors:[["app-inventory-apps-component"]],features:[W],decls:9,vars:3,consts:[[2,"display","flex","flex-direction","row","justify-content","center","height","84%"],[2,"width","45%"],[3,"menu-selected",4,"ngFor","ngForOf"],[2,"width","45%","display","flex","flex-direction","column"],[2,"text-align","center"],["class","rotating-image","style","font-size: 100px; height: 100px; width: 100px",4,"ngIf"],[2,"margin","0 0"],[1,"rotating-image",2,"font-size","100px","height","100px","width","100px"]],template:function(t,i){1&t&&(q(0,"div",0)(1,"div",1),Vt(2,Ej,3,3,"div",2),$(),q(3,"div",3)(4,"div",4),Vt(5,Sj,2,1,"mat-icon",5),$(),q(6,"div")(7,"p"),fe(8),$()()()()),2&t&&(ie(2),Bt("ngForOf",i.elements),ie(3),Bt("ngIf",i.selected.matIcon),ie(3),Ze(i.selected.about))},dependencies:[bi,JC,o0],encapsulation:2}),n})(),a0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=De({type:n,selectors:[["app-inventory-custom"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})();function Mj(n,e){if(1&n){const t=Xa();q(0,"p",7),it("click",function(){const o=pa(t).$implicit;return ma(Ht().selectHeader(o))}),fe(1),$()}if(2&n){const t=e.$implicit;Xt("inactiveHeader",!Ht().isActiveHeader(t)),ie(1),Ze(t.name)}}let l0=(()=>{class n extends np{constructor(t,i,r,o,s){super(t,i),this.ws=r,this.io=o,this.apps=s,this.free=0,this.total=0,this.format="",this.path="inventory",super.navs=[{name:"apps",path:"apps",action:()=>{},component:s0.name},{name:"custom",path:"custom",action:()=>{},component:a0.name}]}selectHeader(t){super.selectHeader(t,[this.path])}ngOnInit(){this.ws.events.pipe(B(t=>JSON.parse(t))).subscribe(t=>{t.event==fo.SPACESTATS&&(this.free=Math.round(t.data.free),this.total=Math.round(t.data.total),this.format=t.data.format)}),this.sub=this.io.keys.subscribe(t=>{this.apps.inApp||super.choiceHeader(t)})}}return n.\u0275fac=function(t){return new(t||n)(g(bn),g(Ve),g(zD),g(vo),g(WE))},n.\u0275cmp=De({type:n,selectors:[["app-inv-header"]],features:[W],decls:15,vars:4,consts:[[2,"display","flex","align-items","center","justify-content","flex-start","padding-left","45px"],["style","text-transform: uppercase;font-weight: bold; margin-bottom: 0; margin-top: 5px; padding-left: 5px",3,"inactiveHeader","click",4,"ngFor","ngForOf"],[2,"padding-top","2.5%"],[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","19.5%"],[1,"footer-text",2,"width","60%"],[2,"text-transform","uppercase","font-weight","bold","margin-bottom","0","margin-top","5px","padding-left","5px",3,"click"]],template:function(t,i){1&t&&(q(0,"div",0),Vt(1,Mj,2,3,"p",1),$(),q(2,"div",2),In(3,"router-outlet"),$(),q(4,"div",3)(5,"div",4)(6,"div",5)(7,"span"),fe(8),$()(),q(9,"div",5)(10,"span"),fe(11,"\u0445\u0437 \u0447\u0442\u043e \u0442\u0443\u0442 \u043d\u0430\u0434\u043e"),$()(),q(12,"div",6)(13,"span"),fe(14,"nigger"),$()()()()),2&t&&(ie(1),Bt("ngForOf",i.navs),ie(7),ph("",i.free,"/",i.total,"",i.format,""))},dependencies:[bi,lo],encapsulation:2}),n})(),c0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=De({type:n,selectors:[["app-map-header"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})(),u0=(()=>{class n{constructor(){this.name="",this.volume=.5,this.tracks=[],this.player=new Audio,this.player.addEventListener("ended",()=>{let t=this.tracks.pop();t&&this.playThis(t.src,t.name)})}playThis(t,i){this.player.src=t,this.player.volume=this.volume,this.name=i,this.player.play()}stop(){this.player.pause()}volumeUp(){this.volume>.9||(this.volume=this.volume+.1,this.player.volume=this.volume)}volumeDown(){this.volume<.1||(this.volume=this.volume-.1,this.player.volume=this.volume)}getVolume(){return Math.round(100*this.volume)}getTime(){return this.player.duration?this.player.duration<60?"0:"+Math.floor(this.player.currentTime)+" / 0:"+Math.floor(this.player.duration):Math.floor(this.player.currentTime)+" / "+Math.floor(this.player.duration):"0:00 / 0:00"}getName(){return this.name?"\u0421\u0435\u0439\u0447\u0430\u0441 \u0438\u0433\u0440\u0430\u0435\u0442: "+this.name:"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u0433\u0440\u0430\u0435\u0442"}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Aj(n,e){if(1&n&&(q(0,"div")(1,"p",6),fe(2),$()()),2&n){const t=e.$implicit,i=Ht();Xt("menu-selected",t==i.selected&&"LEFT"==i.currentSide),ie(2),Ze(t.name)}}function Ij(n,e){if(1&n&&(q(0,"div")(1,"p",6),fe(2),$()()),2&n){const t=e.$implicit,i=Ht();Xt("menu-selected",t==i.selectedRight&&"RIGHT"==i.currentSide),ie(2),Ze(t.name)}}let Tj=(()=>{class n extends zE{constructor(t,i){super(),this.player=t,this.io=i,this.elements=[{name:"niggers",src:"../../../../assets/music/pvz.mp3",action:()=>{this.play()}}],this.selected=this.elements[0],this.elementsRight=[{name:"STOP",action:()=>this.player.stop()},{name:"Volume UP",action:()=>this.player.volumeUp()},{name:"Volume DOWN",action:()=>this.player.volumeDown()}],this.selectedRight=this.elementsRight[0]}ngOnInit(){this.sub=this.io.keys.subscribe(t=>{switch(t){case"KeyA":this.currentSide="LEFT";break;case"KeyD":this.currentSide="RIGHT";break;default:super.choiceItem(t)}})}play(){this.player.playThis(this.selected.src,this.selected.name)}}return n.\u0275fac=function(t){return new(t||n)(g(u0),g(vo))},n.\u0275cmp=De({type:n,selectors:[["app-radio"]],features:[W],decls:8,vars:2,consts:[[2,"display","flex","flex-direction","row","justify-content","center","height","81%","padding-top","7%"],[2,"width","45%"],[3,"menu-selected",4,"ngFor","ngForOf"],[2,"width","45%","display","flex","flex-direction","column"],[2,"text-align","center"],[1,"rotating-image",2,"font-size","100px","height","100px","width","100px"],[2,"margin","0 0"]],template:function(t,i){1&t&&(q(0,"div",0)(1,"div",1),Vt(2,Aj,3,3,"div",2),$(),q(3,"div",3)(4,"div",4)(5,"mat-icon",5),fe(6,"audiotrack"),$()(),Vt(7,Ij,3,3,"div",2),$()()),2&t&&(ie(2),Bt("ngForOf",i.elements),ie(5),Bt("ngForOf",i.elementsRight))},dependencies:[bi,o0],encapsulation:2}),n})(),d0=(()=>{class n{constructor(t){this.player=t}}return n.\u0275fac=function(t){return new(t||n)(g(u0))},n.\u0275cmp=De({type:n,selectors:[["app-radio-header"]],decls:12,vars:3,consts:[[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","65%"],[1,"footer-text",2,"width","9.5%","text-align","center"],[1,"footer-text",2,"width","24.5%","text-align","right"]],template:function(t,i){1&t&&(In(0,"app-radio"),q(1,"div",0)(2,"div",1)(3,"div",2)(4,"span"),fe(5),$()(),q(6,"div",3)(7,"span"),fe(8),$()(),q(9,"div",4)(10,"span"),fe(11),$()()()()),2&t&&(ie(5),Ze(i.player.getName()),ie(3),Yi("",i.player.getVolume()," %"),ie(3),Ze(i.player.getTime()))},dependencies:[Tj],encapsulation:2}),n})();class Pp extends ae{constructor(e=1/0,t=1/0,i=up){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){const{isStopped:t,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;t||(i.push(e),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(e),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;sJSON.parse(n.data),serializer:n=>JSON.stringify(n)};class Np extends iu{constructor(e,t){if(super(),this._socket=null,e instanceof ye)this.destination=t,this.source=e;else{const i=this._config=Object.assign({},xj);if(this._output=new ae,"string"==typeof e)i.url=e;else for(const r in e)e.hasOwnProperty(r)&&(i[r]=e[r]);if(!i.WebSocketCtor&&WebSocket)i.WebSocketCtor=WebSocket;else if(!i.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new Pp}}lift(e){const t=new Np(this._config,this.destination);return t.operator=e,t.source=this,t}_resetState(){this._socket=null,this.source||(this.destination=new Pp),this._output=new ae}multiplex(e,t,i){const r=this;return new ye(o=>{try{r.next(e())}catch(a){o.error(a)}const s=r.subscribe({next:a=>{try{i(a)&&o.next(a)}catch(l){o.error(l)}},error:a=>o.error(a),complete:()=>o.complete()});return()=>{try{r.next(t())}catch(a){o.error(a)}s.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:e,protocol:t,url:i,binaryType:r}=this._config,o=this._output;let s=null;try{s=t?new e(i,t):new e(i),this._socket=s,r&&(this._socket.binaryType=r)}catch(l){return void o.error(l)}const a=new Je(()=>{this._socket=null,s&&1===s.readyState&&s.close()});s.onopen=l=>{const{_socket:c}=this;if(!c)return s.close(),void this._resetState();const{openObserver:u}=this._config;u&&u.next(l);const d=this.destination;this.destination=ea.create(h=>{if(1===s.readyState)try{const{serializer:f}=this._config;s.send(f(h))}catch(f){this.destination.error(f)}},h=>{const{closingObserver:f}=this._config;f&&f.next(void 0),h&&h.code?s.close(h.code,h.reason):o.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:h}=this._config;h&&h.next(void 0),s.close(),this._resetState()}),d&&d instanceof Pp&&a.add(d.subscribe(this.destination))},s.onerror=l=>{this._resetState(),o.error(l)},s.onclose=l=>{s===this._socket&&this._resetState();const{closeObserver:c}=this._config;c&&c.next(l),l.wasClean?o.complete():o.error(l)},s.onmessage=l=>{try{const{deserializer:c}=this._config;o.next(c(l))}catch(c){o.error(c)}}}_subscribe(e){const{source:t}=this;return t?t.subscribe(e):(this._socket||this._connectSocket(),this._output.subscribe(e),e.add(()=>{const{_socket:i}=this;0===this._output.observers.length&&(i&&(1===i.readyState||0===i.readyState)&&i.close(),this._resetState())}),e)}unsubscribe(){const{_socket:e}=this;e&&(1===e.readyState||0===e.readyState)&&e.close(),this._resetState(),super.unsubscribe()}}let jj=(()=>{class n{constructor(){this.channels=[],this.nodes=[],this.messages=new vt("{}"),this.state=0,this.meshId=0,this.connect()}getMyMesh(){if(0==this.meshId)return{name:"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e",id:0};{let t=this.nodes.filter(i=>i.id==this.meshId);return t.length>0?t.pop():{name:"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e",id:0}}}connect(){this.socket$=function kj(n){return new Np(n)}(`ws://${location.host}/mesh/ws`),this.socket$.subscribe(t=>{switch(t.event){case 4:this.meshId=t.data;break;case 1:{const i=t.data,r=this.nodes.filter(o=>o.id==i.id);if(0==r.length)this.nodes.push(i);else{let o=this.nodes.indexOf(r[0]);this.nodes[o]=i}break}case 2:this.state=t.data;break;case 0:{const i=t.data,r=this.channels.filter(o=>o.index==i.index);if(0==r.length)this.channels.push(i);else{let o=this.channels.indexOf(r[0]);this.channels[o]=i}break}}},t=>{})}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Uj(n,e){if(1&n&&(q(0,"p"),fe(1),$()),2&n){const t=e.$implicit;ie(1),Ze(t.name)}}let f0=(()=>{class n{constructor(t){this.meshtastic=t}getMeshState(){switch(this.meshtastic.state){case 0:return"\u041d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d";case 1:return"\u041e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438";case 2:return"\u0414\u043e\u0441\u0442\u0443\u043f\u0435\u043d";case 3:return"\u041e\u0448\u0438\u0431\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u044f";case 4:return"\u041f\u0435\u0440\u0435\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435";default:return"\u0425\u0443\u0439 \u0437\u043d\u0430\u0435\u0442"}}}return n.\u0275fac=function(t){return new(t||n)(g(jj))},n.\u0275cmp=De({type:n,selectors:[["app-meshtastic-header"]],decls:18,vars:4,consts:[[2,"display","flex","align-items","center","justify-content","flex-start","padding-left","45px"],[4,"ngFor","ngForOf"],[2,"padding-top","2.5%"],[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","30%"],[1,"footer-text",2,"width","49%"],[1,"footer-text",2,"width","20%"]],template:function(t,i){1&t&&(q(0,"div",0)(1,"p"),fe(2,"MY"),$(),q(3,"p"),fe(4,"NODES"),$(),Vt(5,Uj,2,1,"p",1),$(),In(6,"div",2),q(7,"div",3)(8,"div",4)(9,"div",5)(10,"span"),fe(11),$()(),q(12,"div",6)(13,"span"),fe(14),$()(),q(15,"div",7)(16,"span"),fe(17),$()()()()),2&t&&(ie(5),Bt("ngForOf",i.meshtastic.channels),ie(6),Ze(i.getMeshState()),ie(3),Ze(i.meshtastic.getMyMesh().name),ie(3),Yi("",i.meshtastic.nodes.length," nodes"))},dependencies:[bi],encapsulation:2}),n})();function $j(n,e){if(1&n){const t=Xa();q(0,"p",2),it("click",function(){const o=pa(t).$implicit;return ma(Ht().selectHeader(o))}),fe(1),$()}if(2&n){const t=e.$implicit;Xt("activeHeader",Ht().isActiveHeader(t))("baseActiveHeader",!0),ie(1),Ze(t.name)}}const zj=[{path:"",component:(()=>{class n extends np{constructor(t,i,r){super(t,i),this.io=r,super.navs=[{name:"stat",path:"stats",action:()=>{},component:WD.name},{name:"inv",path:"inventory",action:()=>{},component:l0.name},{name:"map",path:"map",action:()=>{},component:c0.name},{name:"radio",path:"radio",action:()=>{},component:d0.name},{name:"mesh",path:"mesh",action:()=>{},component:f0.name}]}ngOnInit(){this.sub=this.io.keys.subscribe(t=>{if(null!=this.currentNav&&t.startsWith("Digit")&&6==t.length){let i=Number.parseInt(t.replace("Digit",""))-1;this.navs[i]&&this.selectHeader(this.navs[i])}})}}return n.\u0275fac=function(t){return new(t||n)(g(bn),g(Ve),g(vo))},n.\u0275cmp=De({type:n,selectors:[["ui"]],features:[W],decls:3,vars:1,consts:[[2,"display","flex","align-items","center","justify-content","space-evenly","border-bottom","1px solid rgb(0, 242, 0)"],[3,"activeHeader","baseActiveHeader","click",4,"ngFor","ngForOf"],[3,"click"]],template:function(t,i){1&t&&(q(0,"div",0),Vt(1,$j,2,5,"p",1),$(),In(2,"router-outlet")),2&t&&(ie(1),Bt("ngForOf",i.navs))},dependencies:[bi,lo],encapsulation:2}),n})(),children:[{path:"",redirectTo:"stats",pathMatch:"full"},{path:"stats",component:WD,children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:$D}]},{path:"inventory",component:l0,children:[{path:"",redirectTo:"apps",pathMatch:"full"},{path:"apps",component:s0},{path:"custom",component:a0}]},{path:"data",component:(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=De({type:n,selectors:[["app-data-header"]],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})()},{path:"map",component:c0},{path:"radio",component:d0},{path:"mesh",component:f0}]}];let Wj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[jD.forRoot(zj),jD]}),n})(),Gj=(()=>{class n{constructor(t){this.io=t}pressKeys(t){this.io.keys.next(t.code),this.io.keys.next("")}}return n.\u0275fac=function(t){return new(t||n)(g(vo))},n.\u0275cmp=De({type:n,selectors:[["app-root"]],hostBindings:function(t,i){1&t&&it("keypress",function(o){return i.pressKeys(o)},0,Z_)},decls:1,vars:0,template:function(t,i){1&t&&In(0,"router-outlet")},dependencies:[lo]}),n})();function p0(n){return new C(3e3,!1)}function AU(){return typeof window<"u"&&typeof window.document<"u"}function Lp(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ii(n){switch(n.length){case 0:return new Hs;case 1:return n[0];default:return new BE(n)}}function m0(n,e,t,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,m)=>{let _=m,b=p;if("offset"!==m)switch(_=e.normalizePropertyName(_,s),b){case"!":b=r.get(m);break;case si:b=o.get(m);break;default:b=e.normalizeStyleValue(m,_,b,s)}f.set(_,b)}),h||a.push(f),c=f,l=d}),s.length)throw function mU(n){return new C(3502,!1)}();return a}function Vp(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Bp(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Bp(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Bp(t,"destroy",n)))}}function Bp(n,e,t){const o=Hp(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t.totalTime??n.totalTime,!!t.disabled),s=n._data;return null!=s&&(o._data=s),o}function Hp(n,e,t,i,r="",o=0,s){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function jt(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function g0(n){const e=n.indexOf(":");return[n.substring(1,e),n.slice(e+1)]}let jp=(n,e)=>!1,_0=(n,e,t)=>[],y0=null;function Up(n){const e=n.parentNode||n.host;return e===y0?null:e}(Lp()||typeof Element<"u")&&(AU()?(y0=(()=>document.documentElement)(),jp=(n,e)=>{for(;e;){if(e===n)return!0;e=Up(e)}return!1}):jp=(n,e)=>n.contains(e),_0=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let lr=null,v0=!1;const b0=jp,C0=_0;let w0=(()=>{class n{validateStyleProperty(t){return function TU(n){lr||(lr=function xU(){return typeof document<"u"?document.body:null}()||{},v0=!!lr.style&&"WebkitAppearance"in lr.style);let e=!0;return lr.style&&!function IU(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in lr.style,!e&&v0&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in lr.style)),e}(t)}matchesElement(t,i){return!1}containsElement(t,i){return b0(t,i)}getParentElement(t){return Up(t)}query(t,i,r){return C0(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,o,s,a=[],l){return new Hs(r,o)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),$p=(()=>{class n{}return n.NOOP=new w0,n})();const zp="ng-enter",Mc="ng-leave",Ac="ng-trigger",Ic=".ng-trigger",E0="ng-animating",Wp=".ng-animating";function ai(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Gp(parseFloat(e[1]),e[2])}function Gp(n,e){return"s"===e?1e3*n:n}function Tc(n,e,t){return n.hasOwnProperty("duration")?n:function FU(n,e,t){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(p0()),{duration:0,delay:0,easing:""};r=Gp(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Gp(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function qj(){return new C(3100,!1)}()),a=!0),o<0&&(e.push(function Kj(){return new C(3101,!1)}()),a=!0),a&&e.splice(l,0,p0())}return{duration:r,delay:o,easing:s}}(n,e,t)}function $s(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function S0(n){const e=new Map;return Object.keys(n).forEach(t=>{e.set(t,n[t])}),e}function Ti(n,e=new Map,t){if(t)for(let[i,r]of t)e.set(i,r);for(let[i,r]of n)e.set(i,r);return e}function A0(n,e,t){return t?e+":"+t+";":""}function I0(n){let e="";for(let t=0;t{const o=Kp(r);t&&!t.has(r)&&t.set(r,n.style[o]),n.style[o]=i}),Lp()&&I0(n))}function cr(n,e){n.style&&(e.forEach((t,i)=>{const r=Kp(i);n.style[r]=""}),Lp()&&I0(n))}function zs(n){return Array.isArray(n)?1==n.length?n[0]:PE(n):n}const qp=new RegExp("{{\\s*(.+?)\\s*}}","g");function T0(n){let e=[];if("string"==typeof n){let t;for(;t=qp.exec(n);)e.push(t[1]);qp.lastIndex=0}return e}function Ws(n,e,t){const i=n.toString(),r=i.replace(qp,(o,s)=>{let a=e[s];return null==a&&(t.push(function Zj(n){return new C(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function xc(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const NU=/-+([a-z0-9])/g;function Kp(n){return n.replace(NU,(...e)=>e[1].toUpperCase())}function LU(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ut(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function Qj(n){return new C(3004,!1)}()}}function x0(n,e){return window.getComputedStyle(n)[e]}function $U(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function zU(n,e,t){if(":"==n[0]){const l=function WU(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function uU(n){return new C(3015,!1)}()),e;const r=i[1],o=i[2],s=i[3];e.push(R0(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&e.push(R0(s,r))}(i,t,e)):t.push(n),t}const Oc=new Set(["true","1"]),Pc=new Set(["false","0"]);function R0(n,e){const t=Oc.has(n)||Pc.has(n),i=Oc.has(e)||Pc.has(e);return(r,o)=>{let s="*"==n||n==r,a="*"==e||e==o;return!s&&t&&"boolean"==typeof r&&(s=r?Oc.has(n):Pc.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?Oc.has(e):Pc.has(e)),s&&a}}const GU=new RegExp("s*:selfs*,?","g");function Yp(n,e,t,i){return new qU(n).build(e,t,i)}class qU{constructor(e){this._driver=e}build(e,t,i){const r=new ZU(t);return this._resetContextStyleTimingState(r),Ut(this,zs(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const o=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push(function Jj(){return new C(3006,!1)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,s.push(l)}else t.errors.push(function eU(){return new C(3007,!1)}())}),{type:7,name:e.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{T0(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(xc(o.values()),t.errors.push(function tU(n,e){return new C(3008,!1)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Ut(this,zs(e.animation),t);return{type:1,matchers:$U(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:ur(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Ut(this,i,t)),options:ur(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const o=e.steps.map(s=>{t.currentTime=i;const a=Ut(this,s,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:o,options:ur(e.options)}}visitAnimate(e,t){const i=function XU(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Zp(Tc(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Zp(0,0,"");return o.dynamic=!0,o.strValue=t,o}const r=Tc(t,e);return Zp(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,o=e.styles?e.styles:Si({});if(5==o.type)r=this.visitKeyframes(o,t);else{let s=e.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Si(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)"string"==typeof a?a===si?i.push(a):t.errors.push(new C(3002,!1)):i.push(S0(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(t.errors.push(function iU(n,e,t,i,r){return new C(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),t.options&&function PU(n,e,t){const i=e.params||{},r=T0(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||t.push(function Yj(n){return new C(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function rU(){return new C(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=e.steps.map(b=>{const D=this._makeStyleAst(b,t);let v=null!=D.offset?D.offset:function QU(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){const i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}(D.styles),I=0;return null!=v&&(o++,I=D.offset=v),l=l||I<0||I>1,a=a||I0&&o{const v=h>0?D==f?1:h*D:s[D],I=v*_;t.currentTime=p+m.delay+I,m.duration=I,this._validateStyleAst(b,t),b.offset=v,i.styles.push(b)}),i}visitReference(e,t){return{type:8,animation:Ut(this,zs(e.animation),t),options:ur(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:ur(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ur(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[o,s]=function KU(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(GU,"")),n=n.replace(/@\*/g,Ic).replace(/@\w+/g,t=>Ic+"-"+t.slice(1)).replace(/:animating/g,Wp),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+o:o,jt(t.collectedStyles,t.currentQuerySelector,new Map);const a=Ut(this,zs(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:ur(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function lU(){return new C(3013,!1)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:Tc(e.timings,t.errors,!0);return{type:12,animation:Ut(this,zs(e.animation),t),timings:i,options:null}}}class ZU{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ur(n){return n?(n=$s(n)).params&&(n.params=function YU(n){return n?$s(n):null}(n.params)):n={},n}function Zp(n,e,t){return{duration:n,delay:e,easing:t}}function Qp(n,e,t,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Nc{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const t$=new RegExp(":enter","g"),i$=new RegExp(":leave","g");function Xp(n,e,t,i,r,o=new Map,s=new Map,a,l,c=[]){return(new r$).buildKeyframes(n,e,t,i,r,o,s,a,l,c)}class r${buildKeyframes(e,t,i,r,o,s,a,l,c,u=[]){c=c||new Nc;const d=new Jp(e,t,c,r,o,u,[]);d.options=l;const h=l.delay?ai(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),Ut(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const _=f[m];if(_.element===t){p=_;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[Qp(t,[],[],[],0,h,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(const r of e){const o=r?.delay;if(o){const s="number"==typeof o?o:ai(Ws(o,r?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(e,t,i){let o=t.currentTimeline.currentTime;const s=null!=i.duration?ai(i.duration):null,a=null!=i.delay?ai(i.delay):null;return 0!==s&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,t){t.updateOptions(e.options,!0),Ut(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const o=e.options;if(o&&(o.params||o.delay)&&(r=t.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Lc);const s=ai(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>Ut(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const o=e.options&&e.options.delay?ai(e.options.delay):0;e.steps.forEach(s=>{const a=t.createSubContext(e.options);o&&a.delayNextStep(o),Ut(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return Tc(t.params?Ws(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const o=e.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(i.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(o):i.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,o=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+o),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?ai(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Lc);let s=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);o&&d.delayNextStep(o),c===t.element&&(l=d.currentTimeline),Ut(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1);let l=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Ut(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Lc={};class Jp{constructor(e,t,i,r,o,s,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Lc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Vc(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=ai(i.duration)),null!=i.delay&&(r.delay=ai(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=Ws(o[a],s,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,o=new Jp(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Lc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},o=new o$(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,o,s){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(t$,"."+this._enterClassName)).replace(i$,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function cU(n){return new C(3014,!1)}()),a}}class Vc{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new Vc(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||si),this._currentKeyframe.set(t,si);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);const o=r&&r.params||{},s=function s$(n,e){const t=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||e.keys();for(let o of i)t.set(o,si)}else Ti(r,t)}),t}(e,this._globalTimelineStyles);for(let[a,l]of s){const c=Ws(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??si),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{const r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Ti(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?e.add(d):u===si&&t.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=e.size?xc(e.values()):[],s=t.size?xc(t.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Qp(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class o$ extends Vc{constructor(e,t,i,r,o,s,a=!1){super(e,t,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],s=i+t,a=t/s,l=Ti(e[0]);l.set("offset",0),o.push(l);const c=Ti(e[0]);c.set("offset",O0(a)),o.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=Ti(e[d]);const f=h.get("offset");h.set("offset",O0((t+f*i)/s)),o.push(h)}i=s,t=0,r="",e=o}return Qp(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function O0(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class em{}const a$=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 l$ extends em{normalizePropertyName(e,t){return Kp(e)}normalizeStyleValue(e,t,i,r){let o="";const s=i.toString().trim();if(a$.has(t)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function Xj(n,e){return new C(3005,!1)}())}return s+o}}function P0(n,e,t,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const tm={};class N0{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function c$(n,e,t,i,r){return n.some(o=>o(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){let r=this._stateStyles.get("*");return void 0!==e&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,i):new Map}build(e,t,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||tm,p=this.buildStyles(i,a&&a.params||tm,d),m=l&&l.params||tm,_=this.buildStyles(r,m,d),b=new Set,D=new Map,v=new Map,I="void"===r,Y={params:u$(m,h),delay:this.ast.options?.delay},te=u?[]:Xp(e,t,this.ast.animation,o,s,p,_,Y,c,d);let Re=0;if(te.forEach(zt=>{Re=Math.max(zt.duration+zt.delay,Re)}),d.length)return P0(t,this._triggerName,i,r,I,p,_,[],[],D,v,Re,d);te.forEach(zt=>{const Wt=zt.element,wo=jt(D,Wt,new Set);zt.preStyleProps.forEach(wn=>wo.add(wn));const li=jt(v,Wt,new Set);zt.postStyleProps.forEach(wn=>li.add(wn)),Wt!==t&&b.add(Wt)});const $t=xc(b.values());return P0(t,this._triggerName,i,r,I,p,_,te,$t,D,v,Re)}}function u$(n,e){const t=$s(e);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(t[i]=n[i]);return t}class d${constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i=new Map,r=$s(this.defaultParams);return Object.keys(e).forEach(o=>{const s=e[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Ws(s,r,t));const l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),i.set(l,s)})}),i}}class f${constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{this.states.set(r.name,new d$(r.style,r.options&&r.options.params||{},i))}),L0(this.states,"true","1"),L0(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new N0(e,r,this.states))}),this.fallbackTransition=function p$(n,e,t){return new N0(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(s=>s.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function L0(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}const m$=new Nc;class g${constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const i=[],o=Yp(this._driver,t,i,[]);if(i.length)throw function gU(n){return new C(3503,!1)}();this._animations.set(e,o)}_buildPlayer(e,t,i){const r=e.element,o=m0(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],o=this._animations.get(e);let s;const a=new Map;if(o?(s=Xp(this._driver,t,o,zp,Mc,new Map,new Map,i,m$,r),s.forEach(u=>{const d=jt(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function _U(){return new C(3300,!1)}()),s=[]),r.length)throw function yU(n){return new C(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,si))})});const c=Ii(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function vU(n){return new C(3301,!1)}();return t}listen(e,t,i,r){const o=Hp(t,"","","");return Vp(this._getPlayer(e),i,o,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const o=this._getPlayer(e);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const V0="ng-animate-queued",nm="ng-animate-disabled",C$=[],B0={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},w$={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},on="__ng_removed";class im{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function M$(n){return n??null}(i?e.value:e),i){const o=$s(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const Gs="void",rm=new im(Gs);class D${constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,sn(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw function bU(n,e){return new C(3302,!1)}();if(null==i||0==i.length)throw function CU(n){return new C(3303,!1)}();if(!function A$(n){return"start"==n||"done"==n}(i))throw function wU(n,e){return new C(3400,!1)}();const o=jt(this._elementListeners,e,[]),s={name:t,phase:i,callback:r};o.push(s);const a=jt(this._engine.statesByElement,e,new Map);return a.has(t)||(sn(e,Ac),sn(e,Ac+"-"+t),a.set(t,rm)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw function DU(n){return new C(3401,!1)}();return t}trigger(e,t,i,r=!0){const o=this._getTrigger(t),s=new om(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(sn(e,Ac),sn(e,Ac+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t);const c=new im(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=rm),c.value!==Gs&&l.value===c.value){if(!function x$(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r{cr(e,_),Ln(e,b)})}return}const h=jt(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(sn(e,V0),s.onStart(()=>{bo(e,V0)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(e);if(_){let b=_.indexOf(s);b>=0&&_.splice(b,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,Ic,!0);i.forEach(r=>{if(r[on])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const o=this._engine.statesByElement.get(e),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(e,c,Gs,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,s),i&&Ii(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||rm,u=new im(Gs),d=new om(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else{let s=e;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const o=e[on];(!o||o===B0)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){sn(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Hp(o,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Vp(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class E${constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new D$(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&t.add(o)}return t}trigger(e,t,i,r){if(Bc(t)){const o=this._fetchNamespace(e);if(o)return o.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!Bc(t))return;const o=t[on];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),sn(e,nm)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),bo(e,nm))}removeNode(e,t,i,r){if(Bc(t)){const o=e?this._fetchNamespace(e):null;if(o?o.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,o){this.collectedLeaveElements.push(t),t[on]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,t,i,r,o){return Bc(t)?this._fetchNamespace(e).listen(t,i,r,o):()=>{}}_buildInstruction(e,t,i,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,o)}destroyInnerAnimations(e){let t=this.driver.query(e,Ic,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Wp,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ii(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[on];if(t&&t.setForRemoval){if(e[on]=B0,t.namespaceId){this.destroyInnerAnimations(e);const i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(nm)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?Ii(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function EU(n){return new C(3402,!1)}()}_flushAnimations(e,t){const i=new Nc,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(x=>{u.add(x);const k=this.driver.query(x,".ng-animate-queued",!0);for(let L=0;L{const L=zp+m++;p.set(k,L),x.forEach(se=>sn(se,L))});const _=[],b=new Set,D=new Set;for(let x=0;xb.add(se)):D.add(k))}const v=new Map,I=U0(h,Array.from(b));I.forEach((x,k)=>{const L=Mc+m++;v.set(k,L),x.forEach(se=>sn(se,L))}),e.push(()=>{f.forEach((x,k)=>{const L=p.get(k);x.forEach(se=>bo(se,L))}),I.forEach((x,k)=>{const L=v.get(k);x.forEach(se=>bo(se,L))}),_.forEach(x=>{this.processLeaveNode(x)})});const Y=[],te=[];for(let x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(t).forEach(L=>{const se=L.player,nt=L.element;if(Y.push(se),this.collectedEnterElements.length){const dt=nt[on];if(dt&&dt.setForMove){if(dt.previousTriggersValues&&dt.previousTriggersValues.has(L.triggerName)){const fr=dt.previousTriggersValues.get(L.triggerName),an=this.statesByElement.get(L.element);if(an&&an.has(L.triggerName)){const Qc=an.get(L.triggerName);Qc.value=fr,an.set(L.triggerName,Qc)}}return void se.destroy()}}const Bn=!d||!this.driver.containsElement(d,nt),Gt=v.get(nt),Fi=p.get(nt),ke=this._buildInstruction(L,i,Fi,Gt,Bn);if(ke.errors&&ke.errors.length)return void te.push(ke);if(Bn)return se.onStart(()=>cr(nt,ke.fromStyles)),se.onDestroy(()=>Ln(nt,ke.toStyles)),void r.push(se);if(L.isFallbackTransition)return se.onStart(()=>cr(nt,ke.fromStyles)),se.onDestroy(()=>Ln(nt,ke.toStyles)),void r.push(se);const sM=[];ke.timelines.forEach(dt=>{dt.stretchStartingKeyframe=!0,this.disabledNodes.has(dt.element)||sM.push(dt)}),ke.timelines=sM,i.append(nt,ke.timelines),s.push({instruction:ke,player:se,element:nt}),ke.queriedElements.forEach(dt=>jt(a,dt,[]).push(se)),ke.preStyleProps.forEach((dt,fr)=>{if(dt.size){let an=l.get(fr);an||l.set(fr,an=new Set),dt.forEach((Qc,Im)=>an.add(Im))}}),ke.postStyleProps.forEach((dt,fr)=>{let an=c.get(fr);an||c.set(fr,an=new Set),dt.forEach((Qc,Im)=>an.add(Im))})});if(te.length){const x=[];te.forEach(k=>{x.push(function SU(n,e){return new C(3505,!1)}())}),Y.forEach(k=>k.destroy()),this.reportError(x)}const Re=new Map,$t=new Map;s.forEach(x=>{const k=x.element;i.has(k)&&($t.set(k,k),this._beforeAnimationBuild(x.player.namespaceId,x.instruction,Re))}),r.forEach(x=>{const k=x.element;this._getPreviousPlayers(k,!1,x.namespaceId,x.triggerName,null).forEach(se=>{jt(Re,k,[]).push(se),se.destroy()})});const zt=_.filter(x=>z0(x,l,c)),Wt=new Map;j0(Wt,this.driver,D,c,si).forEach(x=>{z0(x,l,c)&&zt.push(x)});const li=new Map;f.forEach((x,k)=>{j0(li,this.driver,new Set(x),l,"!")}),zt.forEach(x=>{const k=Wt.get(x),L=li.get(x);Wt.set(x,new Map([...Array.from(k?.entries()??[]),...Array.from(L?.entries()??[])]))});const wn=[],Do=[],Eo={};s.forEach(x=>{const{element:k,player:L,instruction:se}=x;if(i.has(k)){if(u.has(k))return L.onDestroy(()=>Ln(k,se.toStyles)),L.disabled=!0,L.overrideTotalTime(se.totalTime),void r.push(L);let nt=Eo;if($t.size>1){let Gt=k;const Fi=[];for(;Gt=Gt.parentNode;){const ke=$t.get(Gt);if(ke){nt=ke;break}Fi.push(Gt)}Fi.forEach(ke=>$t.set(ke,nt))}const Bn=this._buildAnimation(L.namespaceId,se,Re,o,li,Wt);if(L.setRealPlayer(Bn),nt===Eo)wn.push(L);else{const Gt=this.playersByElement.get(nt);Gt&&Gt.length&&(L.parentPlayer=Ii(Gt)),r.push(L)}}else cr(k,se.fromStyles),L.onDestroy(()=>Ln(k,se.toStyles)),Do.push(L),u.has(k)&&r.push(L)}),Do.forEach(x=>{const k=o.get(x.element);if(k&&k.length){const L=Ii(k);x.setRealPlayer(L)}}),r.forEach(x=>{x.parentPlayer?x.syncPlayerEvents(x.parentPlayer):x.destroy()});for(let x=0;x<_.length;x++){const k=_[x],L=k[on];if(bo(k,Mc),L&&L.hasAnimation)continue;let se=[];if(a.size){let Bn=a.get(k);Bn&&Bn.length&&se.push(...Bn);let Gt=this.driver.query(k,Wp,!0);for(let Fi=0;Fi!Bn.destroyed);nt.length?I$(this,k,nt):this.processLeaveNode(k)}return _.length=0,wn.forEach(x=>{this.players.push(x),x.onDone(()=>{x.destroy();const k=this.players.indexOf(x);this.players.splice(k,1)}),x.play()}),wn}elementContainsData(e,t){let i=!1;const r=t[on];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,o){let s=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(s=a)}else{const a=this.playersByElement.get(e);if(a){const l=!o||o==Gs;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(e,t,i){const o=t.element,s=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==o,d=jt(i,c,[]);this._getPreviousPlayers(c,u,s,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}cr(o,t.fromStyles)}_buildAnimation(e,t,i,r,o,s){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const m=p.element;u.add(m);const _=m[on];if(_&&_.removedBeforeQueried)return new Hs(p.duration,p.delay);const b=m!==l,D=function T$(n){const e=[];return $0(n,e),e}((i.get(m)||C$).map(Re=>Re.getRealPlayer())).filter(Re=>!!Re.element&&Re.element===m),v=o.get(m),I=s.get(m),Y=m0(0,this._normalizer,0,p.keyframes,v,I),te=this._buildPlayer(p,Y,D);if(p.subTimeline&&r&&d.add(m),b){const Re=new om(e,a,m);Re.setRealPlayer(te),c.push(Re)}return te});c.forEach(p=>{jt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function S$(n,e,t){let i=n.get(e);if(i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>sn(p,E0));const f=Ii(h);return f.onDestroy(()=>{u.forEach(p=>bo(p,E0)),Ln(l,t.toStyles)}),d.forEach(p=>{jt(r,p,[]).push(f)}),f}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Hs(e.duration,e.delay)}}class om{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Hs,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>Vp(e,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){jt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Bc(n){return n&&1===n.nodeType}function H0(n,e){const t=n.style.display;return n.style.display=e??"none",t}function j0(n,e,t,i,r){const o=[];t.forEach(l=>o.push(H0(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=e.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[on]=w$,s.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>H0(l,o[a++])),s}function U0(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return e.forEach(a=>{const l=s(a);1!==l&&t.get(l).push(a)}),t}function sn(n,e){n.classList?.add(e)}function bo(n,e){n.classList?.remove(e)}function I$(n,e,t){Ii(t).onDone(()=>n.processLeaveNode(e))}function $0(n,e){for(let t=0;tr.add(o)):e.set(n,i),t.delete(n),!0}class Hc{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new E$(e,t,i),this._timelineEngine=new g$(e,t,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,t,i,r,o){const s=e+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=Yp(this._driver,o,l,[]);if(l.length)throw function pU(n,e){return new C(3404,!1)}();a=function h$(n,e,t){return new f$(n,e,t)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[o,s]=g0(i);this._timelineEngine.command(o,t,s,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,o){if("@"==i.charAt(0)){const[s,a]=g0(i);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(e,t,i,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let k$=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(t);o||n.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Ln(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ln(this._element,this._initialStyles),this._endStyles&&(Ln(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(cr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(cr(this._element,this._endStyles),this._endStyles=null),Ln(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function sm(n){let e=null;return n.forEach((t,i)=>{(function F$(n){return"display"===n||"position"===n})(i)&&(e=e||new Map,e.set(i,t))}),e}class W0{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._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(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&e.set(r,this._finished?i:x0(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class O${validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return b0(e,t)}getParentElement(e){return Up(e)}query(e,t,i){return C0(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof W0);(function VU(n,e){return 0===n||0===e})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function OU(n){return n.length?n[0]instanceof Map?n:n.map(e=>S0(e)):[]}(t).map(f=>Ti(f));d=function BU(n,e,t){if(t.size&&e.length){let i=e[0],r=[];if(t.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,x0(n,a)))}}return e}(e,d,c);const h=function R$(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=sm(e[0]),e.length>1&&(i=sm(e[e.length-1]))):e instanceof Map&&(t=sm(e)),t||i?new k$(n,t,i):null}(e,d);return new W0(e,d,l,h)}}let P$=(()=>{class n extends kE{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:cn.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?PE(t):t;return G0(this._renderer,null,i,"register",[r]),new N$(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(y(Qo),y(Q))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class N$ extends class B2{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new L$(this._id,e,t||{},this._renderer)}}class L${constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return G0(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function G0(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const q0="@.disabled";let V$=(()=>{class n{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(t,i){const o=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new K0("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,t,u.name,u)};return i.data.animation.forEach(l),new B$(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&ti(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(t){return new(t||n)(y(Qo),y(Hc),y(re))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class K0{constructor(e,t,i,r){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>t.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==q0?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class B$ extends K0{constructor(e,t,i,r,o){super(t,i,r,o),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==q0?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function H$(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let o=t.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function j$(n){const e=n.indexOf(".");return[n.substring(0,e),n.slice(e+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}const Y0=[{provide:kE,useClass:P$},{provide:em,useFactory:function $$(){return new l$}},{provide:Hc,useClass:(()=>{class n extends Hc{constructor(t,i,r,o){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(y(Q),y($p),y(em),y(no))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})()},{provide:Qo,useFactory:function z$(n,e,t){return new V$(n,e,t)},deps:[Ol,Hc,re]}],am=[{provide:$p,useFactory:()=>new O$},{provide:hl,useValue:"BrowserAnimations"},...Y0],Z0=[{provide:$p,useClass:w0},{provide:hl,useValue:"NoopAnimations"},...Y0];let W$=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?Z0:am}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({providers:am,imports:[Sw]}),n})(),Q0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({}),n})(),X0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[iw,Cn,ZD,Cn]}),n})(),Z$=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({providers:[O2],imports:[Q0,X0,Cn,Q0,X0]}),n})(),US=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({}),n})(),Yz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[US]}),n})(),Zz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[Yz]}),n})(),Xz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=pe({imports:[V2,Cn,Cn]}),n})(),Jz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n,bootstrap:[Gj]}),n.\u0275inj=pe({imports:[Sw,Wj,W$,Z2,Z$,Zz,Xz,Dj]}),n})();(function _P(){SC=!1})(),oL().bootstrapModule(Jz).catch(n=>console.error(n))}},oe=>{oe(oe.s=112)}]); \ No newline at end of file diff --git a/pipboyUI/proxy.conf.json b/pipboyUI/proxy.conf.json new file mode 100644 index 0000000..91a67b0 --- /dev/null +++ b/pipboyUI/proxy.conf.json @@ -0,0 +1,10 @@ +{ + "/mesh/api": { + "target": "http://127.0.0.1:8868/", + "secure": false + }, + "/mesh/ws": { + "target": "http://127.0.0.1:8868/", + "secure": false, + "ws":true + }} diff --git a/pipboyUI/src/app/app-routing.module.ts b/pipboyUI/src/app/app-routing.module.ts index dc5e9bc..0fe3833 100644 --- a/pipboyUI/src/app/app-routing.module.ts +++ b/pipboyUI/src/app/app-routing.module.ts @@ -10,6 +10,7 @@ import {RadioHeaderComponent} from "./components/UpperHeaders/radio-header.compo import {StatusLowerHeaderComponent} from "./components/LowerHeaders/Stats/status-lower-header.component"; import {InventoryAppsComponent} from "./components/LowerHeaders/Inventory/inventory-apps.component"; import {InventoryCustomComponent} from "./components/LowerHeaders/Inventory/inventory-custom.component"; +import {MeshtasticHeaderComponent} from "./components/UpperHeaders/meshtastic-header.component"; const routes: Routes = [ { @@ -48,6 +49,10 @@ const routes: Routes = [ { path: 'radio', component: RadioHeaderComponent + }, + { + path: 'mesh', + component: MeshtasticHeaderComponent } ] } diff --git a/pipboyUI/src/app/app.module.ts b/pipboyUI/src/app/app.module.ts index 23b9f48..a8b8537 100644 --- a/pipboyUI/src/app/app.module.ts +++ b/pipboyUI/src/app/app.module.ts @@ -22,6 +22,7 @@ import {WsService} from "./services/WsService"; import {IframeAppComponent} from "./components/apps/iframe-app.component"; import {RadioComponent} from "./components/LowerHeaders/Radio/radio.component"; import {KeyboardAppComponent} from "./components/apps/keyboard-app.component"; +import {MeshtasticHeaderComponent} from "./components/UpperHeaders/meshtastic-header.component"; @NgModule({ declarations: [ @@ -38,7 +39,9 @@ import {KeyboardAppComponent} from "./components/apps/keyboard-app.component"; ClockDialogApp, IframeAppComponent, RadioComponent, - KeyboardAppComponent + KeyboardAppComponent, + // + MeshtasticHeaderComponent ], imports: [ BrowserModule, diff --git a/pipboyUI/src/app/components/UpperHeaders/meshtastic-header.component.ts b/pipboyUI/src/app/components/UpperHeaders/meshtastic-header.component.ts new file mode 100644 index 0000000..95dccc4 --- /dev/null +++ b/pipboyUI/src/app/components/UpperHeaders/meshtastic-header.component.ts @@ -0,0 +1,50 @@ +import {Component} from "@angular/core"; +import { + AVAILABLE, + ERR, + MeshtasticService, + NOT_CONNECTED, + RECONNECT, + WAIT_CONFIG +} from "../../services/MeshtasticService"; + +@Component({ + selector: "app-meshtastic-header", + template: ` +
+

MY

+

NODES

+

{{c.name}}

+
+
+ +
+ ` +}) +export class MeshtasticHeaderComponent { + constructor(public meshtastic: MeshtasticService) { + } + + getMeshState(): string { + switch (this.meshtastic.state) { + case NOT_CONNECTED: return "Не подключен"; + case WAIT_CONFIG: return "Ожидания конфигурации"; + case AVAILABLE: return "Доступен"; + case ERR: return "Ошибка модуля"; + case RECONNECT: return "Переподключение"; + default: return "Хуй знает"; + } + } +} diff --git a/pipboyUI/src/app/components/upper-header.component.ts b/pipboyUI/src/app/components/upper-header.component.ts index 2344d74..ecc36b9 100644 --- a/pipboyUI/src/app/components/upper-header.component.ts +++ b/pipboyUI/src/app/components/upper-header.component.ts @@ -7,6 +7,7 @@ import {MapHeaderComponent} from "./UpperHeaders/map-header.component"; import {RadioHeaderComponent} from "./UpperHeaders/radio-header.component"; import {AbsNavsHeaderComponent} from "./abstract/abs-navs-header.component"; import {IOService} from "../services/IOService"; +import {MeshtasticHeaderComponent} from "./UpperHeaders/meshtastic-header.component"; @Component({ selector: "ui", @@ -32,9 +33,10 @@ export class UpperHeader extends AbsNavsHeaderComponent { super.navs = [ {name: "stat", path: "stats", action: () => {}, component: StatsHeaderComponent.name}, {name: "inv", path: "inventory", action: () => {}, component: InvHeaderComponent.name}, - {name: "data", path: "data", action: () => {}, component: DataHeaderComponent.name}, + //{name: "data", path: "data", action: () => {}, component: DataHeaderComponent.name}, {name: "map", path: "map", action: () => {}, component: MapHeaderComponent.name}, - {name: "radio", path: "radio", action: () => {}, component: RadioHeaderComponent.name}]; + {name: "radio", path: "radio", action: () => {}, component: RadioHeaderComponent.name}, + {name: "mesh", path: "mesh", action: () => {}, component: MeshtasticHeaderComponent.name}]; } diff --git a/pipboyUI/src/app/services/MeshtasticService.ts b/pipboyUI/src/app/services/MeshtasticService.ts new file mode 100644 index 0000000..04ff4ae --- /dev/null +++ b/pipboyUI/src/app/services/MeshtasticService.ts @@ -0,0 +1,101 @@ +import {Injectable} from "@angular/core"; +import {WebSocketSubject} from "rxjs/internal/observable/dom/WebSocketSubject"; +import {webSocket} from "rxjs/webSocket"; +import {BehaviorSubject} from "rxjs"; + +export const WS_EVENT_CHANNEL = 0; +export const WS_EVENT_NODE = 1; +export const WS_EVENT_STATE = 2; +export const WS_EVENT_MESSAGE = 3; +export const WS_EVENT_MYID = 4; + +export const WS_TYPE_INIT = 0; +export const WS_TYPE_NEW = 1; +export const WS_TYPE_FRONTEND = 2; + +export const NOT_CONNECTED = 0; +export const WAIT_CONFIG = 1; +export const AVAILABLE = 2; +export const ERR = 3; +export const RECONNECT = 4; + +interface MeshNodeShort { + id: number; + name: string; +} + +interface MeshChannel { + index: number; + name: string; +} + +@Injectable({ + providedIn: 'root' +}) +export class MeshtasticService { + private socket$?: WebSocketSubject; + public channels: MeshChannel[] = []; + public nodes: MeshNodeShort[] = []; + public messages = new BehaviorSubject('{}') + public state: number = NOT_CONNECTED; + public meshId: number = 0; + + + constructor() { + this.connect(); + } + + public getMyMesh(): MeshNodeShort { + if (this.meshId == 0) + return {name: "Неизвестно", id: 0}; + else { + let m: MeshNodeShort[] = this.nodes.filter(node => node.id == this.meshId); + // @ts-ignore + return m.length > 0 ? m.pop() : {name: "Неизвестно", id: 0}; + } + } + + private connect() { + this.socket$ = webSocket(`ws://${location.host}/mesh/ws`) + this.socket$.subscribe( + (parsed: {type: number, event: number, data: any}) => { + switch (parsed.event) { + case WS_EVENT_MYID: { + this.meshId = parsed.data; + break; + } + case WS_EVENT_NODE: { + const node: MeshNodeShort = parsed.data; + const s_node: MeshNodeShort[] = this.nodes.filter(n => n.id == node.id) + if (s_node.length == 0) + this.nodes.push(node) + else { + let idx = this.nodes.indexOf(s_node[0]) + this.nodes[idx] = node + } + break; + } + + case WS_EVENT_STATE: { + this.state = parsed.data; + break; + } + + case WS_EVENT_CHANNEL: { + const channel: MeshChannel = parsed.data; + const s_channel: MeshChannel[] = this.channels.filter(ch => ch.index == channel.index); + if (s_channel.length == 0) + this.channels.push(channel) + else { + let idx = this.channels.indexOf(s_channel[0]); + this.channels[idx] = channel; + } + break; + } + + } + }, + (err) => {} + ) + } +} diff --git a/pipboyWEB/nginx.conf b/pipboyWEB/nginx.conf index 4b49bb7..d86b80b 100644 --- a/pipboyWEB/nginx.conf +++ b/pipboyWEB/nginx.conf @@ -9,6 +9,22 @@ server { try_files $uri $uri/ /index.html; } + location /mesh/ws { + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_http_version 1.1; + proxy_pass http://127.0.0.1:8868; + } + + location /mesh/api/ { + proxy_pass http://127.0.0.1:8868; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + # Кэширование статических ресурсов location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2|ttf)$ { expires 1y; diff --git a/pipboyWEB/update.sh b/pipboyWEB/update.sh index bfa3cef..d8b6c74 100755 --- a/pipboyWEB/update.sh +++ b/pipboyWEB/update.sh @@ -1,3 +1,6 @@ #!/bin/bash +sudo systemctl stop nginx sudo rm -rf /var/www/html -sudo cp -r /home/pipboy/Pipboy3Kmark4/pipboyUI/dist/pipboy-ui /var/www/html \ No newline at end of file +sudo cp -r /home/pipboy/Pipboy3Kmark4/pipboyUI/dist/pipboy-ui /var/www/html +sudo nginx -t +sudo systemctl start nginx \ No newline at end of file