diff --git a/mythtv/html/apps/backend/main.js b/mythtv/html/apps/backend/main.js
index 38c91664f05..8a051dc270d 100644
--- a/mythtv/html/apps/backend/main.js
+++ b/mythtv/html/apps/backend/main.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkbackend=self.webpackChunkbackend||[]).push([[179],{452:()=>{function Is(t){return"function"==typeof t}let Jr=!1;const di={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const i=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+i.stack)}else Jr&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Jr=t},get useDeprecatedSynchronousErrorHandling(){return Jr}};function Es(t){setTimeout(()=>{throw t},0)}const Bl={closed:!0,next(t){},error(t){if(di.useDeprecatedSynchronousErrorHandling)throw t;Es(t)},complete(){}},Vo=Array.isArray||(t=>t&&"number"==typeof t.length);function Ld(t){return null!==t&&"object"==typeof t}const Hl=(()=>{function t(i){return Error.call(this),this.message=i?`${i.length} errors occurred during unsubscription:\n${i.map((e,n)=>`${n+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=i,this}return t.prototype=Object.create(Error.prototype),t})();class Et{constructor(i){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,i&&(this._ctorUnsubscribe=!0,this._unsubscribe=i)}unsubscribe(){let i;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:s,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof Et)e.remove(this);else if(null!==e)for(let r=0;ri.concat(e instanceof Hl?e.errors:e),[])}Et.EMPTY=((t=new Et).closed=!0,t);const ql="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class wt extends Et{constructor(i,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Bl;break;case 1:if(!i){this.destination=Bl;break}if("object"==typeof i){i instanceof wt?(this.syncErrorThrowable=i.syncErrorThrowable,this.destination=i,i.add(this)):(this.syncErrorThrowable=!0,this.destination=new Mg(this,i));break}default:this.syncErrorThrowable=!0,this.destination=new Mg(this,i,e,n)}}[ql](){return this}static create(i,e,n){const s=new wt(i,e,n);return s.syncErrorThrowable=!1,s}next(i){this.isStopped||this._next(i)}error(i){this.isStopped||(this.isStopped=!0,this._error(i))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(i){this.destination.next(i)}_error(i){this.destination.error(i),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:i}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=i,this}}class Mg extends wt{constructor(i,e,n,s){super(),this._parentSubscriber=i;let o,r=this;Is(e)?o=e:e&&(o=e.next,n=e.error,s=e.complete,e!==Bl&&(r=Object.create(e),Is(r.unsubscribe)&&this.add(r.unsubscribe.bind(r)),r.unsubscribe=this.unsubscribe.bind(this))),this._context=r,this._next=o,this._error=n,this._complete=s}next(i){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;di.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,i)&&this.unsubscribe():this.__tryOrUnsub(this._next,i)}}error(i){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=di;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,i),this.unsubscribe()):(this.__tryOrUnsub(this._error,i),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=i,e.syncErrorThrown=!0):Es(i),this.unsubscribe();else{if(this.unsubscribe(),n)throw i;Es(i)}}}complete(){if(!this.isStopped){const{_parentSubscriber:i}=this;if(this._complete){const e=()=>this._complete.call(this._context);di.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?(this.__tryOrSetError(i,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(i,e){try{i.call(this._context,e)}catch(n){if(this.unsubscribe(),di.useDeprecatedSynchronousErrorHandling)throw n;Es(n)}}__tryOrSetError(i,e,n){if(!di.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(s){return di.useDeprecatedSynchronousErrorHandling?(i.syncErrorValue=s,i.syncErrorThrown=!0,!0):(Es(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:i}=this;this._context=null,this._parentSubscriber=null,i.unsubscribe()}}const Yr="function"==typeof Symbol&&Symbol.observable||"@@observable";function Gl(t){return t}let Je=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,s){const{operator:o}=this,r=function FS(t,i,e){if(t){if(t instanceof wt)return t;if(t[ql])return t[ql]()}return t||i||e?new wt(t,i,e):new wt(Bl)}(e,n,s);if(r.add(o?o.call(r,this.source):this.source||di.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),di.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(n){di.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=n),function PS(t){for(;t;){const{closed:i,destination:e,isStopped:n}=t;if(i||n)return!1;t=e&&e instanceof wt?e:null}return!0}(e)?e.error(n):console.warn(n)}}forEach(e,n){return new(n=Ig(n))((s,o)=>{let r;r=this.subscribe(u=>{try{e(u)}catch(h){o(h),r&&r.unsubscribe()}},o,s)})}_subscribe(e){const{source:n}=this;return n&&n.subscribe(e)}[Yr](){return this}pipe(...e){return 0===e.length?this:function kg(t){return 0===t.length?Gl:1===t.length?t[0]:function(e){return t.reduce((n,s)=>s(n),e)}}(e)(this)}toPromise(e){return new(e=Ig(e))((n,s)=>{let o;this.subscribe(r=>o=r,r=>s(r),()=>n(o))})}}return t.create=i=>new t(i),t})();function Ig(t){if(t||(t=di.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const no=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class Eg extends Et{constructor(i,e){super(),this.subject=i,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const i=this.subject,e=i.observers;if(this.subject=null,!e||0===e.length||i.isStopped||i.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class Rg extends wt{constructor(i){super(i),this.destination=i}}let ct=(()=>{class t extends Je{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ql](){return new Rg(this)}lift(e){const n=new Lg(this,this);return n.operator=e,n}next(e){if(this.closed)throw new no;if(!this.isStopped){const{observers:n}=this,s=n.length,o=n.slice();for(let r=0;rnew Lg(i,e),t})();class Lg extends ct{constructor(i,e){super(),this.destination=i,this.source=e}next(i){const{destination:e}=this;e&&e.next&&e.next(i)}error(i){const{destination:e}=this;e&&e.error&&this.destination.error(i)}complete(){const{destination:i}=this;i&&i.complete&&this.destination.complete()}_subscribe(i){const{source:e}=this;return e?this.source.subscribe(i):Et.EMPTY}}function Bo(t){return t&&"function"==typeof t.schedule}function et(t,i){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new NS(t,i))}}class NS{constructor(i,e){this.project=i,this.thisArg=e}call(i,e){return e.subscribe(new VS(i,this.project,this.thisArg))}}class VS extends wt{constructor(i,e,n){super(i),this.project=e,this.count=0,this.thisArg=n||this}_next(i){let e;try{e=this.project.call(this.thisArg,i,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const Og=t=>i=>{for(let e=0,n=t.length;et&&"number"==typeof t.length&&"function"!=typeof t;function Pg(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const Od=t=>{if(t&&"function"==typeof t[Yr])return(t=>i=>{const e=t[Yr]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(i)})(t);if(Ag(t))return Og(t);if(Pg(t))return(t=>i=>(t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Es),i))(t);if(t&&"function"==typeof t[Ul])return(t=>i=>{const e=t[Ul]();for(;;){let n;try{n=e.next()}catch(s){return i.error(s),i}if(n.done){i.complete();break}if(i.next(n.value),i.closed)break}return"function"==typeof e.return&&i.add(()=>{e.return&&e.return()}),i})(t);{const e=`You provided ${Ld(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Ad(t,i){return new Je(e=>{const n=new Et;let s=0;return n.add(i.schedule(function(){s!==t.length?(e.next(t[s++]),e.closed||n.add(this.schedule())):e.complete()})),n})}function Mn(t,i){return i?function KS(t,i){if(null!=t){if(function $S(t){return t&&"function"==typeof t[Yr]}(t))return function US(t,i){return new Je(e=>{const n=new Et;return n.add(i.schedule(()=>{const s=t[Yr]();n.add(s.subscribe({next(o){n.add(i.schedule(()=>e.next(o)))},error(o){n.add(i.schedule(()=>e.error(o)))},complete(){n.add(i.schedule(()=>e.complete()))}}))})),n})}(t,i);if(Pg(t))return function zS(t,i){return new Je(e=>{const n=new Et;return n.add(i.schedule(()=>t.then(s=>{n.add(i.schedule(()=>{e.next(s),n.add(i.schedule(()=>e.complete()))}))},s=>{n.add(i.schedule(()=>e.error(s)))}))),n})}(t,i);if(Ag(t))return Ad(t,i);if(function WS(t){return t&&"function"==typeof t[Ul]}(t)||"string"==typeof t)return function jS(t,i){if(!t)throw new Error("Iterable cannot be null");return new Je(e=>{const n=new Et;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(i.schedule(()=>{s=t[Ul](),n.add(i.schedule(function(){if(e.closed)return;let o,r;try{const u=s.next();o=u.value,r=u.done}catch(u){return void e.error(u)}r?e.complete():(e.next(o),this.schedule())}))})),n})}(t,i)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,i):t instanceof Je?t:new Je(Od(t))}class Zr extends wt{constructor(i){super(),this.parent=i}_next(i){this.parent.notifyNext(i)}_error(i){this.parent.notifyError(i),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Xr extends wt{notifyNext(i){this.destination.next(i)}notifyError(i){this.destination.error(i)}notifyComplete(){this.destination.complete()}}function ea(t,i){if(i.closed)return;if(t instanceof Je)return t.subscribe(i);let e;try{e=Od(t)(i)}catch(n){i.error(n)}return e}function yn(t,i,e=Number.POSITIVE_INFINITY){return"function"==typeof i?n=>n.pipe(yn((s,o)=>Mn(t(s,o)).pipe(et((r,u)=>i(s,r,o,u))),e)):("number"==typeof i&&(e=i),n=>n.lift(new QS(t,e)))}class QS{constructor(i,e=Number.POSITIVE_INFINITY){this.project=i,this.concurrent=e}call(i,e){return e.subscribe(new JS(i,this.project,this.concurrent))}}class JS extends Xr{constructor(i,e,n=Number.POSITIVE_INFINITY){super(i),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(i){this.active0?this._next(i.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function ta(t=Number.POSITIVE_INFINITY){return yn(Gl,t)}function Pd(t,i){return i?Ad(t,i):new Je(Og(t))}function Fd(){return function(i){return i.lift(new ZS(i))}}class ZS{constructor(i){this.connectable=i}call(i,e){const{connectable:n}=this;n._refCount++;const s=new XS(i,n),o=e.subscribe(s);return s.closed||(s.connection=n.connect()),o}}class XS extends wt{constructor(i,e){super(i),this.connectable=e}_unsubscribe(){const{connectable:i}=this;if(!i)return void(this.connection=null);this.connectable=null;const e=i._refCount;if(e<=0)return void(this.connection=null);if(i._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,s=i._connection;this.connection=null,s&&(!n||s===n)&&s.unsubscribe()}}class Fg extends Je{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let i=this._connection;return i||(this._isComplete=!1,i=this._connection=new Et,i.add(this.source.subscribe(new tx(this.getSubject(),this))),i.closed&&(this._connection=null,i=Et.EMPTY)),i}refCount(){return Fd()(this)}}const ex=(()=>{const t=Fg.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class tx extends Rg{constructor(i,e){super(i),this.connectable=e}_error(i){this._unsubscribe(),super._error(i)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const i=this.connectable;if(i){this.connectable=null;const e=i._connection;i._refCount=0,i._subject=null,i._connection=null,e&&e.unsubscribe()}}}class sx{constructor(i,e){this.subjectFactory=i,this.selector=e}call(i,e){const{selector:n}=this,s=this.subjectFactory(),o=n(s).subscribe(i);return o.add(e.subscribe(s)),o}}function ox(){return new ct}function Tt(t){for(let i in t)if(t[i]===Tt)return i;throw Error("Could not find renamed property on target object.")}function Nd(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function ft(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(ft).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function Vd(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const ax=Tt({__forward_ref__:Tt});function je(t){return t.__forward_ref__=je,t.toString=function(){return ft(this())},t}function Ve(t){return Ng(t)?t():t}function Ng(t){return"function"==typeof t&&t.hasOwnProperty(ax)&&t.__forward_ref__===je}class oe extends Error{constructor(i,e){super(function Bd(t,i){return`NG0${Math.abs(t)}${i?": "+i:""}`}(i,e)),this.code=i}}function Ie(t){return"string"==typeof t?t:null==t?"":String(t)}function wn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ie(t)}function zl(t,i){const e=i?` in ${i}`:"";throw new oe(-201,`No provider for ${wn(t)} found${e}`)}function Jn(t,i){null==t&&function gt(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function X(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ue(t){return{providers:t.providers||[],imports:t.imports||[]}}function Hd(t){return Vg(t,jl)||Vg(t,Hg)}function Vg(t,i){return t.hasOwnProperty(i)?t[i]:null}function Bg(t){return t&&(t.hasOwnProperty(qd)||t.hasOwnProperty(mx))?t[qd]:null}const jl=Tt({\u0275prov:Tt}),qd=Tt({\u0275inj:Tt}),Hg=Tt({ngInjectableDef:Tt}),mx=Tt({ngInjectorDef:Tt});var xe=(()=>((xe=xe||{})[xe.Default=0]="Default",xe[xe.Host=1]="Host",xe[xe.Self=2]="Self",xe[xe.SkipSelf=4]="SkipSelf",xe[xe.Optional=8]="Optional",xe))();let Gd;function Rs(t){const i=Gd;return Gd=t,i}function qg(t,i,e){const n=Hd(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&xe.Optional?null:void 0!==i?i:void zl(ft(t),"Injector")}function Ls(t){return{toString:t}.toString()}var Mi=(()=>((Mi=Mi||{})[Mi.OnPush=0]="OnPush",Mi[Mi.Default=1]="Default",Mi))(),ki=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(ki||(ki={})),ki))();const gx="undefined"!=typeof globalThis&&globalThis,_x="undefined"!=typeof window&&window,bx="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ct=gx||"undefined"!=typeof global&&global||_x||bx,Ho={},St=[],$l=Tt({\u0275cmp:Tt}),Ud=Tt({\u0275dir:Tt}),zd=Tt({\u0275pipe:Tt}),Gg=Tt({\u0275mod:Tt}),ps=Tt({\u0275fac:Tt}),na=Tt({__NG_ELEMENT_ID__:Tt});let vx=0;function z(t){return Ls(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Mi.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||St,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ki.Emulated,id:"c",styles:t.styles||St,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,o=t.features,r=t.pipes;return n.id+=vx++,n.inputs=$g(t.inputs,e),n.outputs=$g(t.outputs),o&&o.forEach(u=>u(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(Ug):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(zg):null,n})}function Ki(t,i,e){const n=t.\u0275cmp;n.directiveDefs=()=>i.map(Ug),n.pipeDefs=()=>e.map(zg)}function Ug(t){return Tn(t)||function Os(t){return t[Ud]||null}(t)}function zg(t){return function io(t){return t[zd]||null}(t)}const jg={};function he(t){return Ls(()=>{const i={type:t.type,bootstrap:t.bootstrap||St,declarations:t.declarations||St,imports:t.imports||St,exports:t.exports||St,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(jg[t.id]=t.type),i})}function $g(t,i){if(null==t)return Ho;const e={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),e[s]=n,i&&(i[s]=o)}return e}const le=z;function Pn(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Tn(t){return t[$l]||null}function pi(t,i){const e=t[Gg]||null;if(!e&&!0===i)throw new Error(`Type ${ft(t)} does not have '\u0275mod' property.`);return e}function Qi(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ei(t){return Array.isArray(t)&&!0===t[1]}function Wd(t){return 0!=(8&t.flags)}function Jl(t){return 2==(2&t.flags)}function Yl(t){return 1==(1&t.flags)}function Ri(t){return null!==t.template}function Sx(t){return 0!=(512&t[2])}function ao(t,i){return t.hasOwnProperty(ps)?t[ps]:null}class Mx{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function fn(){return Kg}function Kg(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ix),kx}function kx(){const t=Jg(this),i=null==t?void 0:t.current;if(i){const e=t.previous;if(e===Ho)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Ix(t,i,e,n){const s=Jg(t)||function Ex(t,i){return t[Qg]=i}(t,{previous:Ho,current:null}),o=s.current||(s.current={}),r=s.previous,u=this.declaredInputs[e],h=r[u];o[u]=new Mx(h&&h.currentValue,i,r===Ho),t[n]=i}fn.ngInherit=!0;const Qg="__ngSimpleChanges__";function Jg(t){return t[Qg]||null}let Zd;function Xd(){return void 0!==Zd?Zd:"undefined"!=typeof document?document:void 0}function $t(t){return!!t.listen}const Yg={createRenderer:(t,i)=>Xd()};function Zt(t){for(;Array.isArray(t);)t=t[0];return t}function Zl(t,i){return Zt(i[t])}function Zn(t,i){return Zt(i[t.index])}function ep(t,i){return t.data[i]}function jo(t,i){return t[i]}function Xn(t,i){const e=i[t];return Qi(e)?e:e[0]}function Zg(t){return 4==(4&t[2])}function tp(t){return 128==(128&t[2])}function As(t,i){return null==i?null:t[i]}function Xg(t){t[18]=0}function np(t,i){t[5]+=i;let e=t,n=t[3];for(;null!==n&&(1===i&&1===e[5]||-1===i&&0===e[5]);)n[5]+=i,e=n,n=n[3]}const Ee={lFrame:l_(null),bindingsEnabled:!0};function t_(){return Ee.bindingsEnabled}function $(){return Ee.lFrame.lView}function tt(){return Ee.lFrame.tView}function v(t){return Ee.lFrame.contextLView=t,t[8]}function rn(){let t=n_();for(;null!==t&&64===t.type;)t=t.parent;return t}function n_(){return Ee.lFrame.currentTNode}function Ji(t,i){const e=Ee.lFrame;e.currentTNode=t,e.isParent=i}function ip(){return Ee.lFrame.isParent}function sp(){Ee.lFrame.isParent=!1}function Nn(){const t=Ee.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function hs(){return Ee.lFrame.bindingIndex}function $o(){return Ee.lFrame.bindingIndex++}function ms(t){const i=Ee.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function Wx(t,i){const e=Ee.lFrame;e.bindingIndex=e.bindingRootIndex=t,op(i)}function op(t){Ee.lFrame.currentDirectiveIndex=t}function o_(){return Ee.lFrame.currentQueryIndex}function ap(t){Ee.lFrame.currentQueryIndex=t}function Qx(t){const i=t[1];return 2===i.type?i.declTNode:1===i.type?t[6]:null}function r_(t,i,e){if(e&xe.SkipSelf){let s=i,o=t;for(;!(s=s.parent,null!==s||e&xe.Host||(s=Qx(o),null===s||(o=o[15],10&s.type))););if(null===s)return!1;i=s,t=o}const n=Ee.lFrame=a_();return n.currentTNode=i,n.lView=t,!0}function ec(t){const i=a_(),e=t[1];Ee.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function a_(){const t=Ee.lFrame,i=null===t?null:t.child;return null===i?l_(t):i}function l_(t){const i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=i),i}function c_(){const t=Ee.lFrame;return Ee.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const u_=c_;function tc(){const t=c_();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Vn(){return Ee.lFrame.selectedIndex}function Ps(t){Ee.lFrame.selectedIndex=t}function Ht(){const t=Ee.lFrame;return ep(t.tView,t.selectedIndex)}function nc(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[h]<0&&(t[18]+=65536),(u>11>16&&(3&t[2])===i){t[2]+=2048;try{o.call(u)}finally{}}}else try{o.call(u)}finally{}}class aa{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function oc(t,i,e){const n=$t(t);let s=0;for(;si){r=o-1;break}}}for(;o>16}(t),n=i;for(;e>0;)n=n[15],e--;return n}let dp=!0;function ac(t){const i=dp;return dp=t,i}let cD=0;function ca(t,i){const e=hp(t,i);if(-1!==e)return e;const n=i[1];n.firstCreatePass&&(t.injectorIndex=i.length,pp(n.data,t),pp(i,null),pp(n.blueprint,null));const s=lc(t,i),o=t.injectorIndex;if(f_(s)){const r=Wo(s),u=Ko(s,i),h=u[1].data;for(let b=0;b<8;b++)i[o+b]=u[r+b]|h[r+b]}return i[o+8]=s,o}function pp(t,i){t.push(0,0,0,0,0,0,0,0,i)}function hp(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function lc(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,s=i;for(;null!==s;){const o=s[1],r=o.type;if(n=2===r?o.declTNode:1===r?s[6]:null,null===n)return-1;if(e++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return-1}function cc(t,i,e){!function uD(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(na)&&(n=e[na]),null==n&&(n=e[na]=cD++);const s=255&n;i.data[t+(s>>5)]|=1<=0?255&i:pD:i}(e);if("function"==typeof o){if(!r_(i,t,n))return n&xe.Host?b_(s,e,n):v_(i,e,n,s);try{const r=o(n);if(null!=r||n&xe.Optional)return r;zl(e)}finally{u_()}}else if("number"==typeof o){let r=null,u=hp(t,i),h=-1,b=n&xe.Host?i[16][6]:null;for((-1===u||n&xe.SkipSelf)&&(h=-1===u?lc(t,i):i[u+8],-1!==h&&T_(n,!1)?(r=i[1],u=Wo(h),i=Ko(h,i)):u=-1);-1!==u;){const y=i[1];if(w_(o,u,y.data)){const w=hD(u,i,e,r,n,b);if(w!==y_)return w}h=i[u+8],-1!==h&&T_(n,i[1].data[u+8]===b)&&w_(o,u,i)?(r=y,u=Wo(h),i=Ko(h,i)):u=-1}}}return v_(i,e,n,s)}const y_={};function pD(){return new Qo(rn(),$())}function hD(t,i,e,n,s,o){const r=i[1],u=r.data[t+8],y=uc(u,r,e,null==n?Jl(u)&&dp:n!=r&&0!=(3&u.type),s&xe.Host&&o===u);return null!==y?ua(i,r,y,u):y_}function uc(t,i,e,n,s){const o=t.providerIndexes,r=i.data,u=1048575&o,h=t.directiveStart,y=o>>20,k=s?u+y:t.directiveEnd;for(let E=n?u:u+y;E=h&&L.type===e)return E}if(s){const E=r[h];if(E&&Ri(E)&&E.type===e)return h}return null}function ua(t,i,e,n){let s=t[e];const o=i.data;if(function sD(t){return t instanceof aa}(s)){const r=s;r.resolving&&function lx(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new oe(-200,`Circular dependency in DI detected for ${t}${e}`)}(wn(o[e]));const u=ac(r.canSeeViewProviders);r.resolving=!0;const h=r.injectImpl?Rs(r.injectImpl):null;r_(t,n,xe.Default);try{s=t[e]=r.factory(void 0,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&function nD(t,i,e){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:o}=i.type.prototype;if(n){const r=Kg(i);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,s),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],i)}finally{null!==h&&Rs(h),ac(u),r.resolving=!1,u_()}}return s}function w_(t,i,e){return!!(e[i+(t>>5)]&1<{const i=t.prototype.constructor,e=i[ps]||mp(i),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const o=s[ps]||mp(s);if(o&&o!==e)return o;s=Object.getPrototypeOf(s)}return o=>new o})}function mp(t){return Ng(t)?()=>{const i=mp(Ve(t));return i&&i()}:ao(t)}function da(t){return function dD(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const e=t.attrs;if(e){const n=e.length;let s=0;for(;s{const n=function fp(t){return function(...e){if(t){const n=t(...e);for(const s in n)this[s]=n[s]}}}(i);function s(...o){if(this instanceof s)return n.apply(this,o),this;const r=new s(...o);return u.annotation=r,u;function u(h,b,y){const w=h.hasOwnProperty(Yo)?h[Yo]:Object.defineProperty(h,Yo,{value:[]})[Yo];for(;w.length<=y;)w.push(null);return(w[y]=w[y]||[]).push(r),h}}return e&&(s.prototype=Object.create(e.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class be{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=X({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const gD=new be("AnalyzeForEntryComponents");function fi(t,i){void 0===i&&(i=t);for(let e=0;eArray.isArray(e)?Yi(e,i):i(e))}function x_(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function dc(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function ma(t,i){const e=[];for(let n=0;n=0?t[1|n]=e:(n=~n,function vD(t,i,e,n){let s=t.length;if(s==i)t.push(e,n);else if(1===s)t.push(n,t[0]),t[0]=e;else{for(s--,t.push(t[s-1],t[s]);s>i;)t[s]=t[s-2],s--;t[i]=e,t[i+1]=n}}(t,n,i,e)),n}function _p(t,i){const e=er(t,i);if(e>=0)return t[1|e]}function er(t,i){return function k_(t,i,e){let n=0,s=t.length>>e;for(;s!==n;){const o=n+(s-n>>1),r=t[o<i?s=o:n=o+1}return~(s<({token:t})),-1),Ns=_a(Xo("Optional"),8),ba=_a(Xo("SkipSelf"),4);var ti=(()=>((ti=ti||{})[ti.Important=1]="Important",ti[ti.DashCase=2]="DashCase",ti))();const H_="__ngContext__";function In(t,i){t[H_]=i}function Tp(t){const i=function Ca(t){return t[H_]||null}(t);return i?Array.isArray(i)?i:i.lView:null}function xp(t,i){return undefined(t,i)}function ya(t){const i=t[3];return Ei(i)?i[3]:i}function Dp(t){return W_(t[13])}function Mp(t){return W_(t[4])}function W_(t){for(;null!==t&&!Ei(t);)t=t[4];return t}function nr(t,i,e,n,s){if(null!=n){let o,r=!1;Ei(n)?o=n:Qi(n)&&(r=!0,n=n[0]);const u=Zt(n);0===t&&null!==e?null==s?X_(i,e,u):lo(i,e,u,s||null,!0):1===t&&null!==e?lo(i,e,u,s||null,!0):2===t?function Ap(t,i,e){const n=gc(t,i);n&&function aM(t,i,e,n){$t(t)?t.removeChild(i,e,n):i.removeChild(e)}(t,n,i,e)}(i,u,r):3===t&&i.destroyNode(u),null!=o&&function uM(t,i,e,n,s){const o=e[7];o!==Zt(e)&&nr(i,t,n,o,s);for(let u=10;u0&&(t[e-1][4]=n[4]);const o=dc(t,10+i);!function XD(t,i){wa(t,i,i[11],2,null,null),i[0]=null,i[6]=null}(n[1],n);const r=o[19];null!==r&&r.detachView(o[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}function J_(t,i){if(!(256&i[2])){const e=i[11];$t(e)&&e.destroyNode&&wa(t,i,e,3,null,null),function nM(t){let i=t[13];if(!i)return Rp(t[1],t);for(;i;){let e=null;if(Qi(i))e=i[13];else{const n=i[10];n&&(e=n)}if(!e){for(;i&&!i[4]&&i!==t;)Qi(i)&&Rp(i[1],i),i=i[3];null===i&&(i=t),Qi(i)&&Rp(i[1],i),e=i&&i[4]}i=e}}(i)}}function Rp(t,i){if(!(256&i[2])){i[2]&=-129,i[2]|=256,function rM(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n=0?n[s=b]():n[s=-b].unsubscribe(),o+=2}else{const r=n[s=e[o+1]];e[o].call(r)}if(null!==n){for(let o=s+1;ot,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return vc}())||void 0===i?void 0:i.createHTML(t))||t}function lb(t){var i;return(null===(i=function Vp(){if(void 0===Cc&&(Cc=null,Ct.trustedTypes))try{Cc=Ct.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Cc}())||void 0===i?void 0:i.createHTML(t))||t}class db{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function Vs(t){return t instanceof db?t.changingThisBreaksApplicationSecurity:t}function Ta(t,i){const e=function CM(t){return t instanceof db&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===i}class yM{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const e=(new window.DOMParser).parseFromString(co(i),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class wM{constructor(i){if(this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const n=this.inertDocument.createElement("body");e.appendChild(n)}}getInertBodyElement(i){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=co(i),e;const n=this.inertDocument.createElement("body");return n.innerHTML=co(i),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(i){const e=i.attributes;for(let s=e.length-1;0yc(i.trim())).join(", ")}function Zi(t){const i={};for(const e of t.split(","))i[e]=!0;return i}function Sa(...t){const i={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const mb=Zi("area,br,col,hr,img,wbr"),fb=Zi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),gb=Zi("rp,rt"),Bp=Sa(mb,Sa(fb,Zi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Sa(gb,Zi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Sa(gb,fb)),Hp=Zi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qp=Zi("srcset"),_b=Sa(Hp,qp,Zi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Zi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),DM=Zi("script,style,template");class MM{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!Bp.hasOwnProperty(e))return this.sanitizedSomething=!0,!DM.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=i.attributes;for(let s=0;s"),!0}endElement(i){const e=i.nodeName.toLowerCase();Bp.hasOwnProperty(e)&&!mb.hasOwnProperty(e)&&(this.buf.push(""),this.buf.push(e),this.buf.push(">"))}chars(i){this.buf.push(bb(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return e}}const kM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,IM=/([^\#-~ |!])/g;function bb(t){return t.replace(/&/g,"&").replace(kM,function(i){return""+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(IM,function(i){return""+i.charCodeAt(0)+";"}).replace(//g,">")}let wc;function Gp(t){return"content"in t&&function RM(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Xt=(()=>((Xt=Xt||{})[Xt.NONE=0]="NONE",Xt[Xt.HTML=1]="HTML",Xt[Xt.STYLE=2]="STYLE",Xt[Xt.SCRIPT=3]="SCRIPT",Xt[Xt.URL=4]="URL",Xt[Xt.RESOURCE_URL=5]="RESOURCE_URL",Xt))();function Ft(t){const i=xa();return i?lb(i.sanitize(Xt.HTML,t)||""):Ta(t,"HTML")?lb(Vs(t)):function EM(t,i){let e=null;try{wc=wc||function pb(t){const i=new wM(t);return function TM(){try{return!!(new window.DOMParser).parseFromString(co(""),"text/html")}catch(t){return!1}}()?new yM(i):i}(t);let n=i?String(i):"";e=wc.getInertBodyElement(n);let s=5,o=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=o,o=e.innerHTML,e=wc.getInertBodyElement(n)}while(n!==o);return co((new MM).sanitizeChildren(Gp(e)||e))}finally{if(e){const n=Gp(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}(Xd(),Ie(t))}function Wt(t){const i=xa();return i?i.sanitize(Xt.URL,t)||"":Ta(t,"URL")?Vs(t):yc(Ie(t))}function xa(){const t=$();return t&&t[12]}function zp(t){return t.ngOriginalError}function qM(t,...i){t.error(...i)}class Da{constructor(){this._console=console}handleError(i){const e=this._findOriginalError(i),n=function HM(t){return t&&t.ngErrorLogger||qM}(i);n(this._console,"ERROR",i),e&&n(this._console,"ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&zp(i);for(;e&&zp(e);)e=zp(e);return e||null}}const KM=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ct))();function ni(t){return t.ownerDocument.defaultView}function Xi(t){return t instanceof Function?t():t}function yb(t,i,e){let n=t.length;for(;;){const s=t.indexOf(i,e);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const o=i.length;if(s+o===n||t.charCodeAt(s+o)<=32)return s}e=s+1}}const wb="ng-template";function YM(t,i,e){let n=0;for(;no?"":s[w+1].toLowerCase();const E=8&n?k:null;if(E&&-1!==yb(E,b,0)||2&n&&b!==k){if(Li(n))return!1;r=!0}}}}else{if(!r&&!Li(n)&&!Li(h))return!1;if(r&&Li(h))continue;r=!1,n=h|1&n}}return Li(n)||r}function Li(t){return 0==(1&t)}function ek(t,i,e,n){if(null===i)return-1;let s=0;if(n||!e){let o=!1;for(;s-1)for(e++;e0?'="'+u+'"':"")+"]"}else 8&n?s+="."+r:4&n&&(s+=" "+r);else""!==s&&!Li(r)&&(i+=xb(o,s),s=""),n=r,o=o||!Li(n);e++}return""!==s&&(i+=xb(o,s)),i}const Re={};function a(t){Db(tt(),$(),Vn()+t,!1)}function Db(t,i,e,n){if(!n)if(3==(3&i[2])){const o=t.preOrderCheckHooks;null!==o&&ic(i,o,e)}else{const o=t.preOrderHooks;null!==o&&sc(i,o,0,e)}Ps(e)}function Tc(t,i){return t<<17|i<<2}function Oi(t){return t>>17&32767}function jp(t){return 2|t}function fs(t){return(131068&t)>>2}function $p(t,i){return-131069&t|i<<2}function Wp(t){return 1|t}function Nb(t,i){const e=t.contentQueries;if(null!==e)for(let n=0;n20&&Db(t,i,20,!1),e(n,s)}finally{Ps(o)}}function Bb(t,i,e){if(Wd(i)){const s=i.directiveEnd;for(let o=i.directiveStart;o0;){const e=t[--i];if("number"==typeof e&&e<0)return e}return 0})(u)!=h&&u.push(h),u.push(n,s,r)}}function Wb(t,i){null!==t.hostBindings&&t.hostBindings(1,i)}function Kb(t,i){i.flags|=2,(t.components||(t.components=[])).push(i.index)}function Ak(t,i,e){if(e){if(i.exportAs)for(let n=0;n0&&ah(e)}}function ah(t){for(let n=Dp(t);null!==n;n=Mp(n))for(let s=10;s0&&ah(o)}const e=t[1].components;if(null!==e)for(let n=0;n0&&ah(s)}}function qk(t,i){const e=Xn(i,t),n=e[1];(function Gk(t,i){for(let e=i.length;ePromise.resolve(null))();function Xb(t){return t[7]||(t[7]=[])}function ev(t){return t.cleanup||(t.cleanup=[])}function nv(t,i){const e=t[9],n=e?e.get(Da,null):null;n&&n.handleError(i)}function iv(t,i,e,n,s){for(let o=0;othis.processProvider(u,i,e)),Yi([i],u=>this.processInjectorType(u,[],o)),this.records.set(ph,ar(void 0,this));const r=this.records.get(hh);this.scope=null!=r?r.value:null,this.source=s||("object"==typeof i?null:ft(i))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(i=>i.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(i,e=fa,n=xe.Default){this.assertNotDestroyed();const s=R_(this),o=Rs(void 0);try{if(!(n&xe.SkipSelf)){let u=this.records.get(i);if(void 0===u){const h=function nI(t){return"function"==typeof t||"object"==typeof t&&t instanceof be}(i)&&Hd(i);u=h&&this.injectableDefInScope(h)?ar(fh(i),Ia):null,this.records.set(i,u)}if(null!=u)return this.hydrate(i,u)}return(n&xe.Self?ov():this.parent).get(i,e=n&xe.Optional&&e===fa?null:e)}catch(r){if("NullInjectorError"===r.name){if((r[hc]=r[hc]||[]).unshift(ft(i)),s)throw r;return function RD(t,i,e,n){const s=t[hc];throw i[E_]&&s.unshift(i[E_]),t.message=function LD(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=ft(i);if(Array.isArray(i))s=i.map(ft).join(" -> ");else if("object"==typeof i){let o=[];for(let r in i)if(i.hasOwnProperty(r)){let u=i[r];o.push(r+":"+("string"==typeof u?JSON.stringify(u):ft(u)))}s=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${s}]: ${t.replace(DD,"\n ")}`}("\n"+t.message,s,e,n),t.ngTokenPath=s,t[hc]=null,t}(r,i,"R3InjectorError",this.source)}throw r}finally{Rs(o),R_(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(i=>this.get(i))}toString(){const i=[];return this.records.forEach((n,s)=>i.push(ft(s))),`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new oe(205,!1)}processInjectorType(i,e,n){if(!(i=Ve(i)))return!1;let s=Bg(i);const o=null==s&&i.ngModule||void 0,r=void 0===o?i:o,u=-1!==n.indexOf(r);if(void 0!==o&&(s=Bg(o)),null==s)return!1;if(null!=s.imports&&!u){let y;n.push(r);try{Yi(s.imports,w=>{this.processInjectorType(w,e,n)&&(void 0===y&&(y=[]),y.push(w))})}finally{}if(void 0!==y)for(let w=0;wthis.processProvider(L,k,E||St))}}this.injectorDefTypes.add(r);const h=ao(r)||(()=>new r);this.records.set(r,ar(h,Ia));const b=s.providers;if(null!=b&&!u){const y=i;Yi(b,w=>this.processProvider(w,y,b))}return void 0!==o&&void 0!==i.providers}processProvider(i,e,n){let s=lr(i=Ve(i))?i:Ve(i&&i.provide);const o=function Jk(t,i,e){return cv(t)?ar(void 0,t.useValue):ar(lv(t),Ia)}(i);if(lr(i)||!0!==i.multi)this.records.get(s);else{let r=this.records.get(s);r||(r=ar(void 0,Ia,!0),r.factory=()=>Cp(r.multi),this.records.set(s,r)),s=i,r.multi.push(i)}this.records.set(s,o)}hydrate(i,e){return e.value===Ia&&(e.value=Wk,e.value=e.factory()),"object"==typeof e.value&&e.value&&function tI(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const e=Ve(i.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function fh(t){const i=Hd(t),e=null!==i?i.factory:ao(t);if(null!==e)return e;if(t instanceof be)throw new oe(204,!1);if(t instanceof Function)return function Qk(t){const i=t.length;if(i>0)throw ma(i,"?"),new oe(204,!1);const e=function px(t){const i=t&&(t[jl]||t[Hg]);if(i){const e=function hx(t){if(t.hasOwnProperty("name"))return t.name;const i=(""+t).match(/^function\s*([^\s(]+)/);return null===i?"":i[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),i}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new oe(204,!1)}function lv(t,i,e){let n;if(lr(t)){const s=Ve(t);return ao(s)||fh(s)}if(cv(t))n=()=>Ve(t.useValue);else if(function Zk(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...Cp(t.deps||[]));else if(function Yk(t){return!(!t||!t.useExisting)}(t))n=()=>K(Ve(t.useExisting));else{const s=Ve(t&&(t.useClass||t.provide));if(!function eI(t){return!!t.deps}(t))return ao(s)||fh(s);n=()=>new s(...Cp(t.deps))}return n}function ar(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function cv(t){return null!==t&&"object"==typeof t&&kD in t}function lr(t){return"function"==typeof t}let En=(()=>{class t{static create(e,n){var s;if(Array.isArray(e))return rv({name:""},n,e,"");{const o=null!==(s=e.name)&&void 0!==s?s:"";return rv({name:o},e.parent,e.providers,o)}}}return t.THROW_IF_NOT_FOUND=fa,t.NULL=new sv,t.\u0275prov=X({token:t,providedIn:"any",factory:()=>K(ph)}),t.__NG_ELEMENT_ID__=-1,t})();function uI(t,i){nc(Tp(t)[1],rn())}function ut(t){let i=function yv(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const n=[t];for(;i;){let s;if(Ri(t))s=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new oe(903,"");s=i.\u0275dir}if(s){if(e){n.push(s);const r=t;r.inputs=bh(t.inputs),r.declaredInputs=bh(t.declaredInputs),r.outputs=bh(t.outputs);const u=s.hostBindings;u&&mI(t,u);const h=s.viewQuery,b=s.contentQueries;if(h&&pI(t,h),b&&hI(t,b),Nd(t.inputs,s.inputs),Nd(t.declaredInputs,s.declaredInputs),Nd(t.outputs,s.outputs),Ri(s)&&s.data.animation){const y=t.data;y.animation=(y.animation||[]).concat(s.data.animation)}}const o=s.features;if(o)for(let r=0;r=0;n--){const s=t[n];s.hostVars=i+=s.hostVars,s.hostAttrs=rc(s.hostAttrs,e=rc(e,s.hostAttrs))}}(n)}function bh(t){return t===Ho?{}:t===St?[]:t}function pI(t,i){const e=t.viewQuery;t.viewQuery=e?(n,s)=>{i(n,s),e(n,s)}:i}function hI(t,i){const e=t.contentQueries;t.contentQueries=e?(n,s,o)=>{i(n,s,o),e(n,s,o)}:i}function mI(t,i){const e=t.hostBindings;t.hostBindings=e?(n,s)=>{i(n,s),e(n,s)}:i}let Ic=null;function cr(){if(!Ic){const t=Ct.Symbol;if(t&&t.iterator)Ic=t.iterator;else{const i=Object.getOwnPropertyNames(Map.prototype);for(let e=0;eu(Zt(se[n.index])):n.index;if($t(e)){let se=null;if(!u&&h&&(se=function zI(t,i,e,n){const s=t.cleanup;if(null!=s)for(let o=0;oh?u[h]:null}"string"==typeof r&&(o+=2)}return null}(t,i,s,n.index)),null!==se)(se.__ngLastListenerFn__||se).__ngNextListenerFn__=o,se.__ngLastListenerFn__=o,E=!1;else{o=Mh(n,i,w,o,!1);const ke=e.listen(G,s,o);k.push(o,ke),y&&y.push(s,J,P,P+1)}}else o=Mh(n,i,w,o,!0),G.addEventListener(s,o,r),k.push(o),y&&y.push(s,J,P,r)}else o=Mh(n,i,w,o,!1);const L=n.outputs;let O;if(E&&null!==L&&(O=L[s])){const N=O.length;if(N)for(let G=0;G0;)i=i[15],t--;return i}(t,Ee.lFrame.contextLView))[8]}(t)}function jI(t,i){let e=null;const n=function tk(t){const i=t.attrs;if(null!=i){const e=i.indexOf(5);if(0==(1&e))return i[e+1]}return null}(t);for(let s=0;s=0}const cn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Xv(t){return t.substring(cn.key,cn.keyEnd)}function QI(t){return t.substring(cn.value,cn.valueEnd)}function e1(t,i){const e=cn.textEnd;return e===i?-1:(i=cn.keyEnd=function ZI(t,i,e){for(;i32;)i++;return i}(t,cn.key=i,e),Cr(t,i,e))}function t1(t,i){const e=cn.textEnd;let n=cn.key=Cr(t,i,e);return e===n?-1:(n=cn.keyEnd=function XI(t,i,e){let n;for(;i=65&&(-33&n)<=90||n>=48&&n<=57);)i++;return i}(t,n,e),n=s1(t,n,e),n=cn.value=Cr(t,n,e),n=cn.valueEnd=function e3(t,i,e){let n=-1,s=-1,o=-1,r=i,u=r;for(;r32&&(u=r),o=s,s=n,n=-33&h}return u}(t,n,e),s1(t,n,e))}function n1(t){cn.key=0,cn.keyEnd=0,cn.value=0,cn.valueEnd=0,cn.textEnd=t.length}function Cr(t,i,e){for(;i=0;e=t1(i,e))l1(t,Xv(i),QI(i))}function me(t){Fi(ei,ns,t,!0)}function ns(t,i){for(let e=function JI(t){return n1(t),e1(t,Cr(t,0,cn.textEnd))}(i);e>=0;e=e1(i,e))ei(t,Xv(i),!0)}function Pi(t,i,e,n){const s=$(),o=tt(),r=ms(2);o.firstUpdatePass&&a1(o,t,r,n),i!==Re&&Rn(s,r,i)&&c1(o,o.data[Vn()],s,s[11],t,s[r+1]=function c3(t,i){return null==t||("string"==typeof i?t+=i:"object"==typeof t&&(t=ft(Vs(t)))),t}(i,e),n,r)}function Fi(t,i,e,n){const s=tt(),o=ms(2);s.firstUpdatePass&&a1(s,null,o,n);const r=$();if(e!==Re&&Rn(r,o,e)){const u=s.data[Vn()];if(d1(u,n)&&!r1(s,o)){let h=n?u.classesWithoutHost:u.stylesWithoutHost;null!==h&&(e=Vd(h,e||"")),xh(s,u,r,e,n)}else!function l3(t,i,e,n,s,o,r,u){s===Re&&(s=St);let h=0,b=0,y=0=t.expandoStartIndex}function a1(t,i,e,n){const s=t.data;if(null===s[e+1]){const o=s[Vn()],r=r1(t,e);d1(o,n)&&null===i&&!r&&(i=!1),i=function n3(t,i,e,n){const s=function rp(t){const i=Ee.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let o=n?i.residualClasses:i.residualStyles;if(null===s)0===(n?i.classBindings:i.styleBindings)&&(e=Aa(e=kh(null,t,i,e,n),i.attrs,n),o=null);else{const r=i.directiveStylingLast;if(-1===r||t[r]!==s)if(e=kh(s,t,i,e,n),null===o){let h=function s3(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==fs(n))return t[Oi(n)]}(t,i,n);void 0!==h&&Array.isArray(h)&&(h=kh(null,t,i,h[1],n),h=Aa(h,i.attrs,n),function o3(t,i,e,n){t[Oi(e?i.classBindings:i.styleBindings)]=n}(t,i,n,h))}else o=function r3(t,i,e){let n;const s=i.directiveEnd;for(let o=1+i.directiveStylingLast;o0)&&(b=!0)}else y=e;if(s)if(0!==h){const k=Oi(t[u+1]);t[n+1]=Tc(k,u),0!==k&&(t[k+1]=$p(t[k+1],n)),t[u+1]=function lk(t,i){return 131071&t|i<<17}(t[u+1],n)}else t[n+1]=Tc(u,0),0!==u&&(t[u+1]=$p(t[u+1],n)),u=n;else t[n+1]=Tc(h,0),0===u?u=n:t[h+1]=$p(t[h+1],n),h=n;b&&(t[n+1]=jp(t[n+1])),Zv(t,y,n,!0),Zv(t,y,n,!1),function WI(t,i,e,n,s){const o=s?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof i&&er(o,i)>=0&&(e[n+1]=Wp(e[n+1]))}(i,y,t,n,o),r=Tc(u,h),o?i.classBindings=r:i.styleBindings=r}(s,o,i,e,r,n)}}function kh(t,i,e,n,s){let o=null;const r=e.directiveEnd;let u=e.directiveStylingLast;for(-1===u?u=e.directiveStart:u++;u0;){const h=t[s],b=Array.isArray(h),y=b?h[1]:h,w=null===y;let k=e[s+1];k===Re&&(k=w?St:void 0);let E=w?_p(k,n):y===n?k:void 0;if(b&&!Lc(E)&&(E=_p(h,n)),Lc(E)&&(u=E,r))return u;const L=t[s+1];s=r?Oi(L):fs(L)}if(null!==i){let h=o?i.residualClasses:i.residualStyles;null!=h&&(u=_p(h,n))}return u}function Lc(t){return void 0!==t}function d1(t,i){return 0!=(t.flags&(i?16:32))}function g(t,i=""){const e=$(),n=tt(),s=t+20,o=n.firstCreatePass?sr(n,s,1,i,null):n.data[s],r=e[s]=function kp(t,i){return $t(t)?t.createText(i):t.createTextNode(i)}(e[11],i);_c(n,e,r,o),Ji(o,!1)}function S(t){return T("",t,""),S}function T(t,i,e){const n=$(),s=dr(n,t,i,e);return s!==Re&&gs(n,Vn(),s),T}function We(t,i,e,n,s){const o=$(),r=pr(o,t,i,e,n,s);return r!==Re&&gs(o,Vn(),r),We}function yr(t,i,e,n,s,o,r){const u=$(),h=function hr(t,i,e,n,s,o,r,u){const b=Ec(t,hs(),e,s,r);return ms(3),b?i+Ie(e)+n+Ie(s)+o+Ie(r)+u:Re}(u,t,i,e,n,s,o,r);return h!==Re&&gs(u,Vn(),h),yr}function Oc(t,i,e,n,s,o,r,u,h){const b=$(),y=function mr(t,i,e,n,s,o,r,u,h,b){const w=gi(t,hs(),e,s,r,h);return ms(4),w?i+Ie(e)+n+Ie(s)+o+Ie(r)+u+Ie(h)+b:Re}(b,t,i,e,n,s,o,r,u,h);return y!==Re&&gs(b,Vn(),y),Oc}function Ih(t,i,e,n,s,o,r,u,h,b,y){const w=$(),k=function fr(t,i,e,n,s,o,r,u,h,b,y,w){const k=hs();let E=gi(t,k,e,s,r,h);return E=Rn(t,k+4,y)||E,ms(5),E?i+Ie(e)+n+Ie(s)+o+Ie(r)+u+Ie(h)+b+Ie(y)+w:Re}(w,t,i,e,n,s,o,r,u,h,b,y);return k!==Re&&gs(w,Vn(),k),Ih}function Eh(t,i,e,n,s,o,r,u,h,b,y,w,k){const E=$(),L=function gr(t,i,e,n,s,o,r,u,h,b,y,w,k,E){const L=hs();let O=gi(t,L,e,s,r,h);return O=uo(t,L+4,y,k)||O,ms(6),O?i+Ie(e)+n+Ie(s)+o+Ie(r)+u+Ie(h)+b+Ie(y)+w+Ie(k)+E:Re}(E,t,i,e,n,s,o,r,u,h,b,y,w,k);return L!==Re&&gs(E,Vn(),L),Eh}const po=void 0;var I3=["en",[["a","p"],["AM","PM"],po],[["AM","PM"],po,po],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],po,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],po,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",po,"{1} 'at' {0}",po],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function k3(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let wr={};function qn(t){const i=function E3(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=M1(i);if(e)return e;const n=i.split("-")[0];if(e=M1(n),e)return e;if("en"===n)return I3;throw new Error(`Missing locale data for the locale "${t}".`)}function M1(t){return t in wr||(wr[t]=Ct.ng&&Ct.ng.common&&Ct.ng.common.locales&&Ct.ng.common.locales[t]),wr[t]}var te=(()=>((te=te||{})[te.LocaleId=0]="LocaleId",te[te.DayPeriodsFormat=1]="DayPeriodsFormat",te[te.DayPeriodsStandalone=2]="DayPeriodsStandalone",te[te.DaysFormat=3]="DaysFormat",te[te.DaysStandalone=4]="DaysStandalone",te[te.MonthsFormat=5]="MonthsFormat",te[te.MonthsStandalone=6]="MonthsStandalone",te[te.Eras=7]="Eras",te[te.FirstDayOfWeek=8]="FirstDayOfWeek",te[te.WeekendRange=9]="WeekendRange",te[te.DateFormat=10]="DateFormat",te[te.TimeFormat=11]="TimeFormat",te[te.DateTimeFormat=12]="DateTimeFormat",te[te.NumberSymbols=13]="NumberSymbols",te[te.NumberFormats=14]="NumberFormats",te[te.CurrencyCode=15]="CurrencyCode",te[te.CurrencySymbol=16]="CurrencySymbol",te[te.CurrencyName=17]="CurrencyName",te[te.Currencies=18]="Currencies",te[te.Directionality=19]="Directionality",te[te.PluralCase=20]="PluralCase",te[te.ExtraData=21]="ExtraData",te))();const Ac="en-US";let k1=Ac;function Oh(t,i,e,n,s){if(t=Ve(t),Array.isArray(t))for(let o=0;o>20;if(lr(t)||!t.multi){const E=new aa(h,s,D),L=Ph(u,i,s?y:y+k,w);-1===L?(cc(ca(b,r),o,u),Ah(o,t,i.length),i.push(u),b.directiveStart++,b.directiveEnd++,s&&(b.providerIndexes+=1048576),e.push(E),r.push(E)):(e[L]=E,r[L]=E)}else{const E=Ph(u,i,y+k,w),L=Ph(u,i,y,y+k),O=E>=0&&e[E],N=L>=0&&e[L];if(s&&!N||!s&&!O){cc(ca(b,r),o,u);const G=function kE(t,i,e,n,s){const o=new aa(t,e,D);return o.multi=[],o.index=i,o.componentProviders=0,Z1(o,s,n&&!e),o}(s?ME:DE,e.length,s,n,h);!s&&N&&(e[L].providerFactory=G),Ah(o,t,i.length,0),i.push(u),b.directiveStart++,b.directiveEnd++,s&&(b.providerIndexes+=1048576),e.push(G),r.push(G)}else Ah(o,t,E>-1?E:L,Z1(e[s?L:E],h,!s&&n));!s&&n&&N&&e[L].componentProviders++}}}function Ah(t,i,e,n){const s=lr(i),o=function Xk(t){return!!t.useClass}(i);if(s||o){const h=(o?Ve(i.useClass):i).prototype.ngOnDestroy;if(h){const b=t.destroyHooks||(t.destroyHooks=[]);if(!s&&i.multi){const y=b.indexOf(e);-1===y?b.push(e,[n,h]):b[y+1].push(n,h)}else b.push(e,h)}}}function Z1(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Ph(t,i,e,n){for(let s=e;s{e.providersResolver=(n,s)=>function xE(t,i,e){const n=tt();if(n.firstCreatePass){const s=Ri(t);Oh(e,n.data,n.blueprint,s,!0),Oh(i,n.data,n.blueprint,s,!1)}}(n,s?s(t):t,i)}}class X1{}class RE{resolveComponentFactory(i){throw function EE(t){const i=Error(`No component factory found for ${ft(t)}. Did you add it to @NgModule.entryComponents?`);return i.ngComponent=t,i}(i)}}let Ba=(()=>{class t{}return t.NULL=new RE,t})();function LE(){return Sr(rn(),$())}function Sr(t,i){return new De(Zn(t,i))}let De=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=LE,t})();function OE(t){return t instanceof De?t.nativeElement:t}class Ha{}let gn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function PE(){const t=$(),e=Xn(rn().index,t);return function AE(t){return t[11]}(Qi(e)?e:t)}(),t})(),FE=(()=>{class t{}return t.\u0275prov=X({token:t,providedIn:"root",factory:()=>null}),t})();class qa{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const NE=new qa("13.3.12"),Nh={};function Bc(t,i,e,n,s=!1){for(;null!==e;){const o=i[e.index];if(null!==o&&n.push(Zt(o)),Ei(o))for(let u=10;u-1&&(Ep(i,n),dc(e,n))}this._attachedToViewContainer=!1}J_(this._lView[1],this._lView)}onDestroy(i){Ub(this._lView[1],this._lView,null,i)}markForCheck(){lh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function uh(t,i,e){const n=i[10];n.begin&&n.begin();try{rr(t,i,t.template,e)}catch(s){throw nv(i,s),s}finally{n.end&&n.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new oe(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function tM(t,i){wa(t,i,i[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new oe(902,"");this._appRef=i}}class VE extends Ga{constructor(i){super(i),this._view=i}detectChanges(){Zb(this._view)}checkNoChanges(){}get context(){return null}}class tC extends Ba{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=Tn(i);return new Vh(e,this.ngModule)}}function nC(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class Vh extends X1{constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function rk(t){return t.map(ok).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return nC(this.componentDef.inputs)}get outputs(){return nC(this.componentDef.outputs)}create(i,e,n,s){const o=(s=s||this.ngModule)?function HE(t,i){return{get:(e,n,s)=>{const o=t.get(e,Nh,s);return o!==Nh||n===Nh?o:i.get(e,n,s)}}}(i,s.injector):i,r=o.get(Ha,Yg),u=o.get(FE,null),h=r.createRenderer(null,this.componentDef),b=this.componentDef.selectors[0][0]||"div",y=n?function Gb(t,i,e){if($t(t))return t.selectRootElement(i,e===ki.ShadowDom);let n="string"==typeof i?t.querySelector(i):i;return n.textContent="",n}(h,n,this.componentDef.encapsulation):Ip(r.createRenderer(null,this.componentDef),b,function BE(t){const i=t.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(b)),w=this.componentDef.onPush?576:528,k=function Cv(t,i){return{components:[],scheduler:t||KM,clean:zk,playerHandler:i||null,flags:0}}(),E=Dc(0,null,null,1,0,null,null,null,null,null),L=Ma(null,E,k,w,null,null,r,h,u,o);let O,N;ec(L);try{const G=function bv(t,i,e,n,s,o){const r=e[1];e[20]=t;const h=sr(r,20,2,"#host",null),b=h.mergedAttrs=i.hostAttrs;null!==b&&(kc(h,b,!0),null!==t&&(oc(s,t,b),null!==h.classes&&Fp(s,t,h.classes),null!==h.styles&&ab(s,t,h.styles)));const y=n.createRenderer(t,i),w=Ma(e,Hb(i),null,i.onPush?64:16,e[20],h,n,y,o||null,null);return r.firstCreatePass&&(cc(ca(h,e),r,i.type),Kb(r,h),Qb(h,e.length,1)),Mc(e,w),e[20]=w}(y,this.componentDef,L,r,h);if(y)if(n)oc(h,y,["ng-version",NE.full]);else{const{attrs:P,classes:J}=function ak(t){const i=[],e=[];let n=1,s=2;for(;n0&&Fp(h,y,J.join(" "))}if(N=ep(E,20),void 0!==e){const P=N.projection=[];for(let J=0;Jh(r,i)),i.contentQueries){const h=rn();i.contentQueries(1,r,h.directiveStart)}const u=rn();return!o.firstCreatePass||null===i.hostBindings&&null===i.hostAttrs||(Ps(u.index),$b(e[1],u,0,u.directiveStart,u.directiveEnd,i),Wb(i,r)),r}(G,this.componentDef,L,k,[uI]),ka(E,L,null)}finally{tc()}return new GE(this.componentType,O,Sr(N,L),L,N)}}class GE extends class IE{}{constructor(i,e,n,s,o){super(),this.location=n,this._rootLView=s,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new VE(s),this.componentType=i}get injector(){return new Qo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}}class _s{}class iC{}const xr=new Map;class rC extends _s{constructor(i,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new tC(this);const n=pi(i);this._bootstrapComponents=Xi(n.bootstrap),this._r3Injector=av(i,e,[{provide:_s,useValue:this},{provide:Ba,useValue:this.componentFactoryResolver}],ft(i)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(i)}get(i,e=En.THROW_IF_NOT_FOUND,n=xe.Default){return i===En||i===_s||i===ph?this:this._r3Injector.get(i,e,n)}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class Bh extends iC{constructor(i){super(),this.moduleType=i,null!==pi(i)&&function zE(t){const i=new Set;!function e(n){const s=pi(n,!0),o=s.id;null!==o&&(function sC(t,i,e){if(i&&i!==e)throw new Error(`Duplicate module registered for ${t} - ${ft(i)} vs ${ft(i.name)}`)}(o,xr.get(o),n),xr.set(o,n));const r=Xi(s.imports);for(const u of r)i.has(u)||(i.add(u),e(u))}(t)}(i)}create(i){return new rC(this.moduleType,i)}}function A(t,i,e){const n=Nn()+t,s=$();return s[n]===Re?ts(s,n,e?i.call(e):i()):Ra(s,n)}function U(t,i,e,n){return lC($(),Nn(),t,i,e,n)}function Ge(t,i,e,n,s){return cC($(),Nn(),t,i,e,n,s)}function Jt(t,i,e,n,s,o){return uC($(),Nn(),t,i,e,n,s,o)}function Ln(t,i,e,n,s,o,r){return function dC(t,i,e,n,s,o,r,u,h){const b=i+e;return gi(t,b,s,o,r,u)?ts(t,b+4,h?n.call(h,s,o,r,u):n(s,o,r,u)):Ua(t,b+4)}($(),Nn(),t,i,e,n,s,o,r)}function ho(t,i,e,n,s,o,r,u){const h=Nn()+t,b=$(),y=gi(b,h,e,n,s,o);return Rn(b,h+4,r)||y?ts(b,h+5,u?i.call(u,e,n,s,o,r):i(e,n,s,o,r)):Ra(b,h+5)}function Dr(t,i,e,n,s,o,r,u,h){const b=Nn()+t,y=$(),w=gi(y,b,e,n,s,o);return uo(y,b+4,r,u)||w?ts(y,b+6,h?i.call(h,e,n,s,o,r,u):i(e,n,s,o,r,u)):Ra(y,b+6)}function Hh(t,i,e,n){return function pC(t,i,e,n,s,o){let r=i+e,u=!1;for(let h=0;h=0;e--){const n=i[e];if(t===n.name)return n}}(i,e.pipeRegistry),e.data[s]=n,n.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(s,n.onDestroy)):n=e.data[s];const o=n.factory||(n.factory=ao(n.type)),r=Rs(D);try{const u=ac(!1),h=o();return ac(u),function wI(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,$(),s,h),h}finally{Rs(r)}}function f(t,i,e){const n=t+20,s=$(),o=jo(s,n);return za(s,n)?lC(s,Nn(),i,o.transform,e,o):o.transform(e)}function _t(t,i,e,n){const s=t+20,o=$(),r=jo(o,s);return za(o,s)?cC(o,Nn(),i,r.transform,e,n,r):r.transform(e,n)}function za(t,i){return t[1].data[i].pure}function qh(t){return i=>{setTimeout(t,void 0,i)}}const H=class QE extends ct{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){var s,o,r;let u=i,h=e||(()=>null),b=n;if(i&&"object"==typeof i){const w=i;u=null===(s=w.next)||void 0===s?void 0:s.bind(w),h=null===(o=w.error)||void 0===o?void 0:o.bind(w),b=null===(r=w.complete)||void 0===r?void 0:r.bind(w)}this.__isAsync&&(h=qh(h),u&&(u=qh(u)),b&&(b=qh(b)));const y=super.subscribe({next:u,error:h,complete:b});return i instanceof Et&&i.add(y),y}};function JE(){return this._results[cr()]()}class Gh{constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=cr(),n=Gh.prototype;n[e]||(n[e]=JE)}get changes(){return this._changes||(this._changes=new H)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const s=fi(i);(this._changesDetected=!function _D(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n{class t{}return t.__NG_ELEMENT_ID__=XE,t})();const YE=bi,ZE=class extends YE{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(i){const e=this._declarationTContainer.tViews,n=Ma(this._declarationLView,e,i,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(n[19]=o.createEmbeddedView(e)),ka(e,n,i),new Ga(n)}};function XE(){return Hc(rn(),$())}function Hc(t,i){return 4&t.type?new ZE(i,t,Sr(t,i)):null}let vi=(()=>{class t{}return t.__NG_ELEMENT_ID__=eR,t})();function eR(){return gC(rn(),$())}const tR=vi,mC=class extends tR{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Sr(this._hostTNode,this._hostLView)}get injector(){return new Qo(this._hostTNode,this._hostLView)}get parentInjector(){const i=lc(this._hostTNode,this._hostLView);if(f_(i)){const e=Ko(i,this._hostLView),n=Wo(i);return new Qo(e[1].data[n+8],e)}return new Qo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=fC(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-10}createEmbeddedView(i,e,n){const s=i.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(i,e,n,s,o){const r=i&&!function ha(t){return"function"==typeof t}(i);let u;if(r)u=e;else{const w=e||{};u=w.index,n=w.injector,s=w.projectableNodes,o=w.ngModuleRef}const h=r?i:new Vh(Tn(i)),b=n||this.parentInjector;if(!o&&null==h.ngModule){const k=(r?b:this.parentInjector).get(_s,null);k&&(o=k)}const y=h.create(b,s,void 0,o);return this.insert(y.hostView,u),y}insert(i,e){const n=i._lView,s=n[1];if(function Bx(t){return Ei(t[3])}(n)){const y=this.indexOf(i);if(-1!==y)this.detach(y);else{const w=n[3],k=new mC(w,w[6],w[3]);k.detach(k.indexOf(i))}}const o=this._adjustIndex(e),r=this._lContainer;!function iM(t,i,e,n){const s=10+n,o=e.length;n>0&&(e[s-1][4]=i),n0)n.push(r[u/2]);else{const b=o[u+1],y=i[-h];for(let w=10;w{class t{constructor(e){this.appInits=e,this.resolve=Uc,this.reject=Uc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,s)=>{this.resolve=n,this.reject=s})}runInitializers(){if(this.initialized)return;const e=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s{o.subscribe({complete:u,error:h})});e.push(r)}}Promise.all(e).then(()=>{n()}).catch(s=>{this.reject(s)}),0===e.length&&n(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(K(em,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const $a=new be("AppId",{providedIn:"root",factory:function VC(){return`${nm()}${nm()}${nm()}`}});function nm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const BC=new be("Platform Initializer"),zc=new be("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),HC=new be("appBootstrapListener");let DR=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const qs=new be("LocaleId",{providedIn:"root",factory:()=>O_(qs,xe.Optional|xe.SkipSelf)||function MR(){return"undefined"!=typeof $localize&&$localize.locale||Ac}()});class IR{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let qC=(()=>{class t{compileModuleSync(e){return new Bh(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),o=Xi(pi(e).declarations).reduce((r,u)=>{const h=Tn(u);return h&&r.push(new Vh(h)),r},[]);return new IR(n,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const RR=(()=>Promise.resolve(0))();function im(t){"undefined"==typeof Zone?RR.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class nt{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new H(!1),this.onMicrotaskEmpty=new H(!1),this.onStable=new H(!1),this.onError=new H(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!n&&e,s.shouldCoalesceRunChangeDetection=n,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function LR(){let t=Ct.requestAnimationFrame,i=Ct.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&i){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function PR(t){const i=()=>{!function AR(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ct,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,om(t),t.isCheckStableRunning=!0,sm(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),om(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,s,o,r,u)=>{try{return GC(t),e.invokeTask(s,o,r,u)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&i(),UC(t)}},onInvoke:(e,n,s,o,r,u,h)=>{try{return GC(t),e.invoke(s,o,r,u,h)}finally{t.shouldCoalesceRunChangeDetection&&i(),UC(t)}},onHasTask:(e,n,s,o)=>{e.hasTask(s,o),n===s&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,om(t),sm(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,s,o)=>(e.handleError(s,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(s)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!nt.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(nt.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,s){const o=this._inner,r=o.scheduleEventTask("NgZoneEvent: "+s,i,OR,Uc,Uc);try{return o.runTask(r,e,n)}finally{o.cancelTask(r)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const OR={};function sm(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function om(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function GC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function UC(t){t._nesting--,sm(t)}class FR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new H,this.onMicrotaskEmpty=new H,this.onStable=new H,this.onError=new H}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,s){return i.apply(e,n)}}let rm=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{nt.assertNotInAngularZone(),im(()=>{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())im(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,s){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(r=>r.timeoutId!==o),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:s})}whenStable(e,n,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,n,s){return[]}}return t.\u0275fac=function(e){return new(e||t)(K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),NR=(()=>{class t{constructor(){this._applications=new Map,am.addToWindow(this)}registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return am.findTestabilityInTree(this,e,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class VR{addToWindow(i){}findTestabilityInTree(i,e,n){return null}}let am=new VR,mo=null;const zC=new be("AllowMultipleToken"),jC=new be("PlatformOnDestroy");class $C{constructor(i,e){this.name=i,this.token=e}}function WC(t,i,e=[]){const n=`Platform: ${i}`,s=new be(n);return(o=[])=>{let r=lm();if(!r||r.injector.get(zC,!1)){const u=[...e,...o,{provide:s,useValue:!0}];t?t(u):function GR(t){if(mo&&!mo.get(zC,!1))throw new oe(400,"");mo=t;const i=t.get(KC),e=t.get(BC,null);e&&e.forEach(n=>n())}(function zR(t=[],i){return En.create({name:i,providers:[{provide:hh,useValue:"platform"},{provide:jC,useValue:()=>mo=null},...t]})}(u,n))}return function UR(t){const i=lm();if(!i)throw new oe(401,"");return i}()}}function lm(){var t;return null!==(t=null==mo?void 0:mo.get(KC))&&void 0!==t?t:null}let KC=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const u=function jR(t,i){let e;return e="noop"===t?new FR:("zone.js"===t?void 0:t)||new nt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)}),e}(n?n.ngZone:void 0,{ngZoneEventCoalescing:n&&n.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:n&&n.ngZoneRunCoalescing||!1}),h=[{provide:nt,useValue:u}];return u.run(()=>{const b=En.create({providers:h,parent:this.injector,name:e.moduleType.name}),y=e.create(b),w=y.injector.get(Da,null);if(!w)throw new oe(402,"");return u.runOutsideAngular(()=>{const k=u.onError.subscribe({next:E=>{w.handleError(E)}});y.onDestroy(()=>{um(this._modules,y),k.unsubscribe()})}),function $R(t,i,e){try{const n=e();return La(n)?n.catch(s=>{throw i.runOutsideAngular(()=>t.handleError(s)),s}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}(w,u,()=>{const k=y.injector.get(tm);return k.runInitializers(),k.donePromise.then(()=>(function A3(t){Jn(t,"Expected localeId to be defined"),"string"==typeof t&&(k1=t.toLowerCase().replace(/_/g,"-"))}(y.injector.get(qs,Ac)||Ac),this._moduleDoBootstrap(y),y))})})}bootstrapModule(e,n=[]){const s=QC({},n);return function HR(t,i,e){const n=new Bh(e);return Promise.resolve(n)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,s))}_moduleDoBootstrap(e){const n=e.injector.get(cm);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>n.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw new oe(403,"");e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new oe(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(jC,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function QC(t,i){return Array.isArray(i)?i.reduce(QC,t):Object.assign(Object.assign({},t),i)}let cm=(()=>{class t{constructor(e,n,s,o){this._zone=e,this._injector=n,this._exceptionHandler=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new Je(h=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{h.next(this._stable),h.complete()})}),u=new Je(h=>{let b;this._zone.runOutsideAngular(()=>{b=this._zone.onStable.subscribe(()=>{nt.assertNotInAngularZone(),im(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,h.next(!0))})})});const y=this._zone.onUnstable.subscribe(()=>{nt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{h.next(!1)}))});return()=>{b.unsubscribe(),y.unsubscribe()}});this.isStable=function YS(...t){let i=Number.POSITIVE_INFINITY,e=null,n=t[t.length-1];return Bo(n)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof n&&(i=t.pop()),null===e&&1===t.length&&t[0]instanceof Je?t[0]:ta(i)(Pd(t,e))}(r,u.pipe(function rx(){return t=>Fd()(function ix(t,i){return function(n){let s;if(s="function"==typeof t?t:function(){return t},"function"==typeof i)return n.lift(new sx(s,i));const o=Object.create(n,ex);return o.source=n,o.subjectFactory=s,o}}(ox)(t))}()))}bootstrap(e,n){if(!this._initStatus.done)throw new oe(405,"");let s;s=e instanceof X1?e:this._injector.get(Ba).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const o=function qR(t){return t.isBoundToModule}(s)?void 0:this._injector.get(_s),u=s.create(En.NULL,[],n||s.selector,o),h=u.location.nativeElement,b=u.injector.get(rm,null),y=b&&u.injector.get(NR);return b&&y&&y.registerApplication(h,b),u.onDestroy(()=>{this.detachView(u.hostView),um(this.components,u),y&&y.unregisterApplication(h)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new oe(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;um(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(HC,[]).concat(this._bootstrapListeners).forEach(s=>s(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(K(nt),K(En),K(Da),K(tm))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function um(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}let YC=!0,ZC=!1,ot=(()=>{class t{}return t.__NG_ELEMENT_ID__=JR,t})();function JR(t){return function YR(t,i,e){if(Jl(t)&&!e){const n=Xn(t.index,i);return new Ga(n,n)}return 47&t.type?new Ga(i[16],i):null}(rn(),$(),16==(16&t))}class ny{constructor(){}supports(i){return Ea(i)}create(i){return new iL(i)}}const nL=(t,i)=>i;class iL{constructor(i){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=i||nL}forEachItem(i){let e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,s=0,o=null;for(;e||n;){const r=!n||e&&e.currentIndex{r=this._trackByFn(s,u),null!==e&&Object.is(e.trackById,r)?(n&&(e=this._verifyReinsertion(e,u,r,s)),Object.is(e.item,u)||this._addIdentityChange(e,u)):(e=this._mismatch(e,u,r,s),n=!0),e=e._next,s++}),this.length=s;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,s){let o;return null===i?o=this._itTail:(o=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,o,s)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,o,s)):i=this._addAfter(new sL(e,n),o,s),i}_verifyReinsertion(i,e,n,s){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?i=this._reinsertAfter(o,i._prev,s):i.currentIndex!=s&&(i.currentIndex=s,this._addToMoves(i,s)),i}_truncate(i){for(;null!==i;){const e=i._next;this._addToRemovals(this._unlink(i)),i=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const s=i._prevRemoved,o=i._nextRemoved;return null===s?this._removalsHead=o:s._nextRemoved=o,null===o?this._removalsTail=s:o._prevRemoved=s,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const s=null===e?this._itHead:e._next;return i._next=s,i._prev=e,null===s?this._itTail=i:s._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new iy),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const e=i._prev,n=i._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new iy),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class sL{constructor(i,e){this.item=i,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class oL{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class iy{constructor(){this.map=new Map}put(i){const e=i.trackById;let n=this.map.get(e);n||(n=new oL,this.map.set(e,n)),n.add(i)}get(i,e){const s=this.map.get(i);return s?s.get(i,e):null}remove(i){const e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function sy(t,i,e){const n=t.previousIndex;if(null===n)return n;let s=0;return e&&n{if(e&&e.key===s)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(s,n);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const s=this._records.get(i);this._maybeAddToChanges(s,e);const o=s._prev,r=s._next;return o&&(o._next=r),r&&(r._prev=o),s._next=null,s._prev=null,s}const n=new aL(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class aL{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function ry(){return new Wa([new ny])}let Wa=(()=>{class t{constructor(e){this.factories=e}static create(e,n){if(null!=n){const s=n.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||ry()),deps:[[t,new ba,new Ns]]}}find(e){const n=this.factories.find(s=>s.supports(e));if(null!=n)return n;throw new oe(901,"")}}return t.\u0275prov=X({token:t,providedIn:"root",factory:ry}),t})();function ay(){return new Ka([new oy])}let Ka=(()=>{class t{constructor(e){this.factories=e}static create(e,n){if(n){const s=n.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||ay()),deps:[[t,new ba,new Ns]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(n)return n;throw new oe(901,"")}}return t.\u0275prov=X({token:t,providedIn:"root",factory:ay}),t})();const uL=WC(null,"core",[]);let dL=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(K(cm))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})(),Wc=null;function is(){return Wc}const en=new be("DocumentToken");let go=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:function(){return function fL(){return K(ly)}()},providedIn:"platform"}),t})();const gL=new be("Location Initialized");let ly=(()=>{class t extends go{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return is().getBaseHref(this._doc)}onPopState(e){const n=is().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=is().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,n,s){cy()?this._history.pushState(e,n,s):this.location.hash=s}replaceState(e,n,s){cy()?this._history.replaceState(e,n,s):this.location.hash=s}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(K(en))},t.\u0275prov=X({token:t,factory:function(){return function _L(){return new ly(K(en))}()},providedIn:"platform"}),t})();function cy(){return!!window.history.pushState}function fm(t,i){if(0==t.length)return i;if(0==i.length)return t;let e=0;return t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function uy(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function bs(t){return t&&"?"!==t[0]?"?"+t:t}let kr=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:function(){return function bL(t){const i=K(en).location;return new dy(K(go),i&&i.origin||"")}()},providedIn:"root"}),t})();const gm=new be("appBaseHref");let dy=(()=>{class t extends kr{constructor(e,n){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==n&&(n=this._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=n}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return fm(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+bs(this._platformLocation.search),s=this._platformLocation.hash;return s&&e?`${n}${s}`:n}pushState(e,n,s,o){const r=this.prepareExternalUrl(s+bs(o));this._platformLocation.pushState(e,n,r)}replaceState(e,n,s,o){const r=this.prepareExternalUrl(s+bs(o));this._platformLocation.replaceState(e,n,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var n,s;null===(s=(n=this._platformLocation).historyGo)||void 0===s||s.call(n,e)}}return t.\u0275fac=function(e){return new(e||t)(K(go),K(gm,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),vL=(()=>{class t extends kr{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=fm(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,s,o){let r=this.prepareExternalUrl(s+bs(o));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,n,r)}replaceState(e,n,s,o){let r=this.prepareExternalUrl(s+bs(o));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var n,s;null===(s=(n=this._platformLocation).historyGo)||void 0===s||s.call(n,e)}}return t.\u0275fac=function(e){return new(e||t)(K(go),K(gm,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_m=(()=>{class t{constructor(e,n){this._subject=new H,this._urlChangeListeners=[],this._platformStrategy=e;const s=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=uy(py(s)),this._platformStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+bs(n))}normalize(e){return t.stripTrailingSlash(function yL(t,i){return t&&i.startsWith(t)?i.substring(t.length):i}(this._baseHref,py(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,n="",s=null){this._platformStrategy.pushState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+bs(n)),s)}replaceState(e,n="",s=null){this._platformStrategy.replaceState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+bs(n)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var n,s;null===(s=(n=this._platformStrategy).historyGo)||void 0===s||s.call(n,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}))}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(s=>s(e,n))}subscribe(e,n,s){return this._subject.subscribe({next:e,error:n,complete:s})}}return t.normalizeQueryParams=bs,t.joinWithSlash=fm,t.stripTrailingSlash=uy,t.\u0275fac=function(e){return new(e||t)(K(kr),K(go))},t.\u0275prov=X({token:t,factory:function(){return function CL(){return new _m(K(kr),K(go))}()},providedIn:"root"}),t})();function py(t){return t.replace(/\/index.html$/,"")}var Wn=(()=>((Wn=Wn||{})[Wn.Decimal=0]="Decimal",Wn[Wn.Percent=1]="Percent",Wn[Wn.Currency=2]="Currency",Wn[Wn.Scientific=3]="Scientific",Wn))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function Ci(t,i){const e=qn(t),n=e[te.NumberSymbols][i];if(void 0===n){if(i===ge.CurrencyDecimal)return e[te.NumberSymbols][ge.Decimal];if(i===ge.CurrencyGroup)return e[te.NumberSymbols][ge.Group]}return n}const WL=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function xm(t){const i=parseInt(t);if(isNaN(i))throw new Error("Invalid integer literal when parsing "+t);return i}function yy(t,i){i=encodeURIComponent(i);for(const e of t.split(";")){const n=e.indexOf("="),[s,o]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(s.trim()===i)return decodeURIComponent(o)}return null}let Le=(()=>{class t{constructor(e,n,s,o){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=s,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ea(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachChangedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachRemovedItem(n=>{n.previousValue&&this._toggleClass(n.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(n=>{if("string"!=typeof n.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ft(n.item)}`);this._toggleClass(n.item,!0)}),e.forEachRemovedItem(n=>this._toggleClass(n.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(n=>this._toggleClass(n,!0)):Object.keys(e).forEach(n=>this._toggleClass(n,!!e[n])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(n=>this._toggleClass(n,!1)):Object.keys(e).forEach(n=>this._toggleClass(n,!1)))}_toggleClass(e,n){(e=e.trim())&&e.split(/\s+/g).forEach(s=>{n?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return t.\u0275fac=function(e){return new(e||t)(D(Wa),D(Ka),D(De),D(gn))},t.\u0275dir=le({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class r4{constructor(i,e,n,s){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=s}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 at=(()=>{class t{constructor(e,n,s){this._viewContainer=e,this._template=n,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const n=this._viewContainer;e.forEachOperation((s,o,r)=>{if(null==s.previousIndex)n.createEmbeddedView(this._template,new r4(s.item,this._ngForOf,-1,-1),null===r?void 0:r);else if(null==r)n.remove(null===o?void 0:o);else if(null!==o){const u=n.get(o);n.move(u,r),wy(u,s)}});for(let s=0,o=n.length;s{wy(n.get(s.currentIndex),s)})}static ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return new(e||t)(D(vi),D(bi),D(Wa))},t.\u0275dir=le({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function wy(t,i){t.context.$implicit=i.item}let Q=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new a4,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Ty("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Ty("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return new(e||t)(D(vi),D(bi))},t.\u0275dir=le({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class a4{constructor(){this.$implicit=null,this.ngIf=null}}function Ty(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${ft(i)}'.`)}class Mm{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let _o=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let n=0;n{class t{constructor(e,n,s){this.ngSwitch=s,s._addCase(),this._view=new Mm(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(D(vi),D(bi),D(_o,9))},t.\u0275dir=le({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),km=(()=>{class t{constructor(e,n,s){s._addDefault(new Mm(e,n))}}return t.\u0275fac=function(e){return new(e||t)(D(vi),D(bi),D(_o,9))},t.\u0275dir=le({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),lt=(()=>{class t{constructor(e,n,s){this._ngEl=e,this._differs=n,this._renderer=s,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){const[s,o]=e.split(".");null!=(n=null!=n&&o?`${n}${o}`:n)?this._renderer.setStyle(this._ngEl.nativeElement,s,n):this._renderer.removeStyle(this._ngEl.nativeElement,s)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(Ka),D(gn))},t.\u0275dir=le({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Rt=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const n=this._viewContainerRef;this._viewRef&&n.remove(n.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?n.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(D(vi))},t.\u0275dir=le({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[fn]}),t})();function Vi(t,i){return new oe(2100,"")}class c4{createSubscription(i,e){return i.subscribe({next:e,error:n=>{throw n}})}dispose(i){i.unsubscribe()}onDestroy(i){i.unsubscribe()}}class u4{createSubscription(i,e){return i.then(e,n=>{throw n})}dispose(i){}onDestroy(i){}}const d4=new u4,p4=new c4;let xy=(()=>{class t{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(La(e))return d4;if(qv(e))return p4;throw Vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(D(ot,16))},t.\u0275pipe=Pn({name:"async",type:t,pure:!1}),t})(),iu=(()=>{class t{constructor(e){this._locale=e}transform(e,n,s){if(!function Im(t){return!(null==t||""===t||t!=t)}(e))return null;s=s||this._locale;try{return function XL(t,i,e){return function Tm(t,i,e,n,s,o,r=!1){let u="",h=!1;if(isFinite(t)){let b=function t4(t){let n,s,o,r,u,i=Math.abs(t)+"",e=0;for((s=i.indexOf("."))>-1&&(i=i.replace(".","")),(o=i.search(/e/i))>0?(s<0&&(s=o),s+=+i.slice(o+1),i=i.substring(0,o)):s<0&&(s=i.length),o=0;"0"===i.charAt(o);o++);if(o===(u=i.length))n=[0],s=1;else{for(u--;"0"===i.charAt(u);)u--;for(s-=o,n=[],r=0;o<=u;o++,r++)n[r]=Number(i.charAt(o))}return s>22&&(n=n.splice(0,21),e=s-1,s=1),{digits:n,exponent:e,integerLen:s}}(t);r&&(b=function e4(t){if(0===t.digits[0])return t;const i=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===i?t.digits.push(0,0):1===i&&t.digits.push(0),t.integerLen+=2),t}(b));let y=i.minInt,w=i.minFrac,k=i.maxFrac;if(o){const P=o.match(WL);if(null===P)throw new Error(`${o} is not a valid digit info`);const J=P[1],se=P[3],ke=P[5];null!=J&&(y=xm(J)),null!=se&&(w=xm(se)),null!=ke?k=xm(ke):null!=se&&w>k&&(k=w)}!function n4(t,i,e){if(i>e)throw new Error(`The minimum number of digits after fraction (${i}) is higher than the maximum (${e}).`);let n=t.digits,s=n.length-t.integerLen;const o=Math.min(Math.max(i,s),e);let r=o+t.integerLen,u=n[r];if(r>0){n.splice(Math.max(t.integerLen,r));for(let w=r;w=5)if(r-1<0){for(let w=0;w>r;w--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[r-1]++;for(;s=b?L.pop():h=!1),k>=10?1:0},0);y&&(n.unshift(y),t.integerLen++)}(b,w,k);let E=b.digits,L=b.integerLen;const O=b.exponent;let N=[];for(h=E.every(P=>!P);L0?N=E.splice(L,E.length):(N=E,E=[0]);const G=[];for(E.length>=i.lgSize&&G.unshift(E.splice(-i.lgSize,E.length).join(""));E.length>i.gSize;)G.unshift(E.splice(-i.gSize,E.length).join(""));E.length&&G.unshift(E.join("")),u=G.join(Ci(e,n)),N.length&&(u+=Ci(e,s)+N.join("")),O&&(u+=Ci(e,ge.Exponential)+"+"+O)}else u=Ci(e,ge.Infinity);return u=t<0&&!h?i.negPre+u+i.negSuf:i.posPre+u+i.posSuf,u}(t,function Sm(t,i="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),s=n[0],o=n[1],r=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],u=r[0],h=r[1]||"";e.posPre=u.substr(0,u.indexOf("#"));for(let y=0;y{class t{transform(e,n,s){if(null==e)return null;if(!this.supports(e))throw Vi();return e.slice(n,s)}supports(e){return"string"==typeof e||Array.isArray(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Pn({name:"slice",type:t,pure:!1}),t})(),Fe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();const ky="browser";let R4=(()=>{class t{}return t.\u0275prov=X({token:t,providedIn:"root",factory:()=>new L4(K(en),window)}),t})();class L4{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const e=function O4(t,i){const e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let s=n.currentNode;for(;s;){const o=s.shadowRoot;if(o){const r=o.getElementById(i)||o.querySelector(`[name="${i}"]`);if(r)return r}s=n.nextNode()}}return null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=i)}}scrollToElement(i){const e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,s=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],s-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const i=Iy(this.window.history)||Iy(Object.getPrototypeOf(this.window.history));return!(!i||!i.writable&&!i.set)}catch(i){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(i){return!1}}}function Iy(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Ey{}class Rm extends class A4 extends class mL{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function hL(t){Wc||(Wc=t)}(new Rm)}onAndCancel(i,e,n){return i.addEventListener(e,n,!1),()=>{i.removeEventListener(e,n,!1)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const e=function P4(){return Za=Za||document.querySelector("base"),Za?Za.getAttribute("href"):null}();return null==e?null:function F4(t){su=su||document.createElement("a"),su.setAttribute("href",t);const i=su.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){Za=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return yy(document.cookie,i)}}let su,Za=null;const Ry=new be("TRANSITION_ID"),V4=[{provide:em,useFactory:function N4(t,i,e){return()=>{e.get(tm).donePromise.then(()=>{const n=is(),s=i.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{const o=i.findTestabilityInTree(n,s);if(null==o)throw new Error("Could not find testability for element.");return o},Ct.getAllAngularTestabilities=()=>i.getAllTestabilities(),Ct.getAllAngularRootElements=()=>i.getAllRootElements(),Ct.frameworkStabilizers||(Ct.frameworkStabilizers=[]),Ct.frameworkStabilizers.push(n=>{const s=Ct.getAllAngularTestabilities();let o=s.length,r=!1;const u=function(h){r=r||h,o--,0==o&&n(r)};s.forEach(function(h){h.whenStable(u)})})}findTestabilityInTree(i,e,n){if(null==e)return null;const s=i.getTestability(e);return null!=s?s:n?is().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null}}let B4=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const ou=new be("EventManagerPlugins");let ru=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,n,s){return this._findPluginFor(n).addEventListener(e,n,s)}addGlobalEventListener(e,n,s){return this._findPluginFor(n).addGlobalEventListener(e,n,s)}getZone(){return this._zone}_findPluginFor(e){const n=this._eventNameToPlugin.get(e);if(n)return n;const s=this._plugins;for(let o=0;o{class t{constructor(){this._stylesSet=new Set}addStyles(e){const n=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),n.add(s))}),this.onStylesAdded(n)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Xa=(()=>{class t extends Oy{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,n,s){e.forEach(o=>{const r=this._doc.createElement("style");r.textContent=o,s.push(n.appendChild(r))})}addHost(e){const n=[];this._addStylesToHost(this._stylesSet,e,n),this._hostNodes.set(e,n)}removeHost(e){const n=this._hostNodes.get(e);n&&n.forEach(Ay),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((n,s)=>{this._addStylesToHost(e,s,n)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ay))}}return t.\u0275fac=function(e){return new(e||t)(K(en))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function Ay(t){is().remove(t)}const Om={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/"},Am=/%COMP%/g;function au(t,i,e){for(let n=0;n{if("__ngUnwrap__"===i)return t;!1===t(i)&&(i.preventDefault(),i.returnValue=!1)}}let lu=(()=>{class t{constructor(e,n,s){this.eventManager=e,this.sharedStylesHost=n,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new Pm(e)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;switch(n.encapsulation){case ki.Emulated:{let s=this.rendererByCompId.get(n.id);return s||(s=new j4(this.eventManager,this.sharedStylesHost,n,this.appId),this.rendererByCompId.set(n.id,s)),s.applyToHost(e),s}case 1:case ki.ShadowDom:return new $4(this.eventManager,this.sharedStylesHost,e,n);default:if(!this.rendererByCompId.has(n.id)){const s=au(n.id,n.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(n.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(K(ru),K(Xa),K($a))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class Pm{constructor(i){this.eventManager=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?document.createElementNS(Om[e]||e,i):document.createElement(i)}createComment(i){return document.createComment(i)}createText(i){return document.createTextNode(i)}appendChild(i,e){i.appendChild(e)}insertBefore(i,e,n){i&&i.insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n="string"==typeof i?document.querySelector(i):i;if(!n)throw new Error(`The selector "${i}" did not match any elements`);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,s){if(s){e=s+":"+e;const o=Om[s];o?i.setAttributeNS(o,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const s=Om[n];s?i.removeAttributeNS(s,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,s){s&(ti.DashCase|ti.Important)?i.style.setProperty(e,n,s&ti.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&ti.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){return"string"==typeof i?this.eventManager.addGlobalEventListener(i,e,Ny(n)):this.eventManager.addEventListener(i,e,Ny(n))}}class j4 extends Pm{constructor(i,e,n,s){super(i),this.component=n;const o=au(s+"-"+n.id,n.styles,[]);e.addStyles(o),this.contentAttr=function G4(t){return"_ngcontent-%COMP%".replace(Am,t)}(s+"-"+n.id),this.hostAttr=function U4(t){return"_nghost-%COMP%".replace(Am,t)}(s+"-"+n.id)}applyToHost(i){super.setAttribute(i,this.hostAttr,"")}createElement(i,e){const n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}}class $4 extends Pm{constructor(i,e,n,s){super(i),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=au(s.id,s.styles,[]);for(let r=0;r{class t extends Ly{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,s){return e.addEventListener(n,s,!1),()=>this.removeEventListener(e,n,s)}removeEventListener(e,n,s){return e.removeEventListener(n,s)}}return t.\u0275fac=function(e){return new(e||t)(K(en))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const By=["alt","control","meta","shift"],Q4={"\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"},Hy={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},J4={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Y4=(()=>{class t extends Ly{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const o=t.parseEventName(n),r=t.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>is().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const o=t._normalizeKey(n.pop());let r="";if(By.forEach(h=>{const b=n.indexOf(h);b>-1&&(n.splice(b,1),r+=h+".")}),r+=o,0!=n.length||0===o.length)return null;const u={};return u.domEventName=s,u.fullKey=r,u}static getEventFullKey(e){let n="",s=function Z4(t){let i=t.key;if(null==i){if(i=t.keyIdentifier,null==i)return"Unidentified";i.startsWith("U+")&&(i=String.fromCharCode(parseInt(i.substring(2),16)),3===t.location&&Hy.hasOwnProperty(i)&&(i=Hy[i]))}return Q4[i]||i}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),By.forEach(o=>{o!=s&&J4[o](e)&&(n+=o+".")}),n+=s,n}static eventCallback(e,n,s){return o=>{t.getEventFullKey(o)===e&&s.runGuarded(()=>n(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(K(en))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const nO=WC(uL,"browser",[{provide:zc,useValue:ky},{provide:BC,useValue:function X4(){Rm.makeCurrent(),Lm.init()},multi:!0},{provide:en,useFactory:function tO(){return function Px(t){Zd=t}(document),document},deps:[]}]),iO=[{provide:hh,useValue:"root"},{provide:Da,useFactory:function eO(){return new Da},deps:[]},{provide:ou,useClass:W4,multi:!0,deps:[en,nt,zc]},{provide:ou,useClass:Y4,multi:!0,deps:[en]},{provide:lu,useClass:lu,deps:[ru,Xa,$a]},{provide:Ha,useExisting:lu},{provide:Oy,useExisting:Xa},{provide:Xa,useClass:Xa,deps:[en]},{provide:rm,useClass:rm,deps:[nt]},{provide:ru,useClass:ru,deps:[ou,nt]},{provide:Ey,useClass:B4,deps:[]}];let qy=(()=>{class t{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:$a,useValue:e.appId},{provide:Ry,useExisting:$a},V4]}}}return t.\u0275fac=function(e){return new(e||t)(K(t,12))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:iO,imports:[Fe,dL]}),t})();function re(...t){let i=t[t.length-1];return Bo(i)?(t.pop(),Ad(t,i)):Pd(t)}function bo(t,i){return yn(t,i,1)}function Us(t,i){return function(n){return n.lift(new mO(t,i))}}"undefined"!=typeof window&&window;class mO{constructor(i,e){this.predicate=i,this.thisArg=e}call(i,e){return e.subscribe(new fO(i,this.predicate,this.thisArg))}}class fO extends wt{constructor(i,e,n){super(i),this.predicate=e,this.thisArg=n,this.count=0}_next(i){let e;try{e=this.predicate.call(this.thisArg,i,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(i)}}class zy{}class jy{}class Cs{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?this.lazyInit="string"==typeof i?()=>{this.headers=new Map,i.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const s=e.slice(0,n),o=s.toLowerCase(),r=e.slice(n+1).trim();this.maybeSetNormalizedName(s,o),this.headers.has(o)?this.headers.get(o).push(r):this.headers.set(o,[r])}})}:()=>{this.headers=new Map,Object.keys(i).forEach(e=>{let n=i[e];const s=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof Cs?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const e=new Cs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Cs?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,e);const s=("a"===i.op?this.headers.get(e):void 0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const o=i.value;if(o){let r=this.headers.get(e);if(!r)return;r=r.filter(u=>-1===o.indexOf(u)),0===r.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,r)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class gO{encodeKey(i){return $y(i)}encodeValue(i){return $y(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const bO=/%(\d[a-f0-9])/gi,vO={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function $y(t){return encodeURIComponent(t).replace(bO,(i,e)=>{var n;return null!==(n=vO[e])&&void 0!==n?n:i})}function Wy(t){return`${t}`}class ve{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new gO,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function _O(t,i){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(s=>{const o=s.indexOf("="),[r,u]=-1==o?[i.decodeKey(s),""]:[i.decodeKey(s.slice(0,o)),i.decodeValue(s.slice(o+1))],h=e.get(r)||[];h.push(u),e.set(r,h)}),e}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const n=i.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return Object.keys(i).forEach(n=>{const s=i[n];Array.isArray(s)?s.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:s,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const e=new ve({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const e=("a"===i.op?this.map.get(i.param):void 0)||[];e.push(Wy(i.value)),this.map.set(i.param,e);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const s=n.indexOf(Wy(i.value));-1!==s&&n.splice(s,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class CO{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function Ky(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Qy(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Jy(t){return"undefined"!=typeof FormData&&t instanceof FormData}class el{constructor(i,e,n,s){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function yO(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==n?n:null,o=s):o=n,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 Cs),this.context||(this.context=new CO),this.params){const r=this.params.toString();if(0===r.length)this.urlWithParams=e;else{const u=e.indexOf("?");this.urlWithParams=e+(-1===u?"?":uk.set(E,i.setHeaders[E]),b)),i.setParams&&(y=Object.keys(i.setParams).reduce((k,E)=>k.set(E,i.setParams[E]),y)),new el(n,s,r,{params:y,headers:b,context:w,reportProgress:h,responseType:o,withCredentials:u})}}var sn=(()=>((sn=sn||{})[sn.Sent=0]="Sent",sn[sn.UploadProgress=1]="UploadProgress",sn[sn.ResponseHeader=2]="ResponseHeader",sn[sn.DownloadProgress=3]="DownloadProgress",sn[sn.Response=4]="Response",sn[sn.User=5]="User",sn))();class Nm{constructor(i,e=200,n="OK"){this.headers=i.headers||new Cs,this.status=void 0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class Vm extends Nm{constructor(i={}){super(i),this.type=sn.ResponseHeader}clone(i={}){return new Vm({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class cu extends Nm{constructor(i={}){super(i),this.type=sn.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new cu({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class Yy extends Nm{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function Bm(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Bi=(()=>{class t{constructor(e){this.handler=e}request(e,n,s={}){let o;if(e instanceof el)o=e;else{let h,b;h=s.headers instanceof Cs?s.headers:new Cs(s.headers),s.params&&(b=s.params instanceof ve?s.params:new ve({fromObject:s.params})),o=new el(e,n,void 0!==s.body?s.body:null,{headers:h,context:s.context,params:b,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const r=re(o).pipe(bo(h=>this.handler.handle(h)));if(e instanceof el||"events"===s.observe)return r;const u=r.pipe(Us(h=>h instanceof cu));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return u.pipe(et(h=>{if(null!==h.body&&!(h.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return h.body}));case"blob":return u.pipe(et(h=>{if(null!==h.body&&!(h.body instanceof Blob))throw new Error("Response is not a Blob.");return h.body}));case"text":return u.pipe(et(h=>{if(null!==h.body&&"string"!=typeof h.body)throw new Error("Response is not a string.");return h.body}));default:return u.pipe(et(h=>h.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new ve).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,s={}){return this.request("PATCH",e,Bm(s,n))}post(e,n,s={}){return this.request("POST",e,Bm(s,n))}put(e,n,s={}){return this.request("PUT",e,Bm(s,n))}}return t.\u0275fac=function(e){return new(e||t)(K(zy))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class Zy{constructor(i,e){this.next=i,this.interceptor=e}handle(i){return this.interceptor.intercept(i,this.next)}}const Xy=new be("HTTP_INTERCEPTORS");let TO=(()=>{class t{intercept(e,n){return n.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const SO=/^\)\]\}',?\n/;let e0=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Je(n=>{const s=this.xhrFactory.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((E,L)=>s.setRequestHeader(E,L.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const E=e.detectContentTypeHeader();null!==E&&s.setRequestHeader("Content-Type",E)}if(e.responseType){const E=e.responseType.toLowerCase();s.responseType="json"!==E?E:"text"}const o=e.serializeBody();let r=null;const u=()=>{if(null!==r)return r;const E=s.statusText||"OK",L=new Cs(s.getAllResponseHeaders()),O=function xO(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return r=new Vm({headers:L,status:s.status,statusText:E,url:O}),r},h=()=>{let{headers:E,status:L,statusText:O,url:N}=u(),G=null;204!==L&&(G=void 0===s.response?s.responseText:s.response),0===L&&(L=G?200:0);let P=L>=200&&L<300;if("json"===e.responseType&&"string"==typeof G){const J=G;G=G.replace(SO,"");try{G=""!==G?JSON.parse(G):null}catch(se){G=J,P&&(P=!1,G={error:se,text:G})}}P?(n.next(new cu({body:G,headers:E,status:L,statusText:O,url:N||void 0})),n.complete()):n.error(new Yy({error:G,headers:E,status:L,statusText:O,url:N||void 0}))},b=E=>{const{url:L}=u(),O=new Yy({error:E,status:s.status||0,statusText:s.statusText||"Unknown Error",url:L||void 0});n.error(O)};let y=!1;const w=E=>{y||(n.next(u()),y=!0);let L={type:sn.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(L.total=E.total),"text"===e.responseType&&!!s.responseText&&(L.partialText=s.responseText),n.next(L)},k=E=>{let L={type:sn.UploadProgress,loaded:E.loaded};E.lengthComputable&&(L.total=E.total),n.next(L)};return s.addEventListener("load",h),s.addEventListener("error",b),s.addEventListener("timeout",b),s.addEventListener("abort",b),e.reportProgress&&(s.addEventListener("progress",w),null!==o&&s.upload&&s.upload.addEventListener("progress",k)),s.send(o),n.next({type:sn.Sent}),()=>{s.removeEventListener("error",b),s.removeEventListener("abort",b),s.removeEventListener("load",h),s.removeEventListener("timeout",b),e.reportProgress&&(s.removeEventListener("progress",w),null!==o&&s.upload&&s.upload.removeEventListener("progress",k)),s.readyState!==s.DONE&&s.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(K(Ey))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const Hm=new be("XSRF_COOKIE_NAME"),qm=new be("XSRF_HEADER_NAME");class t0{}let DO=(()=>{class t{constructor(e,n,s){this.doc=e,this.platform=n,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=yy(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(K(en),K(zc),K(Hm))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Gm=(()=>{class t{constructor(e,n){this.tokenService=e,this.headerName=n}intercept(e,n){const s=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return n.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),n.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(K(t0),K(qm))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),MO=(()=>{class t{constructor(e,n){this.backend=e,this.injector=n,this.chain=null}handle(e){if(null===this.chain){const n=this.injector.get(Xy,[]);this.chain=n.reduceRight((s,o)=>new Zy(s,o),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(K(jy),K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),kO=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Gm,useClass:TO}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Hm,useValue:e.cookieName}:[],e.headerName?{provide:qm,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[Gm,{provide:Xy,useExisting:Gm,multi:!0},{provide:t0,useClass:DO},{provide:Hm,useValue:"XSRF-TOKEN"},{provide:qm,useValue:"X-XSRF-TOKEN"}]}),t})(),IO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[Bi,{provide:zy,useClass:MO},e0,{provide:jy,useExisting:e0}],imports:[[kO.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function ss(t){return!!t&&(t instanceof Je||"function"==typeof t.lift&&"function"==typeof t.subscribe)}function n0(...t){if(1===t.length){const i=t[0];if(Vo(i))return uu(i,null);if(Ld(i)&&Object.getPrototypeOf(i)===Object.prototype){const e=Object.keys(i);return uu(e.map(n=>i[n]),e)}}if("function"==typeof t[t.length-1]){const i=t.pop();return uu(t=1===t.length&&Vo(t[0])?t[0]:t,null).pipe(et(e=>i(...e)))}return uu(t,null)}function uu(t,i){return new Je(e=>{const n=t.length;if(0===n)return void e.complete();const s=new Array(n);let o=0,r=0;for(let u=0;u{b||(b=!0,r++),s[u]=y},error:y=>e.error(y),complete:()=>{o++,(o===n||!b)&&(r===n&&e.next(i?i.reduce((y,w,k)=>(y[w]=s[k],y),{}):s),e.complete())}}))}})}function tl(...t){return function EO(){return ta(1)}()(re(...t))}const Ir=new Je(t=>t.complete());function du(t){return t?function RO(t){return new Je(i=>t.schedule(()=>i.complete()))}(t):Ir}function pu(t){return new Je(i=>{let e;try{e=t()}catch(s){return void i.error(s)}return(e?Mn(e):du()).subscribe(i)})}const s0=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function vo(t){return i=>0===t?du():i.lift(new LO(t))}class LO{constructor(i){if(this.total=i,this.total<0)throw new s0}call(i,e){return e.subscribe(new OO(i,this.total))}}class OO extends wt{constructor(i,e){super(i),this.total=e,this.count=0}_next(i){const e=this.total,n=++this.count;n<=e&&(this.destination.next(i),n===e&&(this.destination.complete(),this.unsubscribe()))}}class AO extends Et{constructor(i,e){super()}schedule(i,e=0){return this}}class hu extends AO{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){if(this.closed)return this;this.state=i;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(i,e,n=0){return setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let s,n=!1;try{this.work(i)}catch(o){n=!0,s=!!o&&o||new Error(o)}if(n)return this.unsubscribe(),s}_unsubscribe(){const i=this.id,e=this.scheduler,n=e.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null}}let o0=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(e,n=0,s){return new this.SchedulerAction(this,e).schedule(s,n)}}return t.now=()=>Date.now(),t})();class Hi extends o0{constructor(i,e=o0.now){super(i,()=>Hi.delegate&&Hi.delegate!==this?Hi.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(i,e=0,n){return Hi.delegate&&Hi.delegate!==this?Hi.delegate.schedule(i,e,n):super.schedule(i,e,n)}flush(i){const{actions:e}=this;if(this.active)return void e.push(i);let n;this.active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this.active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}}const NO=new class FO extends Hi{}(class PO extends hu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}schedule(i,e=0){return e>0?super.schedule(i,e):(this.delay=e,this.state=i,this.scheduler.flush(this),this)}execute(i,e){return e>0||this.closed?super.execute(i,e):this._execute(i,e)}requestAsyncId(i,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(i,e,n):i.flush(this)}});function nl(t,i){return new Je(i?e=>i.schedule(VO,0,{error:t,subscriber:e}):e=>e.error(t))}function VO({error:t,subscriber:i}){i.error(t)}class Kn{constructor(i,e,n){this.kind=i,this.value=e,this.error=n,this.hasValue="N"===i}observe(i){switch(this.kind){case"N":return i.next&&i.next(this.value);case"E":return i.error&&i.error(this.error);case"C":return i.complete&&i.complete()}}do(i,e,n){switch(this.kind){case"N":return i&&i(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(i,e,n){return i&&"function"==typeof i.next?this.observe(i):this.do(i,e,n)}toObservable(){switch(this.kind){case"N":return re(this.value);case"E":return nl(this.error);case"C":return du()}throw new Error("unexpected notification kind value")}static createNext(i){return void 0!==i?new Kn("N",i):Kn.undefinedValueNotification}static createError(i){return new Kn("E",void 0,i)}static createComplete(){return Kn.completeNotification}}Kn.completeNotification=new Kn("C"),Kn.undefinedValueNotification=new Kn("N",void 0);class mu extends wt{constructor(i,e,n=0){super(i),this.scheduler=e,this.delay=n}static dispatch(i){const{notification:e,destination:n}=i;e.observe(n),this.unsubscribe()}scheduleMessage(i){this.destination.add(this.scheduler.schedule(mu.dispatch,this.delay,new HO(i,this.destination)))}_next(i){this.scheduleMessage(Kn.createNext(i))}_error(i){this.scheduleMessage(Kn.createError(i)),this.unsubscribe()}_complete(){this.scheduleMessage(Kn.createComplete()),this.unsubscribe()}}class HO{constructor(i,e){this.notification=i,this.destination=e}}class qO extends ct{constructor(i=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=i<1?1:i,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(i){if(!this.isStopped){const e=this._events;e.push(i),e.length>this._bufferSize&&e.shift()}super.next(i)}nextTimeWindow(i){this.isStopped||(this._events.push(new GO(this._getNow(),i)),this._trimBufferThenGetEvents()),super.next(i)}_subscribe(i){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,o=n.length;let r;if(this.closed)throw new no;if(this.isStopped||this.hasError?r=Et.EMPTY:(this.observers.push(i),r=new Eg(this,i)),s&&i.add(i=new mu(i,s)),e)for(let u=0;ue&&(r=Math.max(r,o-e)),r>0&&s.splice(0,r),s}}class GO{constructor(i,e){this.time=i,this.value=e}}function Um(t,i,e){let n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:i,refCount:!1,scheduler:e},s=>s.lift(function UO({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:i=Number.POSITIVE_INFINITY,refCount:e,scheduler:n}){let s,r,o=0,u=!1,h=!1;return function(y){let w;o++,!s||u?(u=!1,s=new qO(t,i,n),w=s.subscribe(this),r=y.subscribe({next(k){s.next(k)},error(k){u=!0,s.error(k)},complete(){h=!0,r=void 0,s.complete()}}),h&&(r=void 0)):w=s.subscribe(this),this.add(()=>{o--,w.unsubscribe(),w=void 0,r&&!h&&e&&0===o&&(r.unsubscribe(),r=void 0,s=void 0)})}}(n))}function qi(t,i){return"function"==typeof i?e=>e.pipe(qi((n,s)=>Mn(t(n,s)).pipe(et((o,r)=>i(n,o,s,r))))):e=>e.lift(new zO(t))}class zO{constructor(i){this.project=i}call(i,e){return e.subscribe(new jO(i,this.project))}}class jO extends Xr{constructor(i,e){super(i),this.project=e,this.index=0}_next(i){let e;const n=this.index++;try{e=this.project(i,n)}catch(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(i){const e=this.innerSubscription;e&&e.unsubscribe();const n=new Zr(this),s=this.destination;s.add(n),this.innerSubscription=ea(i,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:i}=this;(!i||i.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(i){this.destination.next(i)}}class il{}let r0=(()=>{class t extends il{getTranslation(e){return re({})}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=an(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class zm{}let a0=(()=>{class t{handle(e){return e.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function sl(t,i){if(t===i)return!0;if(null===t||null===i)return!1;if(t!=t&&i!=i)return!0;let s,o,r,e=typeof t;if(e==typeof i&&"object"==e){if(!Array.isArray(t)){if(Array.isArray(i))return!1;for(o in r=Object.create(null),t){if(!sl(t[o],i[o]))return!1;r[o]=!0}for(o in i)if(!(o in r)&&void 0!==i[o])return!1;return!0}if(!Array.isArray(i))return!1;if((s=t.length)==i.length){for(o=0;o{jm(i[n])?n in t?e[n]=l0(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e}class fu{}let c0=(()=>{class t extends fu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,n){let s;return s="string"==typeof e?this.interpolateString(e,n):"function"==typeof e?this.interpolateFunction(e,n):e,s}getValue(e,n){let s="string"==typeof n?n.split("."):[n];n="";do{n+=s.shift(),!oi(e)||!oi(e[n])||"object"!=typeof e[n]&&s.length?s.length?n+=".":e=void 0:(e=e[n],n="")}while(s.length);return e}interpolateFunction(e,n){return e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(s,o)=>{let r=this.getValue(n,o);return oi(r)?r:s}):e}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=an(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class gu{}let u0=(()=>{class t extends gu{compile(e,n){return e}compileTranslations(e,n){return e}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=an(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class d0{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new H,this.onLangChange=new H,this.onDefaultLangChange=new H}}const $m=new be("USE_STORE"),Wm=new be("USE_DEFAULT_LANG"),Km=new be("DEFAULT_LANGUAGE"),Qm=new be("USE_EXTEND");let Oe=(()=>{class t{constructor(e,n,s,o,r,u=!0,h=!1,b=!1,y){this.store=e,this.currentLoader=n,this.compiler=s,this.parser=o,this.missingTranslationHandler=r,this.useDefaultLang=u,this.isolate=h,this.extend=b,this.pending=!1,this._onTranslationChange=new H,this._onLangChange=new H,this._onDefaultLangChange=new H,this._langs=[],this._translations={},this._translationRequests={},y&&this.setDefaultLang(y)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let n=this.retrieveTranslations(e);void 0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(vo(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return re(this.translations[e]);let n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe(vo(1)).subscribe(s=>{this.changeLang(e)}),n):(this.changeLang(e),re(this.translations[e]))}retrieveTranslations(e){let n;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),n=this._translationRequests[e]),n}getTranslation(e){this.pending=!0;const n=this.currentLoader.getTranslation(e).pipe(Um(1),vo(1));return this.loadingTranslations=n.pipe(et(s=>this.compiler.compileTranslations(s,e)),Um(1),vo(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},s),this.translations[e]):s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),n}setTranslation(e,n,s=!1){n=this.compiler.compileTranslations(n,e),this.translations[e]=(s||this.extend)&&this.translations[e]?l0(this.translations[e],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(n=>{-1===this.langs.indexOf(n)&&this.langs.push(n)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,n,s){let o;if(n instanceof Array){let r={},u=!1;for(let h of n)r[h]=this.getParsedResult(e,h,s),ss(r[h])&&(u=!0);return u?n0(n.map(b=>ss(r[b])?r[b]:re(r[b]))).pipe(et(b=>{let y={};return b.forEach((w,k)=>{y[n[k]]=w}),y})):r}if(e&&(o=this.parser.interpolate(this.parser.getValue(e,n),s)),void 0===o&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),s)),void 0===o){let r={key:n,translateService:this};void 0!==s&&(r.interpolateParams=s),o=this.missingTranslationHandler.handle(r)}return void 0!==o?o:n}get(e,n){if(!oi(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(bo(s=>ss(s=this.getParsedResult(s,e,n))?s:re(s)));{let s=this.getParsedResult(this.translations[this.currentLang],e,n);return ss(s)?s:re(s)}}getStreamOnTranslationChange(e,n){if(!oi(e)||!e.length)throw new Error('Parameter "key" required');return tl(pu(()=>this.get(e,n)),this.onTranslationChange.pipe(qi(s=>{const o=this.getParsedResult(s.translations,e,n);return"function"==typeof o.subscribe?o:re(o)})))}stream(e,n){if(!oi(e)||!e.length)throw new Error('Parameter "key" required');return tl(pu(()=>this.get(e,n)),this.onLangChange.pipe(qi(s=>{const o=this.getParsedResult(s.translations,e,n);return ss(o)?o:re(o)})))}instant(e,n){if(!oi(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,n);if(ss(s)){if(e instanceof Array){let o={};return e.forEach((r,u)=>{o[e[u]]=e[u]}),o}return e}return s}set(e,n,s=this.currentLang){this.translations[s][e]=this.compiler.compile(n,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return t.\u0275fac=function(e){return new(e||t)(K(d0),K(il),K(gu),K(fu),K(zm),K(Wm),K($m),K(Qm),K(Km))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_u=(()=>{class t{constructor(e,n,s){this.translateService=e,this.element=n,this._ref=s,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(o=>{o.lang===this.translateService.currentLang&&this.checkNodes(!0,o.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(o=>{this.checkNodes(!0,o.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(o=>{this.checkNodes(!0)}))}set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){sl(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,n){let s=this.element.nativeElement.childNodes;s.length||(this.setContent(this.element.nativeElement,this.key),s=this.element.nativeElement.childNodes);for(let o=0;o{r!==e&&(n.lastKey=e),n.originalContent||(n.originalContent=this.getContent(n)),n.currentValue=oi(r)?r:n.originalContent||e,this.setContent(n,this.key?n.currentValue:n.originalContent.replace(e,n.currentValue)),this._ref.markForCheck()};if(oi(s)){let r=this.translateService.getParsedResult(s,e,this.currentParams);ss(r)?r.subscribe({next:o}):o(r)}else this.translateService.get(e,this.currentParams).subscribe(o)}}getContent(e){return oi(e.textContent)?e.textContent:e.data}setContent(e,n){oi(e.textContent)?e.textContent=n:e.data=n}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(D(Oe),D(De),D(ot))},t.\u0275dir=le({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),t})(),ce=(()=>{class t{constructor(e,n){this.translate=e,this._ref=n,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,n,s){let o=r=>{this.value=void 0!==r?r:e,this.lastKey=e,this._ref.markForCheck()};if(s){let r=this.translate.getParsedResult(s,e,n);ss(r.subscribe)?r.subscribe(o):o(r)}this.translate.get(e,n).subscribe(o)}transform(e,...n){if(!e||!e.length)return e;if(sl(e,this.lastKey)&&sl(n,this.lastParams))return this.value;let s;if(oi(n[0])&&n.length)if("string"==typeof n[0]&&n[0].length){let o=n[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(o)}catch(r){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else"object"==typeof n[0]&&!Array.isArray(n[0])&&(s=n[0]);return this.lastKey=e,this.lastParams=n,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,o.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(D(Oe,16),D(ot,16))},t.\u0275pipe=Pn({name:"translate",type:t,pure:!1}),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),$O=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:il,useClass:r0},e.compiler||{provide:gu,useClass:u0},e.parser||{provide:fu,useClass:c0},e.missingTranslationHandler||{provide:zm,useClass:a0},d0,{provide:$m,useValue:e.isolate},{provide:Wm,useValue:e.useDefaultLang},{provide:Qm,useValue:e.extend},{provide:Km,useValue:e.defaultLanguage},Oe]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:il,useClass:r0},e.compiler||{provide:gu,useClass:u0},e.parser||{provide:fu,useClass:c0},e.missingTranslationHandler||{provide:zm,useClass:a0},{provide:$m,useValue:e.isolate},{provide:Wm,useValue:e.useDefaultLang},{provide:Qm,useValue:e.extend},{provide:Km,useValue:e.defaultLanguage},Oe]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();class WO{constructor(i,e="/assets/i18n/",n=".json"){this.http=i,this.prefix=e,this.suffix=n}getTranslation(i){return this.http.get(`${this.prefix}${i}${this.suffix}`)}}let p0=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(D(gn),D(De))},t.\u0275dir=le({type:t}),t})(),Co=(()=>{class t extends p0{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=an(t)))(n||t)}}(),t.\u0275dir=le({type:t,features:[ut]}),t})();const dn=new be("NgValueAccessor"),QO={provide:dn,useExisting:je(()=>Ye),multi:!0},YO=new be("CompositionEventMode");let Ye=(()=>{class t extends p0{constructor(e,n,s){super(e,n),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function JO(){const t=is()?is().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(D(gn),D(De),D(YO,8))},t.\u0275dir=le({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,n){1&e&&C("input",function(o){return n._handleInput(o.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(o){return n._compositionEnd(o.target.value)})},features:[Pe([QO]),ut]}),t})();function zs(t){return null==t||0===t.length}const On=new be("NgValidators"),js=new be("NgAsyncValidators");function _0(t){return zs(t.value)?{required:!0}:null}function bu(t){return null}function T0(t){return null!=t}function S0(t){const i=La(t)?Mn(t):t;return Dh(i),i}function x0(t){let i={};return t.forEach(e=>{i=null!=e?Object.assign(Object.assign({},i),e):i}),0===Object.keys(i).length?null:i}function D0(t,i){return i.map(e=>e(t))}function M0(t){return t.map(i=>function XO(t){return!t.validate}(i)?i:e=>i.validate(e))}function Jm(t){return null!=t?function k0(t){if(!t)return null;const i=t.filter(T0);return 0==i.length?null:function(e){return x0(D0(e,i))}}(M0(t)):null}function Ym(t){return null!=t?function I0(t){if(!t)return null;const i=t.filter(T0);return 0==i.length?null:function(e){return n0(D0(e,i).map(S0)).pipe(et(x0))}}(M0(t)):null}function E0(t,i){return null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Zm(t){return t?Array.isArray(t)?t:[t]:[]}function vu(t,i){return Array.isArray(t)?t.includes(i):t===i}function O0(t,i){const e=Zm(i);return Zm(t).forEach(s=>{vu(e,s)||e.push(s)}),e}function A0(t,i){return Zm(i).filter(e=>!vu(t,e))}class P0{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=Jm(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Ym(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return this.control?this.control.getError(i,e):null}}class os extends P0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Un extends P0{get formDirective(){return null}get path(){return null}}class F0{constructor(i){this._cd=i}is(i){var e,n,s;return"submitted"===i?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(s=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===s?void 0:s[i])}}let we=(()=>{class t extends F0{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(D(os,2))},t.\u0275dir=le({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&si("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[ut]}),t})(),Ue=(()=>{class t extends F0{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(D(Un,10))},t.\u0275dir=le({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,n){2&e&&si("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[ut]}),t})();function ol(t,i){tf(t,i),i.valueAccessor.writeValue(t.value),function aA(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&V0(t,i)})}(t,i),function cA(t,i){const e=(n,s)=>{i.valueAccessor.writeValue(n),s&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function lA(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&V0(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function rA(t,i){if(i.valueAccessor.setDisabledState){const e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function Tu(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function tf(t,i){const e=function R0(t){return t._rawValidators}(t);null!==i.validator?t.setValidators(E0(e,i.validator)):"function"==typeof e&&t.setValidators([e]);const n=function L0(t){return t._rawAsyncValidators}(t);null!==i.asyncValidator?t.setAsyncValidators(E0(n,i.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const s=()=>t.updateValueAndValidity();Tu(i._rawValidators,s),Tu(i._rawAsyncValidators,s)}function V0(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function of(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}const rl="VALID",xu="INVALID",Er="PENDING",al="DISABLED";function af(t){return(Du(t)?t.validators:t)||null}function G0(t){return Array.isArray(t)?Jm(t):t||null}function lf(t,i){return(Du(i)?i.asyncValidators:t)||null}function U0(t){return Array.isArray(t)?Ym(t):t||null}function Du(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}const cf=t=>t instanceof df;function j0(t){return(t=>t instanceof K0)(t)?t.value:t.getRawValue()}function $0(t,i){const e=cf(t),n=t.controls;if(!(e?Object.keys(n):n).length)throw new oe(1e3,"");if(!n[i])throw new oe(1001,"")}function W0(t,i){cf(t),t._forEachChild((n,s)=>{if(void 0===i[s])throw new oe(1002,"")})}class uf{constructor(i,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=i,this._rawAsyncValidators=e,this._composedValidatorFn=G0(this._rawValidators),this._composedAsyncValidatorFn=U0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===rl}get invalid(){return this.status===xu}get pending(){return this.status==Er}get disabled(){return this.status===al}get enabled(){return this.status!==al}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._rawValidators=i,this._composedValidatorFn=G0(i)}setAsyncValidators(i){this._rawAsyncValidators=i,this._composedAsyncValidatorFn=U0(i)}addValidators(i){this.setValidators(O0(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(O0(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(A0(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(A0(i,this._rawAsyncValidators))}hasValidator(i){return vu(this._rawValidators,i)}hasAsyncValidator(i){return vu(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Er,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=al,this.errors=null,this._forEachChild(n=>{n.disable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=rl,this._forEachChild(n=>{n.enable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rl||this.status===Er)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?al:rl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Er,this._hasOwnPendingAsyncValidator=!0;const e=S0(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){return function hA(t,i,e){if(null==i||(Array.isArray(i)||(i=i.split(e)),Array.isArray(i)&&0===i.length))return null;let n=t;return i.forEach(s=>{n=cf(n)?n.controls.hasOwnProperty(s)?n.controls[s]:null:(t=>t instanceof fA)(n)&&n.at(s)||null}),n}(this,i,".")}getError(i,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new H,this.statusChanges=new H}_calculateStatus(){return this._allControlsDisabled()?al:this.errors?xu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Er)?Er:this._anyControlsHaveStatus(xu)?xu:rl}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_isBoxedValue(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Du(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class K0 extends uf{constructor(i=null,e,n){super(af(e),lf(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Du(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){of(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){of(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}class df extends uf{constructor(i,e,n){super(af(e),lf(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){W0(this,i),Object.keys(i).forEach(n=>{$0(this,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=j0(e),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&i(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(i,e,n)=>((e.enabled||this.disabled)&&(i[n]=e.value),i))}_reduceChildren(i,e){let n=i;return this._forEachChild((s,o)=>{n=e(n,s,o)}),n}_allControlsDisabled(){for(const i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class fA extends uf{constructor(i,e,n){super(af(e),lf(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return this.controls[i]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){W0(this,i),i.forEach((n,s)=>{$0(this,s),this.at(s).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((n,s)=>{this.at(s)&&this.at(s).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>j0(i))}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_syncPendingControls(){let i=this.controls.reduce((e,n)=>!!n._syncPendingControls()||e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(const i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}const gA={provide:Un,useExisting:je(()=>He)},ll=(()=>Promise.resolve(null))();let He=(()=>{class t extends Un{constructor(e,n){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new H,this.form=new df({},Jm(e),Ym(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){ll.then(()=>{const n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),ol(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){ll.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){ll.then(()=>{const n=this._findContainer(e.path),s=new df({});(function B0(t,i){tf(t,i)})(s,e),n.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){ll.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){ll.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,function q0(t,i){t._syncPendingControls(),i.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return t.\u0275fac=function(e){return new(e||t)(D(On,10),D(js,10))},t.\u0275dir=le({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&C("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Pe([gA]),ut]}),t})();const bA={provide:os,useExisting:je(()=>_e)},Y0=(()=>Promise.resolve(null))();let _e=(()=>{class t extends os{constructor(e,n,s,o,r){super(),this._changeDetectorRef=r,this.control=new K0,this._registered=!1,this.update=new H,this._parent=e,this._setValidators(n),this._setAsyncValidators(s),this.valueAccessor=function sf(t,i){if(!i)return null;let e,n,s;return Array.isArray(i),i.forEach(o=>{o.constructor===Ye?e=o:function pA(t){return Object.getPrototypeOf(t.constructor)===Co}(o)?n=o:s=o}),s||n||e||null}(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function nf(t,i){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ol(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Y0.then(()=>{var n;this.control.setValue(e,{emitViewToModelChange:!1}),null===(n=this._changeDetectorRef)||void 0===n||n.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,s=""===n||n&&"false"!==n;Y0.then(()=>{var o;s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()})}_getPath(e){return this._parent?function yu(t,i){return[...i.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(D(Un,9),D(On,10),D(js,10),D(dn,10),D(ot,8))},t.\u0275dir=le({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Pe([bA]),ut,fn]}),t})(),ze=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=le({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const vA={provide:dn,useExisting:je(()=>Mu),multi:!0};let Mu=(()=>{class t extends Co{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=an(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,n){1&e&&C("input",function(o){return n.onChange(o.target.value)})("blur",function(){return n.onTouched()})},features:[Pe([vA]),ut]}),t})(),Z0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();const pf=new be("NgModelWithFormControlWarning");function aw(t){return"number"==typeof t?t:parseFloat(t)}let yo=(()=>{class t{constructor(){this._validator=bu}ngOnChanges(e){if(this.inputName in e){const n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):bu,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=le({type:t,features:[fn]}),t})();const PA={provide:On,useExisting:je(()=>ku),multi:!0};let ku=(()=>{class t extends yo{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>aw(e),this.createValidator=e=>function g0(t){return i=>{if(zs(i.value)||zs(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=an(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("max",n._enabled?n.max:null)},inputs:{max:"max"},features:[Pe([PA]),ut]}),t})();const FA={provide:On,useExisting:je(()=>Iu),multi:!0};let Iu=(()=>{class t extends yo{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>aw(e),this.createValidator=e=>function f0(t){return i=>{if(zs(i.value)||zs(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&ecl),multi:!0};let cl=(()=>{class t extends yo{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function AA(t){return null!=t&&!1!==t&&"false"!=`${t}`}(e),this.createValidator=e=>_0}enabled(e){return e}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=an(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,n){2&e&&ie("required",n._enabled?"":null)},inputs:{required:"required"},features:[Pe([NA]),ut]}),t})();const qA={provide:On,useExisting:je(()=>_n),multi:!0};let _n=(()=>{class t extends yo{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function rw(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>function y0(t){return i=>function m0(t){return null!=t&&"number"==typeof t.length}(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=an(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("maxlength",n._enabled?n.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Pe([qA]),ut]}),t})(),pw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Z0]]}),t})(),Eu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[pw]}),t})(),UA=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:pf,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[pw]}),t})();class hw{}const ys="*";function wi(t,i){return{type:7,name:t,definitions:i,options:{}}}function kt(t,i=null){return{type:4,styles:i,timings:t}}function mw(t,i=null){return{type:2,steps:t,options:i}}function it(t){return{type:6,styles:t,offset:null}}function ws(t,i,e){return{type:0,name:t,styles:i,options:e}}function Lt(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function Ru(t,i=null){return{type:8,animation:t,options:i}}function jA(t=null){return{type:9,options:t}}function fw(t,i=null){return{type:10,animation:t,options:i}}function $A(t,i,e=null){return{type:11,selector:t,animation:i,options:e}}function gw(t){Promise.resolve(null).then(t)}class ul{constructor(i=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._onStartFns.push(i)}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){gw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class _w{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let e=0,n=0,s=0;const o=this.players.length;0==o?gw(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++e==o&&this._onFinish()}),r.onDestroy(()=>{++n==o&&this._onDestroy()}),r.onStart(()=>{++s==o&&this._onStart()})}),this.totalTime=this.players.reduce((r,u)=>Math.max(r,u.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const s=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(s)})}getPosition(){const i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}const Ze=!1;function bw(t){return new oe(3e3,Ze)}function DP(){return"undefined"!=typeof window&&void 0!==window.document}function vf(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function $s(t){switch(t.length){case 0:return new ul;case 1:return t[0];default:return new _w(t)}}function vw(t,i,e,n,s={},o={}){const r=[],u=[];let h=-1,b=null;if(n.forEach(y=>{const w=y.offset,k=w==h,E=k&&b||{};Object.keys(y).forEach(L=>{let O=L,N=y[L];if("offset"!==L)switch(O=i.normalizePropertyName(O,r),N){case"!":N=s[L];break;case ys:N=o[L];break;default:N=i.normalizeStyleValue(L,O,N,r)}E[O]=N}),k||u.push(E),b=E,h=w}),r.length)throw function fP(t){return new oe(3502,Ze)}();return u}function Cf(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&yf(e,"start",t)));break;case"done":t.onDone(()=>n(e&&yf(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&yf(e,"destroy",t)))}}function yf(t,i,e){const n=e.totalTime,o=wf(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,null==n?t.totalTime:n,!!e.disabled),r=t._data;return null!=r&&(o._data=r),o}function wf(t,i,e,n,s="",o=0,r){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:s,totalTime:o,disabled:!!r}}function ri(t,i,e){let n;return t instanceof Map?(n=t.get(i),n||t.set(i,n=e)):(n=t[i],n||(n=t[i]=e)),n}function Cw(t){const i=t.indexOf(":");return[t.substring(1,i),t.substr(i+1)]}let Tf=(t,i)=>!1,yw=(t,i,e)=>[],ww=null;function Sf(t){const i=t.parentNode||t.host;return i===ww?null:i}(vf()||"undefined"!=typeof Element)&&(DP()?(ww=(()=>document.documentElement)(),Tf=(t,i)=>{for(;i;){if(i===t)return!0;i=Sf(i)}return!1}):Tf=(t,i)=>t.contains(i),yw=(t,i,e)=>{if(e)return Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]});let wo=null,Tw=!1;function Sw(t){wo||(wo=function kP(){return"undefined"!=typeof document?document.body:null}()||{},Tw=!!wo.style&&"WebkitAppearance"in wo.style);let i=!0;return wo.style&&!function MP(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in wo.style,!i&&Tw&&(i="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in wo.style)),i}const xw=Tf,Dw=yw;let Mw=(()=>{class t{validateStyleProperty(e){return Sw(e)}matchesElement(e,n){return!1}containsElement(e,n){return xw(e,n)}getParentElement(e){return Sf(e)}query(e,n,s){return Dw(e,n,s)}computeStyle(e,n,s){return s||""}animate(e,n,s,o,r,u=[],h){return new ul(s,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),xf=(()=>{class t{}return t.NOOP=new Mw,t})();const Df="ng-enter",Ou="ng-leave",Au="ng-trigger",Pu=".ng-trigger",Iw="ng-animating",Mf=".ng-animating";function To(t){if("number"==typeof t)return t;const i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:kf(parseFloat(i[1]),i[2])}function kf(t,i){return"s"===i?1e3*t:t}function Fu(t,i,e){return t.hasOwnProperty("duration")?t:function RP(t,i,e){let s,o=0,r="";if("string"==typeof t){const u=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===u)return i.push(bw()),{duration:0,delay:0,easing:""};s=kf(parseFloat(u[1]),u[2]);const h=u[3];null!=h&&(o=kf(parseFloat(h),u[4]));const b=u[5];b&&(r=b)}else s=t;if(!e){let u=!1,h=i.length;s<0&&(i.push(function WA(){return new oe(3100,Ze)}()),u=!0),o<0&&(i.push(function KA(){return new oe(3101,Ze)}()),u=!0),u&&i.splice(h,0,bw())}return{duration:s,delay:o,easing:r}}(t,i,e)}function Rr(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function Ws(t,i,e={}){if(i)for(let n in t)e[n]=t[n];else Rr(t,e);return e}function Rw(t,i,e){return e?i+":"+e+";":""}function Lw(t){let i="";for(let e=0;e{const s=Ef(n);e&&!e.hasOwnProperty(n)&&(e[n]=t.style[s]),t.style[s]=i[n]}),vf()&&Lw(t))}function So(t,i){t.style&&(Object.keys(i).forEach(e=>{const n=Ef(e);t.style[n]=""}),vf()&&Lw(t))}function dl(t){return Array.isArray(t)?1==t.length?t[0]:mw(t):t}const If=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ow(t){let i=[];if("string"==typeof t){let e;for(;e=If.exec(t);)i.push(e[1]);If.lastIndex=0}return i}function Nu(t,i,e){const n=t.toString(),s=n.replace(If,(o,r)=>{let u=i[r];return i.hasOwnProperty(r)||(e.push(function JA(t){return new oe(3003,Ze)}()),u=""),u.toString()});return s==n?t:s}function Vu(t){const i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.next();return i}const OP=/-+([a-z0-9])/g;function Ef(t){return t.replace(OP,(...i)=>i[1].toUpperCase())}function AP(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ai(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function YA(t){return new oe(3004,Ze)}()}}function Aw(t,i){return window.getComputedStyle(t)[i]}function HP(t,i){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function qP(t,i,e){if(":"==t[0]){const h=function GP(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(t,e);if("function"==typeof h)return void i.push(h);t=h}const n=t.match(/^(\*|[-\w]+)\s*([=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function uP(t){return new oe(3015,Ze)}()),i;const s=n[1],o=n[2],r=n[3];i.push(Pw(s,r));"<"==o[0]&&!("*"==s&&"*"==r)&&i.push(Pw(r,s))}(n,e,i)):e.push(t),e}const Gu=new Set(["true","1"]),Uu=new Set(["false","0"]);function Pw(t,i){const e=Gu.has(t)||Uu.has(t),n=Gu.has(i)||Uu.has(i);return(s,o)=>{let r="*"==t||t==s,u="*"==i||i==o;return!r&&e&&"boolean"==typeof s&&(r=s?Gu.has(t):Uu.has(t)),!u&&n&&"boolean"==typeof o&&(u=o?Gu.has(i):Uu.has(i)),r&&u}}const UP=new RegExp("s*:selfs*,?","g");function Rf(t,i,e,n){return new zP(t).build(i,e,n)}class zP{constructor(i){this._driver=i}build(i,e,n){const s=new WP(e);this._resetContextStyleTimingState(s);const o=ai(this,dl(i),s);return s.unsupportedCSSPropertiesFound.size&&s.unsupportedCSSPropertiesFound.keys(),o}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles={},i.collectedStyles[""]={},i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,s=e.depCount=0;const o=[],r=[];return"@"==i.name.charAt(0)&&e.errors.push(function XA(){return new oe(3006,Ze)}()),i.definitions.forEach(u=>{if(this._resetContextStyleTimingState(e),0==u.type){const h=u,b=h.name;b.toString().split(/\s*,\s*/).forEach(y=>{h.name=y,o.push(this.visitState(h,e))}),h.name=b}else if(1==u.type){const h=this.visitTransition(u,e);n+=h.queryCount,s+=h.depCount,r.push(h)}else e.errors.push(function eP(){return new oe(3007,Ze)}())}),{type:7,name:i.name,states:o,transitions:r,queryCount:n,depCount:s,options:null}}visitState(i,e){const n=this.visitStyle(i.styles,e),s=i.options&&i.options.params||null;if(n.containsDynamicStyles){const o=new Set,r=s||{};n.styles.forEach(u=>{if(zu(u)){const h=u;Object.keys(h).forEach(b=>{Ow(h[b]).forEach(y=>{r.hasOwnProperty(y)||o.add(y)})})}}),o.size&&(Vu(o.values()),e.errors.push(function tP(t,i){return new oe(3008,Ze)}()))}return{type:0,name:i.name,style:n,options:s?{params:s}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const n=ai(this,dl(i.animation),e);return{type:1,matchers:HP(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:xo(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>ai(this,n,e)),options:xo(i.options)}}visitGroup(i,e){const n=e.currentTime;let s=0;const o=i.steps.map(r=>{e.currentTime=n;const u=ai(this,r,e);return s=Math.max(s,e.currentTime),u});return e.currentTime=s,{type:3,steps:o,options:xo(i.options)}}visitAnimate(i,e){const n=function QP(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Lf(Fu(t,i).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Lf(0,0,"");return o.dynamic=!0,o.strValue=e,o}const s=Fu(e,i);return Lf(s.duration,s.delay,s.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let s,o=i.styles?i.styles:it({});if(5==o.type)s=this.visitKeyframes(o,e);else{let r=i.styles,u=!1;if(!r){u=!0;const b={};n.easing&&(b.easing=n.easing),r=it(b)}e.currentTime+=n.duration+n.delay;const h=this.visitStyle(r,e);h.isEmptyStep=u,s=h}return e.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(i,e){const n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const n=[];Array.isArray(i.styles)?i.styles.forEach(r=>{"string"==typeof r?r==ys?n.push(r):e.errors.push(function nP(t){return new oe(3002,Ze)}()):n.push(r)}):n.push(i.styles);let s=!1,o=null;return n.forEach(r=>{if(zu(r)){const u=r,h=u.easing;if(h&&(o=h,delete u.easing),!s)for(let b in u)if(u[b].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:o,offset:i.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(i,e){const n=e.currentAnimateTimings;let s=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),i.styles.forEach(r=>{"string"!=typeof r&&Object.keys(r).forEach(u=>{if(!this._driver.validateStyleProperty(u))return delete r[u],void e.unsupportedCSSPropertiesFound.add(u);const h=e.collectedStyles[e.currentQuerySelector],b=h[u];let y=!0;b&&(o!=s&&o>=b.startTime&&s<=b.endTime&&(e.errors.push(function iP(t,i,e,n,s){return new oe(3010,Ze)}()),y=!1),o=b.startTime),y&&(h[u]={startTime:o,endTime:s}),e.options&&function LP(t,i,e){const n=i.params||{},s=Ow(t);s.length&&s.forEach(o=>{n.hasOwnProperty(o)||e.push(function QA(t){return new oe(3001,Ze)}())})}(r[u],e.options,e.errors)})})}visitKeyframes(i,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function sP(){return new oe(3011,Ze)}()),n;let o=0;const r=[];let u=!1,h=!1,b=0;const y=i.steps.map(G=>{const P=this._makeStyleAst(G,e);let J=null!=P.offset?P.offset:function KP(t){if("string"==typeof t)return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(zu(e)&&e.hasOwnProperty("offset")){const n=e;i=parseFloat(n.offset),delete n.offset}});else if(zu(t)&&t.hasOwnProperty("offset")){const e=t;i=parseFloat(e.offset),delete e.offset}return i}(P.styles),se=0;return null!=J&&(o++,se=P.offset=J),h=h||se<0||se>1,u=u||se0&&o{const J=k>0?P==E?1:k*P:r[P],se=J*N;e.currentTime=L+O.delay+se,O.duration=se,this._validateStyleAst(G,e),G.offset=J,n.styles.push(G)}),n}visitReference(i,e){return{type:8,animation:ai(this,dl(i.animation),e),options:xo(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:9,options:xo(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e),options:xo(i.options)}}visitQuery(i,e){const n=e.currentQuerySelector,s=i.options||{};e.queryCount++,e.currentQuery=i;const[o,r]=function jP(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return i&&(t=t.replace(UP,"")),t=t.replace(/@\*/g,Pu).replace(/@\w+/g,e=>Pu+"-"+e.substr(1)).replace(/:animating/g,Mf),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+" "+o:o,ri(e.collectedStyles,e.currentQuerySelector,{});const u=ai(this,dl(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:s.limit||0,optional:!!s.optional,includeSelf:r,animation:u,originalSelector:i.selector,options:xo(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function lP(){return new oe(3013,Ze)}());const n="full"===i.timings?{duration:0,delay:0,easing:"full"}:Fu(i.timings,e.errors,!0);return{type:12,animation:ai(this,dl(i.animation),e),timings:n,options:null}}}class WP{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function zu(t){return!Array.isArray(t)&&"object"==typeof t}function xo(t){return t?(t=Rr(t)).params&&(t.params=function $P(t){return t?Rr(t):null}(t.params)):t={},t}function Lf(t,i,e){return{duration:t,delay:i,easing:e}}function Of(t,i,e,n,s,o,r=null,u=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:s,delay:o,totalTime:s+o,easing:r,subTimeline:u}}class ju{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}}const ZP=new RegExp(":enter","g"),eF=new RegExp(":leave","g");function Af(t,i,e,n,s,o={},r={},u,h,b=[]){return(new tF).buildKeyframes(t,i,e,n,s,o,r,u,h,b)}class tF{buildKeyframes(i,e,n,s,o,r,u,h,b,y=[]){b=b||new ju;const w=new Pf(i,e,b,s,o,y,[]);w.options=h,w.currentTimeline.setStyles([r],null,w.errors,h),ai(this,n,w);const k=w.timelines.filter(E=>E.containsAnimation());if(Object.keys(u).length){let E;for(let L=k.length-1;L>=0;L--){const O=k[L];if(O.element===e){E=O;break}}E&&!E.allowOnlyTimelineStyles()&&E.setStyles([u],null,w.errors,h)}return k.length?k.map(E=>E.buildKeyframes()):[Of(e,[],[],[],0,0,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const n=e.subInstructions.get(e.element);if(n){const s=e.createSubContext(i.options),o=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,s,s.options);o!=r&&e.transformIntoNewTimeline(r)}e.previousNode=i}visitAnimateRef(i,e){const n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_visitSubInstructions(i,e,n){let o=e.currentTimeline.currentTime;const r=null!=n.duration?To(n.duration):null,u=null!=n.delay?To(n.delay):null;return 0!==r&&i.forEach(h=>{const b=e.appendInstructionToTimeline(h,r,u);o=Math.max(o,b.duration+b.delay)}),o}visitReference(i,e){e.updateOptions(i.options,!0),ai(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const n=e.subContextCount;let s=e;const o=i.options;if(o&&(o.params||o.delay)&&(s=e.createSubContext(o),s.transformIntoNewTimeline(),null!=o.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=$u);const r=To(o.delay);s.delayNextStep(r)}i.steps.length&&(i.steps.forEach(r=>ai(this,r,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const n=[];let s=e.currentTimeline.currentTime;const o=i.options&&i.options.delay?To(i.options.delay):0;i.steps.forEach(r=>{const u=e.createSubContext(i.options);o&&u.delayNextStep(o),ai(this,r,u),s=Math.max(s,u.currentTimeline.currentTime),n.push(u.currentTimeline)}),n.forEach(r=>e.currentTimeline.mergeTimelineCollectedStyles(r)),e.transformIntoNewTimeline(s),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const n=i.strValue;return Fu(e.params?Nu(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const n=e.currentAnimateTimings=this._visitTiming(i.timings,e),s=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),s.snapshotCurrentStyles());const o=i.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const n=e.currentTimeline,s=e.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const o=s&&s.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(o):n.setStyles(i.styles,o,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const n=e.currentAnimateTimings,s=e.currentTimeline.duration,o=n.duration,u=e.createSubContext().currentTimeline;u.easing=n.easing,i.styles.forEach(h=>{u.forwardTime((h.offset||0)*o),u.setStyles(h.styles,h.easing,e.errors,e.options),u.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(u),e.transformIntoNewTimeline(s+o),e.previousNode=i}visitQuery(i,e){const n=e.currentTimeline.currentTime,s=i.options||{},o=s.delay?To(s.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=$u);let r=n;const u=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=u.length;let h=null;u.forEach((b,y)=>{e.currentQueryIndex=y;const w=e.createSubContext(i.options,b);o&&w.delayNextStep(o),b===e.element&&(h=w.currentTimeline),ai(this,i.animation,w),w.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,w.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),h&&(e.currentTimeline.mergeTimelineCollectedStyles(h),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const n=e.parentContext,s=e.currentTimeline,o=i.timings,r=Math.abs(o.duration),u=r*(e.currentQueryTotal-1);let h=r*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":h=u-h;break;case"full":h=n.currentStaggerTime}const y=e.currentTimeline;h&&y.delayNextStep(h);const w=y.currentTime;ai(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=s.currentTime-w+(s.startTime-n.currentTimeline.startTime)}}const $u={};class Pf{constructor(i,e,n,s,o,r,u,h){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=o,this.errors=r,this.timelines=u,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$u,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=h||new Wu(this._driver,e,0),u.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;const n=i;let s=this.options;null!=n.duration&&(s.duration=To(n.duration)),null!=n.delay&&(s.delay=To(n.delay));const o=n.params;if(o){let r=s.params;r||(r=this.options.params={}),Object.keys(o).forEach(u=>{(!e||!r.hasOwnProperty(u))&&(r[u]=Nu(o[u],r,this.errors))})}}_copyOptions(){const i={};if(this.options){const e=this.options.params;if(e){const n=i.params={};Object.keys(e).forEach(s=>{n[s]=e[s]})}}return i}createSubContext(i=null,e,n){const s=e||this.element,o=new Pf(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(i),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(i){return this.previousNode=$u,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const s={duration:null!=e?e:i.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+i.delay,easing:""},o=new nF(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,s,i.stretchStartingKeyframe);return this.timelines.push(o),s}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,s,o,r){let u=[];if(s&&u.push(this.element),i.length>0){i=(i=i.replace(ZP,"."+this._enterClassName)).replace(eF,"."+this._leaveClassName);let b=this._driver.query(this.element,i,1!=n);0!==n&&(b=n<0?b.slice(b.length+n,b.length):b.slice(0,n)),u.push(...b)}return!o&&0==u.length&&r.push(function cP(t){return new oe(3014,Ze)}()),u}}class Wu{constructor(i,e,n,s){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(i){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new Wu(this._driver,i,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles[i]=e,this._globalTimelineStyles[i]=e,this._styleSummary[i]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&(this._previousKeyframe.easing=i),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||ys,this._currentKeyframe[e]=ys}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,s){e&&(this._previousKeyframe.easing=e);const o=s&&s.params||{},r=function iF(t,i){const e={};let n;return t.forEach(s=>{"*"===s?(n=n||Object.keys(i),n.forEach(o=>{e[o]=ys})):Ws(s,!1,e)}),e}(i,this._globalTimelineStyles);Object.keys(r).forEach(u=>{const h=Nu(r[u],o,n);this._pendingStyles[u]=h,this._localTimelineStyles.hasOwnProperty(u)||(this._backFill[u]=this._globalTimelineStyles.hasOwnProperty(u)?this._globalTimelineStyles[u]:ys),this._updateStyle(u,h)})}applyStylesToKeyframe(){const i=this._pendingStyles,e=Object.keys(i);0!=e.length&&(this._pendingStyles={},e.forEach(n=>{this._currentKeyframe[n]=i[n]}),Object.keys(this._localTimelineStyles).forEach(n=>{this._currentKeyframe.hasOwnProperty(n)||(this._currentKeyframe[n]=this._localTimelineStyles[n])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(i=>{const e=this._localTimelineStyles[i];this._pendingStyles[i]=e,this._updateStyle(i,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){Object.keys(i._styleSummary).forEach(e=>{const n=this._styleSummary[e],s=i._styleSummary[e];(!n||s.time>n.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((u,h)=>{const b=Ws(u,!0);Object.keys(b).forEach(y=>{const w=b[y];"!"==w?i.add(y):w==ys&&e.add(y)}),n||(b.offset=h/this.duration),s.push(b)});const o=i.size?Vu(i.values()):[],r=e.size?Vu(e.values()):[];if(n){const u=s[0],h=Rr(u);u.offset=0,h.offset=1,s=[u,h]}return Of(this.element,s,o,r,this.duration,this.startTime,this.easing,!1)}}class nF extends Wu{constructor(i,e,n,s,o,r,u=!1){super(i,e,r.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=o,this._stretchStartingKeyframe=u,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],r=n+e,u=e/r,h=Ws(i[0],!1);h.offset=0,o.push(h);const b=Ws(i[0],!1);b.offset=Vw(u),o.push(b);const y=i.length-1;for(let w=1;w<=y;w++){let k=Ws(i[w],!1);k.offset=Vw((e+k.offset*n)/r),o.push(k)}n=r,e=0,s="",i=o}return Of(this.element,i,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function Vw(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class Ff{}class sF extends Ff{normalizePropertyName(i,e){return Ef(i)}normalizeStyleValue(i,e,n,s){let o="";const r=n.toString().trim();if(oF[e]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&0==u[1].length&&s.push(function ZA(t,i){return new oe(3005,Ze)}())}return r+o}}const oF=(()=>function rF(t){const i={};return t.forEach(e=>i[e]=!0),i}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Bw(t,i,e,n,s,o,r,u,h,b,y,w,k){return{type:0,element:t,triggerName:i,isRemovalTransition:s,fromState:e,fromStyles:o,toState:n,toStyles:r,timelines:u,queriedElements:h,preStyleProps:b,postStyleProps:y,totalTime:w,errors:k}}const Nf={};class Hw{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,s){return function aF(t,i,e,n,s){return t.some(o=>o(i,e,n,s))}(this.ast.matchers,i,e,n,s)}buildStyles(i,e,n){const s=this._stateStyles["*"],o=this._stateStyles[i],r=s?s.buildStyles(e,n):{};return o?o.buildStyles(e,n):r}build(i,e,n,s,o,r,u,h,b,y){const w=[],k=this.ast.options&&this.ast.options.params||Nf,L=this.buildStyles(n,u&&u.params||Nf,w),O=h&&h.params||Nf,N=this.buildStyles(s,O,w),G=new Set,P=new Map,J=new Map,se="void"===s,ke={params:Object.assign(Object.assign({},k),O)},mt=y?[]:Af(i,e,this.ast.animation,o,r,L,N,ke,b,w);let yt=0;if(mt.forEach(At=>{yt=Math.max(At.duration+At.delay,yt)}),w.length)return Bw(e,this._triggerName,n,s,se,L,N,[],[],P,J,yt,w);mt.forEach(At=>{const hn=At.element,Wr=ri(P,hn,{});At.preStyleProps.forEach(Wi=>Wr[Wi]=!0);const ks=ri(J,hn,{});At.postStyleProps.forEach(Wi=>ks[Wi]=!0),hn!==e&&G.add(hn)});const Ut=Vu(G.values());return Bw(e,this._triggerName,n,s,se,L,N,mt,Ut,P,J,yt)}}class lF{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const n={},s=Rr(this.defaultParams);return Object.keys(i).forEach(o=>{const r=i[o];null!=r&&(s[o]=r)}),this.styles.styles.forEach(o=>{if("string"!=typeof o){const r=o;Object.keys(r).forEach(u=>{let h=r[u];h.length>1&&(h=Nu(h,s,e));const b=this.normalizer.normalizePropertyName(u,e);h=this.normalizer.normalizeStyleValue(u,b,h,e),n[b]=h})}}),n}}class uF{constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new lF(s.style,s.options&&s.options.params||{},n)}),qw(this.states,"true","1"),qw(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new Hw(i,s,this.states))}),this.fallbackTransition=function dF(t,i,e){return new Hw(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(r,u)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,s){return this.transitionFactories.find(r=>r.match(i,e,n,s))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}}function qw(t,i,e){t.hasOwnProperty(i)?t.hasOwnProperty(e)||(t[e]=t[i]):t.hasOwnProperty(e)&&(t[i]=t[e])}const pF=new ju;class hF{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(i,e){const n=[],o=Rf(this._driver,e,n,[]);if(n.length)throw function gP(t){return new oe(3503,Ze)}();this._animations[i]=o}_buildPlayer(i,e,n){const s=i.element,o=vw(0,this._normalizer,0,i.keyframes,e,n);return this._driver.animate(s,o,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const s=[],o=this._animations[i];let r;const u=new Map;if(o?(r=Af(this._driver,e,o,Df,Ou,{},{},n,pF,s),r.forEach(y=>{const w=ri(u,y.element,{});y.postStyleProps.forEach(k=>w[k]=null)})):(s.push(function _P(){return new oe(3300,Ze)}()),r=[]),s.length)throw function bP(t){return new oe(3504,Ze)}();u.forEach((y,w)=>{Object.keys(y).forEach(k=>{y[k]=this._driver.computeStyle(w,k,ys)})});const b=$s(r.map(y=>{const w=u.get(y.element);return this._buildPlayer(y,{},w)}));return this._playersById[i]=b,b.onDestroy(()=>this.destroy(i)),this.players.push(b),b}destroy(i){const e=this._getPlayer(i);e.destroy(),delete this._playersById[i];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const e=this._playersById[i];if(!e)throw function vP(t){return new oe(3301,Ze)}();return e}listen(i,e,n,s){const o=wf(e,"","","");return Cf(this._getPlayer(i),n,o,s),()=>{}}command(i,e,n,s){if("register"==n)return void this.register(i,s[0]);if("create"==n)return void this.create(i,e,s[0]||{});const o=this._getPlayer(i);switch(n){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(s[0]));break;case"destroy":this.destroy(i)}}}const Gw="ng-animate-queued",Vf="ng-animate-disabled",bF=[],Uw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},vF={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ti="__ng_removed";class Bf{constructor(i,e=""){this.namespaceId=e;const n=i&&i.hasOwnProperty("value");if(this.value=function TF(t){return null!=t?t:null}(n?i.value:i),n){const o=Rr(i);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(i){const e=i.params;if(e){const n=this.options.params;Object.keys(e).forEach(s=>{null==n[s]&&(n[s]=e[s])})}}}const pl="void",Hf=new Bf(pl);class CF{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,Si(e,this._hostClassName)}listen(i,e,n,s){if(!this._triggers.hasOwnProperty(e))throw function CP(t,i){return new oe(3302,Ze)}();if(null==n||0==n.length)throw function yP(t){return new oe(3303,Ze)}();if(!function SF(t){return"start"==t||"done"==t}(n))throw function wP(t,i){return new oe(3400,Ze)}();const o=ri(this._elementListeners,i,[]),r={name:e,phase:n,callback:s};o.push(r);const u=ri(this._engine.statesByElement,i,{});return u.hasOwnProperty(e)||(Si(i,Au),Si(i,Au+"-"+e),u[e]=Hf),()=>{this._engine.afterFlush(()=>{const h=o.indexOf(r);h>=0&&o.splice(h,1),this._triggers[e]||delete u[e]})}}register(i,e){return!this._triggers[i]&&(this._triggers[i]=e,!0)}_getTrigger(i){const e=this._triggers[i];if(!e)throw function TP(t){return new oe(3401,Ze)}();return e}trigger(i,e,n,s=!0){const o=this._getTrigger(e),r=new qf(this.id,e,i);let u=this._engine.statesByElement.get(i);u||(Si(i,Au),Si(i,Au+"-"+e),this._engine.statesByElement.set(i,u={}));let h=u[e];const b=new Bf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&h&&b.absorbOptions(h.options),u[e]=b,h||(h=Hf),b.value!==pl&&h.value===b.value){if(!function MF(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let s=0;s{So(i,N),rs(i,G)})}return}const k=ri(this._engine.playersByElement,i,[]);k.forEach(O=>{O.namespaceId==this.id&&O.triggerName==e&&O.queued&&O.destroy()});let E=o.matchTransition(h.value,b.value,i,b.params),L=!1;if(!E){if(!s)return;E=o.fallbackTransition,L=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:E,fromState:h,toState:b,player:r,isFallbackTransition:L}),L||(Si(i,Gw),r.onStart(()=>{Lr(i,Gw)})),r.onDone(()=>{let O=this.players.indexOf(r);O>=0&&this.players.splice(O,1);const N=this._engine.playersByElement.get(i);if(N){let G=N.indexOf(r);G>=0&&N.splice(G,1)}}),this.players.push(r),k.push(r),r}deregister(i){delete this._triggers[i],this._engine.statesByElement.forEach((e,n)=>{delete e[i]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(s=>s.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){const n=this._engine.driver.query(i,Pu,!0);n.forEach(s=>{if(s[Ti])return;const o=this._engine.fetchNamespacesByElement(s);o.size?o.forEach(r=>r.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(i,e,n,s){const o=this._engine.statesByElement.get(i),r=new Map;if(o){const u=[];if(Object.keys(o).forEach(h=>{if(r.set(h,o[h].value),this._triggers[h]){const b=this.trigger(i,h,pl,s);b&&u.push(b)}}),u.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,r),n&&$s(u).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const s=new Set;e.forEach(o=>{const r=o.name;if(s.has(r))return;s.add(r);const h=this._triggers[r].fallbackTransition,b=n[r]||Hf,y=new Bf(pl),w=new qf(this.id,r,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:r,transition:h,fromState:b,toState:y,player:w,isFallbackTransition:!0})})}}removeNode(i,e){const n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let s=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(i):[];if(o&&o.length)s=!0;else{let r=i;for(;r=r.parentNode;)if(n.statesByElement.get(r)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(i),s)n.markElementAsRemoved(this.id,i,!1,e);else{const o=i[Ti];(!o||o===Uw)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Si(i,this._hostClassName)}drainQueuedTransitions(i){const e=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const o=n.element,r=this._elementListeners.get(o);r&&r.forEach(u=>{if(u.name==n.triggerName){const h=wf(o,n.triggerName,n.fromState.value,n.toState.value);h._data=i,Cf(n.player,u.phase,h,u.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(n)}),this._queue=[],e.sort((n,s)=>{const o=n.transition.ast.depCount,r=s.transition.ast.depCount;return 0==o||0==r?o-r:this._engine.driver.containsElement(n.element,s.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}elementContainsData(i){let e=!1;return this._elementListeners.has(i)&&(e=!0),e=!!this._queue.find(n=>n.element===i)||e,e}}class yF{constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,o)=>{}}_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}get queuedPlayers(){const i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const n=new CF(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const n=this._namespaceList,s=this.namespacesByHostElement,o=n.length-1;if(o>=0){let r=!1;if(void 0!==this.driver.getParentElement){let u=this.driver.getParentElement(e);for(;u;){const h=s.get(u);if(h){const b=n.indexOf(h);n.splice(b+1,0,i),r=!0;break}u=this.driver.getParentElement(u)}}else for(let u=o;u>=0;u--)if(this.driver.containsElement(n[u].hostElement,e)){n.splice(u+1,0,i),r=!0;break}r||n.unshift(i)}else n.push(i);return s.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let s=this._namespaceLookup[i];s&&s.register(e,n)&&this.totalAnimations++}destroy(i,e){if(!i)return;const n=this._fetchNamespace(i);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[i];const s=this._namespaceList.indexOf(n);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new Set,n=this.statesByElement.get(i);if(n){const s=Object.keys(n);for(let o=0;o=0&&this.collectedLeaveElements.splice(r,1)}if(i){const r=this._fetchNamespace(i);r&&r.insertNode(e,n)}s&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Si(i,Vf)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Lr(i,Vf))}removeNode(i,e,n,s){if(Ku(e)){const o=i?this._fetchNamespace(i):null;if(o?o.removeNode(e,s):this.markElementAsRemoved(i,e,!1,s),n){const r=this.namespacesByHostElement.get(e);r&&r.id!==i&&r.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(i,e,n,s,o){this.collectedLeaveElements.push(e),e[Ti]={namespaceId:i,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(i,e,n,s,o){return Ku(e)?this._fetchNamespace(i).listen(e,n,s,o):()=>{}}_buildInstruction(i,e,n,s,o){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,s,i.fromState.options,i.toState.options,e,o)}destroyInnerAnimations(i){let e=this.driver.query(i,Pu,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(i,Mf,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return $s(this.players).onDone(()=>i());i()})}processLeaveNode(i){var e;const n=i[Ti];if(n&&n.setForRemoval){if(i[Ti]=Uw,n.namespaceId){this.destroyInnerAnimations(i);const s=this._fetchNamespace(n.namespaceId);s&&s.clearElementCache(i)}this._onRemovalComplete(i,n.setForRemoval)}(null===(e=i.classList)||void 0===e?void 0:e.contains(Vf))&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,s)=>this._balanceNamespaceList(n,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?$s(e).onDone(()=>{n.forEach(s=>s())}):n.forEach(s=>s())}}reportError(i){throw function SP(t){return new oe(3402,Ze)}()}_flushAnimations(i,e){const n=new ju,s=[],o=new Map,r=[],u=new Map,h=new Map,b=new Map,y=new Set;this.disabledNodes.forEach(ae=>{y.add(ae);const fe=this.driver.query(ae,".ng-animate-queued",!0);for(let Te=0;Te{const Te=Df+O++;L.set(fe,Te),ae.forEach(rt=>Si(rt,Te))});const N=[],G=new Set,P=new Set;for(let ae=0;aeG.add(rt)):P.add(fe))}const J=new Map,se=$w(k,Array.from(G));se.forEach((ae,fe)=>{const Te=Ou+O++;J.set(fe,Te),ae.forEach(rt=>Si(rt,Te))}),i.push(()=>{E.forEach((ae,fe)=>{const Te=L.get(fe);ae.forEach(rt=>Lr(rt,Te))}),se.forEach((ae,fe)=>{const Te=J.get(fe);ae.forEach(rt=>Lr(rt,Te))}),N.forEach(ae=>{this.processLeaveNode(ae)})});const ke=[],mt=[];for(let ae=this._namespaceList.length-1;ae>=0;ae--)this._namespaceList[ae].drainQueuedTransitions(e).forEach(Te=>{const rt=Te.player,Cn=Te.element;if(ke.push(rt),this.collectedEnterElements.length){const $n=Cn[Ti];if($n&&$n.setForMove){if($n.previousTriggersValues&&$n.previousTriggersValues.has(Te.triggerName)){const Fo=$n.previousTriggersValues.get(Te.triggerName),to=this.statesByElement.get(Te.element);to&&to[Te.triggerName]&&(to[Te.triggerName].value=Fo)}return void rt.destroy()}}const us=!w||!this.driver.containsElement(w,Cn),ui=J.get(Cn),eo=L.get(Cn),zt=this._buildInstruction(Te,n,eo,ui,us);if(zt.errors&&zt.errors.length)return void mt.push(zt);if(us)return rt.onStart(()=>So(Cn,zt.fromStyles)),rt.onDestroy(()=>rs(Cn,zt.toStyles)),void s.push(rt);if(Te.isFallbackTransition)return rt.onStart(()=>So(Cn,zt.fromStyles)),rt.onDestroy(()=>rs(Cn,zt.toStyles)),void s.push(rt);const AS=[];zt.timelines.forEach($n=>{$n.stretchStartingKeyframe=!0,this.disabledNodes.has($n.element)||AS.push($n)}),zt.timelines=AS,n.append(Cn,zt.timelines),r.push({instruction:zt,player:rt,element:Cn}),zt.queriedElements.forEach($n=>ri(u,$n,[]).push(rt)),zt.preStyleProps.forEach(($n,Fo)=>{const to=Object.keys($n);if(to.length){let No=h.get(Fo);No||h.set(Fo,No=new Set),to.forEach(xg=>No.add(xg))}}),zt.postStyleProps.forEach(($n,Fo)=>{const to=Object.keys($n);let No=b.get(Fo);No||b.set(Fo,No=new Set),to.forEach(xg=>No.add(xg))})});if(mt.length){const ae=[];mt.forEach(fe=>{ae.push(function xP(t,i){return new oe(3505,Ze)}())}),ke.forEach(fe=>fe.destroy()),this.reportError(ae)}const yt=new Map,Ut=new Map;r.forEach(ae=>{const fe=ae.element;n.has(fe)&&(Ut.set(fe,fe),this._beforeAnimationBuild(ae.player.namespaceId,ae.instruction,yt))}),s.forEach(ae=>{const fe=ae.element;this._getPreviousPlayers(fe,!1,ae.namespaceId,ae.triggerName,null).forEach(rt=>{ri(yt,fe,[]).push(rt),rt.destroy()})});const At=N.filter(ae=>Kw(ae,h,b)),hn=new Map;jw(hn,this.driver,P,b,ys).forEach(ae=>{Kw(ae,h,b)&&At.push(ae)});const ks=new Map;E.forEach((ae,fe)=>{jw(ks,this.driver,new Set(ae),h,"!")}),At.forEach(ae=>{const fe=hn.get(ae),Te=ks.get(ae);hn.set(ae,Object.assign(Object.assign({},fe),Te))});const Wi=[],Kr=[],Qr={};r.forEach(ae=>{const{element:fe,player:Te,instruction:rt}=ae;if(n.has(fe)){if(y.has(fe))return Te.onDestroy(()=>rs(fe,rt.toStyles)),Te.disabled=!0,Te.overrideTotalTime(rt.totalTime),void s.push(Te);let Cn=Qr;if(Ut.size>1){let ui=fe;const eo=[];for(;ui=ui.parentNode;){const zt=Ut.get(ui);if(zt){Cn=zt;break}eo.push(ui)}eo.forEach(zt=>Ut.set(zt,Cn))}const us=this._buildAnimation(Te.namespaceId,rt,yt,o,ks,hn);if(Te.setRealPlayer(us),Cn===Qr)Wi.push(Te);else{const ui=this.playersByElement.get(Cn);ui&&ui.length&&(Te.parentPlayer=$s(ui)),s.push(Te)}}else So(fe,rt.fromStyles),Te.onDestroy(()=>rs(fe,rt.toStyles)),Kr.push(Te),y.has(fe)&&s.push(Te)}),Kr.forEach(ae=>{const fe=o.get(ae.element);if(fe&&fe.length){const Te=$s(fe);ae.setRealPlayer(Te)}}),s.forEach(ae=>{ae.parentPlayer?ae.syncPlayerEvents(ae.parentPlayer):ae.destroy()});for(let ae=0;ae!us.destroyed);Cn.length?xF(this,fe,Cn):this.processLeaveNode(fe)}return N.length=0,Wi.forEach(ae=>{this.players.push(ae),ae.onDone(()=>{ae.destroy();const fe=this.players.indexOf(ae);this.players.splice(fe,1)}),ae.play()}),Wi}elementContainsData(i,e){let n=!1;const s=e[Ti];return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(i).elementContainsData(e)||n}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,s,o){let r=[];if(e){const u=this.playersByQueriedElement.get(i);u&&(r=u)}else{const u=this.playersByElement.get(i);if(u){const h=!o||o==pl;u.forEach(b=>{b.queued||!h&&b.triggerName!=s||r.push(b)})}}return(n||s)&&(r=r.filter(u=>!(n&&n!=u.namespaceId||s&&s!=u.triggerName))),r}_beforeAnimationBuild(i,e,n){const o=e.element,r=e.isRemovalTransition?void 0:i,u=e.isRemovalTransition?void 0:e.triggerName;for(const h of e.timelines){const b=h.element,y=b!==o,w=ri(n,b,[]);this._getPreviousPlayers(b,y,r,u,e.toState).forEach(E=>{const L=E.getRealPlayer();L.beforeDestroy&&L.beforeDestroy(),E.destroy(),w.push(E)})}So(o,e.fromStyles)}_buildAnimation(i,e,n,s,o,r){const u=e.triggerName,h=e.element,b=[],y=new Set,w=new Set,k=e.timelines.map(L=>{const O=L.element;y.add(O);const N=O[Ti];if(N&&N.removedBeforeQueried)return new ul(L.duration,L.delay);const G=O!==h,P=function DF(t){const i=[];return Ww(t,i),i}((n.get(O)||bF).map(yt=>yt.getRealPlayer())).filter(yt=>!!yt.element&&yt.element===O),J=o.get(O),se=r.get(O),ke=vw(0,this._normalizer,0,L.keyframes,J,se),mt=this._buildPlayer(L,ke,P);if(L.subTimeline&&s&&w.add(O),G){const yt=new qf(i,u,O);yt.setRealPlayer(mt),b.push(yt)}return mt});b.forEach(L=>{ri(this.playersByQueriedElement,L.element,[]).push(L),L.onDone(()=>function wF(t,i,e){let n;if(t instanceof Map){if(n=t.get(i),n){if(n.length){const s=n.indexOf(e);n.splice(s,1)}0==n.length&&t.delete(i)}}else if(n=t[i],n){if(n.length){const s=n.indexOf(e);n.splice(s,1)}0==n.length&&delete t[i]}return n}(this.playersByQueriedElement,L.element,L))}),y.forEach(L=>Si(L,Iw));const E=$s(k);return E.onDestroy(()=>{y.forEach(L=>Lr(L,Iw)),rs(h,e.toStyles)}),w.forEach(L=>{ri(s,L,[]).push(E)}),E}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new ul(i.duration,i.delay)}}class qf{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new ul,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Cf(i,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){ri(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){const e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function Ku(t){return t&&1===t.nodeType}function zw(t,i){const e=t.style.display;return t.style.display=null!=i?i:"none",e}function jw(t,i,e,n,s){const o=[];e.forEach(h=>o.push(zw(h)));const r=[];n.forEach((h,b)=>{const y={};h.forEach(w=>{const k=y[w]=i.computeStyle(b,w,s);(!k||0==k.length)&&(b[Ti]=vF,r.push(b))}),t.set(b,y)});let u=0;return e.forEach(h=>zw(h,o[u++])),r}function $w(t,i){const e=new Map;if(t.forEach(u=>e.set(u,[])),0==i.length)return e;const s=new Set(i),o=new Map;function r(u){if(!u)return 1;let h=o.get(u);if(h)return h;const b=u.parentNode;return h=e.has(b)?b:s.has(b)?1:r(b),o.set(u,h),h}return i.forEach(u=>{const h=r(u);1!==h&&e.get(h).push(u)}),e}function Si(t,i){var e;null===(e=t.classList)||void 0===e||e.add(i)}function Lr(t,i){var e;null===(e=t.classList)||void 0===e||e.remove(i)}function xF(t,i,e){$s(e).onDone(()=>t.processLeaveNode(i))}function Ww(t,i){for(let e=0;es.add(o)):i.set(t,n),e.delete(t),!0}class Qu{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,o)=>{},this._transitionEngine=new yF(i,e,n),this._timelineEngine=new hF(i,e,n),this._transitionEngine.onRemovalComplete=(s,o)=>this.onRemovalComplete(s,o)}registerTrigger(i,e,n,s,o){const r=i+"-"+s;let u=this._triggerCache[r];if(!u){const h=[],y=Rf(this._driver,o,h,[]);if(h.length)throw function mP(t,i){return new oe(3404,Ze)}();u=function cF(t,i,e){return new uF(t,i,e)}(s,y,this._normalizer),this._triggerCache[r]=u}this._transitionEngine.registerTrigger(e,s,u)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,s){this._transitionEngine.insertNode(i,e,n,s)}onRemove(i,e,n,s){this._transitionEngine.removeNode(i,e,s||!1,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,s){if("@"==n.charAt(0)){const[o,r]=Cw(n);this._timelineEngine.command(o,e,r,s)}else this._transitionEngine.trigger(i,e,n,s)}listen(i,e,n,s,o){if("@"==n.charAt(0)){const[r,u]=Cw(n);return this._timelineEngine.listen(r,e,u,o)}return this._transitionEngine.listen(i,e,n,s,o)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let IF=(()=>{class t{constructor(e,n,s){this._element=e,this._startStyles=n,this._endStyles=s,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o={}),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&rs(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(rs(this._element,this._initialStyles),this._endStyles&&(rs(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(So(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(So(this._element,this._endStyles),this._endStyles=null),rs(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Gf(t){let i=null;const e=Object.keys(t);for(let n=0;ni()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(i,e,n){return i.animate(e,n)}onStart(i){this._onStartFns.push(i)}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}setPosition(i){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const i={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(n=>{"offset"!=n&&(i[n]=this._finished?e[n]:Aw(this.element,n))})}this.currentSnapshot=i}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class RF{validateStyleProperty(i){return Sw(i)}matchesElement(i,e){return!1}containsElement(i,e){return xw(i,e)}getParentElement(i){return Sf(i)}query(i,e,n){return Dw(i,e,n)}computeStyle(i,e,n){return window.getComputedStyle(i)[e]}animate(i,e,n,s,o,r=[]){const h={duration:n,delay:s,fill:0==s?"both":"forwards"};o&&(h.easing=o);const b={},y=r.filter(k=>k instanceof Qw);(function PP(t,i){return 0===t||0===i})(n,s)&&y.forEach(k=>{let E=k.currentSnapshot;Object.keys(E).forEach(L=>b[L]=E[L])}),e=function FP(t,i,e){const n=Object.keys(e);if(n.length&&i.length){let o=i[0],r=[];if(n.forEach(u=>{o.hasOwnProperty(u)||r.push(u),o[u]=e[u]}),r.length)for(var s=1;sWs(k,!1)),b);const w=function kF(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=Gf(i[0]),i.length>1&&(n=Gf(i[i.length-1]))):i&&(e=Gf(i)),e||n?new IF(t,e,n):null}(i,e);return new Qw(i,e,h,w)}}let LF=(()=>{class t extends hw{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:ki.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?mw(e):e;return Jw(this._renderer,null,n,"register",[s]),new OF(n,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(K(Ha),K(en))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class OF extends class zA{}{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return new AF(this._id,i,e||{},this._renderer)}}class AF{constructor(i,e,n,s){this.id=i,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return Jw(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){this._listen("start",i)}onDestroy(i){this._listen("destroy",i)}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(i){this._command("setPosition",i)}getPosition(){var i,e;return null!==(e=null===(i=this._renderer.engine.players[+this.id])||void 0===i?void 0:i.getPosition())&&void 0!==e?e:0}}function Jw(t,i,e,n,s){return t.setProperty(i,`@@${e}:${n}`,s)}const Yw="@.disabled";let PF=(()=>{class t{constructor(e,n,s){this.delegate=e,this.engine=n,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=(o,r)=>{const u=null==r?void 0:r.parentNode(o);u&&r.removeChild(u,o)}}createRenderer(e,n){const o=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let y=this._rendererCache.get(o);return y||(y=new Zw("",o,this.engine),this._rendererCache.set(o,y)),y}const r=n.id,u=n.id+"-"+this._currentId;this._currentId++,this.engine.register(u,e);const h=y=>{Array.isArray(y)?y.forEach(h):this.engine.registerTrigger(r,u,e,y.name,y)};return n.data.animation.forEach(h),new FF(this,u,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,s){e>=0&&en(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[r,u]=o;r(u)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,s]))}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 t.\u0275fac=function(e){return new(e||t)(K(Ha),K(Qu),K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class Zw{constructor(i,e,n){this.namespaceId=i,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,s=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,s)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,s){this.delegate.setAttribute(i,e,n,s)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,s){this.delegate.setStyle(i,e,n,s)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==Yw?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class FF extends Zw{constructor(i,e,n,s){super(e,n,s),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==Yw?this.disableAnimations(i,n=void 0===n||!!n):this.engine.process(this.namespaceId,i,e.substr(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const s=function NF(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(i);let o=e.substr(1),r="";return"@"!=o.charAt(0)&&([o,r]=function VF(t){const i=t.indexOf(".");return[t.substring(0,i),t.substr(i+1)]}(o)),this.engine.listen(this.namespaceId,s,o,r,u=>{this.factory.scheduleListenerCallback(u._data||-1,n,u)})}return this.delegate.listen(i,e,n)}}let BF=(()=>{class t extends Qu{constructor(e,n,s){super(e.body,n,s)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(K(en),K(xf),K(Ff))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const Xw=new be("AnimationModuleType"),eT=[{provide:hw,useClass:LF},{provide:Ff,useFactory:function HF(){return new sF}},{provide:Qu,useClass:BF},{provide:Ha,useFactory:function qF(t,i,e){return new PF(t,i,e)},deps:[lu,Qu,nt]}],tT=[{provide:xf,useFactory:()=>new RF},{provide:Xw,useValue:"BrowserAnimations"},...eT],GF=[{provide:xf,useClass:Mw},{provide:Xw,useValue:"NoopAnimations"},...eT];let UF=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?GF:tT}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:tT,imports:[qy]}),t})();class Z{static equals(i,e,n){return n?this.resolveFieldData(i,n)===this.resolveFieldData(e,n):this.equalsByValue(i,e)}static equalsByValue(i,e){if(i===e)return!0;if(i&&e&&"object"==typeof i&&"object"==typeof e){var o,r,u,n=Array.isArray(i),s=Array.isArray(e);if(n&&s){if((r=i.length)!=e.length)return!1;for(o=r;0!=o--;)if(!this.equalsByValue(i[o],e[o]))return!1;return!0}if(n!=s)return!1;var h=i instanceof Date,b=e instanceof Date;if(h!=b)return!1;if(h&&b)return i.getTime()==e.getTime();var y=i instanceof RegExp,w=e instanceof RegExp;if(y!=w)return!1;if(y&&w)return i.toString()==e.toString();var k=Object.keys(i);if((r=k.length)!==Object.keys(e).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,k[o]))return!1;for(o=r;0!=o--;)if(!this.equalsByValue(i[u=k[o]],e[u]))return!1;return!0}return i!=i&&e!=e}static resolveFieldData(i,e){if(i&&e){if(this.isFunction(e))return e(i);if(-1==e.indexOf("."))return i[e];{let n=e.split("."),s=i;for(let o=0,r=n.length;o=i.length&&(n%=i.length,e%=i.length),i.splice(n,0,i.splice(e,1)[0]))}static insertIntoOrderedArray(i,e,n,s){if(n.length>0){let o=!1;for(let r=0;re){n.splice(r,0,i),o=!0;break}o||n.push(i)}else n.push(i)}static findIndexInList(i,e){let n=-1;if(e)for(let s=0;s-1&&(i=i.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),i}static isEmpty(i){return null==i||""===i||Array.isArray(i)&&0===i.length||!(i instanceof Date)&&"object"==typeof i&&0===Object.keys(i).length}static isNotEmpty(i){return!this.isEmpty(i)}}var nT=0;function hl(){return"pr_id_"+ ++nT}var dt=function zF(){let t=[];const s=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:s,set:(o,r,u)=>{r&&(r.style.zIndex=String(((o,r)=>{let u=t.length>0?t[t.length-1]:{key:o,value:r},h=u.value+(u.key===o?0:r)+1;return t.push({key:o,value:h}),h})(o,u)))},clear:o=>{o&&((o=>{t=t.filter(r=>r.value!==o)})(s(o)),o.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const iT=["*"];let bt=(()=>{class t{}return t.STARTS_WITH="startsWith",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.ENDS_WITH="endsWith",t.EQUALS="equals",t.NOT_EQUALS="notEquals",t.IN="in",t.LESS_THAN="lt",t.LESS_THAN_OR_EQUAL_TO="lte",t.GREATER_THAN="gt",t.GREATER_THAN_OR_EQUAL_TO="gte",t.BETWEEN="between",t.IS="is",t.IS_NOT="isNot",t.BEFORE="before",t.AFTER="after",t.DATE_IS="dateIs",t.DATE_IS_NOT="dateIsNot",t.DATE_BEFORE="dateBefore",t.DATE_AFTER="dateAfter",t})(),zn=(()=>{class t{constructor(){this.ripple=!1,this.filterMatchModeOptions={text:[bt.STARTS_WITH,bt.CONTAINS,bt.NOT_CONTAINS,bt.ENDS_WITH,bt.EQUALS,bt.NOT_EQUALS],numeric:[bt.EQUALS,bt.NOT_EQUALS,bt.LESS_THAN,bt.LESS_THAN_OR_EQUAL_TO,bt.GREATER_THAN,bt.GREATER_THAN_OR_EQUAL_TO],date:[bt.DATE_IS,bt.DATE_IS_NOT,bt.DATE_BEFORE,bt.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100},this.translationSource=new ct,this.translationObserver=this.translationSource.asObservable()}getTranslation(e){return this.translation[e]}setTranslation(e){this.translation=Object.assign(Object.assign({},this.translation),e),this.translationSource.next(this.translation)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Nt=(()=>{class t{}return t.STARTS_WITH="startsWith",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.ENDS_WITH="endsWith",t.EQUALS="equals",t.NOT_EQUALS="notEquals",t.NO_FILTER="noFilter",t.LT="lt",t.LTE="lte",t.GT="gt",t.GTE="gte",t.IS="is",t.IS_NOT="isNot",t.BEFORE="before",t.AFTER="after",t.CLEAR="clear",t.APPLY="apply",t.MATCH_ALL="matchAll",t.MATCH_ANY="matchAny",t.ADD_RULE="addRule",t.REMOVE_RULE="removeRule",t.ACCEPT="accept",t.REJECT="reject",t.CHOOSE="choose",t.UPLOAD="upload",t.CANCEL="cancel",t.DAY_NAMES="dayNames",t.DAY_NAMES_SHORT="dayNamesShort",t.DAY_NAMES_MIN="dayNamesMin",t.MONTH_NAMES="monthNames",t.MONTH_NAMES_SHORT="monthNamesShort",t.FIRST_DAY_OF_WEEK="firstDayOfWeek",t.TODAY="today",t.WEEK_HEADER="weekHeader",t.WEAK="weak",t.MEDIUM="medium",t.STRONG="strong",t.PASSWORD_PROMPT="passwordPrompt",t.EMPTY_MESSAGE="emptyMessage",t.EMPTY_FILTER_MESSAGE="emptyFilterMessage",t})(),ml=(()=>{class t{constructor(){this.filters={startsWith:(e,n,s)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let o=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return Z.removeAccents(e.toString()).toLocaleLowerCase(s).slice(0,o.length)===o},contains:(e,n,s)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let o=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return-1!==Z.removeAccents(e.toString()).toLocaleLowerCase(s).indexOf(o)},notContains:(e,n,s)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let o=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return-1===Z.removeAccents(e.toString()).toLocaleLowerCase(s).indexOf(o)},endsWith:(e,n,s)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let o=Z.removeAccents(n.toString()).toLocaleLowerCase(s),r=Z.removeAccents(e.toString()).toLocaleLowerCase(s);return-1!==r.indexOf(o,r.length-o.length)},equals:(e,n,s)=>null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Z.removeAccents(e.toString()).toLocaleLowerCase(s)==Z.removeAccents(n.toString()).toLocaleLowerCase(s)),notEquals:(e,n,s)=>!(null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Z.removeAccents(e.toString()).toLocaleLowerCase(s)==Z.removeAccents(n.toString()).toLocaleLowerCase(s))),in:(e,n)=>{if(null==n||0===n.length)return!0;for(let s=0;snull==n||null==n[0]||null==n[1]||null!=e&&(e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]),lt:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n),gt:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>n.getTime():e>n),gte:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n),is:(e,n,s)=>this.filters.equals(e,n,s),isNot:(e,n,s)=>this.filters.notEquals(e,n,s),before:(e,n,s)=>this.filters.lt(e,n,s),after:(e,n,s)=>this.filters.gt(e,n,s),dateIs:(e,n)=>null==n||null!=e&&e.toDateString()===n.toDateString(),dateIsNot:(e,n)=>null==n||null!=e&&e.toDateString()!==n.toDateString(),dateBefore:(e,n)=>null==n||null!=e&&e.getTime()null==n||null!=e&&e.getTime()>n.getTime()}}filter(e,n,s,o,r){let u=[];if(e)for(let h of e)for(let b of n){let y=Z.resolveFieldData(h,b);if(this.filters[o](y,s,r)){u.push(h);break}}return u}register(e,n){this.filters[e]=n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Gi=(()=>{class t{constructor(){this.messageSource=new ct,this.clearSource=new ct,this.messageObserver=this.messageSource.asObservable(),this.clearObserver=this.clearSource.asObservable()}add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Ks=(()=>{class t{constructor(){this.clickSource=new ct,this.clickObservable=this.clickSource.asObservable()}add(e){e&&this.clickSource.next(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),fl=(()=>{class t{}return t.AND="and",t.OR="or",t})(),Or=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-header"]],ngContentSelectors:iT,decls:1,vars:0,template:function(e,n){1&e&&(Sn(),xt(0))},encapsulation:2}),t})(),gl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-footer"]],ngContentSelectors:iT,decls:1,vars:0,template:function(e,n){1&e&&(Sn(),xt(0))},encapsulation:2}),t})(),ne=(()=>{class t{constructor(e){this.template=e}getType(){return this.name}}return t.\u0275fac=function(e){return new(e||t)(D(bi))},t.\u0275dir=le({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),t})(),Vt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function jF(t,i){if(1&t&&(l(0,"span",9),g(1),c()),2&t){const e=p();a(1),T(" ",e.header," ")}}function $F(t,i){1&t&&Y(0)}function WF(t,i){1&t&&xt(0,1,["*ngIf","hasHeaderFacet"])}function KF(t,i){1&t&&Y(0)}function QF(t,i){if(1&t&&(de(0),_(1,KF,1,0,"ng-container",5),pe()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.contentTemplate)}}const JF=["*",[["p-header"]]],YF=function(t){return{"p-accordion-tab-active":t}},ZF=function(t,i){return{"p-highlight":t,"p-disabled":i}},sT=function(t){return{transitionParams:t}},XF=function(t){return{value:"visible",params:t}},eN=function(t){return{value:"hidden",params:t}},tN=["*","p-header"],nN=["*"];let iN=0,Ts=(()=>{class t{constructor(e,n){this.changeDetector=n,this.cache=!0,this.selectedChange=new H,this.transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)",this.id="p-accordiontab-"+iN++,this.accordion=e}get selected(){return this._selected}set selected(e){this._selected=e,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.changeDetector.detectChanges())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template}})}toggle(e){if(this.disabled)return!1;let n=this.findTabIndex();if(this.selected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:n});else{if(!this.accordion.multiple)for(var s=0;s0}onKeydown(e){(32===e.which||13===e.which)&&(this.toggle(e),e.preventDefault())}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1)}}return t.\u0275fac=function(e){return new(e||t)(D(je(()=>Ss)),D(ot))},t.\u0275cmp=z({type:t,selectors:[["p-accordionTab"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Or,4),st(s,ne,4)),2&e){let o;V(o=B())&&(n.headerFacet=o),V(o=B())&&(n.templates=o)}},hostAttrs:[1,"p-element"],inputs:{header:"header",disabled:"disabled",cache:"cache",transitionOptions:"transitionOptions",selected:"selected"},outputs:{selectedChange:"selectedChange"},ngContentSelectors:tN,decls:11,vars:28,consts:[[1,"p-accordion-tab",3,"ngClass"],[1,"p-accordion-header",3,"ngClass"],["role","tab",1,"p-accordion-header-link",3,"click","keydown"],[1,"p-accordion-toggle-icon",3,"ngClass"],["class","p-accordion-header-text",4,"ngIf"],[4,"ngTemplateOutlet"],[4,"ngIf"],["role","region",1,"p-toggleable-content"],[1,"p-accordion-content"],[1,"p-accordion-header-text"]],template:function(e,n){1&e&&(Sn(JF),l(0,"div",0)(1,"div",1)(2,"a",2),C("click",function(o){return n.toggle(o)})("keydown",function(o){return n.onKeydown(o)}),M(3,"span",3),_(4,jF,2,1,"span",4),_(5,$F,1,0,"ng-container",5),_(6,WF,1,0,"ng-content",6),c()(),l(7,"div",7)(8,"div",8),xt(9),_(10,QF,2,1,"ng-container",6),c()()()),2&e&&(d("ngClass",U(15,YF,n.selected)),a(1),d("ngClass",Ge(17,ZF,n.selected,n.disabled)),a(1),ie("tabindex",n.disabled?null:0)("id",n.id)("aria-controls",n.id+"-content")("aria-expanded",n.selected),a(1),d("ngClass",n.selected?n.accordion.collapseIcon:n.accordion.expandIcon),a(1),d("ngIf",!n.hasHeaderFacet),a(1),d("ngTemplateOutlet",n.headerTemplate),a(1),d("ngIf",n.hasHeaderFacet),a(1),d("@tabContent",n.selected?U(22,XF,U(20,sT,n.transitionOptions)):U(26,eN,U(24,sT,n.transitionOptions))),ie("id",n.id+"-content")("aria-hidden",!n.selected)("aria-labelledby",n.id),a(3),d("ngIf",n.contentTemplate&&(n.cache?n.loaded:n.selected)))},directives:[Le,Q,Rt],styles:[".p-accordion-header-link{cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("tabContent",[ws("hidden",it({height:"0",overflow:"hidden"})),ws("visible",it({height:"*"})),Lt("visible <=> hidden",[it({overflow:"hidden"}),kt("{{transitionParams}}")]),Lt("void => *",kt(0))])]},changeDetection:0}),t})(),Ss=(()=>{class t{constructor(e,n){this.el=e,this.changeDetector=n,this.onClose=new H,this.onOpen=new H,this.expandIcon="pi pi-fw pi-chevron-right",this.collapseIcon="pi pi-fw pi-chevron-down",this.activeIndexChange=new H,this.tabs=[]}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(e=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.updateSelectionState(),this.changeDetector.markForCheck()}getBlockableElement(){return this.el.nativeElement.children[0]}get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.updateSelectionState()}updateSelectionState(){if(this.tabs&&this.tabs.length&&null!=this._activeIndex)for(let e=0;e{if(n.selected){if(!this.multiple)return void(e=s);e.push(s)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(ot))},t.\u0275cmp=z({type:t,selectors:[["p-accordion"]],contentQueries:function(e,n,s){if(1&e&&st(s,Ts,4),2&e){let o;V(o=B())&&(n.tabList=o)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",activeIndex:"activeIndex"},outputs:{onClose:"onClose",onOpen:"onOpen",activeIndexChange:"activeIndexChange"},ngContentSelectors:nN,decls:2,vars:4,consts:[["role","tablist",3,"ngClass","ngStyle"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0),xt(1),c()),2&e&&(me(n.styleClass),d("ngClass","p-accordion p-component")("ngStyle",n.style))},directives:[Le,lt],encapsulation:2,changeDetection:0}),t})(),sN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe],Vt]}),t})(),R=(()=>{class t{static addClass(e,n){e.classList?e.classList.add(n):e.className+=" "+n}static addMultipleClasses(e,n){if(e.classList){let s=n.trim().split(" ");for(let o=0;ou.height?(h=-1*s.height,e.style.transformOrigin="bottom",r.top+h<0&&(h=-1*r.top)):(h=o,e.style.transformOrigin="top"),b=s.width>u.width?-1*r.left:r.left+s.width>u.width?-1*(r.left+s.width-u.width):0,e.style.top=h+"px",e.style.left=b+"px"}static absolutePosition(e,n){let E,L,s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=s.height,r=s.width,u=n.offsetHeight,h=n.offsetWidth,b=n.getBoundingClientRect(),y=this.getWindowScrollTop(),w=this.getWindowScrollLeft(),k=this.getViewport();b.top+u+o>k.height?(E=b.top+y-o,e.style.transformOrigin="bottom",E<0&&(E=y)):(E=u+b.top+y,e.style.transformOrigin="top"),L=b.left+r>k.width?Math.max(0,b.left+w+h-r):b.left+w,e.style.top=E+"px",e.style.left=L+"px"}static getParents(e,n=[]){return null===e.parentNode?n:this.getParents(e.parentNode,n.concat([e.parentNode]))}static getScrollableParents(e){let n=[];if(e){let s=this.getParents(e);const o=/(auto|scroll)/,r=u=>{let h=window.getComputedStyle(u,null);return o.test(h.getPropertyValue("overflow"))||o.test(h.getPropertyValue("overflowX"))||o.test(h.getPropertyValue("overflowY"))};for(let u of s){let h=1===u.nodeType&&u.dataset.scrollselectors;if(h){let b=h.split(",");for(let y of b){let w=this.findSingle(u,y);w&&r(w)&&n.push(w)}}9!==u.nodeType&&r(u)&&n.push(u)}}return n}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementDimensions(e){let n={};return e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}static scrollInView(e,n){let s=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=s?parseFloat(s):0,r=getComputedStyle(e).getPropertyValue("paddingTop"),u=r?parseFloat(r):0,h=e.getBoundingClientRect(),y=n.getBoundingClientRect().top+document.body.scrollTop-(h.top+document.body.scrollTop)-o-u,w=e.scrollTop,k=e.clientHeight,E=this.getOuterHeight(n);y<0?e.scrollTop=w+y:y+E>k&&(e.scrollTop=w+y-k+E)}static fadeIn(e,n){e.style.opacity=0;let s=+new Date,o=0,r=function(){o=+e.style.opacity.replace(",",".")+((new Date).getTime()-s)/n,e.style.opacity=o,s=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(r)||setTimeout(r,16))};r()}static fadeOut(e,n){var s=1,u=50/n;let h=setInterval(()=>{(s-=u)<=0&&(s=0,clearInterval(h)),e.style.opacity=s},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,n){var s=Element.prototype;return(s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.msMatchesSelector||function(r){return-1!==[].indexOf.call(document.querySelectorAll(r),this)}).call(e,n)}static getOuterWidth(e,n){let s=e.offsetWidth;if(n){let o=getComputedStyle(e);s+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return s}static getHorizontalPadding(e){let n=getComputedStyle(e);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static getHorizontalMargin(e){let n=getComputedStyle(e);return parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(e){let n=e.offsetWidth,s=getComputedStyle(e);return n+=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),n}static width(e){let n=e.offsetWidth,s=getComputedStyle(e);return n-=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),n}static getInnerHeight(e){let n=e.offsetHeight,s=getComputedStyle(e);return n+=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),n}static getOuterHeight(e,n){let s=e.offsetHeight;if(n){let o=getComputedStyle(e);s+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return s}static getHeight(e){let n=e.offsetHeight,s=getComputedStyle(e);return n-=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),n}static getWidth(e){let n=e.offsetWidth,s=getComputedStyle(e);return n-=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight)+parseFloat(s.borderLeftWidth)+parseFloat(s.borderRightWidth),n}static getViewport(){let e=window,n=document,s=n.documentElement,o=n.getElementsByTagName("body")[0];return{width:e.innerWidth||s.clientWidth||o.clientWidth,height:e.innerHeight||s.clientHeight||o.clientHeight}}static getOffset(e){var n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,n){let s=e.parentNode;if(!s)throw"Can't replace element";return s.replaceChild(n,e)}static getUserAgent(){return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,n){if(this.isElement(n))n.appendChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot append "+n+" to "+e;n.el.nativeElement.appendChild(e)}}static removeChild(e,n){if(this.isElement(n))n.removeChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot remove "+e+" from "+n;n.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let n=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);let s=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=s,s}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=n,n}static invokeElementMethod(e,n,s){e[n].apply(e,s)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),n=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:n[1]||"",version:n[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return null===e.offsetParent}static getFocusableElements(e){let n=t.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),s=[];for(let o of n)"none"!=getComputedStyle(o).display&&"hidden"!=getComputedStyle(o).visibility&&s.push(o);return s}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}}return t.zindex=1e3,t.calculatedScrollbarWidth=null,t.calculatedScrollbarHeight=null,t})();class Qs{constructor(i,e=(()=>{})){this.element=i,this.listener=e}bindScrollListener(){this.scrollableParents=R.getScrollableParents(this.element);for(let i=0;i{class t{constructor(e,n,s){this.el=e,this.zone=n,this.config=s}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(e){let n=this.getInk();if(!n||"none"===getComputedStyle(n,null).display)return;if(R.removeClass(n,"p-ink-active"),!R.getHeight(n)&&!R.getWidth(n)){let u=Math.max(R.getOuterWidth(this.el.nativeElement),R.getOuterHeight(this.el.nativeElement));n.style.height=u+"px",n.style.width=u+"px"}let s=R.getOffset(this.el.nativeElement),o=e.pageX-s.left+document.body.scrollTop-R.getWidth(n)/2,r=e.pageY-s.top+document.body.scrollLeft-R.getHeight(n)/2;n.style.top=r+"px",n.style.left=o+"px",R.addClass(n,"p-ink-active")}getInk(){for(let e=0;e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function oN(t,i){1&t&&Y(0)}const rN=function(t,i,e,n){return{"p-button-icon":!0,"p-button-icon-left":t,"p-button-icon-right":i,"p-button-icon-top":e,"p-button-icon-bottom":n}};function aN(t,i){if(1&t&&M(0,"span",4),2&t){const e=p();me(e.loading?"p-button-loading-icon "+e.loadingIcon:e.icon),d("ngClass",Ln(4,rN,"left"===e.iconPos&&e.label,"right"===e.iconPos&&e.label,"top"===e.iconPos&&e.label,"bottom"===e.iconPos&&e.label)),ie("aria-hidden",!0)}}function lN(t,i){if(1&t&&(l(0,"span",5),g(1),c()),2&t){const e=p();ie("aria-hidden",e.icon&&!e.label),a(1),S(e.label||"\xa0")}}function cN(t,i){if(1&t&&(l(0,"span",4),g(1),c()),2&t){const e=p();me(e.badgeClass),d("ngClass",e.badgeStyleClass()),a(1),S(e.badge)}}const uN=function(t,i,e,n,s){return{"p-button p-component":!0,"p-button-icon-only":t,"p-button-vertical":i,"p-disabled":e,"p-button-loading":n,"p-button-loading-label-only":s}},dN=["*"];let An=(()=>{class t{constructor(e){this.el=e,this.iconPos="left",this.loadingIcon="pi pi-spinner pi-spin",this._loading=!1}ngAfterViewInit(){this._initialStyleClass=this.el.nativeElement.className,R.addMultipleClasses(this.el.nativeElement,this.getStyleClass()),(this.icon||this.loading)&&this.createIconEl();let e=document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",this.label?e.appendChild(document.createTextNode(this.label)):e.innerHTML=" ",this.el.nativeElement.appendChild(e),this.initialized=!0}getStyleClass(){let e="p-button p-component";return this.icon&&!this.label&&(e+=" p-button-icon-only"),this.loading&&(e+=" p-disabled p-button-loading",!this.icon&&this.label&&(e+=" p-button-loading-label-only")),e}setStyleClass(){let e=this.getStyleClass();this.el.nativeElement.className=e+" "+this._initialStyleClass}createIconEl(){let e=document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let n=this.label?"p-button-icon-"+this.iconPos:null;n&&R.addClass(e,n);let s=this.getIconClass();s&&R.addMultipleClasses(e,s);let o=R.findSingle(this.el.nativeElement,".p-button-label");o?this.el.nativeElement.insertBefore(e,o):this.el.nativeElement.appendChild(e)}getIconClass(){return this.loading?"p-button-loading-icon "+this.loadingIcon:this._icon}setIconClass(){let e=R.findSingle(this.el.nativeElement,".p-button-icon");e?e.className=this.iconPos?"p-button-icon p-button-icon-"+this.iconPos+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIconEl()}removeIconElement(){let e=R.findSingle(this.el.nativeElement,".p-button-icon");this.el.nativeElement.removeChild(e)}get label(){return this._label}set label(e){this._label=e,this.initialized&&(R.findSingle(this.el.nativeElement,".p-button-label").textContent=this._label||" ",(this.loading||this.icon)&&this.setIconClass(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.setIconClass(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.loading||this.icon?this.setIconClass():this.removeIconElement(),this.setStyleClass())}ngOnDestroy(){this.initialized=!1}}return t.\u0275fac=function(e){return new(e||t)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),t})(),Ce=(()=>{class t{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi pi-spinner pi-spin",this.onClick=new H,this.onFocus=new H,this.onBlur=new H}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-button"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let o;V(o=B())&&(n.templates=o)}},hostAttrs:[1,"p-element"],inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:"disabled",loading:"loading",loadingIcon:"loadingIcon",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:dN,decls:6,vars:17,consts:[["pRipple","",3,"ngStyle","disabled","ngClass","click","focus","blur"],[4,"ngTemplateOutlet"],[3,"ngClass","class",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(e,n){1&e&&(Sn(),l(0,"button",0),C("click",function(o){return n.onClick.emit(o)})("focus",function(o){return n.onFocus.emit(o)})("blur",function(o){return n.onBlur.emit(o)}),xt(1),_(2,oN,1,0,"ng-container",1),_(3,aN,1,9,"span",2),_(4,lN,2,2,"span",3),_(5,cN,2,4,"span",2),c()),2&e&&(me(n.styleClass),d("ngStyle",n.style)("disabled",n.disabled||n.loading)("ngClass",ho(11,uN,n.icon&&!n.label,("top"===n.iconPos||"bottom"===n.iconPos)&&n.label,n.disabled||n.loading,n.loading,n.loading&&!n.icon&&n.label)),ie("type",n.type)("aria-label",n.ariaLabel),a(2),d("ngTemplateOutlet",n.contentTemplate),a(1),d("ngIf",!n.contentTemplate&&(n.icon||n.loading)),a(1),d("ngIf",!n.contentTemplate),a(1),d("ngIf",!n.contentTemplate&&n.badge))},directives:[vt,lt,Le,Rt,Q],encapsulation:2,changeDetection:0}),t})(),_l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();const pN=["container"],hN=["inputfield"],mN=["contentWrapper"];function fN(t,i){if(1&t){const e=I();l(0,"i",8),C("click",function(){return v(e),p(2).clear()}),c()}}function gN(t,i){if(1&t){const e=I();l(0,"button",9),C("click",function(s){v(e),p();const o=F(1);return p().onButtonClick(s,o)}),c()}if(2&t){const e=p(2);d("icon",e.icon)("disabled",e.disabled),ie("aria-label",e.iconAriaLabel)}}function _N(t,i){if(1&t){const e=I();l(0,"input",4,5),C("focus",function(s){return v(e),p().onInputFocus(s)})("keydown",function(s){return v(e),p().onInputKeydown(s)})("click",function(){return v(e),p().onInputClick()})("blur",function(s){return v(e),p().onInputBlur(s)})("input",function(s){return v(e),p().onUserInput(s)}),c(),_(2,fN,1,0,"i",6),_(3,gN,1,3,"button",7)}if(2&t){const e=p();me(e.inputStyleClass),d("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext p-component"),ie("id",e.inputId)("name",e.name)("required",e.required)("aria-required",e.required)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null)("aria-labelledby",e.ariaLabelledBy),a(2),d("ngIf",e.showClear&&!e.disabled&&null!=e.value),a(1),d("ngIf",e.showIcon)}}function bN(t,i){1&t&&Y(0)}function vN(t,i){if(1&t){const e=I();l(0,"button",30),C("keydown",function(s){return v(e),p(4).onContainerButtonKeydown(s)})("click",function(s){return v(e),p(4).onPrevButtonClick(s)}),M(1,"span",31),c()}}function CN(t,i){if(1&t){const e=I();l(0,"button",32),C("click",function(s){return v(e),p(4).switchToMonthView(s)})("keydown",function(s){return v(e),p(4).onContainerButtonKeydown(s)}),g(1),c()}if(2&t){const e=p().$implicit,n=p(3);d("disabled",n.switchViewButtonDisabled()),a(1),T(" ",n.getMonthName(e.month)," ")}}function yN(t,i){if(1&t){const e=I();l(0,"button",33),C("click",function(s){return v(e),p(4).switchToYearView(s)})("keydown",function(s){return v(e),p(4).onContainerButtonKeydown(s)}),g(1),c()}if(2&t){const e=p().$implicit,n=p(3);d("disabled",n.switchViewButtonDisabled()),a(1),T(" ",n.getYear(e)," ")}}function wN(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=p(5);a(1),We("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function TN(t,i){1&t&&Y(0)}const oT=function(t){return{$implicit:t}};function SN(t,i){if(1&t&&(l(0,"span",34),_(1,wN,2,2,"ng-container",13),_(2,TN,1,0,"ng-container",35),c()),2&t){const e=p(4);a(1),d("ngIf",!e.decadeTemplate),a(1),d("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",U(3,oT,e.yearPickerValues))}}function xN(t,i){if(1&t&&(l(0,"th",41)(1,"span"),g(2),c()()),2&t){const e=p(5);a(2),S(e.getTranslation("weekHeader"))}}function DN(t,i){if(1&t&&(l(0,"th",42)(1,"span"),g(2),c()()),2&t){const e=i.$implicit;a(2),S(e)}}function MN(t,i){if(1&t&&(l(0,"td",45)(1,"span",46),g(2),c()()),2&t){const e=p().index,n=p(2).$implicit;a(2),T(" ",n.weekNumbers[e]," ")}}function kN(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=p(2).$implicit;a(1),S(e.day)}}function IN(t,i){1&t&&Y(0)}const EN=function(t,i){return{"p-highlight":t,"p-disabled":i}};function RN(t,i){if(1&t){const e=I();de(0),l(1,"span",48),C("click",function(s){v(e);const o=p().$implicit;return p(6).onDateSelect(s,o)})("keydown",function(s){v(e);const o=p().$implicit,r=p(3).index;return p(3).onDateCellKeydown(s,o,r)}),_(2,kN,2,1,"ng-container",13),_(3,IN,1,0,"ng-container",35),c(),pe()}if(2&t){const e=p().$implicit,n=p(6);a(1),d("ngClass",Ge(4,EN,n.isSelected(e),!e.selectable)),a(1),d("ngIf",!n.dateTemplate),a(1),d("ngTemplateOutlet",n.dateTemplate)("ngTemplateOutletContext",U(7,oT,e))}}const LN=function(t,i){return{"p-datepicker-other-month":t,"p-datepicker-today":i}};function ON(t,i){if(1&t&&(l(0,"td",47),_(1,RN,4,9,"ng-container",13),c()),2&t){const e=i.$implicit,n=p(6);d("ngClass",Ge(2,LN,e.otherMonth,e.today)),a(1),d("ngIf",!e.otherMonth||n.showOtherMonths)}}function AN(t,i){if(1&t&&(l(0,"tr"),_(1,MN,3,1,"td",43),_(2,ON,2,5,"td",44),c()),2&t){const e=i.$implicit,n=p(5);a(1),d("ngIf",n.showWeek),a(1),d("ngForOf",e)}}function PN(t,i){if(1&t&&(l(0,"div",36)(1,"table",37)(2,"thead")(3,"tr"),_(4,xN,3,1,"th",38),_(5,DN,3,1,"th",39),c()(),l(6,"tbody"),_(7,AN,3,2,"tr",40),c()()()),2&t){const e=p().$implicit,n=p(3);a(4),d("ngIf",n.showWeek),a(1),d("ngForOf",n.weekDays),a(2),d("ngForOf",e.dates)}}function FN(t,i){if(1&t){const e=I();l(0,"div",20)(1,"div",21),_(2,vN,2,0,"button",22),l(3,"div",23),_(4,CN,2,2,"button",24),_(5,yN,2,2,"button",25),_(6,SN,3,5,"span",26),c(),l(7,"button",27),C("keydown",function(s){return v(e),p(3).onContainerButtonKeydown(s)})("click",function(s){return v(e),p(3).onNextButtonClick(s)}),M(8,"span",28),c()(),_(9,PN,8,3,"div",29),c()}if(2&t){const e=i.index,n=p(3);a(2),d("ngIf",0===e),a(2),d("ngIf","date"===n.currentView),a(1),d("ngIf","year"!==n.currentView),a(1),d("ngIf","year"===n.currentView),a(1),_i("display",1===n.numberOfMonths||e===n.numberOfMonths-1?"inline-flex":"none"),a(2),d("ngIf","date"===n.currentView)}}const rT=function(t){return{"p-highlight":t}};function NN(t,i){if(1&t){const e=I();l(0,"span",51),C("click",function(s){const r=v(e).index;return p(4).onMonthSelect(s,r)})("keydown",function(s){const r=v(e).index;return p(4).onMonthCellKeydown(s,r)}),g(1),c()}if(2&t){const e=i.$implicit,n=i.index,s=p(4);d("ngClass",U(2,rT,s.isMonthSelected(n))),a(1),T(" ",e," ")}}function VN(t,i){if(1&t&&(l(0,"div",49),_(1,NN,2,4,"span",50),c()),2&t){const e=p(3);a(1),d("ngForOf",e.monthPickerValues())}}function BN(t,i){if(1&t){const e=I();l(0,"span",54),C("click",function(s){const r=v(e).$implicit;return p(4).onYearSelect(s,r)})("keydown",function(s){const r=v(e).$implicit;return p(4).onYearCellKeydown(s,r)}),g(1),c()}if(2&t){const e=i.$implicit,n=p(4);d("ngClass",U(2,rT,n.isYearSelected(e))),a(1),T(" ",e," ")}}function HN(t,i){if(1&t&&(l(0,"div",52),_(1,BN,2,4,"span",53),c()),2&t){const e=p(3);a(1),d("ngForOf",e.yearPickerValues())}}function qN(t,i){if(1&t&&(de(0),l(1,"div",16),_(2,FN,10,7,"div",17),c(),_(3,VN,2,1,"div",18),_(4,HN,2,1,"div",19),pe()),2&t){const e=p(2);a(2),d("ngForOf",e.months),a(1),d("ngIf","month"===e.currentView),a(1),d("ngIf","year"===e.currentView)}}function GN(t,i){1&t&&(de(0),g(1,"0"),pe())}function UN(t,i){1&t&&(de(0),g(1,"0"),pe())}function zN(t,i){if(1&t&&(l(0,"div",60)(1,"span"),g(2),c()()),2&t){const e=p(3);a(2),S(e.timeSeparator)}}function jN(t,i){1&t&&(de(0),g(1,"0"),pe())}function $N(t,i){if(1&t){const e=I();l(0,"div",65)(1,"button",57),C("keydown",function(s){return v(e),p(3).onContainerButtonKeydown(s)})("keydown.enter",function(s){return v(e),p(3).incrementSecond(s)})("keydown.space",function(s){return v(e),p(3).incrementSecond(s)})("mousedown",function(s){return v(e),p(3).onTimePickerElementMouseDown(s,2,1)})("mouseup",function(s){return v(e),p(3).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return v(e),p(3).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return v(e),p(3).onTimePickerElementMouseUp(s)})("mouseleave",function(){return v(e),p(3).onTimePickerElementMouseLeave()}),M(2,"span",58),c(),l(3,"span"),_(4,jN,2,0,"ng-container",13),g(5),c(),l(6,"button",57),C("keydown",function(s){return v(e),p(3).onContainerButtonKeydown(s)})("keydown.enter",function(s){return v(e),p(3).decrementSecond(s)})("keydown.space",function(s){return v(e),p(3).decrementSecond(s)})("mousedown",function(s){return v(e),p(3).onTimePickerElementMouseDown(s,2,-1)})("mouseup",function(s){return v(e),p(3).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return v(e),p(3).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return v(e),p(3).onTimePickerElementMouseUp(s)})("mouseleave",function(){return v(e),p(3).onTimePickerElementMouseLeave()}),M(7,"span",59),c()()}if(2&t){const e=p(3);a(4),d("ngIf",e.currentSecond<10),a(1),S(e.currentSecond)}}function WN(t,i){if(1&t){const e=I();l(0,"div",66)(1,"button",67),C("keydown",function(s){return v(e),p(3).onContainerButtonKeydown(s)})("click",function(s){return v(e),p(3).toggleAMPM(s)})("keydown.enter",function(s){return v(e),p(3).toggleAMPM(s)}),M(2,"span",58),c(),l(3,"span"),g(4),c(),l(5,"button",67),C("keydown",function(s){return v(e),p(3).onContainerButtonKeydown(s)})("click",function(s){return v(e),p(3).toggleAMPM(s)})("keydown.enter",function(s){return v(e),p(3).toggleAMPM(s)}),M(6,"span",59),c()()}if(2&t){const e=p(3);a(4),S(e.pm?"PM":"AM")}}function KN(t,i){if(1&t){const e=I();l(0,"div",55)(1,"div",56)(2,"button",57),C("keydown",function(s){return v(e),p(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return v(e),p(2).incrementHour(s)})("keydown.space",function(s){return v(e),p(2).incrementHour(s)})("mousedown",function(s){return v(e),p(2).onTimePickerElementMouseDown(s,0,1)})("mouseup",function(s){return v(e),p(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return v(e),p(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return v(e),p(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return v(e),p(2).onTimePickerElementMouseLeave()}),M(3,"span",58),c(),l(4,"span"),_(5,GN,2,0,"ng-container",13),g(6),c(),l(7,"button",57),C("keydown",function(s){return v(e),p(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return v(e),p(2).decrementHour(s)})("keydown.space",function(s){return v(e),p(2).decrementHour(s)})("mousedown",function(s){return v(e),p(2).onTimePickerElementMouseDown(s,0,-1)})("mouseup",function(s){return v(e),p(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return v(e),p(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return v(e),p(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return v(e),p(2).onTimePickerElementMouseLeave()}),M(8,"span",59),c()(),l(9,"div",60)(10,"span"),g(11),c()(),l(12,"div",61)(13,"button",57),C("keydown",function(s){return v(e),p(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return v(e),p(2).incrementMinute(s)})("keydown.space",function(s){return v(e),p(2).incrementMinute(s)})("mousedown",function(s){return v(e),p(2).onTimePickerElementMouseDown(s,1,1)})("mouseup",function(s){return v(e),p(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return v(e),p(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return v(e),p(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return v(e),p(2).onTimePickerElementMouseLeave()}),M(14,"span",58),c(),l(15,"span"),_(16,UN,2,0,"ng-container",13),g(17),c(),l(18,"button",57),C("keydown",function(s){return v(e),p(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return v(e),p(2).decrementMinute(s)})("keydown.space",function(s){return v(e),p(2).decrementMinute(s)})("mousedown",function(s){return v(e),p(2).onTimePickerElementMouseDown(s,1,-1)})("mouseup",function(s){return v(e),p(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return v(e),p(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return v(e),p(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return v(e),p(2).onTimePickerElementMouseLeave()}),M(19,"span",59),c()(),_(20,zN,3,1,"div",62),_(21,$N,8,2,"div",63),_(22,WN,7,1,"div",64),c()}if(2&t){const e=p(2);a(5),d("ngIf",e.currentHour<10),a(1),S(e.currentHour),a(5),S(e.timeSeparator),a(5),d("ngIf",e.currentMinute<10),a(1),S(e.currentMinute),a(3),d("ngIf",e.showSeconds),a(1),d("ngIf",e.showSeconds),a(1),d("ngIf","12"==e.hourFormat)}}const aT=function(t){return[t]};function QN(t,i){if(1&t){const e=I();l(0,"div",68)(1,"button",69),C("keydown",function(s){return v(e),p(2).onContainerButtonKeydown(s)})("click",function(s){return v(e),p(2).onTodayButtonClick(s)}),c(),l(2,"button",69),C("keydown",function(s){return v(e),p(2).onContainerButtonKeydown(s)})("click",function(s){return v(e),p(2).onClearButtonClick(s)}),c()()}if(2&t){const e=p(2);a(1),d("label",e.getTranslation("today"))("ngClass",U(4,aT,e.todayButtonStyleClass)),a(1),d("label",e.getTranslation("clear"))("ngClass",U(6,aT,e.clearButtonStyleClass))}}function JN(t,i){1&t&&Y(0)}const YN=function(t,i,e,n,s,o){return{"p-datepicker p-component":!0,"p-datepicker-inline":t,"p-disabled":i,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":n,"p-datepicker-monthpicker":s,"p-datepicker-touch-ui":o}},lT=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},ZN=function(t){return{value:"visibleTouchUI",params:t}},XN=function(t){return{value:"visible",params:t}};function e5(t,i){if(1&t){const e=I();l(0,"div",10,11),C("@overlayAnimation.start",function(s){return v(e),p().onOverlayAnimationStart(s)})("@overlayAnimation.done",function(s){return v(e),p().onOverlayAnimationDone(s)})("click",function(s){return v(e),p().onOverlayClick(s)}),xt(2),_(3,bN,1,0,"ng-container",12),_(4,qN,5,3,"ng-container",13),_(5,KN,23,8,"div",14),_(6,QN,3,8,"div",15),xt(7,1),_(8,JN,1,0,"ng-container",12),c()}if(2&t){const e=p();me(e.panelStyleClass),d("ngStyle",e.panelStyle)("ngClass",Dr(11,YN,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?U(21,ZN,Ge(18,lT,e.showTransitionOptions,e.hideTransitionOptions)):U(26,XN,Ge(23,lT,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),a(3),d("ngTemplateOutlet",e.headerTemplate),a(1),d("ngIf",!e.timeOnly),a(1),d("ngIf",(e.showTime||e.timeOnly)&&"date"===e.currentView),a(1),d("ngIf",e.showButtonBar),a(2),d("ngTemplateOutlet",e.footerTemplate)}}const t5=[[["p-header"]],[["p-footer"]]],n5=function(t,i,e,n){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":i,"p-calendar-disabled":e,"p-focus":n}},s5=["p-header","p-footer"],o5={provide:dn,useExisting:je(()=>Do),multi:!0};let Do=(()=>{class t{constructor(e,n,s,o,r,u){this.el=e,this.renderer=n,this.cd=s,this.zone=o,this.config=r,this.overlayService=u,this.multipleSeparator=",",this.rangeSeparator="-",this.inline=!1,this.showOtherMonths=!0,this.icon="pi pi-calendar",this.shortYearCutoff="+10",this.hourFormat="24",this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.showSeconds=!1,this.showOnFocus=!0,this.showWeek=!1,this.showClear=!1,this.dataType="date",this.selectionMode="single",this.todayButtonStyleClass="p-button-text",this.clearButtonStyleClass="p-button-text",this.autoZIndex=!0,this.baseZIndex=0,this.keepInvalid=!1,this.hideOnDateTimeSelect=!0,this.timeSeparator=":",this.focusTrap=!0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onFocus=new H,this.onBlur=new H,this.onClose=new H,this.onSelect=new H,this.onClear=new H,this.onInput=new H,this.onTodayClick=new H,this.onClearClick=new H,this.onMonthChange=new H,this.onYearChange=new H,this.onClickOutside=new H,this.onShow=new H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.inputFieldValue=null,this.navigationState=null,this._numberOfMonths=1,this._view="date",this.convertTo24Hour=function(h,b){return"12"==this.hourFormat?12===h?b?12:0:b?h+12:h:h}}set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){const n=e||new Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),this.createMonths(this.currentMonth,this.currentYear)}}get minDate(){return this._minDate}set minDate(e){this._minDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){const n=e.split(":"),s=parseInt(n[0]),o=parseInt(n[1]);this.populateYearOptions(s,o)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get locale(){return this._locale}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.warn("Locale property has no effect, use new i18n API instead.")}ngOnInit(){this.attributeSelector=hl();const e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":default:this.dateTemplate=e.template;break;case"decade":this.decadeTemplate=e.template;break;case"disabledDate":this.disabledDateTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=R.getOuterWidth(this.containerViewChild.nativeElement)+"px")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,n){this.yearOptions=[];for(let s=e;s<=n;s++)this.yearOptions.push(s)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),n=this.getTranslation(Nt.DAY_NAMES_MIN);for(let s=0;s<7;s++)this.weekDays.push(n[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let n=0;n<=11;n++)e.push(this.config.getTranslation("monthNamesShort")[n]);return e}yearPickerValues(){let e=[],n=this.currentYear-this.currentYear%10;for(let s=0;s<10;s++)e.push(n+s);return e}createMonths(e,n){this.months=this.months=[];for(let s=0;s11&&(o=o%11-1,r=n+1),this.months.push(this.createMonth(o,r))}}getWeekNumber(e){let n=new Date(e.getTime());n.setDate(n.getDate()+4-(n.getDay()||7));let s=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((s-n.getTime())/864e5)/7)+1}createMonth(e,n){let s=[],o=this.getFirstDayOfMonthIndex(e,n),r=this.getDaysCountInMonth(e,n),u=this.getDaysCountInPrevMonth(e,n),h=1,b=new Date,y=[],w=Math.ceil((r+o)/7);for(let k=0;kr){let O=this.getNextMonthAndYear(e,n);E.push({day:h-r,month:O.month,year:O.year,otherMonth:!0,today:this.isToday(b,h-r,O.month,O.year),selectable:this.isSelectable(h-r,O.month,O.year,!0)})}else E.push({day:h,month:e,year:n,today:this.isToday(b,h,e,n),selectable:this.isSelectable(h,e,n,!1)});h++}this.showWeek&&y.push(this.getWeekNumber(new Date(E[0].year,E[0].month,E[0].day))),s.push(E)}return{month:e,year:n,dates:s,weekNumbers:y}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){if(this.currentYear--,this.yearNavigator&&this.currentYearthis.yearOptions[this.yearOptions.length-1]){let e=this.yearOptions[this.yearOptions.length-1]-this.yearOptions[0];this.populateYearOptions(this.yearOptions[0]+e,this.yearOptions[this.yearOptions.length-1]+e)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,n){!this.disabled&&n.selectable?(this.isMultipleSelection()&&this.isSelected(n)?(this.value=this.value.filter((s,o)=>!this.isDateEquals(s,n)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()):e.preventDefault()}shouldSelectDate(e){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(e,n){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,n){"year"===this.view?this.onDateSelect(e,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value)if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let n=0;n11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let n=new Date(e.year,e.month,e.day);if(this.showTime&&(n.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate=s.getTime()?o=n:(s=n,o=null),this.updateModel([s,o])}else this.updateModel([n,null]);this.onSelect.emit(n)}updateModel(e){if(this.value=e,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let n=null;this.value&&(n=this.value.map(s=>this.formatDateTime(s))),this.onModelChange(n)}}getFirstDayOfMonthIndex(e,n){let s=new Date;s.setDate(1),s.setMonth(e),s.setFullYear(n);let o=s.getDay()+this.getSundayIndex();return o>=7?o-7:o}getDaysCountInMonth(e,n){return 32-this.daylightSavingAdjust(new Date(n,e,32)).getDate()}getDaysCountInPrevMonth(e,n){let s=this.getPreviousMonthAndYear(e,n);return this.getDaysCountInMonth(s.month,s.year)}getPreviousMonthAndYear(e,n){let s,o;return 0===e?(s=11,o=n-1):(s=e-1,o=n),{month:s,year:o}}getNextMonthAndYear(e,n){let s,o;return 11===e?(s=0,o=n+1):(s=e+1,o=n),{month:s,year:o}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let n=!1;for(let s of this.value)if(n=this.isDateEquals(s,e),n)break;return n}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(e){if(this.isComparable()){let n=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&n.getMonth()===e&&n.getFullYear()===this.currentYear}return!1}isYearSelected(e){if(this.isComparable()){let n=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&n.getFullYear()===e}return!1}isDateEquals(e,n){return!!(e&&e instanceof Date)&&e.getDate()===n.day&&e.getMonth()===n.month&&e.getFullYear()===n.year}isDateBetween(e,n,s){if(e&&n){let r=new Date(s.year,s.month,s.day);return e.getTime()<=r.getTime()&&n.getTime()>=r.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,n,s,o){return e.getDate()===n&&e.getMonth()===s&&e.getFullYear()===o}isSelectable(e,n,s,o){let r=!0,u=!0,h=!0,b=!0;return!(o&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>s||this.minDate.getFullYear()===s&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>e))&&(r=!1),this.maxDate&&(this.maxDate.getFullYear()1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:this.inline||this.trapFocus(e);break;case 27:this.overlayVisible=!1,e.preventDefault()}}onInputKeydown(e){this.isKeydown=!0,40===e.keyCode&&this.contentViewChild?this.trapFocus(e):27===e.keyCode||13===e.keyCode?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):9===e.keyCode&&this.contentViewChild&&(R.getFocusableElements(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,n,s){const o=e.currentTarget,r=o.parentElement;switch(e.which){case 40:{o.tabIndex="-1";let u=R.index(r),h=r.parentElement.nextElementSibling;h?R.hasClass(h.children[u].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(h.children[u].children[0].tabIndex="0",h.children[u].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 38:{o.tabIndex="-1";let u=R.index(r),h=r.parentElement.previousElementSibling;if(h){let b=h.children[u].children[0];R.hasClass(b,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(b.tabIndex="0",b.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{o.tabIndex="-1";let u=r.previousElementSibling;if(u){let h=u.children[0];R.hasClass(h,"p-disabled")||R.hasClass(h.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,s):(h.tabIndex="0",h.focus())}else this.navigateToMonth(!0,s);e.preventDefault();break}case 39:{o.tabIndex="-1";let u=r.nextElementSibling;if(u){let h=u.children[0];R.hasClass(h,"p-disabled")?this.navigateToMonth(!1,s):(h.tabIndex="0",h.focus())}else this.navigateToMonth(!1,s);e.preventDefault();break}case 13:case 32:this.onDateSelect(e,n),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,n){const s=e.currentTarget;switch(e.which){case 38:case 40:{s.tabIndex="-1";var o=s.parentElement.children,r=R.index(s);let u=o[40===e.which?r+3:r-3];u&&(u.tabIndex="0",u.focus()),e.preventDefault();break}case 37:{s.tabIndex="-1";let u=s.previousElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{s.tabIndex="-1";let u=s.nextElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:this.onMonthSelect(e,n),e.preventDefault();break;case 13:case 32:case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,n){const s=e.currentTarget;switch(e.which){case 38:case 40:{s.tabIndex="-1";var o=s.parentElement.children,r=R.index(s);let u=o[40===e.which?r+2:r-2];u&&(u.tabIndex="0",u.focus()),e.preventDefault();break}case 37:{s.tabIndex="-1";let u=s.previousElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{s.tabIndex="-1";let u=s.nextElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onYearSelect(e,n),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.trapFocus(e)}}navigateToMonth(e,n){if(e)if(1===this.numberOfMonths||0===n)this.navigationState={backward:!0},this.navBackward(event);else{let o=R.find(this.contentViewChild.nativeElement.children[n-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),r=o[o.length-1];r.tabIndex="0",r.focus()}else if(1===this.numberOfMonths||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let o=R.findSingle(this.contentViewChild.nativeElement.children[n+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");o.tabIndex="0",o.focus()}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let n;n=R.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),n&&n.length>0&&(e=n[n.length-1])}else e=R.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){let e;if("month"===this.currentView){let n=R.find(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),s=R.findSingle(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month.p-highlight");n.forEach(o=>o.tabIndex=-1),e=s||n[0],0===n.length&&R.find(this.contentViewChild.nativeElement,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(r=>r.tabIndex=-1)}else if("year"===this.currentView){let n=R.find(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),s=R.findSingle(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year.p-highlight");n.forEach(o=>o.tabIndex=-1),e=s||n[0],0===n.length&&R.find(this.contentViewChild.nativeElement,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(r=>r.tabIndex=-1)}else if(e=R.findSingle(this.contentViewChild.nativeElement,"span.p-highlight"),!e){let n=R.findSingle(this.contentViewChild.nativeElement,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");e=n||R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}e&&(e.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{e.focus()},1),this.preventFocus=!1)}trapFocus(e){let n=R.getFocusableElements(this.contentViewChild.nativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let s=n.indexOf(n[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==s||0===s)if(this.focusTrap)n[n.length-1].focus();else{if(-1===s)return this.hideOverlay();if(0===s)return}else n[s-1].focus();else if(-1==s||s===n.length-1){if(!this.focusTrap&&-1!=s)return this.hideOverlay();n[0].focus()}else n[s+1].focus()}else n[0].focus();e.preventDefault()}onMonthDropdownChange(e){this.currentMonth=parseInt(e),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(e){this.currentYear=parseInt(e),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}validateTime(e,n,s,o){let r=this.value;const u=this.convertTo24Hour(e,o);this.isRangeSelection()&&(r=this.value[1]||this.value[0]),this.isMultipleSelection()&&(r=this.value[this.value.length-1]);const h=r?r.toDateString():null;return!(this.minDate&&h&&this.minDate.toDateString()===h&&(this.minDate.getHours()>u||this.minDate.getHours()===u&&(this.minDate.getMinutes()>n||this.minDate.getMinutes()===n&&this.minDate.getSeconds()>s))||this.maxDate&&h&&this.maxDate.toDateString()===h&&(this.maxDate.getHours()=24?s-24:s:"12"==this.hourFormat&&(this.currentHour<12&&s>11&&(o=!this.pm),s=s>=13?s-12:s),this.validateTime(s,this.currentMinute,this.currentSecond,o)&&(this.currentHour=s,this.pm=o),e.preventDefault()}onTimePickerElementMouseDown(e,n,s){this.disabled||(this.repeat(e,null,n,s),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,n,s,o){let r=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,s,o),this.cd.markForCheck()},r),s){case 0:1===o?this.incrementHour(e):this.decrementHour(e);break;case 1:1===o?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===o?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let n=this.currentHour-this.stepHour,s=this.pm;"24"==this.hourFormat?n=n<0?24+n:n:"12"==this.hourFormat&&(12===this.currentHour&&(s=!this.pm),n=n<=0?12+n:n),this.validateTime(n,this.currentMinute,this.currentSecond,s)&&(this.currentHour=n,this.pm=s),e.preventDefault()}incrementMinute(e){let n=this.currentMinute+this.stepMinute;n=n>59?n-60:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}decrementMinute(e){let n=this.currentMinute-this.stepMinute;n=n<0?60+n:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}incrementSecond(e){let n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}decrementSecond(e){let n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,e.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.value[1]?[this.value[0],e]:[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){const n=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,n)&&(this.pm=n,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let n=e.target.value;try{let s=this.parseValueFromString(n);this.isValidSelection(s)&&(this.updateModel(s),this.updateUI())}catch(s){this.updateModel(this.keepInvalid?n:null)}this.filled=null!=n&&n.length,this.onInput.emit(e)}isValidSelection(e){let n=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(n=!1):e.every(s=>this.isSelectable(s.getDate(),s.getMonth(),s.getFullYear(),!1))&&this.isRangeSelection()&&(n=e.length>1&&e[1]>e[0]),n}parseValueFromString(e){if(!e||0===e.trim().length)return null;let n;if(this.isSingleSelection())n=this.parseDateTime(e);else if(this.isMultipleSelection()){let s=e.split(this.multipleSeparator);n=[];for(let o of s)n.push(this.parseDateTime(o.trim()))}else if(this.isRangeSelection()){let s=e.split(" "+this.rangeSeparator+" ");n=[];for(let o=0;o{this.disableModality()}),document.body.appendChild(this.mask),R.addClass(document.body,"p-overflow-hidden"))}disableModality(){this.mask&&(R.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener=this.destroyMask.bind(this),this.mask.addEventListener("animationend",this.animationEndListener))}destroyMask(){document.body.removeChild(this.mask);let n,e=document.body.children;for(let s=0;s{const w=s+1{let E=""+w;if(o(y))for(;E.lengtho(y)?E[w]:k[w];let h="",b=!1;if(e)for(s=0;s11&&12!=s&&(s-=12),n+="12"==this.hourFormat&&0===s?12:s<10?"0"+s:s,n+=":",n+=o<10?"0"+o:o,this.showSeconds&&(n+=":",n+=r<10?"0"+r:r),"12"==this.hourFormat&&(n+=e.getHours()>11?" PM":" AM"),n}parseTime(e){let n=e.split(":");if(n.length!==(this.showSeconds?3:2))throw"Invalid time";let o=parseInt(n[0]),r=parseInt(n[1]),u=this.showSeconds?parseInt(n[2]):null;if(isNaN(o)||isNaN(r)||o>23||r>59||"12"==this.hourFormat&&o>12||this.showSeconds&&(isNaN(u)||u>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==o&&this.pm?o+=12:!this.pm&&12===o&&(o-=12)),{hour:o,minute:r,second:u}}parseDate(e,n){if(null==n||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let s,o,r,L,u=0,h="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),b=-1,y=-1,w=-1,k=-1,E=!1,O=J=>{let se=s+1{let se=O(J),ke="@"===J?14:"!"===J?20:"y"===J&&se?4:"o"===J?3:2,yt=new RegExp("^\\d{"+("y"===J?ke:1)+","+ke+"}"),Ut=e.substring(u).match(yt);if(!Ut)throw"Missing number at position "+u;return u+=Ut[0].length,parseInt(Ut[0],10)},G=(J,se,ke)=>{let mt=-1,yt=O(J)?ke:se,Ut=[];for(let At=0;At-(At[1].length-hn[1].length));for(let At=0;At{if(e.charAt(u)!==n.charAt(s))throw"Unexpected literal at position "+u;u++};for("month"===this.view&&(w=1),s=0;s-1)for(y=1,w=k;o=this.getDaysCountInMonth(b,y-1),!(w<=o);)y++,w-=o;if(L=this.daylightSavingAdjust(new Date(b,y-1,w)),L.getFullYear()!==b||L.getMonth()+1!==y||L.getDate()!==w)throw"Invalid date";return L}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let n=new Date,s={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,s),this.onTodayClick.emit(e)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=document.createElement("style"),this.responsiveStyleElement.type="text/css",document.body.appendChild(this.responsiveStyleElement));let e="";if(this.responsiveOptions){let n=[...this.responsiveOptions].filter(s=>!(!s.breakpoint||!s.numMonths)).sort((s,o)=>-1*s.breakpoint.localeCompare(o.breakpoint,void 0,{numeric:!0}));for(let s=0;s{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousedown",n=>{this.isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener))}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Qs(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return R.hasClass(e.target,"p-datepicker-prev")||R.hasClass(e.target,"p-datepicker-prev-icon")||R.hasClass(e.target,"p-datepicker-next")||R.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!R.isAndroid()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&dt.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(gn),D(ot),D(nt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-calendar"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let o;V(o=B())&&(n.templates=o)}},viewQuery:function(e,n){if(1&e&&(W(pN,5),W(hN,5),W(mN,5)),2&e){let s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.inputfieldViewChild=s.first),V(s=B())&&(n.content=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focus)("p-calendar-clearable",n.showClear&&!n.disabled)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",view:"view",defaultDate:"defaultDate",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[Pe([o5])],ngContentSelectors:s5,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],["class","p-calendar-clear-icon pi pi-times",3,"click",4,"ngIf"],["type","button","pButton","","pRipple","","class","p-datepicker-trigger","tabindex","0",3,"icon","disabled","click",4,"ngIf"],[1,"p-calendar-clear-icon","pi","pi-times",3,"click"],["type","button","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger",3,"icon","disabled","click"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[1,"p-datepicker-next-icon","pi","pi-chevron-right"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],[1,"p-datepicker-prev-icon","pi","pi-chevron-left"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-calendar-container"],[1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],[3,"ngClass"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"pi","pi-chevron-up"],[1,"pi","pi-chevron-down"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(e,n){1&e&&(Sn(t5),l(0,"span",0,1),_(2,_N,4,17,"ng-template",2),_(3,e5,9,28,"div",3),c()),2&e&&(me(n.styleClass),d("ngClass",Ln(6,n5,n.showIcon,n.timeOnly,n.disabled,n.focus))("ngStyle",n.style),a(2),d("ngIf",!n.inline),a(1),d("ngIf",n.inline||n.overlayVisible))},directives:[Le,lt,Q,An,vt,Rt,at],styles:[".p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[ws("visibleTouchUI",it({transform:"translate(-50%,-50%)",opacity:1})),Lt("void => visible",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}",it({opacity:1,transform:"*"}))]),Lt("visible => void",[kt("{{hideTransitionParams}}",it({opacity:0}))]),Lt("void => visibleTouchUI",[it({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),kt("{{showTransitionParams}}")]),Lt("visibleTouchUI => void",[kt("{{hideTransitionParams}}",it({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0}),t})(),cT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,_l,Vt,pn],_l,Vt]}),t})();function r5(t,i){1&t&&Y(0)}function a5(t,i){if(1&t&&(l(0,"div",8),xt(1,1),_(2,r5,1,0,"ng-container",6),c()),2&t){const e=p();a(2),d("ngTemplateOutlet",e.headerTemplate)}}function l5(t,i){1&t&&Y(0)}function c5(t,i){if(1&t&&(l(0,"div",9),g(1),_(2,l5,1,0,"ng-container",6),c()),2&t){const e=p();a(1),T(" ",e.header," "),a(1),d("ngTemplateOutlet",e.titleTemplate)}}function u5(t,i){1&t&&Y(0)}function d5(t,i){if(1&t&&(l(0,"div",10),g(1),_(2,u5,1,0,"ng-container",6),c()),2&t){const e=p();a(1),T(" ",e.subheader," "),a(1),d("ngTemplateOutlet",e.subtitleTemplate)}}function p5(t,i){1&t&&Y(0)}function h5(t,i){1&t&&Y(0)}function m5(t,i){if(1&t&&(l(0,"div",11),xt(1,2),_(2,h5,1,0,"ng-container",6),c()),2&t){const e=p();a(2),d("ngTemplateOutlet",e.footerTemplate)}}const f5=["*",[["p-header"]],[["p-footer"]]],g5=["*","p-header","p-footer"];let Ne=(()=>{class t{constructor(e){this.el=e}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"title":this.titleTemplate=e.template;break;case"subtitle":this.subtitleTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}getBlockableElement(){return this.el.nativeElement.children[0]}}return t.\u0275fac=function(e){return new(e||t)(D(De))},t.\u0275cmp=z({type:t,selectors:[["p-card"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Or,5),st(s,gl,5),st(s,ne,4)),2&e){let o;V(o=B())&&(n.headerFacet=o.first),V(o=B())&&(n.footerFacet=o.first),V(o=B())&&(n.templates=o)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:g5,decls:9,vars:9,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(e,n){1&e&&(Sn(f5),l(0,"div",0),_(1,a5,3,1,"div",1),l(2,"div",2),_(3,c5,3,2,"div",3),_(4,d5,3,2,"div",4),l(5,"div",5),xt(6),_(7,p5,1,0,"ng-container",6),c(),_(8,m5,3,1,"div",7),c()()),2&e&&(me(n.styleClass),d("ngClass","p-card p-component")("ngStyle",n.style),a(1),d("ngIf",n.headerFacet||n.headerTemplate),a(2),d("ngIf",n.header||n.titleTemplate),a(1),d("ngIf",n.subheader||n.subtitleTemplate),a(3),d("ngTemplateOutlet",n.contentTemplate),a(1),d("ngIf",n.footerFacet||n.footerTemplate))},directives:[Le,lt,Q,Rt],styles:[".p-card-header img{width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),_5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe],Vt]}),t})();const b5=["cb"],v5=function(t,i,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function C5(t,i){if(1&t){const e=I();l(0,"label",7),C("click",function(s){v(e);const o=p(),r=F(3);return o.onClick(s,r,!0)}),g(1),c()}if(2&t){const e=p();me(e.labelStyleClass),d("ngClass",Jt(5,v5,e.checked(),e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const y5=function(t,i,e){return{"p-checkbox p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":i,"p-checkbox-focused":e}},w5=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},T5={provide:dn,useExisting:je(()=>on),multi:!0};let on=(()=>{class t{constructor(e){this.cd=e,this.checkboxIcon="pi pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(e,n,s){e.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(e),s&&n.focus())}updateModel(e){let n;this.binary?(n=this.checked()?this.falseValue:this.trueValue,this.model=n,this.onModelChange(n)):(n=this.checked()?this.model.filter(s=>!Z.equals(s,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(n),this.model=n,this.formControl&&this.formControl.setValue(n)),this.onChange.emit({checked:n,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:Z.contains(this.value,this.model)}}return t.\u0275fac=function(e){return new(e||t)(D(ot))},t.\u0275cmp=z({type:t,selectors:[["p-checkbox"]],viewQuery:function(e,n){if(1&e&&W(b5,5),2&e){let s;V(s=B())&&(n.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[Pe([T5])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(e,n){if(1&e){const s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("focus",function(){return n.onFocus()})("blur",function(){return n.onBlur()})("change",function(r){return n.handleChange(r)}),c()(),l(4,"div",4),C("click",function(r){v(s);const u=F(3);return n.onClick(r,u,!0)}),M(5,"span",5),c()(),_(6,C5,2,9,"label",6)}2&e&&(me(n.styleClass),d("ngStyle",n.style)("ngClass",Jt(18,y5,n.checked(),n.disabled,n.focused)),a(2),d("readonly",n.readonly)("value",n.value)("checked",n.checked())("disabled",n.disabled),ie("id",n.inputId)("name",n.name)("tabindex",n.tabindex)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel)("aria-checked",n.checked())("required",n.required),a(2),d("ngClass",Jt(22,w5,n.checked(),n.disabled,n.focused)),a(1),d("ngClass",n.checked()?n.checkboxIcon:null),a(1),d("ngIf",n.label))},directives:[lt,Le,Q],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),t})(),S5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function Yu(t,i=0){return function D5(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):i}function Uf(t,i,e,n){return Is(e)&&(n=e,e=void 0),n?Uf(t,i,e).pipe(et(s=>Vo(s)?n(...s):n(s))):new Je(s=>{uT(t,i,function o(r){s.next(arguments.length>1?Array.prototype.slice.call(arguments):r)},s,e)})}function uT(t,i,e,n,s){let o;if(function E5(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const r=t;t.addEventListener(i,e,s),o=()=>r.removeEventListener(i,e,s)}else if(function I5(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const r=t;t.on(i,e),o=()=>r.off(i,e)}else if(function k5(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const r=t;t.addListener(i,e),o=()=>r.removeListener(i,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,u=t.length;r0?super.requestAsyncId(i,e,n):(i.actions.push(this),i.scheduled||(i.scheduled=requestAnimationFrame(()=>i.flush(null))))}recycleAsyncId(i,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(i,e,n);0===i.actions.length&&(cancelAnimationFrame(e),i.scheduled=void 0)}});let A5=1;const P5=Promise.resolve(),Zu={};function dT(t){return t in Zu&&(delete Zu[t],!0)}const pT={setImmediate(t){const i=A5++;return Zu[i]=!0,P5.then(()=>dT(i)&&t()),i},clearImmediate(t){dT(t)}},V5=new class N5 extends Hi{flush(i){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,s=-1,o=e.length;i=i||e.shift();do{if(n=i.execute(i.state,i.delay))break}while(++s0?super.requestAsyncId(i,e,n):(i.actions.push(this),i.scheduled||(i.scheduled=pT.setImmediate(i.flush.bind(i,null))))}recycleAsyncId(i,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(i,e,n);0===i.actions.length&&(pT.clearImmediate(e),i.scheduled=void 0)}});class H5{constructor(i,e){this.compare=i,this.keySelector=e}call(i,e){return e.subscribe(new q5(i,this.compare,this.keySelector))}}class q5 extends wt{constructor(i,e,n){super(i),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(i,e){return i===e}_next(i){let e;try{const{keySelector:s}=this;e=s?s(i):i}catch(s){return this.destination.error(s)}let n=!1;if(this.hasKey)try{const{compare:s}=this;n=s(this.key,e)}catch(s){return this.destination.error(s)}else this.hasKey=!0;n||(this.key=e,this.destination.next(i))}}const zf=new Hi(hu);class U5{constructor(i){this.durationSelector=i}call(i,e){return e.subscribe(new z5(i,this.durationSelector))}}class z5 extends Xr{constructor(i,e){super(i),this.durationSelector=e,this.hasValue=!1}_next(i){if(this.value=i,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:s}=this;e=s(i)}catch(s){return this.destination.error(s)}const n=ea(e,new Zr(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:i,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(i))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function hT(t){return!Vo(t)&&t-parseFloat(t)+1>=0}function $5(t){const{index:i,period:e,subscriber:n}=t;if(n.next(i),!n.closed){if(-1===e)return n.complete();t.index=i+1,this.schedule(t,e)}}function jf(t,i=zf){return function G5(t){return function(e){return e.lift(new U5(t))}}(()=>function j5(t=0,i,e){let n=-1;return hT(i)?n=Number(i)<1?1:Number(i):Bo(i)&&(e=i),Bo(e)||(e=zf),new Je(s=>{const o=hT(t)?t:+t-e.now();return e.schedule($5,o,{index:0,period:n,subscriber:s})})}(t,i))}function $f(t){return i=>i.lift(new W5(t))}class W5{constructor(i){this.notifier=i}call(i,e){const n=new K5(i),s=ea(this.notifier,new Zr(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class K5 extends Xr{constructor(i){super(i),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Xu(...t){const i=t[t.length-1];return Bo(i)?(t.pop(),e=>tl(t,e,i)):e=>tl(t,e)}class J5{call(i,e){return e.subscribe(new Y5(i))}}class Y5 extends wt{constructor(i){super(i),this.hasPrev=!1}_next(i){let e;this.hasPrev?e=[this.prev,i]:this.hasPrev=!0,this.prev=i,e&&this.destination.next(e)}}let Wf;try{Wf="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){Wf=!1}let ed,Mo,mT=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function E4(t){return t===ky}(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&&!Wf)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(K(zc))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function vl(){if("object"!=typeof document||!document)return 0;if(null==ed){const t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";const e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),ed=0,0===t.scrollLeft&&(t.scrollLeft=1,ed=0===t.scrollLeft?1:2),t.remove()}return ed}const tV=new be("cdk-dir-doc",{providedIn:"root",factory:function nV(){return O_(en)}}),iV=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let gT=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new H,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function sV(t){const i=(null==t?void 0:t.toLowerCase())||"";return"auto"===i&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?iV.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(K(tV,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();class aV extends class oV{}{constructor(i){super(),this._data=i}connect(){return ss(this._data)?this._data:re(this._data)}disconnect(){}}class lV{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(i,e,n,s,o){i.forEachOperation((r,u,h)=>{let b,y;null==r.previousIndex?(b=this._insertView(()=>n(r,u,h),h,e,s(r)),y=b?1:0):null==h?(this._detachAndCacheView(u,e),y=3):(b=this._moveView(u,h,e,s(r)),y=2),o&&o({context:null==b?void 0:b.context,operation:y,record:r})})}detach(){for(const i of this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,s){const o=this._insertViewFromCache(e,n);if(o)return void(o.context.$implicit=s);const r=i();return n.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(i,e){const n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,s){const o=n.get(i);return n.move(o,e),o.context.$implicit=s,o}_maybeCacheView(i,e){if(this._viewCache.lengthe.lift(new H5(t,i))}()),this._viewport=null,this._itemSize=i,this._minBufferPx=e,this._maxBufferPx=n}attach(i){this._viewport=i,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(i,e,n){this._itemSize=i,this._minBufferPx=e,this._maxBufferPx=n,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(i,e){this._viewport&&this._viewport.scrollToOffset(i*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const i=this._viewport.getRenderedRange(),e={start:i.start,end:i.end},n=this._viewport.getViewportSize(),s=this._viewport.getDataLength();let o=this._viewport.measureScrollOffset(),r=this._itemSize>0?o/this._itemSize:0;if(e.end>s){const h=Math.ceil(n/this._itemSize),b=Math.max(0,Math.min(r,s-h));r!=b&&(r=b,o=b*this._itemSize,e.start=Math.floor(r)),e.end=Math.max(0,Math.min(s,e.start+h))}const u=o-e.start*this._itemSize;if(u0&&(e.end=Math.min(s,e.end+b),e.start=Math.max(0,Math.floor(r-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(r))}}function pV(t){return t._scrollStrategy}let Qf=(()=>{class t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new dV(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=Yu(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=Yu(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=Yu(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=le({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[Pe([{provide:vT,useFactory:pV,deps:[je(()=>t)]}]),fn]}),t})(),CT=(()=>{class t{constructor(e,n,s){this._ngZone=e,this._platform=n,this._scrolled=new ct,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Je(n=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(jf(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):re()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const s=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(Us(o=>!o||s.indexOf(o)>-1))}getAncestorScrollContainers(e){const n=[];return this.scrollContainers.forEach((s,o)=>{this._scrollableContainsElement(o,e)&&n.push(o)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,n){let s=function M5(t){return t instanceof De?t.nativeElement:t}(n),o=e.getElementRef().nativeElement;do{if(s==o)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Uf(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(K(nt),K(mT),K(en,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yT=(()=>{class t{constructor(e,n,s,o){this.elementRef=e,this.scrollDispatcher=n,this.ngZone=s,this.dir=o,this._destroyed=new ct,this._elementScrolled=new Je(r=>this.ngZone.runOutsideAngular(()=>Uf(this.elementRef.nativeElement,"scroll").pipe($f(this._destroyed)).subscribe(r)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const n=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),s&&0!=vl()?(null!=e.left&&(e.right=n.scrollWidth-n.clientWidth-e.left),2==vl()?e.left=e.right:1==vl()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const n=this.elementRef.nativeElement;!function X5(){if(null==Mo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Mo=!1,Mo;if("scrollBehavior"in document.documentElement.style)Mo=!0;else{const t=Element.prototype.scrollTo;Mo=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Mo}()?(null!=e.top&&(n.scrollTop=e.top),null!=e.left&&(n.scrollLeft=e.left)):n.scrollTo(e)}measureScrollOffset(e){const n="left",s="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const r=this.dir&&"rtl"==this.dir.value;return"start"==e?e=r?s:n:"end"==e&&(e=r?n:s),r&&2==vl()?e==n?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:r&&1==vl()?e==n?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==n?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(CT),D(nt),D(gT,8))},t.\u0275dir=le({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),fV=(()=>{class t{constructor(e,n,s){this._platform=e,this._change=new ct,this._changeListener=o=>{this._change.next(o)},this._document=s,n.runOutsideAngular(()=>{if(e.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 e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:n,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+n,height:s,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,n=this._getWindow(),s=e.documentElement,o=s.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||n.scrollY||s.scrollTop||0,left:-o.left||e.body.scrollLeft||n.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(jf(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(K(mT),K(nt),K(en,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const _V="undefined"!=typeof requestAnimationFrame?O5:V5;let Pr=(()=>{class t extends yT{constructor(e,n,s,o,r,u,h){super(e,u,s,r),this.elementRef=e,this._changeDetectorRef=n,this._scrollStrategy=o,this._detachedSubject=new ct,this._renderedRangeSubject=new ct,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new Je(b=>this._scrollStrategy.scrolledIndexChange.subscribe(y=>Promise.resolve().then(()=>this.ngZone.run(()=>b.next(y))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Et.EMPTY,this._viewportChanges=h.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=function x5(t){return null!=t&&"false"!=`${t}`}(e)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe(Xu(null),jf(0,_V)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe($f(this._detachedSubject)).subscribe(n=>{const s=n.length;s!==this._dataLength&&(this._dataLength=s,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function gV(t,i){return t.start==i.start&&t.end==i.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,n="to-start"){const o="horizontal"==this.orientation,r=o?"X":"Y";let h=`translate${r}(${Number((o&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e=this.appendOnly&&"to-start"===n?0:e,"to-end"===n&&(h+=` translate${r}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=h&&(this._renderedContentTransform=h,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,n="auto"){const s={behavior:n};"horizontal"===this.orientation?s.start=e:s.top=e,this.scrollTo(s)}scrollToIndex(e,n="auto"){this._scrollStrategy.scrollToIndex(e,n)}measureScrollOffset(e){return super.measureScrollOffset(e||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const e=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?e.clientWidth:e.clientHeight}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const n of e)n()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(ot),D(nt),D(vT,8),D(gT,8),D(CT),D(fV))},t.\u0275cmp=z({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,n){if(1&e&&W(cV,7),2&e){let s;V(s=B())&&(n._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,n){2&e&&si("cdk-virtual-scroll-orientation-horizontal","horizontal"===n.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==n.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[Pe([{provide:yT,useExisting:t}]),ut],ngContentSelectors:uV,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0,1),xt(2),c(),M(3,"div",2)),2&e&&(a(3),_i("width",n._totalContentWidth)("height",n._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),t})();function wT(t,i,e){if(!e.getBoundingClientRect)return 0;const s=e.getBoundingClientRect();return"horizontal"===t?"start"===i?s.left:s.right:"start"===i?s.top:s.bottom}let Jf=(()=>{class t{constructor(e,n,s,o,r,u){this._viewContainerRef=e,this._template=n,this._differs=s,this._viewRepeater=o,this._viewport=r,this.viewChange=new ct,this._dataSourceChanges=new ct,this.dataStream=this._dataSourceChanges.pipe(Xu(null),function Q5(){return t=>t.lift(new J5)}(),qi(([h,b])=>this._changeDataSource(h,b)),Um(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new ct,this.dataStream.subscribe(h=>{this._data=h,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe($f(this._destroyed)).subscribe(h=>{this._renderedRange=h,this.viewChange.observers.length&&u.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,function rV(t){return t&&"function"==typeof t.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new aV(ss(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(n,s)=>e(n+(this._renderedRange?this._renderedRange.start:0),s):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Yu(e)}measureRangeSize(e,n){if(e.start>=e.end)return 0;const s=e.start-this._renderedRange.start,o=e.end-e.start;let r,u;for(let h=0;h-1;h--){const b=this._viewContainerRef.get(h+s);if(b&&b.rootNodes.length){u=b.rootNodes[b.rootNodes.length-1];break}}return r&&u?wT(n,"end",u)-wT(n,"start",r):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,n)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,n):n)),this._needsUpdate=!0)}_changeDataSource(e,n){return e&&e.disconnect(this),this._needsUpdate=!0,n?n.connect(this):re()}_updateContext(){const e=this._data.length;let n=this._viewContainerRef.length;for(;n--;){const s=this._viewContainerRef.get(n);s.context.index=this._renderedRange.start+n,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(o,r,u)=>this._getEmbeddedViewArgs(o,u),o=>o.item),e.forEachIdentityChange(o=>{this._viewContainerRef.get(o.currentIndex).context.$implicit=o.item});const n=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const o=this._viewContainerRef.get(s);o.context.index=this._renderedRange.start+s,o.context.count=n,this._updateComputedContextProperties(o.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,n){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:n}}}return t.\u0275fac=function(e){return new(e||t)(D(vi),D(bi),D(Wa),D(bT),D(Pr,4),D(nt))},t.\u0275dir=le({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[Pe([{provide:bT,useClass:lV}])]}),t})(),TT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})(),Fr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[_T,TT],_T,TT]}),t})(),Qt=(()=>{class t{constructor(e,n,s){this.el=e,this.zone=n,this.config=s,this.escape=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0}}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.addEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.text&&(this.setOption({tooltipLabel:e.text.currentValue}),this.active&&(e.text.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.tooltipOptions&&(this._tooltipOptions=Object.assign(Object.assign({},this._tooltipOptions),e.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onClick(e){this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?R.appendChild(this.container,this.el.nativeElement):R.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block"}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),R.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?dt.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&dt.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(this.getOption("tooltipLabel")))):this.tooltipText.innerHTML=this.getOption("tooltipLabel")}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+R.getWindowScrollLeft(),top:e.top+R.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),n=e.left+R.getOuterWidth(this.el.nativeElement),s=e.top+(R.getOuterHeight(this.el.nativeElement)-R.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),n=e.left-R.getOuterWidth(this.container),s=e.top+(R.getOuterHeight(this.el.nativeElement)-R.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),n=e.left+(R.getOuterWidth(this.el.nativeElement)-R.getOuterWidth(this.container))/2,s=e.top-R.getOuterHeight(this.container);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),n=e.left+(R.getOuterWidth(this.el.nativeElement)-R.getOuterWidth(this.container))/2,s=e.top+R.getOuterHeight(this.el.nativeElement);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions=Object.assign(Object.assign({},this._tooltipOptions),e)}getOption(e){return this._tooltipOptions[e]}getTarget(e){return R.hasClass(e,"p-inputwrapper")?R.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let n="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?n+" "+this.getOption("tooltipStyleClass"):n}isOutOfBounds(){let e=this.container.getBoundingClientRect(),n=e.top,s=e.left,o=R.getOuterWidth(this.container),r=R.getOuterHeight(this.container),u=R.getViewport();return s+o>u.width||s<0||n<0||n+r>u.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Qs(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):R.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&dt.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(nt),D(zn))},t.\u0275dir=le({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",text:["pTooltip","text"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[fn]}),t})(),jn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function bV(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const e=p();a(1),S(e.label||"empty")}}function vV(t,i){1&t&&Y(0)}const ST=function(t){return{height:t}},CV=function(t,i){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":i}},Yf=function(t){return{$implicit:t}},yV=["container"],wV=["filter"],TV=["in"],SV=["editableInput"];function xV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=p(2);a(1),S(e.label||"empty")}}function DV(t,i){1&t&&Y(0)}const MV=function(t){return{"p-dropdown-label p-inputtext":!0,"p-dropdown-label-empty":t}};function kV(t,i){if(1&t&&(l(0,"span",12),_(1,xV,2,1,"ng-container",13),_(2,DV,1,0,"ng-container",14),c()),2&t){const e=p();d("ngClass",U(9,MV,null==e.label||0===e.label.length))("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),ie("id",e.labelId),a(1),d("ngIf",!e.selectedItemTemplate),a(1),d("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",U(11,Yf,e.selectedOption))}}const IV=function(t){return{"p-dropdown-label p-inputtext p-placeholder":!0,"p-dropdown-label-empty":t}};function EV(t,i){if(1&t&&(l(0,"span",15),g(1),c()),2&t){const e=p();d("ngClass",U(2,IV,null==e.placeholder||0===e.placeholder.length)),a(1),S(e.placeholder||"empty")}}function RV(t,i){if(1&t){const e=I();l(0,"input",16,17),C("click",function(){return v(e),p().onEditableInputClick()})("input",function(s){return v(e),p().onEditableInputChange(s)})("focus",function(s){return v(e),p().onEditableInputFocus(s)})("blur",function(s){return v(e),p().onInputBlur(s)}),c()}if(2&t){const e=p();d("disabled",e.disabled),ie("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function LV(t,i){if(1&t){const e=I();l(0,"i",18),C("click",function(s){return v(e),p().clear(s)}),c()}}function OV(t,i){1&t&&Y(0)}function AV(t,i){if(1&t){const e=I();l(0,"div",26)(1,"div",27),C("click",function(s){return s.stopPropagation()}),l(2,"input",28,29),C("keydown.enter",function(s){return s.preventDefault()})("keydown",function(s){return v(e),p(2).onKeydown(s,!1)})("input",function(s){return v(e),p(2).onFilterInputChange(s)}),c(),M(4,"span",30),c()()}if(2&t){const e=p(2);a(2),d("value",e.filterValue||""),ie("placeholder",e.filterPlaceholder)("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.overlayVisible?"p-highlighted-option":e.labelId)}}function PV(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const e=p().$implicit,n=p(3);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function FV(t,i){1&t&&Y(0)}function NV(t,i){1&t&&Y(0)}const xT=function(t,i){return{$implicit:t,selectedOption:i}};function VV(t,i){if(1&t&&(l(0,"li",32),_(1,PV,2,1,"span",13),_(2,FV,1,0,"ng-container",14),c(),_(3,NV,1,0,"ng-container",14)),2&t){const e=i.$implicit;p(2);const n=F(8),s=p();a(1),d("ngIf",!s.groupTemplate),a(1),d("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(5,Yf,e)),a(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",Ge(7,xT,s.getOptionGroupChildren(e),s.selectedOption))}}function BV(t,i){if(1&t&&(de(0),_(1,VV,4,10,"ng-template",31),pe()),2&t){const e=p(2);a(1),d("ngForOf",e.optionsToDisplay)}}function HV(t,i){1&t&&Y(0)}function qV(t,i){if(1&t&&(de(0),_(1,HV,1,0,"ng-container",14),pe()),2&t){p();const e=F(8),n=p();a(1),d("ngTemplateOutlet",e)("ngTemplateOutletContext",Ge(2,xT,n.optionsToDisplay,n.selectedOption))}}function GV(t,i){if(1&t){const e=I();l(0,"p-dropdownItem",35),C("onClick",function(s){return v(e),p(4).onItemClick(s)}),c()}if(2&t){const e=i.$implicit,n=p(2).selectedOption,s=p(2);d("option",e)("selected",n==e)("label",s.getOptionLabel(e))("disabled",s.isOptionDisabled(e))("template",s.itemTemplate)}}function UV(t,i){if(1&t&&(de(0),_(1,GV,1,5,"ng-template",31),pe()),2&t){const e=p().$implicit;a(1),d("ngForOf",e)}}function zV(t,i){if(1&t){const e=I();de(0),l(1,"p-dropdownItem",35),C("onClick",function(s){return v(e),p(5).onItemClick(s)}),c(),pe()}if(2&t){const e=i.$implicit,n=p(3).selectedOption,s=p(2);a(1),d("option",e)("selected",n==e)("label",s.getOptionLabel(e))("disabled",s.isOptionDisabled(e))("template",s.itemTemplate)}}function jV(t,i){if(1&t){const e=I();l(0,"cdk-virtual-scroll-viewport",37,38),C("scrolledIndexChange",function(){return v(e),p(4).scrollToSelectedVirtualScrollElement()}),_(2,zV,2,5,"ng-container",39),c()}if(2&t){const e=p(2).$implicit,n=p(2);d("ngStyle",U(3,ST,n.scrollHeight))("itemSize",n.itemSize),a(2),d("cdkVirtualForOf",e)}}function $V(t,i){if(1&t&&_(0,jV,3,5,"cdk-virtual-scroll-viewport",36),2&t){const e=p(3);d("ngIf",e.virtualScroll&&e.optionsToDisplay&&e.optionsToDisplay.length)}}function WV(t,i){if(1&t&&(_(0,UV,2,1,"ng-container",33),_(1,$V,1,1,"ng-template",null,34,Se)),2&t){const e=F(2);d("ngIf",!p(2).virtualScroll)("ngIfElse",e)}}function KV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=p(3);a(1),T(" ",e.emptyFilterMessageLabel," ")}}function QV(t,i){1&t&&Y(0,null,41)}function JV(t,i){if(1&t&&(l(0,"li",40),_(1,KV,2,1,"ng-container",33),_(2,QV,2,0,"ng-container",20),c()),2&t){const e=p(2);a(1),d("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),d("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function YV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=p(3);a(1),T(" ",e.emptyMessageLabel," ")}}function ZV(t,i){1&t&&Y(0,null,42)}function XV(t,i){if(1&t&&(l(0,"li",40),_(1,YV,2,1,"ng-container",33),_(2,ZV,2,0,"ng-container",20),c()),2&t){const e=p(2);a(1),d("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),d("ngTemplateOutlet",e.emptyTemplate)}}function e6(t,i){1&t&&Y(0)}const t6=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},n6=function(t){return{value:"visible",params:t}},i6=function(t){return{"p-dropdown-virtualscroll":t}};function s6(t,i){if(1&t){const e=I();l(0,"div",19),C("click",function(s){return v(e),p().onOverlayClick(s)})("@overlayAnimation.start",function(s){return v(e),p().onOverlayAnimationStart(s)})("@overlayAnimation.start",function(s){return v(e),p().onOverlayAnimationEnd(s)}),_(1,OV,1,0,"ng-container",20),_(2,AV,5,4,"div",21),l(3,"div",22)(4,"ul",23),_(5,BV,2,1,"ng-container",13),_(6,qV,2,5,"ng-container",13),_(7,WV,3,2,"ng-template",null,24,Se),_(9,JV,3,3,"li",25),_(10,XV,3,3,"li",25),c()(),_(11,e6,1,0,"ng-container",20),c()}if(2&t){const e=p();me(e.panelStyleClass),d("ngClass","p-dropdown-panel p-component")("@overlayAnimation",U(19,n6,Ge(16,t6,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),a(1),d("ngTemplateOutlet",e.headerTemplate),a(1),d("ngIf",e.filter),a(1),_i("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a(1),d("ngClass",U(21,i6,e.virtualScroll)),ie("id",e.listId),a(1),d("ngIf",e.group),a(1),d("ngIf",!e.group),a(3),d("ngIf",e.filterValue&&e.isEmpty()),a(1),d("ngIf",!e.filterValue&&e.isEmpty()),a(1),d("ngTemplateOutlet",e.footerTemplate)}}const o6=function(t,i,e,n){return{"p-dropdown p-component":!0,"p-disabled":t,"p-dropdown-open":i,"p-focus":e,"p-dropdown-clearable":n}},r6={provide:dn,useExisting:je(()=>Ot),multi:!0};let a6=(()=>{class t{constructor(){this.onClick=new H}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick"},decls:3,vars:15,consts:[["role","option","pRipple","",3,"ngStyle","id","ngClass","click"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){1&e&&(l(0,"li",0),C("click",function(o){return n.onOptionClick(o)}),_(1,bV,2,1,"span",1),_(2,vV,1,0,"ng-container",2),c()),2&e&&(d("ngStyle",U(8,ST,n.itemSize+"px"))("id",n.selected?"p-highlighted-option":"")("ngClass",Ge(10,CV,n.selected,n.disabled)),ie("aria-label",n.label)("aria-selected",n.selected),a(1),d("ngIf",!n.template),a(1),d("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(13,Yf,n.option)))},directives:[vt,lt,Le,Q,Rt],encapsulation:2}),t})(),Ot=(()=>{class t{constructor(e,n,s,o,r,u,h){this.el=e,this.renderer=n,this.cd=s,this.zone=o,this.filterService=r,this.config=u,this.overlayService=h,this.scrollHeight="200px",this.resetFilterOnHide=!1,this.dropdownIcon="pi pi-chevron-down",this.optionGroupChildren="items",this.autoDisplayFirst=!0,this.emptyFilterMessage="",this.emptyMessage="",this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.filterMatchMode="contains",this.tooltip="",this.tooltipPosition="right",this.tooltipPositionStyle="absolute",this.autofocusFilter=!0,this.onChange=new H,this.onFilter=new H,this.onFocus=new H,this.onBlur=new H,this.onClick=new H,this.onShow=new H,this.onHide=new H,this.onClear=new H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.viewPortOffsetTop=0,this.id=hl()}get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template}})}ngOnInit(){this.optionsToDisplay=this.options,this.updateSelectedOption(null),this.labelId=this.id+"_label",this.listId=this.id+"_list"}get options(){return this._options}set options(e){this._options=e,this.optionsToDisplay=this._options,this.updateSelectedOption(this.value),this.selectedOption=this.findOption(this.value,this.optionsToDisplay),this.selectedOption||(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(e){this._filterValue=e,this.activateFilter()}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}get label(){return this.selectedOption?this.getOptionLabel(this.selectedOption):null}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Nt.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Nt.EMPTY_FILTER_MESSAGE)}get filled(){return this.value||null!=this.value||null!=this.value}updateEditableLabel(){this.editableInputViewChild&&this.editableInputViewChild.nativeElement&&(this.editableInputViewChild.nativeElement.value=this.selectedOption?this.getOptionLabel(this.selectedOption):this.value||"")}getOptionLabel(e){return this.optionLabel?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?Z.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}getOptionGroupLabel(e){return this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?Z.resolveFieldData(e,this.optionGroupChildren):e.items}onItemClick(e){const n=e.option;this.isOptionDisabled(n)||(this.selectItem(e.originalEvent,n),this.accessibleViewChild.nativeElement.focus()),setTimeout(()=>{this.hide()},150)}selectItem(e,n){this.selectedOption!=n&&(this.selectedOption=n,this.value=this.getOptionValue(n),this.onModelChange(this.value),this.updateEditableLabel(),this.onChange.emit({originalEvent:e,value:this.value}),this.virtualScroll&&setTimeout(()=>{this.viewPortOffsetTop=this.viewPort?this.viewPort.measureScrollOffset():0},1))}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.virtualScroll&&this.updateVirtualScrollSelectedIndex(!0),this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){if(this.virtualScroll&&this.viewPort){let n=this.viewPort.getRenderedRange();this.updateVirtualScrollSelectedIndex(!1),(n.start>this.virtualScrollSelectedIndex||n.end-1&&this.viewPort.scrollToIndex(this.virtualScrollSelectedIndex)),this.virtualAutoScrolled=!0}updateVirtualScrollSelectedIndex(e){this.selectedOption&&this.optionsToDisplay&&this.optionsToDisplay.length&&(e&&(this.viewPortOffsetTop=0),this.virtualScrollSelectedIndex=this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay))}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=R.getWidth(this.containerViewChild.nativeElement)+"px"))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}hide(){this.overlayVisible=!1,this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.virtualScroll&&(this.virtualAutoScrolled=!1),this.cd.markForCheck()}alignOverlay(){this.overlay&&(this.appendTo?R.absolutePosition(this.overlay,this.containerViewChild.nativeElement):R.relativePosition(this.overlay,this.containerViewChild.nativeElement))}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}findPrevEnabledOption(e){let n;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let s=e-1;0<=s;s--){let o=this.optionsToDisplay[s];if(!this.isOptionDisabled(o)){n=o;break}}if(!n)for(let s=this.optionsToDisplay.length-1;s>=e;s--){let o=this.optionsToDisplay[s];if(!this.isOptionDisabled(o)){n=o;break}}}return n}findNextEnabledOption(e){let n;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let s=e+1;s0&&this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,o=this.findNextEnabledOption(s);o&&(this.selectItem(e,o),this.selectedOptionUpdated=!0)}e.preventDefault();break;case 38:if(this.group){let s=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==s){let o=s.itemIndex-1;if(o>=0)this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex])[o]),this.selectedOptionUpdated=!0;else if(o<0){let r=this.optionsToDisplay[s.groupIndex-1];r&&(this.selectItem(e,this.getOptionGroupChildren(r)[this.getOptionGroupChildren(r).length-1]),this.selectedOptionUpdated=!0)}}}else{let s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,o=this.findPrevEnabledOption(s);o&&(this.selectItem(e,o),this.selectedOptionUpdated=!0)}e.preventDefault();break;case 32:n&&(this.overlayVisible?this.hide():this.show(),e.preventDefault());break;case 13:this.overlayVisible&&(!this.filter||this.optionsToDisplay&&this.optionsToDisplay.length>0)?this.hide():this.overlayVisible||this.show(),e.preventDefault();break;case 27:case 9:this.hide();break;default:n&&!e.metaKey&&this.search(e)}}search(e){this.searchTimeout&&clearTimeout(this.searchTimeout);const n=e.key;let s;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=n,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+n:n,this.group){let o=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};s=this.searchOptionWithinGroup(o)}else{let o=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;s=this.searchOption(++o)}s&&!this.isOptionDisabled(s)&&(this.selectItem(e,s),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(e){let n;return this.searchValue&&(n=this.searchOptionInRange(e,this.optionsToDisplay.length),n||(n=this.searchOptionInRange(0,e))),n}searchOptionInRange(e,n){for(let s=e;s{!this.preventDocumentDefault&&this.isOutsideClicked(n)&&(this.hide(),this.unbindDocumentClickListener()),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!R.isTouchDevice()&&this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Qs(this.containerViewChild.nativeElement,e=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}clear(e){this.value=null,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.updateSelectedOption(this.value),this.updateEditableLabel(),this.onClear.emit(e)}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null,this.itemsWrapper=null,this.onModelTouched()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&dt.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(gn),D(ot),D(nt),D(ml),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-dropdown"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let o;V(o=B())&&(n.templates=o)}},viewQuery:function(e,n){if(1&e&&(W(yV,5),W(wV,5),W(TV,5),W(Pr,5),W(SV,5)),2&e){let s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.filterViewChild=s.first),V(s=B())&&(n.accessibleViewChild=s.first),V(s=B())&&(n.viewPort=s.first),V(s=B())&&(n.editableInputViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focused||n.overlayVisible)},inputs:{scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",selectId:"selectId",dataKey:"dataKey",filterBy:"filterBy",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",virtualScroll:"virtualScroll",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",disabled:"disabled",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear"},features:[Pe([r6])],decls:12,vars:25,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","","aria-haspopup","listbox","aria-haspopup","listbox","role","combobox",3,"disabled","focus","blur","keydown"],["in",""],[3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],["type","text","class","p-dropdown-label p-inputtext","aria-haspopup","listbox",3,"disabled","click","input","focus","blur",4,"ngIf"],["class","p-dropdown-clear-icon pi pi-times",3,"click",4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],[1,"p-dropdown-trigger-icon",3,"ngClass"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","class","click",4,"ngIf"],[3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],["type","text","aria-haspopup","listbox",1,"p-dropdown-label","p-inputtext",3,"disabled","click","input","focus","blur"],["editableInput",""],[1,"p-dropdown-clear-icon","pi","pi-times",3,"click"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","click"],[4,"ngTemplateOutlet"],["class","p-dropdown-header",4,"ngIf"],[1,"p-dropdown-items-wrapper"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["itemslist",""],["class","p-dropdown-empty-message",4,"ngIf"],[1,"p-dropdown-header"],[1,"p-dropdown-filter-container",3,"click"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","keydown.enter","keydown","input"],["filter",""],[1,"p-dropdown-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-dropdown-item-group"],[4,"ngIf","ngIfElse"],["virtualScrollList",""],[3,"option","selected","label","disabled","template","onClick"],[3,"ngStyle","itemSize","scrolledIndexChange",4,"ngIf"],[3,"ngStyle","itemSize","scrolledIndexChange"],["viewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"p-dropdown-empty-message"],["emptyFilter",""],["empty",""]],template:function(e,n){1&e&&(l(0,"div",0,1),C("click",function(o){return n.onMouseclick(o)}),l(2,"div",2)(3,"input",3,4),C("focus",function(o){return n.onInputFocus(o)})("blur",function(o){return n.onInputBlur(o)})("keydown",function(o){return n.onKeydown(o,!0)}),c()(),_(5,kV,3,13,"span",5),_(6,EV,2,4,"span",6),_(7,RV,2,4,"input",7),_(8,LV,1,0,"i",8),l(9,"div",9),M(10,"span",10),c(),_(11,s6,12,23,"div",11),c()),2&e&&(me(n.styleClass),d("ngClass",Ln(20,o6,n.disabled,n.overlayVisible,n.focused,n.showClear&&!n.disabled))("ngStyle",n.style),a(3),d("disabled",n.disabled),ie("id",n.inputId)("placeholder",n.placeholder)("aria-label",n.ariaLabel)("aria-expanded",!1)("aria-labelledby",n.ariaLabelledBy)("tabindex",n.tabindex)("autofocus",n.autofocus)("aria-activedescendant",n.overlayVisible?n.labelId:null),a(2),d("ngIf",!n.editable&&null!=n.label),a(1),d("ngIf",!n.editable&&null==n.label),a(1),d("ngIf",n.editable),a(1),d("ngIf",null!=n.value&&n.showClear&&!n.disabled),a(1),ie("aria-expanded",n.overlayVisible),a(1),d("ngClass",n.dropdownIcon),a(1),d("ngIf",n.overlayVisible))},directives:[a6,Pr,Le,lt,Q,Qt,Rt,at,Qf,Jf],styles:[".p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;visibility:hidden}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-panel{position:absolute;top:0;left:0}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),td=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Vt,Fr,jn,pn],Vt,Fr]}),t})(),DT=(()=>{class t{constructor(e,n,s){this.el=e,this.ngModel=n,this.cd=s}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(e){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(_e,8),D(ot))},t.\u0275dir=le({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,n){1&e&&C("input",function(o){return n.onInput(o)}),2&e&&si("p-filled",n.filled)}}),t})(),MT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const l6=["input"];function c6(t,i){if(1&t){const e=I();l(0,"i",6),C("click",function(){return v(e),p().clear()}),c()}}const kT=function(){return{"p-inputnumber-button p-inputnumber-button-up":!0}},IT=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function u6(t,i){if(1&t){const e=I();l(0,"span",7)(1,"button",8),C("mousedown",function(s){return v(e),p().onUpButtonMouseDown(s)})("mouseup",function(){return v(e),p().onUpButtonMouseUp()})("mouseleave",function(){return v(e),p().onUpButtonMouseLeave()})("keydown",function(s){return v(e),p().onUpButtonKeyDown(s)})("keyup",function(){return v(e),p().onUpButtonKeyUp()}),c(),l(2,"button",8),C("mousedown",function(s){return v(e),p().onDownButtonMouseDown(s)})("mouseup",function(){return v(e),p().onDownButtonMouseUp()})("mouseleave",function(){return v(e),p().onDownButtonMouseLeave()})("keydown",function(s){return v(e),p().onDownButtonKeyDown(s)})("keyup",function(){return v(e),p().onDownButtonKeyUp()}),c()()}if(2&t){const e=p();a(1),me(e.incrementButtonClass),d("ngClass",A(10,kT))("icon",e.incrementButtonIcon)("disabled",e.disabled),a(1),me(e.decrementButtonClass),d("ngClass",A(11,IT))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}function d6(t,i){if(1&t){const e=I();l(0,"button",8),C("mousedown",function(s){return v(e),p().onUpButtonMouseDown(s)})("mouseup",function(){return v(e),p().onUpButtonMouseUp()})("mouseleave",function(){return v(e),p().onUpButtonMouseLeave()})("keydown",function(s){return v(e),p().onUpButtonKeyDown(s)})("keyup",function(){return v(e),p().onUpButtonKeyUp()}),c()}if(2&t){const e=p();me(e.incrementButtonClass),d("ngClass",A(5,kT))("icon",e.incrementButtonIcon)("disabled",e.disabled)}}function p6(t,i){if(1&t){const e=I();l(0,"button",8),C("mousedown",function(s){return v(e),p().onDownButtonMouseDown(s)})("mouseup",function(){return v(e),p().onDownButtonMouseUp()})("mouseleave",function(){return v(e),p().onDownButtonMouseLeave()})("keydown",function(s){return v(e),p().onDownButtonKeyDown(s)})("keyup",function(){return v(e),p().onDownButtonKeyUp()}),c()}if(2&t){const e=p();me(e.decrementButtonClass),d("ngClass",A(5,IT))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}const h6=function(t,i,e){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":i,"p-inputnumber-buttons-vertical":e}},m6={provide:dn,useExisting:je(()=>pt),multi:!0};let pt=(()=>{class t{constructor(e,n){this.el=e,this.cd=n,this.showButtons=!1,this.format=!0,this.buttonLayout="stacked",this.incrementButtonIcon="pi pi-angle-up",this.decrementButtonIcon="pi pi-angle-down",this.readonly=!1,this.step=1,this.allowEmpty=!0,this.mode="decimal",this.useGrouping=!0,this.showClear=!1,this.onInput=new H,this.onFocus=new H,this.onBlur=new H,this.onKeyDown=new H,this.onClear=new H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.groupChar="",this.prefixChar="",this.suffixChar=""}get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(s=>!!e[s])&&this.updateConstructParser()}ngOnInit(){this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),n=new Map(e.map((s,o)=>[s,o]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=s=>n.get(s)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const e=new Intl.NumberFormat(this.locale,Object.assign(Object.assign({},this.getOptions()),{useGrouping:!1}));return new RegExp(`[${e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}]`,"g")}getGroupingExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(null!=e){if("-"===e)return e;if(this.format){let s=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(s=this.prefix+s),this.suffix&&(s+=this.suffix),s}return e.toString()}return""}parseValue(e){let n=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(n){if("-"===n)return n;let s=+n;return isNaN(s)?null:s}return null}repeat(e,n,s){if(this.readonly)return;let o=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,s)},o),this.spin(e,s)}spin(e,n){let s=this.step*n,o=this.parseValue(this.input.nativeElement.value)||0,r=this.validateValue(o+s);this.maxlength&&this.maxlength0&&n>h){const w=this.isDecimalMode()&&(this.minFractionDigits||0)0?r:""):r=o.slice(0,n-1)+o.slice(n)}this.updateValue(e,r,null,"delete-single")}else r=this.deleteRange(o,n,s),this.updateValue(e,r,null,"delete-range");break;case 46:if(e.preventDefault(),n===s){const u=o.charAt(n),{decimalCharIndex:h,decimalCharIndexWithoutPrefix:b}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(u)){const y=this.getDecimalLength(o);if(this._group.test(u))this._group.lastIndex=0,r=o.slice(0,n)+o.slice(n+2);else if(this._decimal.test(u))this._decimal.lastIndex=0,y?this.input.nativeElement.setSelectionRange(n+1,n+1):r=o.slice(0,n)+o.slice(n+1);else if(h>0&&n>h){const w=this.isDecimalMode()&&(this.minFractionDigits||0)0?r:""):r=o.slice(0,n)+o.slice(n+1)}this.updateValue(e,r,null,"delete-back-single")}else r=this.deleteRange(o,n,s),this.updateValue(e,r,null,"delete-range")}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;e.preventDefault();let n=e.which||e.keyCode,s=String.fromCharCode(n);const o=this.isDecimalSign(s),r=this.isMinusSign(s);(48<=n&&n<=57||r||o)&&this.insert(e,s,{isDecimalSign:o,isMinusSign:r})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let n=(e.clipboardData||window.clipboardData).getData("Text");if(n){let s=this.parseValue(n);null!=s&&this.insert(e,s.toString())}}}allowMinusSign(){return null==this.min||this.min<0}isMinusSign(e){return!(!this._minusSign.test(e)&&"-"!==e||(this._minusSign.lastIndex=0,0))}isDecimalSign(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(e){let n=e.search(this._decimal);this._decimal.lastIndex=0;const o=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:o}}getCharIndexes(e){const n=e.search(this._decimal);this._decimal.lastIndex=0;const s=e.search(this._minusSign);this._minusSign.lastIndex=0;const o=e.search(this._suffix);this._suffix.lastIndex=0;const r=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:s,suffixCharIndex:o,currencyCharIndex:r}}insert(e,n,s={isDecimalSign:!1,isMinusSign:!1}){const o=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==o)return;let r=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd,h=this.input.nativeElement.value.trim();const{decimalCharIndex:b,minusCharIndex:y,suffixCharIndex:w,currencyCharIndex:k}=this.getCharIndexes(h);let E;if(s.isMinusSign)0===r&&(E=h,(-1===y||0!==u)&&(E=this.insertText(h,n,0,u)),this.updateValue(e,E,n,"insert"));else if(s.isDecimalSign)b>0&&r===b?this.updateValue(e,h,n,"insert"):(b>r&&b0&&r>b){if(r+n.length-(b+1)<=L){const N=k>=r?k-1:w>=r?w:h.length;E=h.slice(0,r)+n+h.slice(r+n.length,N)+h.slice(N),this.updateValue(e,E,n,O)}}else E=this.insertText(h,n,r,u),this.updateValue(e,E,n,O)}}insertText(e,n,s,o){if(2===("."===n?n:n.split(".")).length){const u=e.slice(s,o).search(this._decimal);return this._decimal.lastIndex=0,u>0?e.slice(0,s)+this.formatValue(n)+e.slice(o):e||this.formatValue(n)}return o-s===e.length?this.formatValue(n):0===s?n+e.slice(o):o===e.length?e.slice(0,s)+n:e.slice(0,s)+n+e.slice(o)}deleteRange(e,n,s){let o;return o=s-n===e.length?"":0===n?e.slice(s):s===e.length?e.slice(0,n):e.slice(0,n)+e.slice(s),o}initCursor(){let e=this.input.nativeElement.selectionStart,n=this.input.nativeElement.value,s=n.length,o=null,r=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e-=r;let u=n.charAt(e);if(this.isNumeralChar(u))return e+r;let h=e-1;for(;h>=0;){if(u=n.charAt(h),this.isNumeralChar(u)){o=h+r;break}h--}if(null!==o)this.input.nativeElement.setSelectionRange(o+1,o+1);else{for(h=e;hthis.max?this.max:e}updateInput(e,n,s,o){n=n||"";let r=this.input.nativeElement.value,u=this.formatValue(e),h=r.length;if(u!==o&&(u=this.concatValues(u,o)),0===h){this.input.nativeElement.value=u,this.input.nativeElement.setSelectionRange(0,0);const y=this.initCursor()+n.length;this.input.nativeElement.setSelectionRange(y,y)}else{let b=this.input.nativeElement.selectionStart,y=this.input.nativeElement.selectionEnd;if(this.maxlength&&this.maxlength0}clearTimer(){this.timer&&clearInterval(this.timer)}getFormatter(){return this.numberFormat}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(ot))},t.\u0275cmp=z({type:t,selectors:[["p-inputNumber"]],viewQuery:function(e,n){if(1&e&&W(l6,5),2&e){let s;V(s=B())&&(n.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focused)("p-inputnumber-clearable",n.showClear&&"vertical"!=n.buttonLayout)},inputs:{showButtons:"showButtons",format:"format",buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",name:"name",required:"required",autocomplete:"autocomplete",min:"min",max:"max",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:"readonly",step:"step",allowEmpty:"allowEmpty",locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[Pe([m6]),fn],decls:7,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],["class","p-inputnumber-clear-icon pi pi-times",3,"click",4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","",3,"ngClass","class","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[1,"p-inputnumber-clear-icon","pi","pi-times",3,"click"],[1,"p-inputnumber-button-group"],["type","button","pButton","",3,"ngClass","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup"]],template:function(e,n){1&e&&(l(0,"span",0)(1,"input",1,2),C("input",function(o){return n.onUserInput(o)})("keydown",function(o){return n.onInputKeyDown(o)})("keypress",function(o){return n.onInputKeyPress(o)})("paste",function(o){return n.onPaste(o)})("click",function(){return n.onInputClick()})("focus",function(o){return n.onInputFocus(o)})("blur",function(o){return n.onInputBlur(o)}),c(),_(3,c6,1,0,"i",3),_(4,u6,3,12,"span",4),_(5,d6,1,6,"button",5),_(6,p6,1,6,"button",5),c()),2&e&&(me(n.styleClass),d("ngClass",Jt(28,h6,n.showButtons&&"stacked"===n.buttonLayout,n.showButtons&&"horizontal"===n.buttonLayout,n.showButtons&&"vertical"===n.buttonLayout))("ngStyle",n.style),a(1),me(n.inputStyleClass),d("ngClass","p-inputnumber-input")("ngStyle",n.inputStyle)("value",n.formattedValue())("disabled",n.disabled)("readonly",n.readonly),ie("placeholder",n.placeholder)("title",n.title)("id",n.inputId)("size",n.size)("name",n.name)("autocomplete",n.autocomplete)("maxlength",n.maxlength)("tabindex",n.tabindex)("aria-label",n.ariaLabel)("aria-required",n.ariaRequired)("required",n.required)("min",n.min)("max",n.max),a(2),d("ngIf","vertical"!=n.buttonLayout&&n.showClear&&n.value),a(1),d("ngIf",n.showButtons&&"stacked"===n.buttonLayout),a(1),d("ngIf",n.showButtons&&"stacked"!==n.buttonLayout),a(1),d("ngIf",n.showButtons&&"stacked"!==n.buttonLayout))},directives:[Le,lt,DT,Q,An],styles:["p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}\n"],encapsulation:2,changeDetection:0}),t})(),nd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,MT,_l]]}),t})();function f6(t,i){1&t&&Y(0)}const Zf=function(t){return{$implicit:t}};function g6(t,i){if(1&t&&(l(0,"div",15),_(1,f6,1,0,"ng-container",16),c()),2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",U(2,Zf,e.paginatorState))}}function _6(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const e=p(2);a(1),S(e.currentPageReport)}}const id=function(t){return{"p-disabled":t}};function b6(t,i){if(1&t){const e=I();l(0,"button",18),C("click",function(s){return v(e),p(2).changePageToFirst(s)}),M(1,"span",19),c()}if(2&t){const e=p(2);d("disabled",e.isFirstPage()||e.empty())("ngClass",U(2,id,e.isFirstPage()||e.empty()))}}const v6=function(t){return{"p-highlight":t}};function C6(t,i){if(1&t){const e=I();l(0,"button",22),C("click",function(s){const r=v(e).$implicit;return p(3).onPageLinkClick(s,r-1)}),g(1),c()}if(2&t){const e=i.$implicit,n=p(3);d("ngClass",U(2,v6,e-1==n.getPage())),a(1),S(e)}}function y6(t,i){if(1&t&&(l(0,"span",20),_(1,C6,2,4,"button",21),c()),2&t){const e=p(2);a(1),d("ngForOf",e.pageLinks)}}function w6(t,i){1&t&&g(0),2&t&&S(p(3).currentPageReport)}function T6(t,i){if(1&t){const e=I();l(0,"p-dropdown",23),C("onChange",function(s){return v(e),p(2).onPageDropdownChange(s)}),_(1,w6,1,1,"ng-template",24),c()}if(2&t){const e=p(2);d("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)}}function S6(t,i){if(1&t){const e=I();l(0,"button",25),C("click",function(s){return v(e),p(2).changePageToLast(s)}),M(1,"span",26),c()}if(2&t){const e=p(2);d("disabled",e.isLastPage()||e.empty())("ngClass",U(2,id,e.isLastPage()||e.empty()))}}function x6(t,i){if(1&t){const e=I();l(0,"p-inputNumber",27),C("ngModelChange",function(s){return v(e),p(2).changePage(s-1)}),c()}if(2&t){const e=p(2);d("ngModel",e.currentPage())("disabled",e.empty())}}function D6(t,i){1&t&&Y(0)}function M6(t,i){if(1&t&&_(0,D6,1,0,"ng-container",16),2&t){const e=i.$implicit;d("ngTemplateOutlet",p(4).dropdownItemTemplate)("ngTemplateOutletContext",U(2,Zf,e))}}function k6(t,i){1&t&&(de(0),_(1,M6,1,4,"ng-template",30),pe())}function I6(t,i){if(1&t){const e=I();l(0,"p-dropdown",28),C("ngModelChange",function(s){return v(e),p(2).rows=s})("onChange",function(s){return v(e),p(2).onRppChange(s)}),_(1,k6,2,0,"ng-container",29),c()}if(2&t){const e=p(2);d("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),a(1),d("ngIf",e.dropdownItemTemplate)}}function E6(t,i){1&t&&Y(0)}function R6(t,i){if(1&t&&(l(0,"div",31),_(1,E6,1,0,"ng-container",16),c()),2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",U(2,Zf,e.paginatorState))}}function L6(t,i){if(1&t){const e=I();l(0,"div",1),_(1,g6,2,4,"div",2),_(2,_6,2,1,"span",3),_(3,b6,2,4,"button",4),l(4,"button",5),C("click",function(s){return v(e),p().changePageToPrev(s)}),M(5,"span",6),c(),_(6,y6,2,1,"span",7),_(7,T6,2,5,"p-dropdown",8),l(8,"button",9),C("click",function(s){return v(e),p().changePageToNext(s)}),M(9,"span",10),c(),_(10,S6,2,4,"button",11),_(11,x6,1,2,"p-inputNumber",12),_(12,I6,2,6,"p-dropdown",13),_(13,R6,2,4,"div",14),c()}if(2&t){const e=p();me(e.styleClass),d("ngStyle",e.style)("ngClass","p-paginator p-component"),a(1),d("ngIf",e.templateLeft),a(1),d("ngIf",e.showCurrentPageReport),a(1),d("ngIf",e.showFirstLastIcon),a(1),d("disabled",e.isFirstPage()||e.empty())("ngClass",U(17,id,e.isFirstPage()||e.empty())),a(2),d("ngIf",e.showPageLinks),a(1),d("ngIf",e.showJumpToPageDropdown),a(1),d("disabled",e.isLastPage()||e.empty())("ngClass",U(19,id,e.isLastPage()||e.empty())),a(2),d("ngIf",e.showFirstLastIcon),a(1),d("ngIf",e.showJumpToPageInput),a(1),d("ngIf",e.rowsPerPageOptions),a(1),d("ngIf",e.templateRight)}}let ET=(()=>{class t{constructor(e){this.cd=e,this.pageLinkSize=5,this.onPageChange=new H,this.alwaysShow=!0,this.dropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage} of {totalPages}",this.showFirstLastIcon=!0,this.totalRecords=0,this.rows=0,this.showPageLinks=!0,this._first=0,this._page=0}ngOnInit(){this.updatePaginatorState()}ngOnChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions()}get first(){return this._first}set first(e){this._first=e}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let e of this.rowsPerPageOptions)"object"==typeof e&&e.showAll?this.rowsPerPageItems.unshift({label:e.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(e),value:e})}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),n=Math.min(this.pageLinkSize,e),s=Math.max(0,Math.ceil(this.getPage()-n/2)),o=Math.min(e-1,s+n-1);return s=Math.max(0,s-(this.pageLinkSize-(o-s+1))),[s,o]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),s=e[1];for(let o=e[0];o<=s;o++)this.pageLinks.push(o+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let o=0;o=0&&e0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,n){this.changePage(n),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}}return t.\u0275fac=function(e){return new(e||t)(D(ot))},t.\u0275cmp=z({type:t,selectors:[["p-paginator"]],hostAttrs:[1,"p-element"],inputs:{pageLinkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",templateLeft:"templateLeft",templateRight:"templateRight",dropdownAppendTo:"dropdownAppendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showFirstLastIcon:"showFirstLastIcon",totalRecords:"totalRecords",rows:"rows",rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showPageLinks:"showPageLinks",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[fn],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-left"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-right"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-double-left"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"ngClass","click"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange"],["pTemplate","selectedItem"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-double-right"],[1,"p-paginator-page-input",3,"ngModel","disabled","ngModelChange"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange"],[4,"ngIf"],["pTemplate","item"],[1,"p-paginator-right-content"]],template:function(e,n){1&e&&_(0,L6,14,21,"div",0),2&e&&d("ngIf",!!n.alwaysShow||n.pageLinks&&n.pageLinks.length>1)},directives:[Ot,pt,Q,lt,Le,Rt,vt,at,we,_e,ne],styles:[".p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}\n"],encapsulation:2,changeDetection:0}),t})(),RT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,td,nd,Eu,Vt,pn],td,nd,Eu,Vt]}),t})();function O6(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),M(2,"i"),c()()),2&t){const e=p();a(2),me("p-dataview-loading-icon pi-spin "+e.loadingIcon)}}function A6(t,i){1&t&&Y(0)}function P6(t,i){if(1&t&&(l(0,"div",12),xt(1),_(2,A6,1,0,"ng-container",13),c()),2&t){const e=p();a(2),d("ngTemplateOutlet",e.headerTemplate)}}function F6(t,i){if(1&t){const e=I();l(0,"p-paginator",14),C("onPageChange",function(s){return v(e),p().paginate(s)}),c()}if(2&t){const e=p();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)}}function N6(t,i){1&t&&Y(0)}const V6=function(t,i){return{$implicit:t,rowIndex:i}};function B6(t,i){if(1&t&&_(0,N6,1,0,"ng-container",15),2&t){const e=i.$implicit,n=i.index;d("ngTemplateOutlet",p().itemTemplate)("ngTemplateOutletContext",Ge(2,V6,e,n))}}function H6(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=p(2);a(1),T(" ",e.emptyMessageLabel," ")}}function q6(t,i){1&t&&Y(0,null,19)}function G6(t,i){if(1&t&&(l(0,"div",16)(1,"div",17),_(2,H6,2,1,"ng-container",18),_(3,q6,2,0,"ng-container",13),c()()),2&t){const e=p();a(2),d("ngIf",!e.emptyMessageTemplate)("ngIfElse",e.emptyFilter),a(1),d("ngTemplateOutlet",e.emptyMessageTemplate)}}function U6(t,i){if(1&t){const e=I();l(0,"p-paginator",20),C("onPageChange",function(s){return v(e),p().paginate(s)}),c()}if(2&t){const e=p();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)}}function z6(t,i){1&t&&Y(0)}function j6(t,i){if(1&t&&(l(0,"div",21),xt(1,1),_(2,z6,1,0,"ng-container",13),c()),2&t){const e=p();a(2),d("ngTemplateOutlet",e.footerTemplate)}}const $6=[[["p-header"]],[["p-footer"]]],W6=function(t,i){return{"p-dataview p-component":!0,"p-dataview-list":t,"p-dataview-grid":i}},K6=["p-header","p-footer"];let LT=(()=>{class t{constructor(e,n,s,o){this.el=e,this.cd=n,this.filterService=s,this.config=o,this.pageLinks=5,this.paginatorPosition="bottom",this.alwaysShowPaginator=!0,this.paginatorDropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage} of {totalPages}",this.showFirstLastIcon=!0,this.showPageLinks=!0,this.emptyMessage="",this.onLazyLoad=new H,this.trackBy=(r,u)=>u,this.loadingIcon="pi pi-spinner",this.first=0,this.onPage=new H,this.onSort=new H,this.onChangeLayout=new H,this._layout="list"}get layout(){return this._layout}set layout(e){this._layout=e,this.initialized&&this.changeLayout(e)}ngOnInit(){this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.initialized=!0}ngOnChanges(e){e.value&&(this._value=e.value.currentValue,this.updateTotalRecords(),!this.lazy&&this.hasFilter()&&this.filter(this.filterValue)),(e.sortField||e.sortOrder)&&(!this.lazy||this.initialized)&&this.sort()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"listItem":this.listItemTemplate=e.template;break;case"gridItem":this.gridItemTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"empty":this.emptyMessageTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template}}),this.updateItemTemplate()}updateItemTemplate(){switch(this.layout){case"list":this.itemTemplate=this.listItemTemplate;break;case"grid":this.itemTemplate=this.gridItemTemplate}}changeLayout(e){this._layout=e,this.onChangeLayout.emit({layout:this.layout}),this.updateItemTemplate(),this.cd.markForCheck()}updateTotalRecords(){this.totalRecords=this.lazy?this.totalRecords:this._value?this._value.length:0}paginate(e){this.first=e.first,this.rows=e.rows,this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.onPage.emit({first:this.first,rows:this.rows})}sort(){this.first=0,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.value.sort((e,n)=>{let s=Z.resolveFieldData(e,this.sortField),o=Z.resolveFieldData(n,this.sortField),r=null;return r=null==s&&null!=o?-1:null!=s&&null==o?1:null==s&&null==o?0:"string"==typeof s&&"string"==typeof o?s.localeCompare(o):so?1:0,this.sortOrder*r}),this.hasFilter()&&this.filter(this.filterValue)),this.onSort.emit({sortField:this.sortField,sortOrder:this.sortOrder})}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder}}getBlockableElement(){return this.el.nativeElement.children[0]}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Nt.EMPTY_MESSAGE)}filter(e,n="contains"){if(this.filterValue=e,this.value&&this.value.length){let s=this.filterBy.split(",");this.filteredValue=this.filterService.filter(this.value,s,e,n,this.filterLocale),this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.first=0,this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0),this.cd.markForCheck()}}hasFilter(){return this.filterValue&&this.filterValue.trim().length>0}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(ot),D(ml),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-dataView"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Or,5),st(s,gl,5),st(s,ne,4)),2&e){let o;V(o=B())&&(n.header=o.first),V(o=B())&&(n.footer=o.first),V(o=B())&&(n.templates=o)}},hostAttrs:[1,"p-element"],inputs:{paginator:"paginator",rows:"rows",totalRecords:"totalRecords",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",paginatorPosition:"paginatorPosition",alwaysShowPaginator:"alwaysShowPaginator",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",lazy:"lazy",emptyMessage:"emptyMessage",style:"style",styleClass:"styleClass",trackBy:"trackBy",filterBy:"filterBy",filterLocale:"filterLocale",loading:"loading",loadingIcon:"loadingIcon",first:"first",sortField:"sortField",sortOrder:"sortOrder",value:"value",layout:"layout"},outputs:{onLazyLoad:"onLazyLoad",onPage:"onPage",onSort:"onSort",onChangeLayout:"onChangeLayout"},features:[fn],ngContentSelectors:K6,decls:11,vars:19,consts:[[3,"ngClass","ngStyle"],["class","p-dataview-loading",4,"ngIf"],["class","p-dataview-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","onPageChange",4,"ngIf"],[1,"p-dataview-content"],[1,"p-grid","p-nogutter","grid","grid-nogutter"],["ngFor","",3,"ngForOf","ngForTrackBy"],["class","p-col col",4,"ngIf"],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","onPageChange",4,"ngIf"],["class","p-dataview-footer",4,"ngIf"],[1,"p-dataview-loading"],[1,"p-dataview-loading-overlay","p-component-overlay"],[1,"p-dataview-header"],[4,"ngTemplateOutlet"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","onPageChange"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-col","col"],[1,"p-dataview-emptymessage"],[4,"ngIf","ngIfElse"],["emptyFilter",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","onPageChange"],[1,"p-dataview-footer"]],template:function(e,n){1&e&&(Sn($6),l(0,"div",0),_(1,O6,3,2,"div",1),_(2,P6,3,1,"div",2),_(3,F6,1,16,"p-paginator",3),l(4,"div",4)(5,"div",5),_(6,B6,1,5,"ng-template",6),m(7,"slice"),_(8,G6,4,3,"div",7),c()(),_(9,U6,1,16,"p-paginator",8),_(10,j6,3,1,"div",9),c()),2&e&&(me(n.styleClass),d("ngClass",Ge(16,W6,"list"===n.layout,"grid"===n.layout))("ngStyle",n.style),a(1),d("ngIf",n.loading),a(1),d("ngIf",n.header||n.headerTemplate),a(1),d("ngIf",n.paginator&&("top"===n.paginatorPosition||"both"==n.paginatorPosition)),a(3),d("ngForOf",n.paginator?function hC(t,i,e,n,s){const o=t+20,r=$(),u=jo(r,o);return za(r,o)?uC(r,Nn(),i,u.transform,e,n,s,u):u.transform(e,n,s)}(7,12,n.filteredValue||n.value,n.lazy?0:n.first,(n.lazy?0:n.first)+n.rows):n.filteredValue||n.value)("ngForTrackBy",n.trackBy),a(2),d("ngIf",n.isEmpty()),a(1),d("ngIf",n.paginator&&("bottom"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),d("ngIf",n.footer||n.footerTemplate))},directives:[ET,Le,lt,Q,Rt,at],pipes:[My],styles:[".p-dataview{position:relative}.p-dataview .p-dataview-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}\n"],encapsulation:2,changeDetection:0}),t})(),Q6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Vt,RT],Vt]}),t})(),J6=(()=>{class t{constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();let n=R.getFocusableElements(this.el.nativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let s=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==s||0===s?n[n.length-1].focus():n[s-1].focus():-1==s||s===n.length-1?n[0].focus():n[s+1].focus()}else n[0].focus()}}}return t.\u0275fac=function(e){return new(e||t)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,n){1&e&&C("keydown.tab",function(o){return n.onkeydown(o)})("keydown.shift.tab",function(o){return n.onkeydown(o)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}}),t})(),Y6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const Z6=["titlebar"],X6=["content"],e7=["footer"];function t7(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const e=p(4);ie("id",e.id+"-label"),a(1),S(e.header)}}function n7(t,i){1&t&&(l(0,"span",17),xt(1,1),c()),2&t&&ie("id",p(4).id+"-label")}function i7(t,i){1&t&&Y(0)}const s7=function(){return{"p-dialog-header-icon p-dialog-header-maximize p-link":!0}};function o7(t,i){if(1&t){const e=I();l(0,"button",18),C("click",function(){return v(e),p(4).maximize()})("keydown.enter",function(){return v(e),p(4).maximize()}),M(1,"span",19),c()}if(2&t){const e=p(4);d("ngClass",A(2,s7)),a(1),d("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}const r7=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function a7(t,i){if(1&t){const e=I();l(0,"button",20),C("click",function(s){return v(e),p(4).close(s)})("keydown.enter",function(s){return v(e),p(4).close(s)}),M(1,"span",21),c()}if(2&t){const e=p(4);d("ngClass",A(4,r7)),ie("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),a(1),d("ngClass",e.closeIcon)}}function l7(t,i){if(1&t){const e=I();l(0,"div",11,12),C("mousedown",function(s){return v(e),p(3).initDrag(s)}),_(2,t7,2,2,"span",13),_(3,n7,2,1,"span",13),_(4,i7,1,0,"ng-container",8),l(5,"div",14),_(6,o7,2,3,"button",15),_(7,a7,2,5,"button",16),c()()}if(2&t){const e=p(3);a(2),d("ngIf",!e.headerFacet&&!e.headerTemplate),a(1),d("ngIf",e.headerFacet),a(1),d("ngTemplateOutlet",e.headerTemplate),a(2),d("ngIf",e.maximizable),a(1),d("ngIf",e.closable)}}function c7(t,i){1&t&&Y(0)}function u7(t,i){1&t&&Y(0)}function d7(t,i){if(1&t&&(l(0,"div",22,23),xt(2,2),_(3,u7,1,0,"ng-container",8),c()),2&t){const e=p(3);a(3),d("ngTemplateOutlet",e.footerTemplate)}}function p7(t,i){if(1&t){const e=I();l(0,"div",24),C("mousedown",function(s){return v(e),p(3).initResize(s)}),c()}}const h7=function(t,i,e,n){return{"p-dialog p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":i,"p-dialog-resizable":e,"p-dialog-maximized":n}},m7=function(t,i){return{transform:t,transition:i}},f7=function(t){return{value:"visible",params:t}};function g7(t,i){if(1&t){const e=I();l(0,"div",3,4),C("@animation.start",function(s){return v(e),p(2).onAnimationStart(s)})("@animation.done",function(s){return v(e),p(2).onAnimationEnd(s)}),_(2,l7,8,5,"div",5),l(3,"div",6,7),xt(5),_(6,c7,1,0,"ng-container",8),c(),_(7,d7,4,1,"div",9),_(8,p7,1,0,"div",10),c()}if(2&t){const e=p(2);me(e.styleClass),d("ngClass",Ln(15,h7,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",U(23,f7,Ge(20,m7,e.transformOptions,e.transitionOptions))),ie("aria-labelledby",e.id+"-label"),a(2),d("ngIf",e.showHeader),a(1),me(e.contentStyleClass),d("ngClass","p-dialog-content")("ngStyle",e.contentStyle),a(3),d("ngTemplateOutlet",e.contentTemplate),a(1),d("ngIf",e.footerFacet||e.footerTemplate),a(1),d("ngIf",e.resizable)}}const _7=function(t,i,e,n,s,o,r,u,h,b){return{"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":i,"p-dialog-left":e,"p-dialog-right":n,"p-dialog-top":s,"p-dialog-top-left":o,"p-dialog-top-right":r,"p-dialog-bottom":u,"p-dialog-bottom-left":h,"p-dialog-bottom-right":b}};function b7(t,i){if(1&t&&(l(0,"div",1),_(1,g7,9,25,"div",2),c()),2&t){const e=p();me(e.maskStyleClass),d("ngClass",Hh(4,_7,[e.modal,e.modal||e.blockScroll,"left"===e.position,"right"===e.position,"top"===e.position,"topleft"===e.position||"top-left"===e.position,"topright"===e.position||"top-right"===e.position,"bottom"===e.position,"bottomleft"===e.position||"bottom-left"===e.position,"bottomright"===e.position||"bottom-right"===e.position])),a(1),d("ngIf",e.visible)}}const v7=["*",[["p-header"]],[["p-footer"]]],C7=["*","p-header","p-footer"],y7=Ru([it({transform:"{{transform}}",opacity:0}),kt("{{transition}}")]),w7=Ru([kt("{{transition}}",it({transform:"{{transform}}",opacity:0}))]);let bn=(()=>{class t{constructor(e,n,s,o,r){this.el=e,this.renderer=n,this.zone=s,this.cd=o,this.config=r,this.draggable=!0,this.resizable=!0,this.closeOnEscape=!0,this.closable=!0,this.showHeader=!0,this.blockScroll=!1,this.autoZIndex=!0,this.baseZIndex=0,this.minX=0,this.minY=0,this.focusOnShow=!0,this.keepInViewport=!0,this.focusTrap=!0,this.transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.closeIcon="pi pi-times",this.closeTabindex="-1",this.minimizeIcon="pi pi-window-minimize",this.maximizeIcon="pi pi-window-maximize",this.onShow=new H,this.onHide=new H,this.visibleChange=new H,this.onResizeInit=new H,this.onResizeEnd=new H,this.onDragEnd=new H,this.onMaximize=new H,this.id=hl(),this._style={},this._position="center",this.transformOptions="scale(0.7)"}get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngOnInit(){this.breakpoints&&this.createStyle()}get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style=Object.assign({},e),this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}focus(){let e=R.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&R.addClass(document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&R.removeClass(document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?R.addClass(document.body,"p-overflow-hidden"):R.removeClass(document.body,"p-overflow-hidden")),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(dt.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(!this.styleElement){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e="";for(let n in this.breakpoints)e+=`\n @media screen and (max-width: ${n}) {\n .p-dialog[${this.id}] {\n width: ${this.breakpoints[n]} !important;\n }\n }\n `;this.styleElement.innerHTML=e}}initDrag(e){R.hasClass(e.target,"p-dialog-header-icon")||R.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",R.addClass(document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let n=R.getFocusableElements(this.container);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let s=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==s||0===s?n[n.length-1].focus():n[s-1].focus():-1==s||s===n.length-1?n[0].focus():n[s+1].focus()}else n[0].focus()}}onDrag(e){if(this.dragging){let n=R.getOuterWidth(this.container),s=R.getOuterHeight(this.container),o=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,u=this.container.getBoundingClientRect(),h=u.left+o,b=u.top+r,y=R.getViewport();this.container.style.position="fixed",this.keepInViewport?(h>=this.minX&&h+n=this.minY&&b+sparseInt(y))&&k.left+hparseInt(w))&&k.top+b{this.documentDragListener=this.onDrag.bind(this),window.document.addEventListener("mousemove",this.documentDragListener)})}unbindDocumentDragListener(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)}bindDocumentDragEndListener(){this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.endDrag.bind(this),window.document.addEventListener("mouseup",this.documentDragEndListener)})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}bindDocumentResizeListeners(){this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.onResize.bind(this),this.documentResizeEndListener=this.resizeEnd.bind(this),window.document.addEventListener("mousemove",this.documentResizeListener),window.document.addEventListener("mouseup",this.documentResizeEndListener)})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(window.document.removeEventListener("mousemove",this.documentResizeListener),window.document.removeEventListener("mouseup",this.documentResizeEndListener),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",n=>{27==n.which&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):R.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&R.addClass(document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&R.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({});break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(R.removeClass(document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&R.removeClass(document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&dt.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?Object.assign({},this.originalStyle):{}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(gn),D(nt),D(ot),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-dialog"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Or,5),st(s,gl,5),st(s,ne,4)),2&e){let o;V(o=B())&&(n.headerFacet=o.first),V(o=B())&&(n.footerFacet=o.first),V(o=B())&&(n.templates=o)}},viewQuery:function(e,n){if(1&e&&(W(Z6,5),W(X6,5),W(e7,5)),2&e){let s;V(s=B())&&(n.headerViewChild=s.first),V(s=B())&&(n.contentViewChild=s.first),V(s=B())&&(n.footerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:"draggable",resizable:"resizable",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blockScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",minX:"minX",minY:"minY",focusOnShow:"focusOnShow",maximizable:"maximizable",keepInViewport:"keepInViewport",focusTrap:"focusTrap",transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:C7,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],[4,"ngTemplateOutlet"],["class","p-dialog-footer",4,"ngIf"],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",4,"ngIf"],[1,"p-dialog-header-icons"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],["type","button","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"],["footer",""],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"]],template:function(e,n){1&e&&(Sn(v7),_(0,b7,2,15,"div",0)),2&e&&d("ngIf",n.maskVisible)},directives:[Q,Le,J6,lt,Rt,vt],styles:[".p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translate(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0px!important;left:0px!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}\n"],encapsulation:2,data:{animation:[wi("animation",[Lt("void => visible",[fw(y7)]),Lt("visible => void",[fw(w7)])])]},changeDetection:0}),t})(),T7=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Y6,pn],Vt]}),t})();const S7=["*"];let x7=(()=>{class t{constructor(){this.layout="horizontal",this.type="solid"}containerClass(){return{"p-divider p-component":!0,"p-divider-horizontal":"horizontal"===this.layout,"p-divider-vertical":"vertical"===this.layout,"p-divider-solid":"solid"===this.type,"p-divider-dashed":"dashed"===this.type,"p-divider-dotted":"dotted"===this.type,"p-divider-left":"horizontal"===this.layout&&(!this.align||"left"===this.align),"p-divider-center":"horizontal"===this.layout&&"center"===this.align||"vertical"===this.layout&&(!this.align||"center"===this.align),"p-divider-right":"horizontal"===this.layout&&"right"===this.align,"p-divider-top":"vertical"===this.layout&&"top"===this.align,"p-divider-bottom":"vertical"===this.layout&&"bottom"===this.align}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-divider"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",layout:"layout",type:"type",align:"align"},ngContentSelectors:S7,decls:3,vars:4,consts:[["role","separator",3,"ngClass","ngStyle"],[1,"p-divider-content"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0)(1,"div",1),xt(2),c()()),2&e&&(me(n.styleClass),d("ngClass",n.containerClass())("ngStyle",n.style))},directives:[Le,lt],styles:['.p-divider-horizontal{display:flex;width:100%;position:relative;align-items:center}.p-divider-horizontal:before{position:absolute;display:block;top:50%;left:0;width:100%;content:""}.p-divider-horizontal.p-divider-left{justify-content:flex-start}.p-divider-horizontal.p-divider-right{justify-content:flex-end}.p-divider-horizontal.p-divider-center{justify-content:center}.p-divider-content{z-index:1}.p-divider-vertical{min-height:100%;margin:0 1rem;display:flex;position:relative;justify-content:center}.p-divider-vertical:before{position:absolute;display:block;top:0;left:50%;height:100%;content:""}.p-divider-vertical.p-divider-top{align-items:flex-start}.p-divider-vertical.p-divider-center{align-items:center}.p-divider-vertical.p-divider-bottom{align-items:flex-end}.p-divider-solid.p-divider-horizontal:before{border-top-style:solid}.p-divider-solid.p-divider-vertical:before{border-left-style:solid}.p-divider-dashed.p-divider-horizontal:before{border-top-style:dashed}.p-divider-dashed.p-divider-vertical:before{border-left-style:dashed}.p-divider-dotted.p-divider-horizontal:before{border-top-style:dotted}.p-divider-dotted.p-divider-horizontal:before{border-left-style:dotted}\n'],encapsulation:2,changeDetection:0}),t})(),D7=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const M7=function(t,i){return{"pi-minus":t,"pi-plus":i}};function k7(t,i){if(1&t&&M(0,"span",9),2&t){const e=p(2);d("ngClass",Ge(1,M7,!e.collapsed,e.collapsed))}}function I7(t,i){1&t&&Y(0)}function E7(t,i){if(1&t){const e=I();de(0),l(1,"a",7),C("click",function(s){return v(e),p().toggle(s)})("keydown.enter",function(s){return v(e),p().toggle(s)}),_(2,k7,1,4,"span",8),_(3,I7,1,0,"ng-container",6),c(),pe()}if(2&t){const e=p(),n=F(4);a(1),ie("aria-controls",e.id+"-content")("aria-expanded",!e.collapsed),a(1),d("ngIf",e.toggleable),a(1),d("ngTemplateOutlet",n)}}function R7(t,i){1&t&&Y(0)}function L7(t,i){if(1&t&&(l(0,"span",10),g(1),c(),xt(2,1),_(3,R7,1,0,"ng-container",6)),2&t){const e=p();a(1),S(e.legend),a(2),d("ngTemplateOutlet",e.headerTemplate)}}function O7(t,i){1&t&&Y(0)}const A7=["*",[["p-header"]]],P7=function(t){return{"p-fieldset p-component":!0,"p-fieldset-toggleable":t}},F7=function(t){return{transitionParams:t,height:"0"}},N7=function(t){return{value:"hidden",params:t}},V7=function(t){return{transitionParams:t,height:"*"}},B7=function(t){return{value:"visible",params:t}},H7=["*","p-header"];let q7=0,Ui=(()=>{class t{constructor(e){this.el=e,this.collapsed=!1,this.collapsedChange=new H,this.onBeforeToggle=new H,this.onAfterToggle=new H,this.transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)",this.id="p-fieldset-"+q7++}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":this.contentTemplate=e.template}})}toggle(e){if(this.animating)return!1;this.animating=!0,this.onBeforeToggle.emit({originalEvent:e,collapsed:this.collapsed}),this.collapsed?this.expand(e):this.collapse(e),this.onAfterToggle.emit({originalEvent:e,collapsed:this.collapsed}),e.preventDefault()}expand(e){this.collapsed=!1,this.collapsedChange.emit(this.collapsed)}collapse(e){this.collapsed=!0,this.collapsedChange.emit(this.collapsed)}getBlockableElement(){return this.el.nativeElement.children[0]}onToggleDone(){this.animating=!1}}return t.\u0275fac=function(e){return new(e||t)(D(De))},t.\u0275cmp=z({type:t,selectors:[["p-fieldset"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let o;V(o=B())&&(n.templates=o)}},hostAttrs:[1,"p-element"],inputs:{legend:"legend",toggleable:"toggleable",collapsed:"collapsed",style:"style",styleClass:"styleClass",transitionOptions:"transitionOptions"},outputs:{collapsedChange:"collapsedChange",onBeforeToggle:"onBeforeToggle",onAfterToggle:"onAfterToggle"},ngContentSelectors:H7,decls:9,vars:22,consts:[[3,"ngClass","ngStyle"],[1,"p-fieldset-legend"],[4,"ngIf","ngIfElse"],["legendContent",""],["role","region",1,"p-toggleable-content"],[1,"p-fieldset-content"],[4,"ngTemplateOutlet"],["tabindex","0","pRipple","",3,"click","keydown.enter"],["class","p-fieldset-toggler pi",3,"ngClass",4,"ngIf"],[1,"p-fieldset-toggler","pi",3,"ngClass"],[1,"p-fieldset-legend-text"]],template:function(e,n){if(1&e&&(Sn(A7),l(0,"fieldset",0)(1,"legend",1),_(2,E7,4,4,"ng-container",2),_(3,L7,4,2,"ng-template",null,3,Se),c(),l(5,"div",4),C("@fieldsetContent.done",function(){return n.onToggleDone()}),l(6,"div",5),xt(7),_(8,O7,1,0,"ng-container",6),c()()()),2&e){const s=F(4);me(n.styleClass),d("ngClass",U(12,P7,n.toggleable))("ngStyle",n.style),ie("id",n.id),a(2),d("ngIf",n.toggleable)("ngIfElse",s),a(3),d("@fieldsetContent",n.collapsed?U(16,N7,U(14,F7,n.transitionOptions)):U(20,B7,U(18,V7,n.animating?n.transitionOptions:"0ms"))),ie("id",n.id+"-content")("aria-labelledby",n.id)("aria-hidden",n.collapsed),a(3),d("ngTemplateOutlet",n.contentTemplate)}},directives:[Le,lt,Q,vt,Rt],styles:[".p-fieldset-legend>a,.p-fieldset-legend>span{display:flex;align-items:center;justify-content:center}.p-fieldset-toggleable .p-fieldset-legend a{cursor:pointer;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-fieldset-legend-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("fieldsetContent",[ws("hidden",it({height:"0",overflow:"hidden"})),ws("visible",it({height:"*"})),Lt("visible <=> hidden",[it({overflow:"hidden"}),kt("{{transitionParams}}")]),Lt("void => *",kt(0))])]},changeDetection:0}),t})(),G7=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn],Vt]}),t})();const U7=["headerchkbox"];function z7(t,i){1&t&&Y(0)}function j7(t,i){if(1&t&&(l(0,"div",6),xt(1),_(2,z7,1,0,"ng-container",7),c()),2&t){const e=p();a(2),d("ngTemplateOutlet",e.headerTemplate)}}const OT=function(t){return{"p-checkbox-disabled":t}},$7=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}},AT=function(t){return{"pi pi-check":t}};function W7(t,i){if(1&t){const e=I();l(0,"div",10)(1,"div",11)(2,"input",12),C("focus",function(){return v(e),p(2).onHeaderCheckboxFocus()})("blur",function(){return v(e),p(2).onHeaderCheckboxBlur()})("keydown.space",function(s){return v(e),p(2).toggleAll(s)}),c()(),l(3,"div",13,14),C("click",function(s){return v(e),p(2).toggleAll(s)}),M(5,"span",15),c()()}if(2&t){const e=p(2);d("ngClass",U(5,OT,e.disabled||e.toggleAllDisabled)),a(2),d("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),a(1),d("ngClass",Jt(7,$7,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),a(2),d("ngClass",U(11,AT,e.allChecked))}}function K7(t,i){if(1&t){const e=I();l(0,"div",16)(1,"input",17),C("input",function(s){return v(e),p(2).onFilter(s)}),c(),M(2,"span",18),c()}if(2&t){const e=p(2);a(1),d("value",e.filterValue||"")("disabled",e.disabled),ie("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function Q7(t,i){if(1&t&&(l(0,"div",6),_(1,W7,6,13,"div",8),_(2,K7,3,4,"div",9),c()),2&t){const e=p();a(1),d("ngIf",e.checkbox&&e.multiple&&e.showToggleAll),a(1),d("ngIf",e.filter)}}function J7(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const e=p().$implicit,n=p(2);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function Y7(t,i){1&t&&Y(0)}function Z7(t,i){1&t&&Y(0)}const Xf=function(t){return{$implicit:t}};function X7(t,i){if(1&t&&(l(0,"li",20),_(1,J7,2,1,"span",3),_(2,Y7,1,0,"ng-container",21),c(),_(3,Z7,1,0,"ng-container",21)),2&t){const e=i.$implicit,n=p(2),s=F(8);a(1),d("ngIf",!n.groupTemplate),a(1),d("ngTemplateOutlet",n.groupTemplate)("ngTemplateOutletContext",U(5,Xf,e)),a(1),d("ngTemplateOutlet",s)("ngTemplateOutletContext",U(7,Xf,n.getOptionGroupChildren(e)))}}function eB(t,i){if(1&t&&(de(0),_(1,X7,4,9,"ng-template",19),pe()),2&t){const e=p();a(1),d("ngForOf",e.optionsToRender)}}function tB(t,i){1&t&&Y(0)}function nB(t,i){if(1&t&&(de(0),_(1,tB,1,0,"ng-container",21),pe()),2&t){const e=p(),n=F(8);a(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",U(2,Xf,e.optionsToRender))}}const iB=function(t){return{"p-highlight":t}};function sB(t,i){if(1&t&&(l(0,"div",10)(1,"div",25),M(2,"span",15),c()()),2&t){const e=p().$implicit,n=p(2);d("ngClass",U(3,OT,n.disabled||n.isOptionDisabled(e))),a(1),d("ngClass",U(5,iB,n.isSelected(e))),a(1),d("ngClass",U(7,AT,n.isSelected(e)))}}function oB(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const e=p().$implicit,n=p(2);a(1),S(n.getOptionLabel(e))}}function rB(t,i){1&t&&Y(0)}const aB=function(t,i){return{"p-listbox-item":!0,"p-highlight":t,"p-disabled":i}},lB=function(t,i){return{$implicit:t,index:i}};function cB(t,i){if(1&t){const e=I();l(0,"li",24),C("click",function(s){const r=v(e).$implicit;return p(2).onOptionClick(s,r)})("dblclick",function(s){const r=v(e).$implicit;return p(2).onOptionDoubleClick(s,r)})("touchend",function(){const o=v(e).$implicit;return p(2).onOptionTouchEnd(o)})("keydown",function(s){const r=v(e).$implicit;return p(2).onOptionKeyDown(s,r)}),_(1,sB,3,9,"div",8),_(2,oB,2,1,"span",3),_(3,rB,1,0,"ng-container",21),c()}if(2&t){const e=i.$implicit,n=i.index,s=p(2);d("ngClass",Ge(8,aB,s.isSelected(e),s.isOptionDisabled(e))),ie("tabindex",s.disabled||s.isOptionDisabled(e)?null:"0")("aria-label",s.getOptionLabel(e))("aria-selected",s.isSelected(e)),a(1),d("ngIf",s.checkbox&&s.multiple),a(1),d("ngIf",!s.itemTemplate),a(1),d("ngTemplateOutlet",s.itemTemplate)("ngTemplateOutletContext",Ge(11,lB,e,n))}}function uB(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=p(3);a(1),T(" ",e.emptyFilterMessageLabel," ")}}function dB(t,i){1&t&&Y(0,null,28)}function pB(t,i){if(1&t&&(l(0,"li",26),_(1,uB,2,1,"ng-container",27),_(2,dB,2,0,"ng-container",7),c()),2&t){const e=p(2);a(1),d("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),d("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function hB(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=p(3);a(1),T(" ",e.emptyMessageLabel," ")}}function mB(t,i){1&t&&Y(0,null,29)}function fB(t,i){if(1&t&&(l(0,"li",26),_(1,hB,2,1,"ng-container",27),_(2,mB,2,0,"ng-container",7),c()),2&t){const e=p(2);a(1),d("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),d("ngTemplateOutlet",e.emptyTemplate)}}function gB(t,i){if(1&t&&(_(0,cB,4,14,"li",22),_(1,pB,3,3,"li",23),_(2,fB,3,3,"li",23)),2&t){const e=i.$implicit,n=p();d("ngForOf",e),a(1),d("ngIf",n.hasFilter()&&n.isEmpty(e)),a(1),d("ngIf",!n.hasFilter()&&n.isEmpty(e))}}function _B(t,i){1&t&&Y(0)}function bB(t,i){if(1&t&&(l(0,"div",30),xt(1,1),_(2,_B,1,0,"ng-container",7),c()),2&t){const e=p();a(2),d("ngTemplateOutlet",e.footerTemplate)}}const vB=[[["p-header"]],[["p-footer"]]],CB=function(t){return{"p-listbox p-component":!0,"p-disabled":t}},yB=["p-header","p-footer"],wB={provide:dn,useExisting:je(()=>zi),multi:!0};let zi=(()=>{class t{constructor(e,n,s,o){this.el=e,this.cd=n,this.filterService=s,this.config=o,this.checkbox=!1,this.filter=!1,this.filterMatchMode="contains",this.metaKeySelection=!0,this.showToggleAll=!0,this.optionGroupChildren="items",this.onChange=new H,this.onClick=new H,this.onDblClick=new H,this.onModelChange=()=>{},this.onModelTouched=()=>{}}get options(){return this._options}set options(e){this._options=e,this.hasFilter()&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(e){this._filterValue=e,this.activateFilter()}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template}})}getOptionLabel(e){return this.optionLabel?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?Z.resolveFieldData(e,this.optionGroupChildren):e.items}getOptionGroupLabel(e){return this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?Z.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionClick(e,n){this.disabled||this.isOptionDisabled(n)||this.readonly||(this.multiple?this.checkbox?this.onOptionClickCheckbox(e,n):this.onOptionClickMultiple(e,n):this.onOptionClickSingle(e,n),this.onClick.emit({originalEvent:e,option:n,value:this.value}),this.optionTouched=!1)}onOptionTouchEnd(e){this.disabled||this.isOptionDisabled(e)||this.readonly||(this.optionTouched=!0)}onOptionDoubleClick(e,n){this.disabled||this.isOptionDisabled(n)||this.readonly||this.onDblClick.emit({originalEvent:e,option:n,value:this.value})}onOptionClickSingle(e,n){let s=this.isSelected(n),o=!1;if(!this.optionTouched&&this.metaKeySelection){let u=e.metaKey||e.ctrlKey;s?u&&(this.value=null,o=!0):(this.value=this.getOptionValue(n),o=!0)}else this.value=s?null:this.getOptionValue(n),o=!0;o&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickMultiple(e,n){let s=this.isSelected(n),o=!1;if(!this.optionTouched&&this.metaKeySelection){let u=e.metaKey||e.ctrlKey;s?(u?this.removeOption(n):this.value=[this.getOptionValue(n)],o=!0):(this.value=u&&this.value||[],this.value=[...this.value,this.getOptionValue(n)],o=!0)}else s?this.removeOption(n):this.value=[...this.value||[],this.getOptionValue(n)],o=!0;o&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickCheckbox(e,n){this.disabled||this.readonly||(this.isSelected(n)?this.removeOption(n):(this.value=this.value?this.value:[],this.value=[...this.value,this.getOptionValue(n)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}removeOption(e){this.value=this.value.filter(n=>!Z.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let n=!1,s=this.getOptionValue(e);if(this.multiple){if(this.value)for(let o of this.value)if(Z.equals(o,s,this.dataKey)){n=!0;break}}else n=Z.equals(this.value,s,this.dataKey);return n}get allChecked(){let e=this.optionsToRender;if(!e||0===e.length)return!1;{let n=0,s=0,o=0,r=this.group?0:this.optionsToRender.length;for(let u of e)if(this.group)for(let h of this.getOptionGroupChildren(u)){let b=this.isOptionDisabled(h),y=this.isSelected(h);if(b)y?n++:s++;else{if(!y)return!1;o++}r++}else{let h=this.isOptionDisabled(u),b=this.isSelected(u);if(h)b?n++:s++;else{if(!b)return!1;o++}}return r===n||r===o||o&&r===o+s+n}}get optionsToRender(){return this._filteredOptions||this.options}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Nt.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Nt.EMPTY_FILTER_MESSAGE)}hasFilter(){return this._filterValue&&this._filterValue.trim().length>0}isEmpty(e){return!e||e&&0===e.length}onFilter(e){this._filterValue=e.target.value,this.activateFilter()}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let e=(this.optionLabel||"label").split(","),n=[];for(let s of this.options){let o=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);o&&o.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:o}))}this._filteredOptions=n}else this._filteredOptions=this._options.filter(e=>this.filterService.filters[this.filterMatchMode](this.getOptionLabel(e),this._filterValue,this.filterLocale));else this._filteredOptions=null}get toggleAllDisabled(){let e=this.optionsToRender;if(!e||0===e.length)return!0;for(let n of e)if(!this.isOptionDisabled(n))return!1;return!0}toggleAll(e){this.disabled||this.toggleAllDisabled||this.readonly||(this.allChecked?this.uncheckAll():this.checkAll(),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),e.preventDefault())}checkAll(){let n=[];this.optionsToRender.forEach(s=>{if(this.group){let o=this.getOptionGroupChildren(s);o&&o.forEach(r=>{let u=this.isOptionDisabled(r);(!u||u&&this.isSelected(r))&&n.push(this.getOptionValue(r))})}else{let o=this.isOptionDisabled(s);(!o||o&&this.isSelected(s))&&n.push(this.getOptionValue(s))}}),this.value=n}uncheckAll(){let n=[];this.optionsToRender.forEach(s=>{this.group?s.items&&s.items.forEach(o=>{this.isOptionDisabled(o)&&this.isSelected(o)&&n.push(this.getOptionValue(o))}):this.isOptionDisabled(s)&&this.isSelected(s)&&n.push(this.getOptionValue(s))}),this.value=n}onOptionKeyDown(e,n){if(this.readonly)return;let s=e.currentTarget;switch(e.which){case 40:var o=this.findNextItem(s);o&&o.focus(),e.preventDefault();break;case 38:var r=this.findPrevItem(s);r&&r.focus(),e.preventDefault();break;case 13:this.onOptionClick(e,n),e.preventDefault()}}findNextItem(e){let n=e.nextElementSibling;return n?R.hasClass(n,"p-disabled")||R.isHidden(n)||R.hasClass(n,"p-listbox-item-group")?this.findNextItem(n):n:null}findPrevItem(e){let n=e.previousElementSibling;return n?R.hasClass(n,"p-disabled")||R.isHidden(n)||R.hasClass(n,"p-listbox-item-group")?this.findPrevItem(n):n:null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(ot),D(ml),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-listbox"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Or,5),st(s,gl,5),st(s,ne,4)),2&e){let o;V(o=B())&&(n.headerFacet=o.first),V(o=B())&&(n.footerFacet=o.first),V(o=B())&&(n.templates=o)}},viewQuery:function(e,n){if(1&e&&W(U7,5),2&e){let s;V(s=B())&&(n.headerCheckboxViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:"readonly",disabled:"disabled",checkbox:"checkbox",filter:"filter",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:"metaKeySelection",dataKey:"dataKey",showToggleAll:"showToggleAll",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:"group",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick"},features:[Pe([wB])],ngContentSelectors:yB,decls:10,vars:15,consts:[[3,"ngClass","ngStyle"],["class","p-listbox-header",4,"ngIf"],["role","listbox","aria-multiselectable","multiple",1,"p-listbox-list"],[4,"ngIf"],["itemslist",""],["class","p-listbox-footer",4,"ngIf"],[1,"p-listbox-header"],[4,"ngTemplateOutlet"],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],["class","p-listbox-filter-container",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],[1,"p-checkbox-box",3,"ngClass","click"],["headerchkbox",""],[1,"p-checkbox-icon",3,"ngClass"],[1,"p-listbox-filter-container"],["type","text",1,"p-listbox-filter","p-inputtext","p-component",3,"value","disabled","input"],[1,"p-listbox-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-listbox-item-group"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown",4,"ngFor","ngForOf"],["class","p-listbox-empty-message",4,"ngIf"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-listbox-empty-message"],[4,"ngIf","ngIfElse"],["emptyFilter",""],["empty",""],[1,"p-listbox-footer"]],template:function(e,n){1&e&&(Sn(vB),l(0,"div",0),_(1,j7,3,1,"div",1),_(2,Q7,3,2,"div",1),l(3,"div",0)(4,"ul",2),_(5,eB,2,1,"ng-container",3),_(6,nB,2,4,"ng-container",3),_(7,gB,3,3,"ng-template",null,4,Se),c()(),_(9,bB,3,1,"div",5),c()),2&e&&(me(n.styleClass),d("ngClass",U(13,CB,n.disabled))("ngStyle",n.style),a(1),d("ngIf",n.headerFacet||n.headerTemplate),a(1),d("ngIf",n.checkbox&&n.multiple&&n.showToggleAll||n.filter),a(1),me(n.listStyleClass),d("ngClass","p-listbox-list-wrapper")("ngStyle",n.listStyle),a(2),d("ngIf",n.group),a(1),d("ngIf",!n.group),a(3),d("ngIf",n.footerFacet||n.footerTemplate))},directives:[Le,lt,Q,Rt,at,vt],styles:[".p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-item{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;-webkit-user-select:none;user-select:none}.p-listbox-header{display:flex;align-items:center}.p-listbox-filter-container{position:relative;flex:1 1 auto}.p-listbox-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-listbox-filter{width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),TB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Vt,pn],Vt]}),t})();class ji extends ct{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const e=super._subscribe(i);return e&&!e.closed&&i.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new no;return this._value}next(i){super.next(this._value=i)}}class SB extends wt{notifyNext(i,e,n,s,o){this.destination.next(e)}notifyError(i,e){this.destination.error(i)}notifyComplete(i){this.destination.complete()}}class xB extends wt{constructor(i,e,n){super(),this.parent=i,this.outerValue=e,this.outerIndex=n,this.index=0}_next(i){this.parent.notifyNext(this.outerValue,i,this.outerIndex,this.index++,this)}_error(i){this.parent.notifyError(i,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function DB(t,i,e,n,s=new xB(t,e,n)){if(!s.closed)return i instanceof Je?i.subscribe(s):Od(i)(s)}const PT={};class kB{constructor(i){this.resultSelector=i}call(i,e){return e.subscribe(new IB(i,this.resultSelector))}}class IB extends SB{constructor(i,e){super(i),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(i){this.values.push(PT),this.observables.push(i)}_complete(){const i=this.observables,e=i.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function FT(t,i){let e=!1;return arguments.length>=2&&(e=!0),function(s){return s.lift(new EB(t,i,e))}}class EB{constructor(i,e,n=!1){this.accumulator=i,this.seed=e,this.hasSeed=n}call(i,e){return e.subscribe(new RB(i,this.accumulator,this.seed,this.hasSeed))}}class RB extends wt{constructor(i,e,n,s){super(i),this.accumulator=e,this._seed=n,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(i){this.hasSeed=!0,this._seed=i}_next(i){if(this.hasSeed)return this._tryNext(i);this.seed=i,this.destination.next(i)}_tryNext(i){const e=this.index++;let n;try{n=this.accumulator(this.seed,i,e)}catch(s){this.destination.error(s)}this.seed=n,this.destination.next(n)}}function ko(t){return function(e){const n=new LB(t),s=e.lift(n);return n.caught=s}}class LB{constructor(i){this.selector=i}call(i,e){return e.subscribe(new OB(i,this.selector,this.caught))}}class OB extends Xr{constructor(i,e,n){super(i),this.selector=e,this.caught=n}error(i){if(!this.isStopped){let e;try{e=this.selector(i,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const n=new Zr(this);this.add(n);const s=ea(e,n);s!==n&&this.add(s)}}}function eg(t){return function(e){return 0===t?du():e.lift(new AB(t))}}class AB{constructor(i){if(this.total=i,this.total<0)throw new s0}call(i,e){return e.subscribe(new PB(i,this.total))}}class PB extends wt{constructor(i,e){super(i),this.total=e,this.ring=new Array,this.count=0}_next(i){const e=this.ring,n=this.total,s=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,s=this.ring;for(let o=0;oi.lift(new FB(t))}class FB{constructor(i){this.errorFactory=i}call(i,e){return e.subscribe(new NB(i,this.errorFactory))}}class NB extends wt{constructor(i,e){super(i),this.errorFactory=e,this.hasValue=!1}_next(i){this.hasValue=!0,this.destination.next(i)}_complete(){if(this.hasValue)return this.destination.complete();{let i;try{i=this.errorFactory()}catch(e){i=e}this.destination.error(i)}}}function VB(){return new sd}function VT(t=null){return i=>i.lift(new BB(t))}class BB{constructor(i){this.defaultValue=i}call(i,e){return e.subscribe(new HB(i,this.defaultValue))}}class HB extends wt{constructor(i,e){super(i),this.defaultValue=e,this.isEmpty=!0}_next(i){this.isEmpty=!1,this.destination.next(i)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Nr(t,i){const e=arguments.length>=2;return n=>n.pipe(t?Us((s,o)=>t(s,o,n)):Gl,vo(1),e?VT(i):NT(()=>new sd))}function Js(){}function li(t,i,e){return function(s){return s.lift(new GB(t,i,e))}}class GB{constructor(i,e,n){this.nextOrObserver=i,this.error=e,this.complete=n}call(i,e){return e.subscribe(new UB(i,this.nextOrObserver,this.error,this.complete))}}class UB extends wt{constructor(i,e,n,s){super(i),this._tapNext=Js,this._tapError=Js,this._tapComplete=Js,this._tapError=n||Js,this._tapComplete=s||Js,Is(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Js,this._tapError=e.error||Js,this._tapComplete=e.complete||Js)}_next(i){try{this._tapNext.call(this._context,i)}catch(e){return void this.destination.error(e)}this.destination.next(i)}_error(i){try{this._tapError.call(this._context,i)}catch(e){return void this.destination.error(e)}this.destination.error(i)}_complete(){try{this._tapComplete.call(this._context)}catch(i){return void this.destination.error(i)}return this.destination.complete()}}class jB{constructor(i){this.callback=i}call(i,e){return e.subscribe(new $B(i,this.callback))}}class $B extends wt{constructor(i,e){super(i),this.add(new Et(e))}}class xs{constructor(i,e){this.id=i,this.url=e}}class tg extends xs{constructor(i,e,n="imperative",s=null){super(i,e),this.navigationTrigger=n,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Cl extends xs{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class BT extends xs{constructor(i,e,n){super(i,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class WB extends xs{constructor(i,e,n){super(i,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class KB extends xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedirects=n,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class QB extends xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedirects=n,this.state=s}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class JB extends xs{constructor(i,e,n,s,o){super(i,e),this.urlAfterRedirects=n,this.state=s,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class YB extends xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ZB extends xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class HT{constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class qT{constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class XB{constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class e8{constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class t8{constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class n8{constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class GT{constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ke="primary";class i8{constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Vr(t){return new i8(t)}const UT="ngNavigationCancelingError";function ng(t){const i=Error("NavigationCancelingError: "+t);return i[UT]=!0,i}function o8(t,i,e){const n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.lengthn[o]===s)}return t===i}function jT(t){return Array.prototype.concat.apply([],t)}function $T(t){return t.length>0?t[t.length-1]:null}function xn(t,i){for(const e in t)t.hasOwnProperty(e)&&i(t[e],e)}function ls(t){return Dh(t)?t:La(t)?Mn(Promise.resolve(t)):re(t)}const l8={exact:function QT(t,i,e){if(!Eo(t.segments,i.segments)||!od(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children)if(!t.children[n]||!QT(t.children[n],i.children[n],e))return!1;return!0},subset:JT},WT={exact:function c8(t,i){return as(t,i)},subset:function u8(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>zT(t[e],i[e]))},ignored:()=>!0};function KT(t,i,e){return l8[e.paths](t.root,i.root,e.matrixParams)&&WT[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function JT(t,i,e){return YT(t,i,i.segments,e)}function YT(t,i,e,n){if(t.segments.length>e.length){const s=t.segments.slice(0,e.length);return!(!Eo(s,e)||i.hasChildren()||!od(s,e,n))}if(t.segments.length===e.length){if(!Eo(t.segments,e)||!od(t.segments,e,n))return!1;for(const s in i.children)if(!t.children[s]||!JT(t.children[s],i.children[s],n))return!1;return!0}{const s=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(Eo(t.segments,s)&&od(t.segments,s,n)&&t.children[Ke])&&YT(t.children[Ke],i,o,n)}}function od(t,i,e){return i.every((n,s)=>WT[e](t[s].parameters,n.parameters))}class Io{constructor(i,e,n){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Vr(this.queryParams)),this._queryParamMap}toString(){return h8.serialize(this)}}class Xe{constructor(i,e){this.segments=i,this.children=e,this.parent=null,xn(e,(n,s)=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return rd(this)}}class yl{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Vr(this.parameters)),this._parameterMap}toString(){return n2(this)}}function Eo(t,i){return t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}class ZT{}class XT{parse(i){const e=new w8(i);return new Io(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const e=`/${wl(i.root,!0)}`,n=function g8(t){const i=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(s=>`${ad(e)}=${ad(s)}`).join("&"):`${ad(e)}=${ad(n)}`}).filter(e=>!!e);return i.length?`?${i.join("&")}`:""}(i.queryParams),s="string"==typeof i.fragment?`#${function m8(t){return encodeURI(t)}(i.fragment)}`:"";return`${e}${n}${s}`}}const h8=new XT;function rd(t){return t.segments.map(i=>n2(i)).join("/")}function wl(t,i){if(!t.hasChildren())return rd(t);if(i){const e=t.children[Ke]?wl(t.children[Ke],!1):"",n=[];return xn(t.children,(s,o)=>{o!==Ke&&n.push(`${o}:${wl(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function p8(t,i){let e=[];return xn(t.children,(n,s)=>{s===Ke&&(e=e.concat(i(n,s)))}),xn(t.children,(n,s)=>{s!==Ke&&(e=e.concat(i(n,s)))}),e}(t,(n,s)=>s===Ke?[wl(t.children[Ke],!1)]:[`${s}:${wl(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ke]?`${rd(t)}/${e[0]}`:`${rd(t)}/(${e.join("//")})`}}function e2(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ad(t){return e2(t).replace(/%3B/gi,";")}function ig(t){return e2(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ld(t){return decodeURIComponent(t)}function t2(t){return ld(t.replace(/\+/g,"%20"))}function n2(t){return`${ig(t.path)}${function f8(t){return Object.keys(t).map(i=>`;${ig(i)}=${ig(t[i])}`).join("")}(t.parameters)}`}const _8=/^[^\/()?;=#]+/;function cd(t){const i=t.match(_8);return i?i[0]:""}const b8=/^[^=?]+/,C8=/^[^]+/;class w8{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Xe([],{}):new Xe([],this.parseChildren())}parseQueryParams(){const i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[Ke]=new Xe(i,e)),n}parseSegment(){const i=cd(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(i),new yl(ld(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const e=cd(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const s=cd(this.remaining);s&&(n=s,this.capture(n))}i[ld(e)]=ld(n)}parseQueryParam(i){const e=function v8(t){const i=t.match(b8);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=function y8(t){const i=t.match(C8);return i?i[0]:""}(this.remaining);r&&(n=r,this.capture(n))}const s=t2(e),o=t2(n);if(i.hasOwnProperty(s)){let r=i[s];Array.isArray(r)||(r=[r],i[s]=r),r.push(o)}else i[s]=o}parseParens(i){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=cd(this.remaining),s=this.remaining[n.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let o;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):i&&(o=Ke);const r=this.parseChildren();e[o]=1===Object.keys(r).length?r[Ke]:new Xe([],r),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw new Error(`Expected "${i}".`)}}class s2{constructor(i){this._root=i}get root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){const e=sg(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){const e=sg(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){const e=og(i,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==i)}pathFromRoot(i){return og(i,this._root).map(e=>e.value)}}function sg(t,i){if(t===i.value)return i;for(const e of i.children){const n=sg(t,e);if(n)return n}return null}function og(t,i){if(t===i.value)return[i];for(const e of i.children){const n=og(t,e);if(n.length)return n.unshift(i),n}return[]}class Ds{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function Br(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class o2 extends s2{constructor(i,e){super(i),this.snapshot=e,rg(this,i)}toString(){return this.snapshot.toString()}}function r2(t,i){const e=function T8(t,i){const r=new ud([],{},{},"",{},Ke,i,null,t.root,-1,{});return new l2("",new Ds(r,[]))}(t,i),n=new ji([new yl("",{})]),s=new ji({}),o=new ji({}),r=new ji({}),u=new ji(""),h=new Ro(n,s,r,u,o,Ke,i,e.root);return h.snapshot=e.root,new o2(new Ds(h,[]),e)}class Ro{constructor(i,e,n,s,o,r,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=s,this.data=o,this.outlet=r,this.component=u,this._futureSnapshot=h}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(et(i=>Vr(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(et(i=>Vr(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function a2(t,i="emptyOnly"){const e=t.pathFromRoot;let n=0;if("always"!==i)for(n=e.length-1;n>=1;){const s=e[n],o=e[n-1];if(s.routeConfig&&""===s.routeConfig.path)n--;else{if(o.component)break;n--}}return function S8(t){return t.reduce((i,e)=>({params:Object.assign(Object.assign({},i.params),e.params),data:Object.assign(Object.assign({},i.data),e.data),resolve:Object.assign(Object.assign({},i.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(n))}class ud{constructor(i,e,n,s,o,r,u,h,b,y,w){this.url=i,this.params=e,this.queryParams=n,this.fragment=s,this.data=o,this.outlet=r,this.component=u,this.routeConfig=h,this._urlSegment=b,this._lastPathIndex=y,this._resolve=w}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=Vr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Vr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class l2 extends s2{constructor(i,e){super(e),this.url=i,rg(this,e)}toString(){return c2(this._root)}}function rg(t,i){i.value._routerState=t,i.children.forEach(e=>rg(t,e))}function c2(t){const i=t.children.length>0?` { ${t.children.map(c2).join(", ")} } `:"";return`${t.value}${i}`}function ag(t){if(t.snapshot){const i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,as(i.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),i.fragment!==e.fragment&&t.fragment.next(e.fragment),as(i.params,e.params)||t.params.next(e.params),function r8(t,i){if(t.length!==i.length)return!1;for(let e=0;eas(e.parameters,i[n].parameters))}(t.url,i.url);return e&&!(!t.parent!=!i.parent)&&(!t.parent||lg(t.parent,i.parent))}function Tl(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=i.value;const s=function D8(t,i,e){return i.children.map(n=>{for(const s of e.children)if(t.shouldReuseRoute(n.value,s.value.snapshot))return Tl(t,n,s);return Tl(t,n)})}(t,i,e);return new Ds(n,s)}{if(t.shouldAttach(i.value)){const o=t.retrieve(i.value);if(null!==o){const r=o.route;return r.value._futureSnapshot=i.value,r.children=i.children.map(u=>Tl(t,u)),r}}const n=function M8(t){return new Ro(new ji(t.url),new ji(t.params),new ji(t.queryParams),new ji(t.fragment),new ji(t.data),t.outlet,t.component,t)}(i.value),s=i.children.map(o=>Tl(t,o));return new Ds(n,s)}}function dd(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Sl(t){return"object"==typeof t&&null!=t&&t.outlets}function cg(t,i,e,n,s){let o={};if(n&&xn(n,(u,h)=>{o[h]=Array.isArray(u)?u.map(b=>`${b}`):`${u}`}),t===i)return new Io(e,o,s);const r=u2(t,i,e);return new Io(r,o,s)}function u2(t,i,e){const n={};return xn(t.children,(s,o)=>{n[o]=s===i?e:u2(s,i,e)}),new Xe(t.segments,n)}class d2{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&dd(n[0]))throw new Error("Root segment cannot have matrix parameters");const s=n.find(Sl);if(s&&s!==$T(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ug{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function p2(t,i,e){if(t||(t=new Xe([],{})),0===t.segments.length&&t.hasChildren())return pd(t,i,e);const n=function O8(t,i,e){let n=0,s=i;const o={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return o;const r=t.segments[s],u=e[n];if(Sl(u))break;const h=`${u}`,b=n0&&void 0===h)break;if(h&&b&&"object"==typeof b&&void 0===b.outlets){if(!m2(h,b,r))return o;n+=2}else{if(!m2(h,{},r))return o;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,i,e),s=e.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(s[r]=p2(t.children[r],i,o))}),xn(t.children,(o,r)=>{void 0===n[r]&&(s[r]=o)}),new Xe(t.segments,s)}}function dg(t,i,e){const n=t.segments.slice(0,i);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(i[n]=dg(new Xe([],{}),0,e))}),i}function h2(t){const i={};return xn(t,(e,n)=>i[n]=`${e}`),i}function m2(t,i,e){return t==e.path&&as(i,e.parameters)}class F8{constructor(i,e,n,s){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=s}activate(i){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),ag(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const s=Br(e);i.children.forEach(o=>{const r=o.value.outlet;this.deactivateRoutes(o,s[r],n),delete s[r]}),xn(s,(o,r)=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(i,e,n){const s=i.value,o=e?e.value:null;if(s===o)if(s.component){const r=n.getContext(s.outlet);r&&this.deactivateChildRoutes(i,e,r.children)}else this.deactivateChildRoutes(i,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const n=e.getContext(i.value.outlet),s=n&&i.value.component?n.children:e,o=Br(i);for(const r of Object.keys(o))this.deactivateRouteAndItsChildren(o[r],s);if(n&&n.outlet){const r=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:r,route:i,contexts:u})}}deactivateRouteAndOutlet(i,e){const n=e.getContext(i.value.outlet),s=n&&i.value.component?n.children:e,o=Br(i);for(const r of Object.keys(o))this.deactivateRouteAndItsChildren(o[r],s);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(i,e,n){const s=Br(e);i.children.forEach(o=>{this.activateRoutes(o,s[o.value.outlet],n),this.forwardEvent(new n8(o.value.snapshot))}),i.children.length&&this.forwardEvent(new e8(i.value.snapshot))}activateRoutes(i,e,n){const s=i.value,o=e?e.value:null;if(ag(s),s===o)if(s.component){const r=n.getOrCreateContext(s.outlet);this.activateChildRoutes(i,e,r.children)}else this.activateChildRoutes(i,e,n);else if(s.component){const r=n.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const u=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),r.children.onOutletReAttached(u.contexts),r.attachRef=u.componentRef,r.route=u.route.value,r.outlet&&r.outlet.attach(u.componentRef,u.route.value),ag(u.route.value),this.activateChildRoutes(i,null,r.children)}else{const u=function N8(t){for(let i=t.parent;i;i=i.parent){const e=i.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(s.snapshot),h=u?u.module.componentFactoryResolver:null;r.attachRef=null,r.route=s,r.resolver=h,r.outlet&&r.outlet.activateWith(s,h),this.activateChildRoutes(i,null,r.children)}}else this.activateChildRoutes(i,null,n)}}class pg{constructor(i,e){this.routes=i,this.module=e}}function Ys(t){return"function"==typeof t}function Lo(t){return t instanceof Io}const xl=Symbol("INITIAL_VALUE");function Dl(){return qi(t=>function MB(...t){let i,e;return Bo(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&Vo(t[0])&&(t=t[0]),Pd(t,e).lift(new kB(i))}(t.map(i=>i.pipe(vo(1),Xu(xl)))).pipe(FT((i,e)=>{let n=!1;return e.reduce((s,o,r)=>s!==xl?s:(o===xl&&(n=!0),n||!1!==o&&r!==e.length-1&&!Lo(o)?s:o),i)},xl),Us(i=>i!==xl),et(i=>Lo(i)?i:!0===i),vo(1)))}class U8{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ml,this.attachRef=null}}class Ml{constructor(){this.contexts=new Map}onChildOutletCreated(i,e){const n=this.getOrCreateContext(i);n.outlet=e,this.contexts.set(i,n)}onChildOutletDestroyed(i){const e=this.getContext(i);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const i=this.contexts;return this.contexts=new Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let e=this.getContext(i);return e||(e=new U8,this.contexts.set(i,e)),e}getContext(i){return this.contexts.get(i)||null}}let kl=(()=>{class t{constructor(e,n,s,o,r){this.parentContexts=e,this.location=n,this.resolver=s,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new H,this.deactivateEvents=new H,this.attachEvents=new H,this.detachEvents=new H,this.name=o||Ke,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const r=(n=n||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),u=this.parentContexts.getOrCreateContext(this.name).children,h=new z8(e,u,this.location.injector);this.activated=this.location.createComponent(r,this.location.length,h),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(D(Ml),D(vi),D(Ba),da("name"),D(ot))},t.\u0275dir=le({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class z8{constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return i===Ro?this.route:i===Ml?this.childContexts:this.parent.get(i,e)}}let f2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,n){1&e&&M(0,"router-outlet")},directives:[kl],encapsulation:2}),t})();function g2(t,i=""){for(let e=0;exi(n)===i);return e.push(...t.filter(n=>xi(n)!==i)),e}const b2={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function hd(t,i,e){var n;if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},b2):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(i.matcher||o8)(e,t,i);if(!o)return Object.assign({},b2);const r={};xn(o.posParams,(h,b)=>{r[b]=h.path});const u=o.consumed.length>0?Object.assign(Object.assign({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:u,positionalParamSegments:null!==(n=o.posParams)&&void 0!==n?n:{}}}function md(t,i,e,n,s="corrected"){if(e.length>0&&function Q8(t,i,e){return e.some(n=>fd(t,i,n)&&xi(n)!==Ke)}(t,e,n)){const r=new Xe(i,function K8(t,i,e,n){const s={};s[Ke]=n,n._sourceSegment=t,n._segmentIndexShift=i.length;for(const o of e)if(""===o.path&&xi(o)!==Ke){const r=new Xe([],{});r._sourceSegment=t,r._segmentIndexShift=i.length,s[xi(o)]=r}return s}(t,i,n,new Xe(e,t.children)));return r._sourceSegment=t,r._segmentIndexShift=i.length,{segmentGroup:r,slicedSegments:[]}}if(0===e.length&&function J8(t,i,e){return e.some(n=>fd(t,i,n))}(t,e,n)){const r=new Xe(t.segments,function W8(t,i,e,n,s,o){const r={};for(const u of n)if(fd(t,e,u)&&!s[xi(u)]){const h=new Xe([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===o?t.segments.length:i.length,r[xi(u)]=h}return Object.assign(Object.assign({},s),r)}(t,i,e,n,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=i.length,{segmentGroup:r,slicedSegments:e}}const o=new Xe(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:e}}function fd(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}function v2(t,i,e,n){return!!(xi(t)===n||n!==Ke&&fd(i,e,t))&&("**"===t.path||hd(i,t,e).matched)}function C2(t,i,e){return 0===i.length&&!t.children[e]}class gd{constructor(i){this.segmentGroup=i||null}}class y2{constructor(i){this.urlTree=i}}function Il(t){return nl(new gd(t))}function w2(t){return nl(new y2(t))}function Y8(t){return nl(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`))}class eH{constructor(i,e,n,s,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=s,this.config=o,this.allowRedirects=!0,this.ngModule=i.get(_s)}apply(){const i=md(this.urlTree.root,[],[],this.config).segmentGroup,e=new Xe(i.segments,i.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Ke).pipe(et(o=>this.createUrlTree(mg(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(ko(o=>{if(o instanceof y2)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof gd?this.noMatchError(o):o}))}match(i){return this.expandSegmentGroup(this.ngModule,this.config,i.root,Ke).pipe(et(s=>this.createUrlTree(mg(s),i.queryParams,i.fragment))).pipe(ko(s=>{throw s instanceof gd?this.noMatchError(s):s}))}noMatchError(i){return new Error(`Cannot match any routes. URL Segment: '${i.segmentGroup}'`)}createUrlTree(i,e,n){const s=i.segments.length>0?new Xe([],{[Ke]:i}):i;return new Io(s,e,n)}expandSegmentGroup(i,e,n,s){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(i,e,n).pipe(et(o=>new Xe([],o))):this.expandSegment(i,n,e,n.segments,s,!0)}expandChildren(i,e,n){const s=[];for(const o of Object.keys(n.children))"primary"===o?s.unshift(o):s.push(o);return Mn(s).pipe(bo(o=>{const r=n.children[o],u=_2(e,o);return this.expandSegmentGroup(i,u,r,o).pipe(et(h=>({segment:h,outlet:o})))}),FT((o,r)=>(o[r.outlet]=r.segment,o),{}),function qB(t,i){const e=arguments.length>=2;return n=>n.pipe(t?Us((s,o)=>t(s,o,n)):Gl,eg(1),e?VT(i):NT(()=>new sd))}())}expandSegment(i,e,n,s,o,r){return Mn(n).pipe(bo(u=>this.expandSegmentAgainstRoute(i,e,n,u,s,o,r).pipe(ko(b=>{if(b instanceof gd)return re(null);throw b}))),Nr(u=>!!u),ko((u,h)=>{if(u instanceof sd||"EmptyError"===u.name)return C2(e,s,o)?re(new Xe([],{})):Il(e);throw u}))}expandSegmentAgainstRoute(i,e,n,s,o,r,u){return v2(s,e,o,r)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(i,e,s,o,r):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,e,n,s,o,r):Il(e):Il(e)}expandSegmentAgainstRouteUsingRedirect(i,e,n,s,o,r){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,s,r):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,s,o,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,s){const o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?w2(o):this.lineralizeSegments(n,o).pipe(yn(r=>{const u=new Xe(r,{});return this.expandSegment(i,u,e,r,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,s,o,r){const{matched:u,consumedSegments:h,remainingSegments:b,positionalParamSegments:y}=hd(e,s,o);if(!u)return Il(e);const w=this.applyRedirectCommands(h,s.redirectTo,y);return s.redirectTo.startsWith("/")?w2(w):this.lineralizeSegments(s,w).pipe(yn(k=>this.expandSegment(i,e,n,k.concat(b),r,!1)))}matchSegmentAgainstRoute(i,e,n,s,o){if("**"===n.path)return n.loadChildren?(n._loadedConfig?re(n._loadedConfig):this.configLoader.load(i.injector,n)).pipe(et(w=>(n._loadedConfig=w,new Xe(s,{})))):re(new Xe(s,{}));const{matched:r,consumedSegments:u,remainingSegments:h}=hd(e,n,s);return r?this.getChildConfig(i,n,s).pipe(yn(y=>{const w=y.module,k=y.routes,{segmentGroup:E,slicedSegments:L}=md(e,u,h,k),O=new Xe(E.segments,E.children);if(0===L.length&&O.hasChildren())return this.expandChildren(w,k,O).pipe(et(J=>new Xe(u,J)));if(0===k.length&&0===L.length)return re(new Xe(u,{}));const N=xi(n)===o;return this.expandSegment(w,O,k,L,N?Ke:o,!0).pipe(et(P=>new Xe(u.concat(P.segments),P.children)))})):Il(e)}getChildConfig(i,e,n){return e.children?re(new pg(e.children,i)):e.loadChildren?void 0!==e._loadedConfig?re(e._loadedConfig):this.runCanLoadGuards(i.injector,e,n).pipe(yn(s=>s?this.configLoader.load(i.injector,e).pipe(et(o=>(e._loadedConfig=o,o))):function Z8(t){return nl(ng(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`))}(e))):re(new pg([],i))}runCanLoadGuards(i,e,n){const s=e.canLoad;if(!s||0===s.length)return re(!0);const o=s.map(r=>{const u=i.get(r);let h;if(function B8(t){return t&&Ys(t.canLoad)}(u))h=u.canLoad(e,n);else{if(!Ys(u))throw new Error("Invalid CanLoad guard");h=u(e,n)}return ls(h)});return re(o).pipe(Dl(),li(r=>{if(!Lo(r))return;const u=ng(`Redirecting to "${this.urlSerializer.serialize(r)}"`);throw u.url=r,u}),et(r=>!0===r))}lineralizeSegments(i,e){let n=[],s=e.root;for(;;){if(n=n.concat(s.segments),0===s.numberOfChildren)return re(n);if(s.numberOfChildren>1||!s.children[Ke])return Y8(i.redirectTo);s=s.children[Ke]}}applyRedirectCommands(i,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreatreUrlTree(i,e,n,s){const o=this.createSegmentGroup(i,e.root,n,s);return new Io(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const n={};return xn(i,(s,o)=>{if("string"==typeof s&&s.startsWith(":")){const u=s.substring(1);n[o]=e[u]}else n[o]=s}),n}createSegmentGroup(i,e,n,s){const o=this.createSegments(i,e.segments,n,s);let r={};return xn(e.children,(u,h)=>{r[h]=this.createSegmentGroup(i,u,n,s)}),new Xe(o,r)}createSegments(i,e,n,s){return e.map(o=>o.path.startsWith(":")?this.findPosParam(i,o,s):this.findOrReturn(o,n))}findPosParam(i,e,n){const s=n[e.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${i}'. Cannot find '${e.path}'.`);return s}findOrReturn(i,e){let n=0;for(const s of e){if(s.path===i.path)return e.splice(n),s;n++}return i}}function mg(t){const i={};for(const n of Object.keys(t.children)){const o=mg(t.children[n]);(o.segments.length>0||o.hasChildren())&&(i[n]=o)}return function tH(t){if(1===t.numberOfChildren&&t.children[Ke]){const i=t.children[Ke];return new Xe(t.segments.concat(i.segments),i.children)}return t}(new Xe(t.segments,i))}class T2{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class _d{constructor(i,e){this.component=i,this.route=e}}function iH(t,i,e){const n=t._root;return El(n,i?i._root:null,e,[n.value])}function bd(t,i,e){const n=function oH(t){if(!t)return null;for(let i=t.parent;i;i=i.parent){const e=i.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(i);return(n?n.module.injector:e).get(t)}function El(t,i,e,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=Br(i);return t.children.forEach(r=>{(function rH(t,i,e,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,r=i?i.value:null,u=e?e.getContext(t.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const h=function aH(t,i,e){if("function"==typeof e)return e(t,i);switch(e){case"pathParamsChange":return!Eo(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Eo(t.url,i.url)||!as(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lg(t,i)||!as(t.queryParams,i.queryParams);default:return!lg(t,i)}}(r,o,o.routeConfig.runGuardsAndResolvers);h?s.canActivateChecks.push(new T2(n)):(o.data=r.data,o._resolvedData=r._resolvedData),El(t,i,o.component?u?u.children:null:e,n,s),h&&u&&u.outlet&&u.outlet.isActivated&&s.canDeactivateChecks.push(new _d(u.outlet.component,r))}else r&&Rl(i,u,s),s.canActivateChecks.push(new T2(n)),El(t,null,o.component?u?u.children:null:e,n,s)})(r,o[r.value.outlet],e,n.concat([r.value]),s),delete o[r.value.outlet]}),xn(o,(r,u)=>Rl(r,e.getContext(u),s)),s}function Rl(t,i,e){const n=Br(t),s=t.value;xn(n,(o,r)=>{Rl(o,s.component?i?i.children.getContext(r):null:i,e)}),e.canDeactivateChecks.push(new _d(s.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,s))}class gH{}function S2(t){return new Je(i=>i.error(t))}class bH{constructor(i,e,n,s,o,r){this.rootComponentType=i,this.config=e,this.urlTree=n,this.url=s,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=r}recognize(){const i=md(this.urlTree.root,[],[],this.config.filter(r=>void 0===r.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,i,Ke);if(null===e)return null;const n=new ud([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ke,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new Ds(n,e),o=new l2(this.url,s);return this.inheritParamsAndData(o._root),o}inheritParamsAndData(i){const e=i.value,n=a2(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(i,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(i,e):this.processSegment(i,e,e.segments,n)}processChildren(i,e){const n=[];for(const o of Object.keys(e.children)){const r=e.children[o],u=_2(i,o),h=this.processSegmentGroup(u,r,o);if(null===h)return null;n.push(...h)}const s=x2(n);return function vH(t){t.sort((i,e)=>i.value.outlet===Ke?-1:e.value.outlet===Ke?1:i.value.outlet.localeCompare(e.value.outlet))}(s),s}processSegment(i,e,n,s){for(const o of i){const r=this.processSegmentAgainstRoute(o,e,n,s);if(null!==r)return r}return C2(e,n,s)?[]:null}processSegmentAgainstRoute(i,e,n,s){if(i.redirectTo||!v2(i,e,n,s))return null;let o,r=[],u=[];if("**"===i.path){const E=n.length>0?$T(n).parameters:{};o=new ud(n,E,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,k2(i),xi(i),i.component,i,D2(e),M2(e)+n.length,I2(i))}else{const E=hd(e,i,n);if(!E.matched)return null;r=E.consumedSegments,u=E.remainingSegments,o=new ud(r,E.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,k2(i),xi(i),i.component,i,D2(e),M2(e)+r.length,I2(i))}const h=function CH(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(i),{segmentGroup:b,slicedSegments:y}=md(e,r,u,h.filter(E=>void 0===E.redirectTo),this.relativeLinkResolution);if(0===y.length&&b.hasChildren()){const E=this.processChildren(h,b);return null===E?null:[new Ds(o,E)]}if(0===h.length&&0===y.length)return[new Ds(o,[])];const w=xi(i)===s,k=this.processSegment(h,b,y,w?Ke:s);return null===k?null:[new Ds(o,k)]}}function yH(t){const i=t.value.routeConfig;return i&&""===i.path&&void 0===i.redirectTo}function x2(t){const i=[],e=new Set;for(const n of t){if(!yH(n)){i.push(n);continue}const s=i.find(o=>n.value.routeConfig===o.value.routeConfig);void 0!==s?(s.children.push(...n.children),e.add(s)):i.push(n)}for(const n of e){const s=x2(n.children);i.push(new Ds(n.value,s))}return i.filter(n=>!e.has(n))}function D2(t){let i=t;for(;i._sourceSegment;)i=i._sourceSegment;return i}function M2(t){let i=t,e=i._segmentIndexShift?i._segmentIndexShift:0;for(;i._sourceSegment;)i=i._sourceSegment,e+=i._segmentIndexShift?i._segmentIndexShift:0;return e-1}function k2(t){return t.data||{}}function I2(t){return t.resolve||{}}function E2(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function fg(t){return qi(i=>{const e=t(i);return e?Mn(e).pipe(et(()=>i)):re(i)})}class IH extends class kH{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}{}const gg=new be("ROUTES");class R2{constructor(i,e,n,s){this.injector=i,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=s}load(i,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const s=this.loadModuleFactory(e.loadChildren).pipe(et(o=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=o.create(i);return new pg(jT(r.injector.get(gg,void 0,xe.Self|xe.Optional)).map(hg),r)}),ko(o=>{throw e._loader$=void 0,o}));return e._loader$=new Fg(s,()=>new ct).pipe(Fd()),e._loader$}loadModuleFactory(i){return ls(i()).pipe(yn(e=>e instanceof iC?re(e):Mn(this.compiler.compileModuleAsync(e))))}}class RH{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,e){return i}}function LH(t){throw t}function OH(t,i,e){return i.parse("/")}function L2(t,i){return re(null)}const AH={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},PH={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let It=(()=>{class t{constructor(e,n,s,o,r,u,h){this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=s,this.location=o,this.config=h,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ct,this.errorHandler=LH,this.malformedUriErrorHandler=OH,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:L2,afterPreactivation:L2},this.urlHandlingStrategy=new RH,this.routeReuseStrategy=new IH,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=r.get(_s),this.console=r.get(DR);const w=r.get(nt);this.isNgZoneEnabled=w instanceof nt&&nt.isInAngularZone(),this.resetConfig(h),this.currentUrlTree=function a8(){return new Io(new Xe([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new R2(r,u,k=>this.triggerEvent(new HT(k)),k=>this.triggerEvent(new qT(k))),this.routerState=r2(this.currentUrlTree,this.rootComponentType),this.transitions=new ji({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const n=this.events;return e.pipe(Us(s=>0!==s.id),et(s=>Object.assign(Object.assign({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),qi(s=>{let o=!1,r=!1;return re(s).pipe(li(u=>{this.currentNavigation={id:u.id,initialUrl:u.currentRawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),qi(u=>{const h=this.browserUrlTree.toString(),b=!this.navigated||u.extractedUrl.toString()!==h||h!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||b)&&this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return O2(u.source)&&(this.browserUrlTree=u.extractedUrl),re(u).pipe(qi(w=>{const k=this.transitions.getValue();return n.next(new tg(w.id,this.serializeUrl(w.extractedUrl),w.source,w.restoredState)),k!==this.transitions.getValue()?Ir:Promise.resolve(w)}),function nH(t,i,e,n){return qi(s=>function X8(t,i,e,n,s){return new eH(t,i,e,n,s).apply()}(t,i,e,s.extractedUrl,n).pipe(et(o=>Object.assign(Object.assign({},s),{urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),li(w=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:w.urlAfterRedirects})}),function wH(t,i,e,n,s){return yn(o=>function _H(t,i,e,n,s="emptyOnly",o="legacy"){try{const r=new bH(t,i,e,n,s,o).recognize();return null===r?S2(new gH):re(r)}catch(r){return S2(r)}}(t,i,o.urlAfterRedirects,e(o.urlAfterRedirects),n,s).pipe(et(r=>Object.assign(Object.assign({},o),{targetSnapshot:r}))))}(this.rootComponentType,this.config,w=>this.serializeUrl(w),this.paramsInheritanceStrategy,this.relativeLinkResolution),li(w=>{if("eager"===this.urlUpdateStrategy){if(!w.extras.skipLocationChange){const E=this.urlHandlingStrategy.merge(w.urlAfterRedirects,w.rawUrl);this.setBrowserUrl(E,w)}this.browserUrlTree=w.urlAfterRedirects}const k=new KB(w.id,this.serializeUrl(w.extractedUrl),this.serializeUrl(w.urlAfterRedirects),w.targetSnapshot);n.next(k)}));if(b&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:k,extractedUrl:E,source:L,restoredState:O,extras:N}=u,G=new tg(k,this.serializeUrl(E),L,O);n.next(G);const P=r2(E,this.rootComponentType).snapshot;return re(Object.assign(Object.assign({},u),{targetSnapshot:P,urlAfterRedirects:E,extras:Object.assign(Object.assign({},N),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=u.rawUrl,u.resolve(null),Ir}),fg(u=>{const{targetSnapshot:h,id:b,extractedUrl:y,rawUrl:w,extras:{skipLocationChange:k,replaceUrl:E}}=u;return this.hooks.beforePreactivation(h,{navigationId:b,appliedUrlTree:y,rawUrlTree:w,skipLocationChange:!!k,replaceUrl:!!E})}),li(u=>{const h=new QB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(h)}),et(u=>Object.assign(Object.assign({},u),{guards:iH(u.targetSnapshot,u.currentSnapshot,this.rootContexts)})),function lH(t,i){return yn(e=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:o,canDeactivateChecks:r}}=e;return 0===r.length&&0===o.length?re(Object.assign(Object.assign({},e),{guardsResult:!0})):function cH(t,i,e,n){return Mn(t).pipe(yn(s=>function fH(t,i,e,n,s){const o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return o&&0!==o.length?re(o.map(u=>{const h=bd(u,i,s);let b;if(function G8(t){return t&&Ys(t.canDeactivate)}(h))b=ls(h.canDeactivate(t,i,e,n));else{if(!Ys(h))throw new Error("Invalid CanDeactivate guard");b=ls(h(t,i,e,n))}return b.pipe(Nr())})).pipe(Dl()):re(!0)}(s.component,s.route,e,i,n)),Nr(s=>!0!==s,!0))}(r,n,s,t).pipe(yn(u=>u&&function V8(t){return"boolean"==typeof t}(u)?function uH(t,i,e,n){return Mn(i).pipe(bo(s=>tl(function pH(t,i){return null!==t&&i&&i(new XB(t)),re(!0)}(s.route.parent,n),function dH(t,i){return null!==t&&i&&i(new t8(t)),re(!0)}(s.route,n),function mH(t,i,e){const n=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(r=>function sH(t){const i=t.routeConfig?t.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:t,guards:i}:null}(r)).filter(r=>null!==r).map(r=>pu(()=>re(r.guards.map(h=>{const b=bd(h,r.node,e);let y;if(function q8(t){return t&&Ys(t.canActivateChild)}(b))y=ls(b.canActivateChild(n,t));else{if(!Ys(b))throw new Error("Invalid CanActivateChild guard");y=ls(b(n,t))}return y.pipe(Nr())})).pipe(Dl())));return re(o).pipe(Dl())}(t,s.path,e),function hH(t,i,e){const n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return re(!0);const s=n.map(o=>pu(()=>{const r=bd(o,i,e);let u;if(function H8(t){return t&&Ys(t.canActivate)}(r))u=ls(r.canActivate(i,t));else{if(!Ys(r))throw new Error("Invalid CanActivate guard");u=ls(r(i,t))}return u.pipe(Nr())}));return re(s).pipe(Dl())}(t,s.route,e))),Nr(s=>!0!==s,!0))}(n,o,t,i):re(u)),et(u=>Object.assign(Object.assign({},e),{guardsResult:u})))})}(this.ngModule.injector,u=>this.triggerEvent(u)),li(u=>{if(Lo(u.guardsResult)){const b=ng(`Redirecting to "${this.serializeUrl(u.guardsResult)}"`);throw b.url=u.guardsResult,b}const h=new JB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.triggerEvent(h)}),Us(u=>!!u.guardsResult||(this.restoreHistory(u),this.cancelNavigationTransition(u,""),!1)),fg(u=>{if(u.guards.canActivateChecks.length)return re(u).pipe(li(h=>{const b=new YB(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);this.triggerEvent(b)}),qi(h=>{let b=!1;return re(h).pipe(function TH(t,i){return yn(e=>{const{targetSnapshot:n,guards:{canActivateChecks:s}}=e;if(!s.length)return re(e);let o=0;return Mn(s).pipe(bo(r=>function SH(t,i,e,n){return function xH(t,i,e,n){const s=E2(t);if(0===s.length)return re({});const o={};return Mn(s).pipe(yn(r=>function DH(t,i,e,n){const s=bd(t,i,n);return ls(s.resolve?s.resolve(i,e):s(i,e))}(t[r],i,e,n).pipe(li(u=>{o[r]=u}))),eg(1),yn(()=>E2(o).length===s.length?re(o):Ir))}(t._resolve,t,i,n).pipe(et(o=>(t._resolvedData=o,t.data=Object.assign(Object.assign({},t.data),a2(t,e).resolve),null)))}(r.route,n,t,i)),li(()=>o++),eg(1),yn(r=>o===s.length?re(e):Ir))})}(this.paramsInheritanceStrategy,this.ngModule.injector),li({next:()=>b=!0,complete:()=>{b||(this.restoreHistory(h),this.cancelNavigationTransition(h,"At least one route resolver didn't emit any value."))}}))}),li(h=>{const b=new ZB(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);this.triggerEvent(b)}))}),fg(u=>{const{targetSnapshot:h,id:b,extractedUrl:y,rawUrl:w,extras:{skipLocationChange:k,replaceUrl:E}}=u;return this.hooks.afterPreactivation(h,{navigationId:b,appliedUrlTree:y,rawUrlTree:w,skipLocationChange:!!k,replaceUrl:!!E})}),et(u=>{const h=function x8(t,i,e){const n=Tl(t,i._root,e?e._root:void 0);return new o2(n,i)}(this.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return Object.assign(Object.assign({},u),{targetRouterState:h})}),li(u=>{this.currentUrlTree=u.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),this.routerState=u.targetRouterState,"deferred"===this.urlUpdateStrategy&&(u.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,u),this.browserUrlTree=u.urlAfterRedirects)}),((t,i,e)=>et(n=>(new F8(i,n.targetRouterState,n.currentRouterState,e).activate(t),n)))(this.rootContexts,this.routeReuseStrategy,u=>this.triggerEvent(u)),li({next(){o=!0},complete(){o=!0}}),function zB(t){return i=>i.lift(new jB(t))}(()=>{var u;o||r||this.cancelNavigationTransition(s,`Navigation ID ${s.id} is not equal to the current navigation id ${this.navigationId}`),(null===(u=this.currentNavigation)||void 0===u?void 0:u.id)===s.id&&(this.currentNavigation=null)}),ko(u=>{if(r=!0,function s8(t){return t&&t[UT]}(u)){const h=Lo(u.url);h||(this.navigated=!0,this.restoreHistory(s,!0));const b=new BT(s.id,this.serializeUrl(s.extractedUrl),u.message);n.next(b),h?setTimeout(()=>{const y=this.urlHandlingStrategy.merge(u.url,this.rawUrlTree),w={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||O2(s.source)};this.scheduleNavigation(y,"imperative",null,w,{resolve:s.resolve,reject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{this.restoreHistory(s,!0);const h=new WB(s.id,this.serializeUrl(s.extractedUrl),u);n.next(h);try{s.resolve(this.errorHandler(u))}catch(b){s.reject(b)}}return Ir}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{var s;const o={replaceUrl:!0},r=(null===(s=e.state)||void 0===s?void 0:s.navigationId)?e.state:null;if(r){const h=Object.assign({},r);delete h.navigationId,delete h.\u0275routerPageId,0!==Object.keys(h).length&&(o.state=h)}const u=this.parseUrl(e.url);this.scheduleNavigation(u,n,r,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){g2(e),this.config=e.map(hg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,n={}){const{relativeTo:s,queryParams:o,fragment:r,queryParamsHandling:u,preserveFragment:h}=n,b=s||this.routerState.root,y=h?this.currentUrlTree.fragment:r;let w=null;switch(u){case"merge":w=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":w=this.currentUrlTree.queryParams;break;default:w=o||null}return null!==w&&(w=this.removeEmptyProps(w)),function k8(t,i,e,n,s){if(0===e.length)return cg(i.root,i.root,i.root,n,s);const o=function I8(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new d2(!0,0,t);let i=0,e=!1;const n=t.reduce((s,o,r)=>{if("object"==typeof o&&null!=o){if(o.outlets){const u={};return xn(o.outlets,(h,b)=>{u[b]="string"==typeof h?h.split("/"):h}),[...s,{outlets:u}]}if(o.segmentPath)return[...s,o.segmentPath]}return"string"!=typeof o?[...s,o]:0===r?(o.split("/").forEach((u,h)=>{0==h&&"."===u||(0==h&&""===u?e=!0:".."===u?i++:""!=u&&s.push(u))}),s):[...s,o]},[]);return new d2(e,i,n)}(e);if(o.toRoot())return cg(i.root,i.root,new Xe([],{}),n,s);const r=function E8(t,i,e){if(t.isAbsolute)return new ug(i.root,!0,0);if(-1===e.snapshot._lastPathIndex){const o=e.snapshot._urlSegment;return new ug(o,o===i.root,0)}const n=dd(t.commands[0])?0:1;return function R8(t,i,e){let n=t,s=i,o=e;for(;o>s;){if(o-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new ug(n,!1,s-o)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(o,i,t),u=r.processChildren?pd(r.segmentGroup,r.index,o.commands):p2(r.segmentGroup,r.index,o.commands);return cg(i.root,r.segmentGroup,u,n,s)}(b,this.currentUrlTree,e,w,null!=y?y:null)}navigateByUrl(e,n={skipLocationChange:!1}){const s=Lo(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,n)}navigate(e,n={skipLocationChange:!1}){return function FH(t){for(let i=0;i{const o=e[s];return null!=o&&(n[s]=o),n},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Cl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,n,s,o,r){var u,h;if(this.disposed)return Promise.resolve(!1);let b,y,w;r?(b=r.resolve,y=r.reject,w=r.promise):w=new Promise((L,O)=>{b=L,y=O});const k=++this.navigationId;let E;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),E=s&&s.\u0275routerPageId?s.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(u=this.browserPageId)&&void 0!==u?u:0:(null!==(h=this.browserPageId)&&void 0!==h?h:0)+1):E=0,this.setTransition({id:k,targetPageId:E,source:n,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:b,reject:y,promise:w,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),w.catch(L=>Promise.reject(L))}setBrowserUrl(e,n){const s=this.urlSerializer.serialize(e),o=Object.assign(Object.assign({},n.extras.state),this.generateNgRouterState(n.id,n.targetPageId));this.location.isCurrentPathEqualTo(s)||n.extras.replaceUrl?this.location.replaceState(s,"",o):this.location.go(s,"",o)}restoreHistory(e,n=!1){var s,o;if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)||0===r?this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,n){const s=new BT(e.id,this.serializeUrl(e.extractedUrl),n);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}}return t.\u0275fac=function(e){Sh()},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function O2(t){return"imperative"!==t}let vd=(()=>{class t{constructor(e,n,s,o,r){this.router=e,this.route=n,this.tabIndexAttribute=s,this.renderer=o,this.el=r,this.commands=null,this.onChanges=new ct,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const n=this.renderer,s=this.el.nativeElement;null!==e?n.setAttribute(s,"tabindex",e):n.removeAttribute(s,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:qr(this.skipLocationChange),replaceUrl:qr(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:qr(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(D(It),D(Ro),da("tabindex"),D(gn),D(De))},t.\u0275dir=le({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,n){1&e&&C("click",function(){return n.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[fn]}),t})(),Hr=(()=>{class t{constructor(e,n,s){this.router=e,this.route=n,this.locationStrategy=s,this.commands=null,this.href=null,this.onChanges=new ct,this.subscription=e.events.subscribe(o=>{o instanceof Cl&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,n,s,o,r){if(0!==e||n||s||o||r||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const u={skipLocationChange:qr(this.skipLocationChange),replaceUrl:qr(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,u),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:qr(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(D(It),D(Ro),D(kr))},t.\u0275dir=le({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,n){1&e&&C("click",function(o){return n.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&ie("target",n.target)("href",n.href,Wt)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[fn]}),t})();function qr(t){return""===t||!!t}let Cd=(()=>{class t{constructor(e,n,s,o,r,u){this.router=e,this.element=n,this.renderer=s,this.cdr=o,this.link=r,this.linkWithHref=u,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new H,this.routerEventsSubscription=e.events.subscribe(h=>{h instanceof Cl&&this.update()})}ngAfterContentInit(){re(this.links.changes,this.linksWithHrefs.changes,re(null)).pipe(ta()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const n=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(s=>!!s).map(s=>s.onChanges);this.linkInputChangesSubscription=Mn(n).pipe(ta()).subscribe(s=>{this.isActive!==this.isLinkActive(this.router)(s)&&this.update()})}set routerLinkActive(e){const n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(s=>!!s)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),this.isActiveChange.emit(e))})}isLinkActive(e){const n=function NH(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>!!s.urlTree&&e.isActive(s.urlTree,n)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}return t.\u0275fac=function(e){return new(e||t)(D(It),D(De),D(gn),D(ot),D(vd,8),D(Hr,8))},t.\u0275dir=le({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,n,s){if(1&e&&(st(s,vd,5),st(s,Hr,5)),2&e){let o;V(o=B())&&(n.links=o),V(o=B())&&(n.linksWithHrefs=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[fn]}),t})();class A2{}class P2{preload(i,e){return re(null)}}let F2=(()=>{class t{constructor(e,n,s,o){this.router=e,this.injector=s,this.preloadingStrategy=o,this.loader=new R2(s,n,h=>e.triggerEvent(new HT(h)),h=>e.triggerEvent(new qT(h)))}setUpPreloading(){this.subscription=this.router.events.pipe(Us(e=>e instanceof Cl),bo(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(_s);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const s=[];for(const o of n)if(o.loadChildren&&!o.canLoad&&o._loadedConfig){const r=o._loadedConfig;s.push(this.processRoutes(r.module,r.routes))}else o.loadChildren&&!o.canLoad?s.push(this.preloadConfig(e,o)):o.children&&s.push(this.processRoutes(e,o.children));return Mn(s).pipe(ta(),et(o=>{}))}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>(n._loadedConfig?re(n._loadedConfig):this.loader.load(e.injector,n)).pipe(yn(o=>(n._loadedConfig=o,this.processRoutes(o.module,o.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(K(It),K(qC),K(En),K(A2))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_g=(()=>{class t{constructor(e,n,s={}){this.router=e,this.viewportScroller=n,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof tg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Cl&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof GT&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.router.triggerEvent(new GT(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){Sh()},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const Oo=new be("ROUTER_CONFIGURATION"),N2=new be("ROUTER_FORROOT_GUARD"),BH=[_m,{provide:ZT,useClass:XT},{provide:It,useFactory:function zH(t,i,e,n,s,o,r={},u,h){const b=new It(null,t,i,e,n,s,jT(o));return u&&(b.urlHandlingStrategy=u),h&&(b.routeReuseStrategy=h),function jH(t,i){t.errorHandler&&(i.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(i.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(i.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(i.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(i.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(i.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(i.canceledNavigationResolution=t.canceledNavigationResolution)}(r,b),r.enableTracing&&b.events.subscribe(y=>{var w,k;null===(w=console.group)||void 0===w||w.call(console,`Router Event: ${y.constructor.name}`),console.log(y.toString()),console.log(y),null===(k=console.groupEnd)||void 0===k||k.call(console)}),b},deps:[ZT,Ml,_m,En,qC,gg,Oo,[class EH{},new Ns],[class MH{},new Ns]]},Ml,{provide:Ro,useFactory:function $H(t){return t.routerState.root},deps:[It]},F2,P2,class VH{preload(i,e){return e().pipe(ko(()=>re(null)))}},{provide:Oo,useValue:{enableTracing:!1}}];function HH(){return new $C("Router",It)}let vn=(()=>{class t{constructor(e,n){}static forRoot(e,n){return{ngModule:t,providers:[BH,V2(e),{provide:N2,useFactory:UH,deps:[[It,new Ns,new ba]]},{provide:Oo,useValue:n||{}},{provide:kr,useFactory:GH,deps:[go,[new mc(gm),new Ns],Oo]},{provide:_g,useFactory:qH,deps:[It,R4,Oo]},{provide:A2,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:P2},{provide:$C,multi:!0,useFactory:HH},[bg,{provide:em,multi:!0,useFactory:WH,deps:[bg]},{provide:B2,useFactory:KH,deps:[bg]},{provide:HC,multi:!0,useExisting:B2}]]}}static forChild(e){return{ngModule:t,providers:[V2(e)]}}}return t.\u0275fac=function(e){return new(e||t)(K(N2,8),K(It,8))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();function qH(t,i,e){return e.scrollOffset&&i.setOffset(e.scrollOffset),new _g(t,i,e)}function GH(t,i,e={}){return e.useHash?new vL(t,i):new dy(t,i)}function UH(t){return"guarded"}function V2(t){return[{provide:gD,multi:!0,useValue:t},{provide:gg,multi:!0,useValue:t}]}let bg=(()=>{class t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new ct}appInitializer(){return this.injector.get(gL,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let n=null;const s=new Promise(u=>n=u),o=this.injector.get(It),r=this.injector.get(Oo);return"disabled"===r.initialNavigation?(o.setUpLocationChangeListener(),n(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(o.hooks.afterPreactivation=()=>this.initNavigation?re(null):(this.initNavigation=!0,n(!0),this.resultOfPreactivationDone),o.initialNavigation()):n(!0),s})}bootstrapListener(e){const n=this.injector.get(Oo),s=this.injector.get(F2),o=this.injector.get(_g),r=this.injector.get(It),u=this.injector.get(cm);e===u.components[0]&&(("enabledNonBlocking"===n.initialNavigation||void 0===n.initialNavigation)&&r.initialNavigation(),s.setUpPreloading(),o.init(),r.resetRootComponentType(u.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function WH(t){return t.appInitializer.bind(t)}function KH(t){return t.bootstrapListener.bind(t)}const B2=new be("Router Initializer");let m9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})();function f9(t,i){1&t&&M(0,"span",6),2&t&&d("innerHTML",p(3).text,Ft)}function g9(t,i){if(1&t&&(l(0,"div"),_(1,f9,1,1,"span",5),c()),2&t){const e=p(2);a(1),d("ngIf",!e.escape)}}function _9(t,i){if(1&t&&(l(0,"span",8),g(1),c()),2&t){const e=p(3);a(1),S(e.text)}}function b9(t,i){1&t&&_(0,_9,2,1,"span",7),2&t&&d("ngIf",p(2).escape)}const v9=function(t,i,e,n,s){return{"p-inline-message-info":t,"p-inline-message-warn":i,"p-inline-message-error":e,"p-inline-message-success":n,"p-inline-message-icon-only":s}};function C9(t,i){if(1&t&&(l(0,"div",1),M(1,"span",2),_(2,g9,2,1,"div",3),_(3,b9,1,1,"ng-template",null,4,Se),c()),2&t){const e=F(4),n=p();me(n.styleClass),d("ngStyle",n.style)("ngClass",ho(7,v9,"info"===n.severity,"warn"===n.severity,"error"===n.severity,"success"===n.severity,null==n.text)),a(1),d("ngClass",n.icon),a(1),d("ngIf",!n.escape)("ngIfElse",e)}}let qe=(()=>{class t{constructor(){this.escape=!0}get icon(){let e=null;if(this.severity)switch(this.severity){case"success":e="pi pi-check";break;case"info":default:e="pi pi-info-circle";break;case"error":e="pi pi-times-circle";break;case"warn":e="pi pi-exclamation-triangle"}return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-message"]],hostAttrs:[1,"p-element"],inputs:{severity:"severity",text:"text",escape:"escape",style:"style",styleClass:"styleClass"},decls:1,vars:1,consts:[["aria-live","polite","class","p-inline-message p-component p-inline-message",3,"ngStyle","class","ngClass",4,"ngIf"],["aria-live","polite",1,"p-inline-message","p-component","p-inline-message",3,"ngStyle","ngClass"],[1,"p-inline-message-icon",3,"ngClass"],[4,"ngIf","ngIfElse"],["escapeOut",""],["class","p-inline-message-text",3,"innerHTML",4,"ngIf"],[1,"p-inline-message-text",3,"innerHTML"],["class","p-inline-message-text",4,"ngIf"],[1,"p-inline-message-text"]],template:function(e,n){1&e&&_(0,C9,5,13,"div",0),2&e&&d("ngIf",n.severity)},directives:[Q,lt,Le],styles:[".p-inline-message{display:inline-flex;align-items:center;justify-content:center;vertical-align:top}.p-inline-message-icon-only .p-inline-message-text{visibility:hidden;width:0}.p-fluid .p-inline-message{display:flex}\n"],encapsulation:2,changeDetection:0}),t})(),y9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})(),A9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();function P9(t,i){1&t&&Y(0)}function F9(t,i){if(1&t){const e=I();l(0,"button",5),C("click",function(s){return v(e),p(2).onCloseClick(s)})("keydown.enter",function(){return v(e),p(2).hide()}),M(1,"span",6),c()}2&t&&ie("aria-label",p(2).ariaCloseLabel)}const N9=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},V9=function(t,i){return{value:t,params:i}};function B9(t,i){if(1&t){const e=I();l(0,"div",1),C("click",function(s){return v(e),p().onOverlayClick(s)})("@animation.start",function(s){return v(e),p().onAnimationStart(s)})("@animation.done",function(s){return v(e),p().onAnimationEnd(s)}),l(1,"div",2),C("click",function(){return v(e),p().onContentClick()})("mousedown",function(){return v(e),p().onContentClick()}),xt(2),_(3,P9,1,0,"ng-container",3),c(),_(4,F9,2,1,"button",4),c()}if(2&t){const e=p();me(e.styleClass),d("ngClass","p-overlaypanel p-component")("ngStyle",e.style)("@animation",Ge(10,V9,e.overlayVisible?"open":"close",Ge(7,N9,e.showTransitionOptions,e.hideTransitionOptions))),a(3),d("ngTemplateOutlet",e.contentTemplate),a(1),d("ngIf",e.showCloseIcon)}}const H9=["*"];let q9=(()=>{class t{constructor(e,n,s,o,r,u){this.el=e,this.renderer=n,this.cd=s,this.zone=o,this.config=r,this.overlayService=u,this.dismissable=!0,this.appendTo="body",this.autoZIndex=!0,this.baseZIndex=0,this.focusOnShow=!0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onShow=new H,this.onHide=new H,this.overlayVisible=!1,this.render=!1,this.selfClick=!1}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template,this.cd.markForCheck()})}bindDocumentClickListener(){!this.documentClickListener&&this.dismissable&&this.zone.runOutsideAngular(()=>{let e=R.isIOS()?"touchstart":"click";this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document",e,s=>{!this.container.contains(s.target)&&this.target!==s.target&&!this.target.contains(s.target)&&!this.selfClick&&this.zone.run(()=>{this.hide()}),this.selfClick=!1,this.cd.markForCheck()})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}toggle(e,n){this.overlayVisible?(this.hasTargetChanged(e,n)&&(this.destroyCallback=()=>{this.show(null,n||e.currentTarget||e.target)}),this.hide()):this.show(e,n)}show(e,n){this.target=n||e.currentTarget||e.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}onContentClick(){this.selfClick=!0}hasTargetChanged(e,n){return null!=this.target&&this.target!==(n||e.currentTarget||e.target)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}align(){this.autoZIndex&&dt.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),R.absolutePosition(this.container,this.target);const e=R.getOffset(this.container),n=R.getOffset(this.target);let s=0;e.left{this.container&&this.container.contains(n.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener))}onAnimationEnd(e){switch(e.toState){case"void":this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe();break;case"close":this.autoZIndex&&dt.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}}focus(){let e=R.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onCloseClick(e){this.hide(),e.preventDefault()}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Qs(this.target,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onContainerDestroy(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&dt.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(gn),D(ot),D(nt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-overlayPanel"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let o;V(o=B())&&(n.templates=o)}},hostAttrs:[1,"p-element"],inputs:{dismissable:"dismissable",showCloseIcon:"showCloseIcon",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",ariaCloseLabel:"ariaCloseLabel",baseZIndex:"baseZIndex",focusOnShow:"focusOnShow",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},ngContentSelectors:H9,decls:1,vars:1,consts:[[3,"ngClass","ngStyle","class","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],[1,"p-overlaypanel-content",3,"click","mousedown"],[4,"ngTemplateOutlet"],["type","button","class","p-overlaypanel-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],["type","button","pRipple","",1,"p-overlaypanel-close","p-link",3,"click","keydown.enter"],[1,"p-overlaypanel-close-icon","pi","pi-times"]],template:function(e,n){1&e&&(Sn(),_(0,B9,5,13,"div",0)),2&e&&d("ngIf",n.render)},directives:[Q,Le,lt,Rt,vt],styles:['.p-overlaypanel{position:absolute;margin-top:10px;top:0;left:0}.p-overlaypanel-flipped{margin-top:0;margin-bottom:10px}.p-overlaypanel-close{display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-overlaypanel:after,.p-overlaypanel:before{bottom:100%;left:calc(var(--overlayArrowLeft, 0) + 1.25rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}.p-overlaypanel:after{border-width:8px;margin-left:-8px}.p-overlaypanel:before{border-width:10px;margin-left:-10px}.p-overlaypanel-shifted:after,.p-overlaypanel-shifted:before{left:auto;right:1.25em;margin-left:auto}.p-overlaypanel-flipped:after,.p-overlaypanel-flipped:before{bottom:auto;top:100%}.p-overlaypanel.p-overlaypanel-flipped:after{border-bottom-color:transparent}.p-overlaypanel.p-overlaypanel-flipped:before{border-bottom-color:transparent}\n'],encapsulation:2,data:{animation:[wi("animation",[ws("void",it({transform:"scaleY(0.8)",opacity:0})),ws("close",it({opacity:0})),ws("open",it({transform:"translateY(0)",opacity:1})),Lt("void => open",kt("{{showTransitionParams}}")),Lt("open => close",kt("{{hideTransitionParams}}"))])]},changeDetection:0}),t})(),G9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn,Vt],Vt]}),t})(),J9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Vt,pn],Vt]}),t})(),Gr=(()=>{class t{constructor(){this.strokeWidth="2",this.fill="none",this.animationDuration="2s"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-progressSpinner"]],hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",strokeWidth:"strokeWidth",fill:"fill",animationDuration:"animationDuration"},decls:3,vars:6,consts:[["role","alert","aria-busy","true",1,"p-progress-spinner",3,"ngStyle","ngClass"],["viewBox","25 25 50 50",1,"p-progress-spinner-svg"],["cx","50","cy","50","r","20","stroke-miterlimit","10",1,"p-progress-spinner-circle"]],template:function(e,n){1&e&&(l(0,"div",0),function d_(){Ee.lFrame.currentNamespace="svg"}(),l(1,"svg",1),M(2,"circle",2),c()()),2&e&&(d("ngStyle",n.style)("ngClass",n.styleClass),a(1),_i("animation-duration",n.animationDuration),a(1),ie("fill",n.fill)("stroke-width",n.strokeWidth))},directives:[lt,Le],styles:['.p-progress-spinner{position:relative;margin:0 auto;width:100px;height:100px;display:inline-block}.p-progress-spinner:before{content:"";display:block;padding-top:100%}.p-progress-spinner-svg{animation:p-progress-spinner-rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.p-progress-spinner-circle{stroke-dasharray:89,200;stroke-dashoffset:0;stroke:#d62d20;animation:p-progress-spinner-dash 1.5s ease-in-out infinite,p-progress-spinner-color 6s ease-in-out infinite;stroke-linecap:round}@keyframes p-progress-spinner-rotate{to{transform:rotate(360deg)}}@keyframes p-progress-spinner-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes p-progress-spinner-color{to,0%{stroke:#d62d20}40%{stroke:#0057e7}66%{stroke:#008744}80%,90%{stroke:#ffa700}}\n'],encapsulation:2,changeDetection:0}),t})(),Y9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();Ru([it({transform:"{{transform}}",opacity:0}),kt("{{transition}}")]),Ru([kt("{{transition}}",it({transform:"{{transform}}",opacity:0}))]);let iq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})(),sq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})(),hq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,jn],vn,jn]}),t})();function mq(t,i){1&t&&M(0,"span",8),2&t&&(me(p(2).$implicit.icon),d("ngClass","p-button-icon p-button-icon-left"))}function fq(t,i){if(1&t&&(de(0),_(1,mq,1,3,"span",6),l(2,"span",7),g(3),c(),pe()),2&t){const e=p().$implicit,n=p();a(1),d("ngIf",e.icon),a(2),S(n.getOptionLabel(e))}}function gq(t,i){1&t&&Y(0)}const _q=function(t,i){return{$implicit:t,index:i}};function bq(t,i){if(1&t&&_(0,gq,1,0,"ng-container",9),2&t){const e=p(),n=e.$implicit,s=e.index;d("ngTemplateOutlet",p().itemTemplate)("ngTemplateOutletContext",Ge(2,_q,n,s))}}const vq=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-button-icon-only":e}};function Cq(t,i){if(1&t){const e=I();l(0,"div",2,3),C("click",function(s){const o=v(e),r=o.$implicit,u=o.index;return p().onItemClick(s,r,u)})("keydown.enter",function(s){const o=v(e),r=o.$implicit,u=o.index;return p().onItemClick(s,r,u)})("blur",function(){return v(e),p().onBlur()}),_(2,fq,4,2,"ng-container",4),_(3,bq,1,5,"ng-template",null,5,Se),c()}if(2&t){const e=i.$implicit,n=F(4),s=p();me(e.styleClass),d("ngClass",Jt(10,vq,s.isSelected(e),s.disabled||s.isOptionDisabled(e),e.icon&&!s.getOptionLabel(e))),ie("aria-pressed",s.isSelected(e))("title",e.title)("aria-label",e.label)("tabindex",s.disabled?null:s.tabindex)("aria-labelledby",s.getOptionLabel(e)),a(2),d("ngIf",!s.itemTemplate)("ngIfElse",n)}}const yq={provide:dn,useExisting:je(()=>wq),multi:!0};let wq=(()=>{class t{constructor(e){this.cd=e,this.tabindex=0,this.onOptionClick=new H,this.onChange=new H,this.onModelChange=()=>{},this.onModelTouched=()=>{}}getOptionLabel(e){return this.optionLabel?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?Z.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onItemClick(e,n,s){if(!this.disabled&&!this.isOptionDisabled(n)){if(this.multiple)this.isSelected(n)?this.removeOption(n):this.value=[...this.value||[],this.getOptionValue(n)],this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value});else{let o=this.getOptionValue(n);this.value!==o&&(this.value=this.getOptionValue(n),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}this.onOptionClick.emit({originalEvent:e,option:n,index:s})}}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(n=>!Z.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let n=!1,s=this.getOptionValue(e);if(this.multiple){if(this.value)for(let o of this.value)if(Z.equals(o,s,this.dataKey)){n=!0;break}}else n=Z.equals(this.getOptionValue(e),this.value,this.dataKey);return n}}return t.\u0275fac=function(e){return new(e||t)(D(ot))},t.\u0275cmp=z({type:t,selectors:[["p-selectButton"]],contentQueries:function(e,n,s){if(1&e&&st(s,bi,5),2&e){let o;V(o=B())&&(n.itemTemplate=o.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",tabindex:"tabindex",multiple:"multiple",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[Pe([yq])],decls:2,vars:5,consts:[["role","group",3,"ngClass","ngStyle"],["class","p-button p-component","role","button","pRipple","",3,"class","ngClass","click","keydown.enter","blur",4,"ngFor","ngForOf"],["role","button","pRipple","",1,"p-button","p-component",3,"ngClass","click","keydown.enter","blur"],["btn",""],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){1&e&&(l(0,"div",0),_(1,Cq,5,14,"div",1),c()),2&e&&(me(n.styleClass),d("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",n.style),a(1),d("ngForOf",n.options))},directives:[Le,lt,at,vt,Q,Rt],styles:[".p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default}.p-button-icon-only{justify-content:center}.p-button-icon-only .p-button-label{visibility:hidden;width:0;flex:0 0 auto}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}\n"],encapsulation:2,changeDetection:0}),t})(),Tq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();const Sq=function(t,i,e){return{"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function xq(t,i){if(1&t){const e=I();l(0,"label",7),C("click",function(s){v(e);const o=p(),r=F(3);return o.onClick(s,r)}),g(1),c()}if(2&t){const e=p();d("ngClass",Jt(3,Sq,null!=e.value,e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const Dq=function(t,i){return{"p-checkbox p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":i}},Mq=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},kq={provide:dn,useExisting:je(()=>G2),multi:!0};let G2=(()=>{class t{constructor(e){this.cd=e,this.checkboxTrueIcon="pi pi-check",this.checkboxFalseIcon="pi pi-times",this.onChange=new H,this.onModelChange=()=>{},this.onModelTouched=()=>{}}onClick(e,n){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,n.focus())}onKeydown(e){32==e.keyCode&&e.preventDefault()}onKeyup(e){32==e.keyCode&&!this.readonly&&(this.toggle(e),e.preventDefault())}toggle(e){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}writeValue(e){this.value=e,this.cd.markForCheck()}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(D(ot))},t.\u0275cmp=z({type:t,selectors:[["p-triStateCheckbox"]],hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",name:"name",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:"readonly",checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon"},outputs:{onChange:"onChange"},features:[Pe([kq])],decls:7,vars:21,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","text","inputmode","none",3,"name","readonly","disabled","keyup","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],["class","p-checkbox-label",3,"ngClass","click",4,"ngIf"],[1,"p-checkbox-label",3,"ngClass","click"]],template:function(e,n){if(1&e){const s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("keyup",function(r){return n.onKeyup(r)})("keydown",function(r){return n.onKeydown(r)})("focus",function(){return n.onFocus()})("blur",function(){return n.onBlur()}),c()(),l(4,"div",4),C("click",function(r){v(s);const u=F(3);return n.onClick(r,u)}),M(5,"span",5),c()(),_(6,xq,2,7,"label",6)}2&e&&(me(n.styleClass),d("ngStyle",n.style)("ngClass",Ge(14,Dq,n.disabled,n.focused)),a(2),d("name",n.name)("readonly",n.readonly)("disabled",n.disabled),ie("id",n.inputId)("tabindex",n.tabindex)("aria-labelledby",n.ariaLabelledBy),a(2),d("ngClass",Jt(17,Mq,null!=n.value,n.disabled,n.focused)),ie("aria-checked",!0===n.value),a(1),d("ngClass",!0===n.value?n.checkboxTrueIcon:!1===n.value?n.checkboxFalseIcon:""),a(1),d("ngIf",n.label))},directives:[lt,Le,Q],encapsulation:2,changeDetection:0}),t})(),Iq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const Eq=["container"],Rq=["resizeHelper"],Lq=["reorderIndicatorUp"],Oq=["reorderIndicatorDown"],Aq=["wrapper"],Pq=["table"],Fq=["tableHeader"];function Nq(t,i){if(1&t&&(l(0,"div",14),M(1,"i"),c()),2&t){const e=p();a(1),me("p-datatable-loading-icon pi-spin "+e.loadingIcon)}}function Vq(t,i){1&t&&Y(0)}function Bq(t,i){if(1&t&&(l(0,"div",15),_(1,Vq,1,0,"ng-container",16),c()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.captionTemplate)}}function Hq(t,i){if(1&t){const e=I();l(0,"p-paginator",17),C("onPageChange",function(s){return v(e),p().onPageChange(s)}),c()}if(2&t){const e=p();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)}}function qq(t,i){1&t&&Y(0)}function Gq(t,i){1&t&&Y(0)}function Uq(t,i){if(1&t&&M(0,"tbody",25),2&t){const e=p(2);d("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.frozenBodyTemplate)("frozen",!0)}}function zq(t,i){1&t&&Y(0)}const Zs=function(t){return{$implicit:t}};function jq(t,i){if(1&t&&(l(0,"tfoot",26),_(1,zq,1,0,"ng-container",20),c()),2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",U(2,Zs,e.columns))}}function $q(t,i){if(1&t&&(l(0,"table",18,19),_(2,qq,1,0,"ng-container",20),l(3,"thead",21),_(4,Gq,1,0,"ng-container",20),c(),_(5,Uq,1,5,"tbody",22),M(6,"tbody",23),_(7,jq,2,4,"tfoot",24),c()),2&t){const e=p();d("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),ie("id",e.id+"-table"),a(2),d("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",U(12,Zs,e.columns)),a(2),d("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",U(14,Zs,e.columns)),a(1),d("ngIf",e.frozenValue||e.frozenBodyTemplate),a(1),d("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),a(1),d("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function Wq(t,i){1&t&&Y(0)}function Kq(t,i){1&t&&Y(0)}function Qq(t,i){if(1&t&&M(0,"tbody",25),2&t){const e=p(2);d("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate)("frozen",!0)}}function Jq(t,i){1&t&&Y(0)}function Yq(t,i){if(1&t&&(l(0,"tfoot",26),_(1,Jq,1,0,"ng-container",20),c()),2&t){const e=p(2);a(1),d("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",U(2,Zs,e.columns))}}function Zq(t,i){if(1&t){const e=I();l(0,"cdk-virtual-scroll-viewport",27),C("scrolledIndexChange",function(s){return v(e),p().onScrollIndexChange(s)}),l(1,"table",18,19),_(3,Wq,1,0,"ng-container",20),l(4,"thead",21,28),_(6,Kq,1,0,"ng-container",20),c(),_(7,Qq,1,5,"tbody",22),M(8,"tbody",23),_(9,Yq,2,4,"tfoot",24),c()()}if(2&t){const e=p();_i("height","flex"!==e.scrollHeight?e.scrollHeight:void 0),d("itemSize",e.virtualRowHeight)("minBufferPx",e.minBufferPx)("maxBufferPx",e.maxBufferPx),a(1),d("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),ie("id",e.id+"-table"),a(2),d("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",U(17,Zs,e.columns)),a(3),d("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",U(19,Zs,e.columns)),a(1),d("ngIf",e.frozenValue||e.frozenBodyTemplate),a(1),d("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),a(1),d("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function Xq(t,i){if(1&t){const e=I();l(0,"p-paginator",29),C("onPageChange",function(s){return v(e),p().onPageChange(s)}),c()}if(2&t){const e=p();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)}}function eG(t,i){1&t&&Y(0)}function tG(t,i){if(1&t&&(l(0,"div",30),_(1,eG,1,0,"ng-container",16),c()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.summaryTemplate)}}function nG(t,i){1&t&&M(0,"div",31,32)}function iG(t,i){1&t&&M(0,"span",33,34)}function sG(t,i){1&t&&M(0,"span",35,36)}const oG=function(t,i,e,n,s,o,r,u,h,b,y,w,k,E){return{"p-datatable p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-auto-layout":i,"p-datatable-resizable":e,"p-datatable-resizable-fit":n,"p-datatable-scrollable":s,"p-datatable-scrollable-vertical":o,"p-datatable-scrollable-horizontal":r,"p-datatable-scrollable-both":u,"p-datatable-flex-scrollable":h,"p-datatable-responsive-stack":b,"p-datatable-responsive-scroll":y,"p-datatable-responsive":w,"p-datatable-grouped-header":k,"p-datatable-grouped-footer":E}},rG=function(t){return{height:t}},aG=["pTableBody",""];function lG(t,i){1&t&&Y(0)}const yd=function(t,i,e,n,s){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:s}};function cG(t,i){if(1&t&&(de(0,3),_(1,lG,1,0,"ng-container",4),pe()),2&t){const e=p(),n=e.$implicit,s=e.index,o=p(2);a(1),d("ngTemplateOutlet",o.dt.groupHeaderTemplate)("ngTemplateOutletContext",ho(2,yd,n,o.dt.paginator?o.dt.first+s:s,o.columns,"row"===o.dt.editMode&&o.dt.isRowEditing(n),o.frozen))}}function uG(t,i){1&t&&Y(0)}function dG(t,i){if(1&t&&(de(0),_(1,uG,1,0,"ng-container",4),pe()),2&t){const e=p(),n=e.$implicit,s=e.index,o=p(2);a(1),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",ho(2,yd,n,o.dt.paginator?o.dt.first+s:s,o.columns,"row"===o.dt.editMode&&o.dt.isRowEditing(n),o.frozen))}}function pG(t,i){1&t&&Y(0)}const hG=function(t,i,e,n,s,o,r){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:s,rowgroup:o,rowspan:r}};function mG(t,i){if(1&t&&(de(0),_(1,pG,1,0,"ng-container",4),pe()),2&t){const e=p(),n=e.$implicit,s=e.index,o=p(2);a(1),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",function aC(t,i,e,n,s,o,r,u,h,b){const y=Nn()+t,w=$();let k=gi(w,y,e,n,s,o);return Ec(w,y+4,r,u,h)||k?ts(w,y+7,b?i.call(b,e,n,s,o,r,u,h):i(e,n,s,o,r,u,h)):Ra(w,y+7)}(2,hG,n,o.dt.paginator?o.dt.first+s:s,o.columns,"row"===o.dt.editMode&&o.dt.isRowEditing(n),o.frozen,o.shouldRenderRowspan(o.value,n,s),o.calculateRowGroupSize(o.value,n,s)))}}function fG(t,i){1&t&&Y(0)}function gG(t,i){if(1&t&&(de(0,3),_(1,fG,1,0,"ng-container",4),pe()),2&t){const e=p(),n=e.$implicit,s=e.index,o=p(2);a(1),d("ngTemplateOutlet",o.dt.groupFooterTemplate)("ngTemplateOutletContext",ho(2,yd,n,o.dt.paginator?o.dt.first+s:s,o.columns,"row"===o.dt.editMode&&o.dt.isRowEditing(n),o.frozen))}}function _G(t,i){if(1&t&&(_(0,cG,2,8,"ng-container",2),_(1,dG,2,8,"ng-container",0),_(2,mG,2,10,"ng-container",0),_(3,gG,2,8,"ng-container",2)),2&t){const e=i.$implicit,n=i.index,s=p(2);d("ngIf",s.dt.groupHeaderTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupHeader(s.value,e,n)),a(1),d("ngIf","rowspan"!==s.dt.rowGroupMode),a(1),d("ngIf","rowspan"===s.dt.rowGroupMode),a(1),d("ngIf",s.dt.groupFooterTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupFooter(s.value,e,n))}}function bG(t,i){if(1&t&&(de(0),_(1,_G,4,4,"ng-template",1),pe()),2&t){const e=p();a(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function vG(t,i){1&t&&Y(0)}function CG(t,i){if(1&t&&_(0,vG,1,0,"ng-container",4),2&t){const e=i.$implicit,n=i.index,s=p(2);d("ngTemplateOutlet",e?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",ho(2,yd,e,s.dt.paginator?s.dt.first+n:n,s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(e),s.frozen))}}function yG(t,i){if(1&t&&(de(0),_(1,CG,1,8,"ng-template",5),pe()),2&t){const e=p();a(1),d("cdkVirtualForOf",e.dt.filteredValue||e.dt.value)("cdkVirtualForTrackBy",e.dt.rowTrackBy)("cdkVirtualForTemplateCacheSize",0)}}function wG(t,i){1&t&&Y(0)}const wd=function(t,i,e,n,s,o){return{$implicit:t,rowIndex:i,columns:e,expanded:n,editing:s,frozen:o}};function TG(t,i){if(1&t&&(de(0),_(1,wG,1,0,"ng-container",4),pe()),2&t){const e=p(),n=e.$implicit,s=e.index,o=p(2);a(1),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",Dr(2,wd,n,o.dt.paginator?o.dt.first+s:s,o.columns,o.dt.isRowExpanded(n),"row"===o.dt.editMode&&o.dt.isRowEditing(n),o.frozen))}}function SG(t,i){1&t&&Y(0)}function xG(t,i){if(1&t&&(de(0,3),_(1,SG,1,0,"ng-container",4),pe()),2&t){const e=p(),n=e.$implicit,s=e.index,o=p(2);a(1),d("ngTemplateOutlet",o.dt.groupHeaderTemplate)("ngTemplateOutletContext",Dr(2,wd,n,o.dt.paginator?o.dt.first+s:s,o.columns,o.dt.isRowExpanded(n),"row"===o.dt.editMode&&o.dt.isRowEditing(n),o.frozen))}}function DG(t,i){1&t&&Y(0)}function MG(t,i){1&t&&Y(0)}function kG(t,i){if(1&t&&(de(0,3),_(1,MG,1,0,"ng-container",4),pe()),2&t){const e=p(2),n=e.$implicit,s=e.index,o=p(2);a(1),d("ngTemplateOutlet",o.dt.groupFooterTemplate)("ngTemplateOutletContext",Dr(2,wd,n,o.dt.paginator?o.dt.first+s:s,o.columns,o.dt.isRowExpanded(n),"row"===o.dt.editMode&&o.dt.isRowEditing(n),o.frozen))}}const U2=function(t,i,e,n){return{$implicit:t,rowIndex:i,columns:e,frozen:n}};function IG(t,i){if(1&t&&(de(0),_(1,DG,1,0,"ng-container",4),_(2,kG,2,9,"ng-container",2),pe()),2&t){const e=p(),n=e.$implicit,s=e.index,o=p(2);a(1),d("ngTemplateOutlet",o.dt.expandedRowTemplate)("ngTemplateOutletContext",Ln(3,U2,n,o.dt.paginator?o.dt.first+s:s,o.columns,o.frozen)),a(1),d("ngIf",o.dt.groupFooterTemplate&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupFooter(o.value,n,s))}}function EG(t,i){if(1&t&&(_(0,TG,2,9,"ng-container",0),_(1,xG,2,9,"ng-container",2),_(2,IG,3,8,"ng-container",0)),2&t){const e=i.$implicit,n=i.index,s=p(2);d("ngIf",!s.dt.groupHeaderTemplate),a(1),d("ngIf",s.dt.groupHeaderTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupHeader(s.value,e,n)),a(1),d("ngIf",s.dt.isRowExpanded(e))}}function RG(t,i){if(1&t&&(de(0),_(1,EG,3,3,"ng-template",1),pe()),2&t){const e=p();a(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function LG(t,i){1&t&&Y(0)}function OG(t,i){1&t&&Y(0)}function AG(t,i){if(1&t&&(de(0),_(1,OG,1,0,"ng-container",4),pe()),2&t){const e=p(),n=e.$implicit,s=e.index,o=p(2);a(1),d("ngTemplateOutlet",o.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",Ln(2,U2,n,o.dt.paginator?o.dt.first+s:s,o.columns,o.frozen))}}function PG(t,i){if(1&t&&(_(0,LG,1,0,"ng-container",4),_(1,AG,2,7,"ng-container",0)),2&t){const e=i.$implicit,n=i.index,s=p(2);d("ngTemplateOutlet",s.template)("ngTemplateOutletContext",Dr(3,wd,e,s.dt.paginator?s.dt.first+n:n,s.columns,s.dt.isRowExpanded(e),"row"===s.dt.editMode&&s.dt.isRowEditing(e),s.frozen)),a(1),d("ngIf",s.dt.isRowExpanded(e))}}function FG(t,i){if(1&t&&(de(0),_(1,PG,2,10,"ng-template",1),pe()),2&t){const e=p();a(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function NG(t,i){1&t&&Y(0)}const z2=function(t,i){return{$implicit:t,frozen:i}};function VG(t,i){if(1&t&&(de(0),_(1,NG,1,0,"ng-container",4),pe()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",Ge(2,z2,e.columns,e.frozen))}}function BG(t,i){1&t&&Y(0)}function HG(t,i){if(1&t&&(de(0),_(1,BG,1,0,"ng-container",4),pe()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletContext",Ge(2,z2,e.columns,e.frozen))}}function qG(t,i){if(1&t&&(l(0,"span",2),g(1),c()),2&t){const e=p();a(1),S(e.getBadgeValue())}}const GG=function(t,i,e){return{"pi-sort-amount-up-alt":t,"pi-sort-amount-down":i,"pi-sort-alt":e}};function UG(t,i){1&t&&Y(0)}function zG(t,i){if(1&t&&(de(0),_(1,UG,1,0,"ng-container",1),pe()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.inputTemplate)}}function jG(t,i){1&t&&Y(0)}function $G(t,i){if(1&t&&(de(0),_(1,jG,1,0,"ng-container",1),pe()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.outputTemplate)}}function WG(t,i){1&t&&Y(0)}const KG=function(t,i){return{$implicit:t,filterCallback:i}};function QG(t,i){if(1&t&&(de(0),_(1,WG,1,0,"ng-container",2),pe()),2&t){const e=p();a(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",Ge(2,KG,e.filterConstraint.value,e.filterCallback))}}function JG(t,i){if(1&t){const e=I();l(0,"input",8),C("input",function(s){return v(e),p(2).onModelChange(s.target.value)})("keydown.enter",function(s){return v(e),p(2).onTextInputEnterKeyDown(s)}),c()}if(2&t){const e=p(2);d("value",null==e.filterConstraint?null:e.filterConstraint.value),ie("placeholder",e.placeholder)}}function YG(t,i){if(1&t){const e=I();l(0,"p-inputNumber",9),C("ngModelChange",function(s){return v(e),p(2).onModelChange(s)})("onKeyDown",function(s){return v(e),p(2).onNumericInputKeyDown(s)}),c()}if(2&t){const e=p(2);d("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)("showButtons",!0)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("placeholder",e.placeholder)("mode",e.currency?"currency":"decimal")("locale",e.locale)("localeMatcher",e.localeMatcher)("currency",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)}}function ZG(t,i){if(1&t){const e=I();l(0,"p-triStateCheckbox",10),C("ngModelChange",function(s){return v(e),p(2).onModelChange(s)}),c()}if(2&t){const e=p(2);d("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)}}function XG(t,i){if(1&t){const e=I();l(0,"p-calendar",11),C("ngModelChange",function(s){return v(e),p(2).onModelChange(s)}),c()}if(2&t){const e=p(2);d("placeholder",e.placeholder)("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)}}function eU(t,i){1&t&&(de(0,3),_(1,JG,1,2,"input",4),_(2,YG,1,13,"p-inputNumber",5),_(3,ZG,1,1,"p-triStateCheckbox",6),_(4,XG,1,2,"p-calendar",7),pe()),2&t&&(d("ngSwitch",p().type),a(1),d("ngSwitchCase","text"),a(1),d("ngSwitchCase","numeric"),a(1),d("ngSwitchCase","boolean"),a(1),d("ngSwitchCase","date"))}const tU=["icon"];function nU(t,i){if(1&t&&M(0,"p-columnFilterFormElement",5),2&t){const e=p();d("type",e.type)("field",e.field)("filterConstraint",e.dt.filters[e.field])("filterTemplate",e.filterTemplate)("placeholder",e.placeholder)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("locale",e.locale)("localeMatcher",e.localeMatcher)("currency",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)}}const iU=function(t,i){return{"p-column-filter-menu-button-open":t,"p-column-filter-menu-button-active":i}};function sU(t,i){if(1&t){const e=I();l(0,"button",6,7),C("click",function(){return v(e),p().toggleMenu()})("keydown",function(s){return v(e),p().onToggleButtonKeyDown(s)}),M(2,"span",8),c()}if(2&t){const e=p();d("ngClass",Ge(2,iU,e.overlayVisible,e.hasFilter())),ie("aria-expanded",e.overlayVisible)}}const oU=function(t){return{"p-hidden-space":t}};function rU(t,i){if(1&t){const e=I();l(0,"button",9,7),C("click",function(){return v(e),p().clearFilter()}),M(2,"span",10),c()}if(2&t){const e=p();d("ngClass",U(1,oU,!e.hasRowFilter()))}}function aU(t,i){1&t&&Y(0)}const lU=function(t){return{"p-highlight":t}};function cU(t,i){if(1&t){const e=I();l(0,"li",19),C("click",function(){const o=v(e).$implicit;return p(3).onRowMatchModeChange(o.value)})("keydown",function(s){return v(e),p(3).onRowMatchModeKeyDown(s)})("keydown.enter",function(){const o=v(e).$implicit;return p(3).onRowMatchModeChange(o.value)}),g(1),c()}if(2&t){const e=i.$implicit,n=i.index,s=p(3);d("ngClass",U(3,lU,s.isRowMatchModeSelected(e.value))),ie("tabindex",0===n?"0":null),a(1),S(e.label)}}function uU(t,i){if(1&t){const e=I();l(0,"ul",15),_(1,cU,2,5,"li",16),M(2,"li",17),l(3,"li",18),C("click",function(){return v(e),p(2).onRowClearItemClick()})("keydown",function(s){return v(e),p(2).onRowMatchModeKeyDown(s)})("keydown.enter",function(){return v(e),p(2).onRowClearItemClick()}),g(4),c()()}if(2&t){const e=p(2);a(1),d("ngForOf",e.matchModes),a(3),S(e.noFilterLabel)}}function dU(t,i){if(1&t){const e=I();l(0,"div",27)(1,"p-dropdown",28),C("ngModelChange",function(s){return v(e),p(3).onOperatorChange(s)}),c()()}if(2&t){const e=p(3);a(1),d("options",e.operatorOptions)("ngModel",e.operator)}}function pU(t,i){if(1&t){const e=I();l(0,"p-dropdown",33),C("ngModelChange",function(s){v(e);const o=p().$implicit;return p(3).onMenuMatchModeChange(s,o)}),c()}if(2&t){const e=p().$implicit;d("options",p(3).matchModes)("ngModel",e.matchMode)}}function hU(t,i){if(1&t){const e=I();l(0,"button",34),C("click",function(){v(e);const s=p().$implicit;return p(3).removeConstraint(s)}),c()}2&t&&d("label",p(4).removeRuleButtonLabel)}function mU(t,i){if(1&t&&(l(0,"div",29),_(1,pU,1,2,"p-dropdown",30),M(2,"p-columnFilterFormElement",31),l(3,"div"),_(4,hU,1,1,"button",32),c()()),2&t){const e=i.$implicit,n=p(3);a(1),d("ngIf",n.showMatchModes&&n.matchModes),a(1),d("type",n.type)("field",n.field)("filterConstraint",e)("filterTemplate",n.filterTemplate)("placeholder",n.placeholder)("minFractionDigits",n.minFractionDigits)("maxFractionDigits",n.maxFractionDigits)("prefix",n.prefix)("suffix",n.suffix)("locale",n.locale)("localeMatcher",n.localeMatcher)("currency",n.currency)("currencyDisplay",n.currencyDisplay)("useGrouping",n.useGrouping),a(2),d("ngIf",n.showRemoveIcon)}}function fU(t,i){if(1&t){const e=I();l(0,"div",35)(1,"button",36),C("click",function(){return v(e),p(3).addConstraint()}),c()()}if(2&t){const e=p(3);a(1),d("label",e.addRuleButtonLabel)}}function gU(t,i){if(1&t){const e=I();l(0,"button",37),C("click",function(){return v(e),p(3).clearFilter()}),c()}2&t&&d("label",p(3).clearButtonLabel)}function _U(t,i){if(1&t){const e=I();l(0,"button",38),C("click",function(){return v(e),p(3).applyFilter()}),c()}2&t&&d("label",p(3).applyButtonLabel)}function bU(t,i){if(1&t&&(_(0,dU,2,2,"div",20),l(1,"div",21),_(2,mU,5,16,"div",22),c(),_(3,fU,2,1,"div",23),l(4,"div",24),_(5,gU,1,1,"button",25),_(6,_U,1,1,"button",26),c()),2&t){const e=p(2);d("ngIf",e.isShowOperator),a(2),d("ngForOf",e.fieldConstraints),a(1),d("ngIf",e.isShowAddConstraint),a(2),d("ngIf",e.showClearButton),a(1),d("ngIf",e.showApplyButton)}}function vU(t,i){1&t&&Y(0)}const CU=function(t){return{"p-column-filter-overlay p-component p-fluid":!0,"p-column-filter-overlay-menu":t}};function yU(t,i){if(1&t){const e=I();l(0,"div",11),C("click",function(){return v(e),p().onContentClick()})("@overlayAnimation.start",function(s){return v(e),p().onOverlayAnimationStart(s)})("@overlayAnimation.done",function(s){return v(e),p().onOverlayAnimationEnd(s)})("keydown.escape",function(){return v(e),p().onEscape()}),_(1,aU,1,0,"ng-container",12),_(2,uU,5,2,"ul",13),_(3,bU,7,5,"ng-template",null,14,Se),_(5,vU,1,0,"ng-container",12),c()}if(2&t){const e=F(4),n=p();d("ngClass",U(8,CU,"menu"===n.display))("@overlayAnimation","visible"),a(1),d("ngTemplateOutlet",n.headerTemplate)("ngTemplateOutletContext",U(10,Zs,n.field)),a(1),d("ngIf","row"===n.display)("ngIfElse",e),a(3),d("ngTemplateOutlet",n.footerTemplate)("ngTemplateOutletContext",U(12,Zs,n.field))}}const wU=function(t,i){return{"p-column-filter-row":t,"p-column-filter-menu":i}};let Td=(()=>{class t{constructor(){this.sortSource=new ct,this.selectionSource=new ct,this.contextMenuSource=new ct,this.valueSource=new ct,this.totalRecordsSource=new ct,this.columnsSource=new ct,this.resetSource=new ct,this.sortSource$=this.sortSource.asObservable(),this.selectionSource$=this.selectionSource.asObservable(),this.contextMenuSource$=this.contextMenuSource.asObservable(),this.valueSource$=this.valueSource.asObservable(),this.totalRecordsSource$=this.totalRecordsSource.asObservable(),this.columnsSource$=this.columnsSource.asObservable(),this.resetSource$=this.resetSource.asObservable()}onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onResetChange(){this.resetSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Dn=(()=>{class t{constructor(e,n,s,o,r,u){this.el=e,this.zone=n,this.tableService=s,this.cd=o,this.filterService=r,this.overlayService=u,this.pageLinks=5,this.alwaysShowPaginator=!0,this.paginatorPosition="bottom",this.paginatorDropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage} of {totalPages}",this.showFirstLastIcon=!0,this.showPageLinks=!0,this.defaultSortOrder=1,this.sortMode="single",this.resetPageOnSort=!0,this.selectAllChange=new H,this.selectionChange=new H,this.contextMenuSelectionChange=new H,this.contextMenuSelectionMode="separate",this.rowTrackBy=(h,b)=>b,this.lazy=!1,this.lazyLoadOnInit=!0,this.compareSelectionBy="deepEquals",this.csvSeparator=",",this.exportFilename="download",this.filters={},this.filterDelay=300,this.expandedRowKeys={},this.editingRowKeys={},this.rowExpandMode="multiple",this.scrollDirection="vertical",this.virtualScrollDelay=250,this.virtualRowHeight=28,this.columnResizeMode="fit",this.loadingIcon="pi pi-spinner",this.showLoader=!0,this.showInitialSortBadge=!0,this.stateStorage="session",this.editMode="cell",this.groupRowsByOrder=1,this.responsiveLayout="stack",this.breakpoint="960px",this.onRowSelect=new H,this.onRowUnselect=new H,this.onPage=new H,this.onSort=new H,this.onFilter=new H,this.onLazyLoad=new H,this.onRowExpand=new H,this.onRowCollapse=new H,this.onContextMenuSelect=new H,this.onColResize=new H,this.onColReorder=new H,this.onRowReorder=new H,this.onEditInit=new H,this.onEditComplete=new H,this.onEditCancel=new H,this.onHeaderCheckboxToggle=new H,this.sortFunction=new H,this.firstChange=new H,this.rowsChange=new H,this.onStateSave=new H,this.onStateRestore=new H,this._value=[],this._totalRecords=0,this._first=0,this.selectionKeys={},this._sortOrder=1,this._selectAll=null,this.columnResizing=!1,this.rowGroupHeaderStyleObject={},this.id=hl(),this.virtualScrollInitialized=!1}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&!this.scrollable&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"rowexpansion":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"rowspan":this.rowspanTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenrows":this.frozenRowsTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template}})}ngAfterViewInit(){this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths(),this.scrollable&&this.virtualScroll&&(this.virtualScrollSubscription=this.virtualScrollBody.renderedRangeStream.subscribe(e=>{this.tableHeaderViewChild.nativeElement.style.top=e.start*this.virtualRowHeight*-1+"px"}))}ngOnChanges(e){e.value&&(this.isStateful()&&!this.stateRestored&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"multiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&this.restoreColumnOrder()),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,"multiple"===this.sortMode&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}get dataToRender(){let e=this.filteredValue||this.value;return e?this.paginator&&!this.lazy?e.slice(this.first,this.first+this.rows):e:[]}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(Z.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(Z.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.onPage.emit({first:this.first,rows:this.rows}),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let n=e.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===e.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let s=n.metaKey||n.ctrlKey,o=this.getSortMeta(e.field);o?s?o.order=-1*o.order:(this._multiSortMeta=[{field:e.field,order:-1*o.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!s||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,n=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(e&&n){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:n}):(this.value.sort((o,r)=>{let u=Z.resolveFieldData(o,e),h=Z.resolveFieldData(r,e),b=null;return b=null==u&&null!=h?-1:null!=u&&null==h?1:null==u&&null==h?0:"string"==typeof u&&"string"==typeof h?u.localeCompare(h):uh?1:0,n*b}),this._value=[...this.value]),this.hasFilter()&&this._filter());let s={field:e,order:n};this.onSort.emit(s),this.tableService.onSort(s)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,n)=>this.multisortField(e,n,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,n,s,o){let r=Z.resolveFieldData(e,s[o].field),u=Z.resolveFieldData(n,s[o].field),h=null;if(null==r&&null!=u)h=-1;else if(null!=r&&null==u)h=1;else if(null==r&&null==u)h=0;else if("string"==typeof r||r instanceof String){if(r.localeCompare&&r!=u)return s[o].order*r.localeCompare(u)}else h=ro?this.multisortField(e,n,s,o+1):0:s[o].order*h}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let n=0;nL!=k),this.selectionChange.emit(this.selection),y&&delete this.selectionKeys[y]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row"})}else this.isSingleSelectionMode()?(this._selection=r,this.selectionChange.emit(r),y&&(this.selectionKeys={},this.selectionKeys[y]=1)):this.isMultipleSelectionMode()&&(w?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,r],this.selectionChange.emit(this.selection),y&&(this.selectionKeys[y]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:u})}else if("single"===this.selectionMode)h?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:u})):(this._selection=r,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:u}),y&&(this.selectionKeys={},this.selectionKeys[y]=1));else if("multiple"===this.selectionMode)if(h){let w=this.findIndexInSelection(r);this._selection=this.selection.filter((k,E)=>E!=w),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:u}),y&&delete this.selectionKeys[y]}else this._selection=this.selection?[...this.selection,r]:[r],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:u}),y&&(this.selectionKeys[y]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const n=e.rowData,s=e.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=n,this.contextMenuSelectionChange.emit(n),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:n,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(n);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let o=this.isSelected(n),r=this.dataKey?String(Z.resolveFieldData(n,this.dataKey)):null;if(!o){if(!this.isRowSelectable(n,s))return;this.isSingleSelectionMode()?(this.selection=n,this.selectionChange.emit(n),r&&(this.selectionKeys={},this.selectionKeys[r]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),r&&(this.selectionKeys[r]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:n,index:e.rowIndex})}}}selectRange(e,n){let s,o;this.anchorRowIndex>n?(s=n,o=this.anchorRowIndex):this.anchorRowIndexthis.anchorRowIndex?(n=this.anchorRowIndex,s=this.rangeRowIndex):this.rangeRowIndexy!=u);let h=this.dataKey?String(Z.resolveFieldData(r,this.dataKey)):null;h&&delete this.selectionKeys[h],this.onRowUnselect.emit({originalEvent:e,data:r,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[Z.resolveFieldData(e,this.dataKey)]:this.selection instanceof Array?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let n=-1;if(this.selection&&this.selection.length)for(let s=0;sh!=r),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),o&&delete this.selectionKeys[o]}else{if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),o&&(this.selectionKeys[o]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,n){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:n});else{const s=this.selectionPageOnly?this.dataToRender:this.filteredValue||this.value||[];let o=this.selectionPageOnly&&this._selection?this._selection.filter(r=>!s.some(u=>this.equals(r,u))):[];n&&(o=this.frozenValue?[...o,...this.frozenValue,...s]:[...o,...s],o=this.rowSelectable?o.filter((r,u)=>this.rowSelectable({data:r,index:u})):o),this._selection=o,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:n}),this.isStateful()&&this.saveState()}}equals(e,n){return"equals"===this.compareSelectionBy?e===n:Z.equals(e,n,this.dataKey)}filter(e,n,s){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[n]&&delete this.filters[n]:this.filters[n]={value:e,matchMode:s},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,n){this.filter(e,"global",n)}isFilterBlank(e){return null==e||"string"==typeof e&&0==e.trim().length||e instanceof Array&&0==e.length}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let n=0;n{s+="\n";for(let y=0;y{let n=Math.floor(e/this.rows),s=0===n?0:(n-1)*this.rows,o=0===n?2*this.rows:3*this.rows;n!==this.virtualPage&&(this.virtualPage=n,this.lazyLoadOnInit||this.virtualScrollInitialized?this.onLazyLoad.emit({first:s,rows:o,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta}):this.virtualScrollInitialized=!0)},this.virtualScrollDelay))}scrollTo(e){this.virtualScrollBody?this.virtualScrollBody.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}updateEditingCell(e,n,s,o){this.editingCell=e,this.editingCellData=n,this.editingCellField=s,this.editingCellRowIndex=o,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&0===R.find(this.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(R.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1},document.addEventListener("click",this.documentEditListener))}unbindDocumentEditListener(){this.documentEditListener&&(document.removeEventListener("click",this.documentEditListener),this.documentEditListener=null)}initRowEdit(e){let n=String(Z.resolveFieldData(e,this.dataKey));this.editingRowKeys[n]=!0}saveRowEdit(e,n){if(0===R.find(n,".ng-invalid.ng-dirty").length){let s=String(Z.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[s]}}cancelRowEdit(e){let n=String(Z.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[n]}toggleRow(e,n){if(!this.dataKey)throw new Error("dataKey must be defined to use row expansion");let s=String(Z.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[s]?(delete this.expandedRowKeys[s],this.onRowCollapse.emit({originalEvent:n,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[s]=!0,this.onRowExpand.emit({originalEvent:n,data:e})),n&&n.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(Z.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(Z.resolveFieldData(e,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let n=R.getOffset(this.containerViewChild.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-n+this.containerViewChild.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let n=R.getOffset(this.containerViewChild.nativeElement).left;R.addClass(this.containerViewChild.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-n+this.containerViewChild.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX,s=this.resizeColumnElement.offsetWidth+e;if(s>=(this.resizeColumnElement.style.minWidth||15)){if("fit"===this.columnResizeMode){let u=this.resizeColumnElement.nextElementSibling.offsetWidth-e;s>15&&u>15&&this.resizeTableCells(s,u)}else if("expand"===this.columnResizeMode){let r=this.tableViewChild.nativeElement.offsetWidth+e;this.tableViewChild.nativeElement.style.width=r+"px",this.tableViewChild.nativeElement.style.minWidth=r+"px",this.resizeTableCells(s,null)}this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",R.removeClass(this.containerViewChild.nativeElement,"p-unselectable-text")}resizeTableCells(e,n){let s=R.index(this.resizeColumnElement),o=[];const r=R.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");R.find(r,"tr > th").forEach(b=>o.push(R.getOuterWidth(b))),this.destroyStyleElement(),this.createStyleElement();let h="";o.forEach((b,y)=>{let w=y===s?e:n&&y===s+1?n:b;h+=`\n #${this.id} .p-datatable-thead > tr > th:nth-child(${y+1}),\n #${this.id} .p-datatable-tbody > tr > td:nth-child(${y+1}),\n #${this.id} .p-datatable-tfoot > tr > td:nth-child(${y+1}) {\n ${this.scrollable?`flex: 1 1 ${w}px !important`:`width: ${w}px !important`}\n }\n `}),this.styleElement.innerHTML=h}onColumnDragStart(e,n){this.reorderIconWidth=R.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild.nativeElement),this.reorderIconHeight=R.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild.nativeElement),this.draggedColumn=n,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,n){if(this.reorderableColumns&&this.draggedColumn&&n){e.preventDefault();let s=R.getOffset(this.containerViewChild.nativeElement),o=R.getOffset(n);if(this.draggedColumn!=n){let r=R.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),u=R.indexWithinGroup(n,"preorderablecolumn"),h=o.left-s.left,y=o.left+n.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=o.top-s.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=o.top-s.top+n.offsetHeight+"px",e.pageX>y?(this.reorderIndicatorUpViewChild.nativeElement.style.left=h+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),u-r==1&&-1===this.dropPosition||u-r==-1&&1===this.dropPosition?(this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none"):(this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block")}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&(e.preventDefault(),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none")}onColumnDrop(e,n){if(e.preventDefault(),this.draggedColumn){let s=R.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),o=R.indexWithinGroup(n,"preorderablecolumn"),r=s!=o;r&&(o-s==1&&-1===this.dropPosition||s-o==1&&1===this.dropPosition)&&(r=!1),r&&os&&-1===this.dropPosition&&(o-=1),r&&(Z.reorderArray(this.columns,s,o),this.onColReorder.emit({dragIndex:s,dropIndex:o,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}onRowDragStart(e,n){this.rowDragging=!0,this.draggedRowIndex=n,e.dataTransfer.setData("text","b")}onRowDragOver(e,n,s){if(this.rowDragging&&this.draggedRowIndex!==n){let o=R.getOffset(s).top+R.getWindowScrollTop(),r=e.pageY,u=o+R.getOuterHeight(s)/2,h=s.previousElementSibling;rthis.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;Z.reorderArray(this.value,this.draggedRowIndex,s),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:s})}this.onRowDragLeave(e,n),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return null!=this.stateKey}saveState(){const e=this.getStorage();let n={};this.paginator&&(n.first=this.first,n.rows=this.rows),this.sortField&&(n.sortField=this.sortField,n.sortOrder=this.sortOrder),this.multiSortMeta&&(n.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&this.saveColumnOrder(n),this.selection&&(n.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(n.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(n)),this.onStateSave.emit(n)}clearState(){const e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const n=this.getStorage().getItem(this.stateKey),s=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(n){let r=JSON.parse(n,function(r,u){return"string"==typeof u&&s.test(u)?new Date(u):u});this.paginator&&(void 0!==this.first&&(this.first=r.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=r.rows,this.rowsChange.emit(this.rows))),r.sortField&&(this.restoringSort=!0,this._sortField=r.sortField,this._sortOrder=r.sortOrder),r.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=r.multiSortMeta),r.filters&&(this.restoringFilter=!0,this.filters=r.filters),this.resizableColumns&&(this.columnWidthsState=r.columnWidths,this.tableWidthState=r.tableWidth),r.expandedRowKeys&&(this.expandedRowKeys=r.expandedRowKeys),r.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(r.selection)),this.stateRestored=!0,this.onStateRestore.emit(r)}}saveColumnWidths(e){let n=[];R.find(this.containerViewChild.nativeElement,".p-datatable-thead > tr > th").forEach(o=>n.push(R.getOuterWidth(o))),e.columnWidths=n.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=R.getOuterWidth(this.tableViewChild.nativeElement)+"px")}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&(this.tableViewChild.nativeElement.style.width=this.tableWidthState,this.tableViewChild.nativeElement.style.minWidth=this.tableWidthState,this.containerViewChild.nativeElement.style.width=this.tableWidthState),Z.isNotEmpty(e)){this.createStyleElement();let n="";e.forEach((s,o)=>{n+=`\n #${this.id} .p-datatable-thead > tr > th:nth-child(${o+1}),\n #${this.id} .p-datatable-tbody > tr > td:nth-child(${o+1}),\n #${this.id} .p-datatable-tfoot > tr > td:nth-child(${o+1}) {\n ${this.scrollable?`flex: 1 1 ${s}px !important`:`width: ${s}px !important`}\n }\n `}),this.styleElement.innerHTML=n}}}saveColumnOrder(e){if(this.columns){let n=[];this.columns.map(s=>{n.push(s.field||s.key)}),e.columnOrder=n}}restoreColumnOrder(){const n=this.getStorage().getItem(this.stateKey);if(n){let o=JSON.parse(n).columnOrder;if(o){let r=[];o.map(u=>{let h=this.findColumnByKey(u);h&&r.push(h)}),this.columnOrderStateRestored=!0,this.columns=r}}}findColumnByKey(e){if(!this.columns)return null;for(let n of this.columns)if(n.key===e||n.field===e)return n}createStyleElement(){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){this.responsiveStyleElement||(this.responsiveStyleElement=document.createElement("style"),this.responsiveStyleElement.type="text/css",document.head.appendChild(this.responsiveStyleElement),this.responsiveStyleElement.innerHTML=`\n@media screen and (max-width: ${this.breakpoint}) {\n #${this.id} .p-datatable-thead > tr > th,\n #${this.id} .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n #${this.id} .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n #${this.id} .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n #${this.id}.p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n #${this.id} .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n}\n`)}destroyResponsiveStyle(){this.responsiveStyleElement&&(document.head.removeChild(this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.virtualScrollInitialized=null,this.virtualScrollSubscription&&this.virtualScrollSubscription.unsubscribe(),this.destroyStyleElement(),this.destroyResponsiveStyle()}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(nt),D(Td),D(ot),D(ml),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-table"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let o;V(o=B())&&(n.templates=o)}},viewQuery:function(e,n){if(1&e&&(W(Eq,5),W(Rq,5),W(Lq,5),W(Oq,5),W(Aq,5),W(Pq,5),W(Fq,5),W(Pr,5)),2&e){let s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.resizeHelperViewChild=s.first),V(s=B())&&(n.reorderIndicatorUpViewChild=s.first),V(s=B())&&(n.reorderIndicatorDownViewChild=s.first),V(s=B())&&(n.wrapperViewChild=s.first),V(s=B())&&(n.tableViewChild=s.first),V(s=B())&&(n.tableHeaderViewChild=s.first),V(s=B())&&(n.virtualScrollBody=s.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:"paginator",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:"alwaysShowPaginator",paginatorPosition:"paginatorPosition",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",defaultSortOrder:"defaultSortOrder",sortMode:"sortMode",resetPageOnSort:"resetPageOnSort",selectionMode:"selectionMode",selectionPageOnly:"selectionPageOnly",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:"metaKeySelection",rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:"filterDelay",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollDelay:"virtualScrollDelay",virtualRowHeight:"virtualRowHeight",frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:"resizableColumns",columnResizeMode:"columnResizeMode",reorderableColumns:"reorderableColumns",loading:"loading",loadingIcon:"loadingIcon",showLoader:"showLoader",rowHover:"rowHover",customSort:"customSort",showInitialSortBadge:"showInitialSortBadge",autoLayout:"autoLayout",exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:"groupRowsByOrder",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx",responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll"},outputs:{selectAllChange:"selectAllChange",selectionChange:"selectionChange",contextMenuSelectionChange:"contextMenuSelectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[Pe([Td]),fn],decls:14,vars:33,consts:[[3,"ngStyle","ngClass"],["container",""],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],["wrapper",""],["role","table","class","p-datatable-table",3,"ngClass","ngStyle",4,"ngIf"],["tabindex","0","class","p-datatable-virtual-scrollable-body",3,"itemSize","height","minBufferPx","maxBufferPx","scrolledIndexChange",4,"ngIf"],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange",4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","pi pi-arrow-down p-datatable-reorder-indicator-up","style","display:none",4,"ngIf"],["class","pi pi-arrow-up p-datatable-reorder-indicator-down","style","display:none",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[1,"p-datatable-header"],[4,"ngTemplateOutlet"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange"],["role","table",1,"p-datatable-table",3,"ngClass","ngStyle"],["table",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datatable-thead"],["class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],[1,"p-datatable-tbody",3,"value","pTableBody","pTableBodyTemplate"],["class","p-datatable-tfoot",4,"ngIf"],[1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],[1,"p-datatable-tfoot"],["tabindex","0",1,"p-datatable-virtual-scrollable-body",3,"itemSize","minBufferPx","maxBufferPx","scrolledIndexChange"],["tableHeader",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],["resizeHelper",""],[1,"pi","pi-arrow-down","p-datatable-reorder-indicator-up",2,"display","none"],["reorderIndicatorUp",""],[1,"pi","pi-arrow-up","p-datatable-reorder-indicator-down",2,"display","none"],["reorderIndicatorDown",""]],template:function(e,n){1&e&&(l(0,"div",0,1),_(2,Nq,2,2,"div",2),_(3,Bq,2,1,"div",3),_(4,Hq,1,17,"p-paginator",4),l(5,"div",5,6),_(7,$q,8,16,"table",7),_(8,Zq,10,21,"cdk-virtual-scroll-viewport",8),c(),_(9,Xq,1,17,"p-paginator",9),_(10,tG,2,1,"div",10),_(11,nG,2,0,"div",11),_(12,iG,2,0,"span",12),_(13,sG,2,0,"span",13),c()),2&e&&(me(n.styleClass),d("ngStyle",n.style)("ngClass",Hh(16,oG,[n.rowHover||n.selectionMode,n.autoLayout,n.resizableColumns,n.resizableColumns&&"fit"===n.columnResizeMode,n.scrollable,n.scrollable&&"vertical"===n.scrollDirection,n.scrollable&&"horizontal"===n.scrollDirection,n.scrollable&&"both"===n.scrollDirection,n.scrollable&&"flex"===n.scrollHeight,"stack"===n.responsiveLayout,"scroll"===n.responsiveLayout,n.responsive,null!=n.headerGroupedTemplate,null!=n.footerGroupedTemplate])),ie("id",n.id),a(2),d("ngIf",n.loading&&n.showLoader),a(1),d("ngIf",n.captionTemplate),a(1),d("ngIf",n.paginator&&("top"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),d("ngStyle",U(31,rG,n.scrollHeight)),a(2),d("ngIf",!n.virtualScroll),a(1),d("ngIf",n.virtualScroll),a(1),d("ngIf",n.paginator&&("bottom"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),d("ngIf",n.summaryTemplate),a(1),d("ngIf",n.resizableColumns),a(1),d("ngIf",n.reorderableColumns),a(1),d("ngIf",n.reorderableColumns))},directives:function(){return[ET,TU,Pr,lt,Le,Q,Rt,Qf]},styles:[".p-datatable{position:relative}.p-datatable table{border-collapse:collapse;min-width:100%;table-layout:fixed}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-auto-layout>.p-datatable-wrapper{overflow-x:auto}.p-datatable-auto-layout>.p-datatable-wrapper>table{table-layout:auto}.p-datatable-responsive-scroll>.p-datatable-wrapper{overflow-x:auto}.p-datatable-responsive-scroll>.p-datatable-wrapper>table,.p-datatable-auto-layout>.p-datatable-wrapper>table{table-layout:auto}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable .p-datatable-wrapper{position:relative;overflow:auto}.p-datatable-scrollable .p-datatable-thead,.p-datatable-scrollable .p-datatable-tbody,.p-datatable-scrollable .p-datatable-tfoot{display:block}.p-datatable-scrollable .p-datatable-thead>tr,.p-datatable-scrollable .p-datatable-tbody>tr,.p-datatable-scrollable .p-datatable-tfoot>tr{display:flex;flex-wrap:nowrap;width:100%}.p-datatable-scrollable .p-datatable-thead>tr>th,.p-datatable-scrollable .p-datatable-tbody>tr>td,.p-datatable-scrollable .p-datatable-tfoot>tr>td{display:flex;flex:1 1 0;align-items:center}.p-datatable-scrollable>.p-datatable-wrapper>.p-datatable-table>.p-datatable-thead,.p-datatable-scrollable>.p-datatable-wrapper>.p-datatable-virtual-scrollable-body>.cdk-virtual-scroll-content-wrapper>.p-datatable-table>.p-datatable-thead{position:sticky;top:0;z-index:1}.p-datatable-scrollable>.p-datatable-wrapper>.p-datatable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable>.p-datatable-wrapper>.p-datatable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-scrollable-both .p-datatable-thead>tr>th,.p-datatable-scrollable-both .p-datatable-tbody>tr>td,.p-datatable-scrollable-both .p-datatable-tfoot>tr>td,.p-datatable-scrollable-horizontal .p-datatable-thead>tr>th .p-datatable-scrollable-horizontal .p-datatable-tbody>tr>td,.p-datatable-scrollable-horizontal .p-datatable-tfoot>tr>td{flex:0 0 auto}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable .p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable .p-rowgroup-header{position:sticky;z-index:1}.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead,.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot{display:table;border-collapse:collapse;width:100%;table-layout:fixed}.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead>tr,.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot>tr{display:table-row}.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead>tr>th,.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot>tr>td{display:table-cell}.p-datatable-flex-scrollable{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-flex-scrollable .p-datatable-virtual-scrollable-body{flex:1}.p-datatable-resizable>.p-datatable-wrapper{overflow-x:auto}.p-datatable-resizable .p-datatable-thead>tr>th,.p-datatable-resizable .p-datatable-tfoot>tr>td,.p-datatable-resizable .p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable .p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-fit .p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute;display:none}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable .p-datatable-tbody>tr>td>.p-column-title{display:none}cdk-virtual-scroll-viewport{outline:0 none}\n"],encapsulation:2}),t})(),TU=(()=>{class t{constructor(e,n,s,o){this.dt=e,this.tableService=n,this.cd=s,this.el=o,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}shouldRenderRowGroupHeader(e,n,s){let o=Z.resolveFieldData(n,this.dt.groupRowsBy),r=e[s-1];return!r||o!==Z.resolveFieldData(r,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,n,s){let o=Z.resolveFieldData(n,this.dt.groupRowsBy),r=e[s+1];return!r||o!==Z.resolveFieldData(r,this.dt.groupRowsBy)}shouldRenderRowspan(e,n,s){let o=Z.resolveFieldData(n,this.dt.groupRowsBy),r=e[s-1];return!r||o!==Z.resolveFieldData(r,this.dt.groupRowsBy)}calculateRowGroupSize(e,n,s){let o=Z.resolveFieldData(n,this.dt.groupRowsBy),r=o,u=0;for(;o===r;){u++;let h=e[++s];if(!h)break;r=Z.resolveFieldData(h,this.dt.groupRowsBy)}return 1===u?null:u}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=R.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=R.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}}return t.\u0275fac=function(e){return new(e||t)(D(Dn),D(Td),D(ot),D(De))},t.\u0275cmp=z({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows"},attrs:aG,decls:6,vars:6,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"]],template:function(e,n){1&e&&(_(0,bG,2,2,"ng-container",0),_(1,yG,2,3,"ng-container",0),_(2,RG,2,2,"ng-container",0),_(3,FG,2,2,"ng-container",0),_(4,VG,2,5,"ng-container",0),_(5,HG,2,5,"ng-container",0)),2&e&&(d("ngIf",!n.dt.expandedRowTemplate&&!n.dt.virtualScroll),a(1),d("ngIf",!n.dt.expandedRowTemplate&&n.dt.virtualScroll),a(1),d("ngIf",n.dt.expandedRowTemplate&&!(n.frozen&&n.dt.frozenExpandedRowTemplate)),a(1),d("ngIf",n.dt.frozenExpandedRowTemplate&&n.frozen),a(1),d("ngIf",n.dt.loading),a(1),d("ngIf",n.dt.isEmpty()&&!n.dt.loading))},directives:[Q,at,Rt,Jf],encapsulation:2}),t})(),SU=(()=>{class t{constructor(e){this.dt=e}get getFrozenRowGroupHeaderStickyPosition(){return this.dt.rowGroupHeaderStyleObject?this.dt.rowGroupHeaderStyleObject.top:""}}return t.\u0275fac=function(e){return new(e||t)(D(Dn))},t.\u0275dir=le({type:t,selectors:[["","pRowGroupHeader",""]],hostAttrs:[1,"p-rowgroup-header","p-element"],hostVars:2,hostBindings:function(e,n){2&e&&_i("top",n.getFrozenRowGroupHeaderStickyPosition)}}),t})(),Ll=(()=>{class t{constructor(e){this.dt=e,this.isEnabled()&&(this.subscription=this.dt.tableService.sortSource$.subscribe(n=>{this.updateSortState()}))}ngOnInit(){this.isEnabled()&&this.updateSortState()}updateSortState(){this.sorted=this.dt.isSorted(this.field),this.sortOrder=this.sorted?1===this.dt.sortOrder?"ascending":"descending":"none"}onClick(e){this.isEnabled()&&!this.isFilterElement(e.target)&&(this.updateSortState(),this.dt.sort({originalEvent:e,field:this.field}),R.clearSelection())}onEnterKey(e){this.onClick(e)}isEnabled(){return!0!==this.pSortableColumnDisabled}isFilterElement(e){return R.hasClass(e,"pi-filter-icon")||R.hasClass(e,"p-column-filter-menu-button")}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(D(Dn))},t.\u0275dir=le({type:t,selectors:[["","pSortableColumn",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function(e,n){1&e&&C("click",function(o){return n.onClick(o)})("keydown.enter",function(o){return n.onEnterKey(o)}),2&e&&(ie("tabindex",n.isEnabled()?"0":null)("role","columnheader")("aria-sort",n.sortOrder),si("p-sortable-column",n.isEnabled())("p-highlight",n.sorted))},inputs:{field:["pSortableColumn","field"],pSortableColumnDisabled:"pSortableColumnDisabled"}}),t})(),Ol=(()=>{class t{constructor(e,n){this.dt=e,this.cd=n,this.subscription=this.dt.tableService.sortSource$.subscribe(s=>{this.updateSortState()})}ngOnInit(){this.updateSortState()}onClick(e){e.preventDefault()}updateSortState(){if("single"===this.dt.sortMode)this.sortOrder=this.dt.isSorted(this.field)?this.dt.sortOrder:0;else if("multiple"===this.dt.sortMode){let e=this.dt.getSortMeta(this.field);this.sortOrder=e?e.order:0}this.cd.markForCheck()}getMultiSortMetaIndex(){let e=this.dt._multiSortMeta,n=-1;if(e&&"multiple"===this.dt.sortMode&&(this.dt.showInitialSortBadge||e.length>1))for(let s=0;s-1?e:e+1}isMultiSorted(){return"multiple"===this.dt.sortMode&&this.getMultiSortMetaIndex()>-1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(D(Dn),D(ot))},t.\u0275cmp=z({type:t,selectors:[["p-sortIcon"]],hostAttrs:[1,"p-element"],inputs:{field:"field"},decls:2,vars:6,consts:[[1,"p-sortable-column-icon","pi","pi-fw",3,"ngClass"],["class","p-sortable-column-badge",4,"ngIf"],[1,"p-sortable-column-badge"]],template:function(e,n){1&e&&(M(0,"i",0),_(1,qG,2,1,"span",1)),2&e&&(d("ngClass",Jt(2,GG,1===n.sortOrder,-1===n.sortOrder,0===n.sortOrder)),a(1),d("ngIf",n.isMultiSorted()))},directives:[Le,Q],encapsulation:2,changeDetection:0}),t})(),j2=(()=>{class t{constructor(e,n){this.dt=e,this.tableService=n,this.isEnabled()&&(this.subscription=this.dt.tableService.selectionSource$.subscribe(()=>{this.selected=this.dt.isSelected(this.data)}))}ngOnInit(){this.isEnabled()&&(this.selected=this.dt.isSelected(this.data))}onClick(e){this.isEnabled()&&this.dt.handleRowClick({originalEvent:e,rowData:this.data,rowIndex:this.index})}onTouchEnd(e){this.isEnabled()&&this.dt.handleRowTouchEnd(e)}onArrowDownKeyDown(e){if(!this.isEnabled())return;const s=this.findNextSelectableRow(e.currentTarget);s&&s.focus(),e.preventDefault()}onArrowUpKeyDown(e){if(!this.isEnabled())return;const s=this.findPrevSelectableRow(e.currentTarget);s&&s.focus(),e.preventDefault()}onEnterKeyDown(e){!this.isEnabled()||this.dt.handleRowClick({originalEvent:e,rowData:this.data,rowIndex:this.index})}onPageDownKeyDown(){this.dt.virtualScroll&&this.dt.virtualScrollBody.elementRef.nativeElement.focus()}onSpaceKeydown(){this.dt.virtualScroll&&!this.dt.editingCell&&this.dt.virtualScrollBody.elementRef.nativeElement.focus()}findNextSelectableRow(e){let n=e.nextElementSibling;return n?R.hasClass(n,"p-selectable-row")?n:this.findNextSelectableRow(n):null}findPrevSelectableRow(e){let n=e.previousElementSibling;return n?R.hasClass(n,"p-selectable-row")?n:this.findPrevSelectableRow(n):null}isEnabled(){return!0!==this.pSelectableRowDisabled}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(D(Dn),D(Td))},t.\u0275dir=le({type:t,selectors:[["","pSelectableRow",""]],hostAttrs:[1,"p-element"],hostVars:5,hostBindings:function(e,n){1&e&&C("click",function(o){return n.onClick(o)})("touchend",function(o){return n.onTouchEnd(o)})("keydown.arrowdown",function(o){return n.onArrowDownKeyDown(o)})("keydown.arrowup",function(o){return n.onArrowUpKeyDown(o)})("keydown.enter",function(o){return n.onEnterKeyDown(o)})("keydown.shift.enter",function(o){return n.onEnterKeyDown(o)})("keydown.meta.enter",function(o){return n.onEnterKeyDown(o)})("keydown.pagedown",function(){return n.onPageDownKeyDown()})("keydown.pageup",function(){return n.onPageDownKeyDown()})("keydown.home",function(){return n.onPageDownKeyDown()})("keydown.end",function(){return n.onPageDownKeyDown()})("keydown.space",function(){return n.onSpaceKeydown()}),2&e&&(ie("tabindex",n.isEnabled()?0:void 0),si("p-selectable-row",n.isEnabled())("p-highlight",n.selected))},inputs:{data:["pSelectableRow","data"],index:["pSelectableRowIndex","index"],pSelectableRowDisabled:"pSelectableRowDisabled"}}),t})(),$2=(()=>{class t{constructor(e,n,s){this.dt=e,this.el=n,this.zone=s}ngAfterViewInit(){this.isEnabled()&&R.addClass(this.el.nativeElement,"p-editable-column")}onClick(e){if(this.isEnabled())if(this.dt.selfClick=!0,this.dt.editingCell){if(this.dt.editingCell!==this.el.nativeElement){if(!this.dt.isEditingCellValid())return;this.closeEditingCell(!0,e),this.openCell()}}else this.openCell()}openCell(){this.dt.updateEditingCell(this.el.nativeElement,this.data,this.field,this.rowIndex),R.addClass(this.el.nativeElement,"p-cell-editing"),this.dt.onEditInit.emit({field:this.field,data:this.data,index:this.rowIndex}),this.zone.runOutsideAngular(()=>{setTimeout(()=>{let n=R.findSingle(this.el.nativeElement,this.pFocusCellSelector||"input, textarea, select");n&&n.focus()},50)}),this.overlayEventListener=e=>{this.el&&this.el.nativeElement.contains(e.target)&&(this.dt.selfClick=!0)},this.dt.overlaySubscription=this.dt.overlayService.clickObservable.subscribe(this.overlayEventListener)}closeEditingCell(e,n){e?this.dt.onEditComplete.emit({field:this.dt.editingCellField,data:this.dt.editingCellData,originalEvent:n,index:this.dt.editingCellRowIndex}):this.dt.onEditCancel.emit({field:this.dt.editingCellField,data:this.dt.editingCellData,originalEvent:n,index:this.dt.editingCellRowIndex}),R.removeClass(this.dt.editingCell,"p-cell-editing"),this.dt.editingCell=null,this.dt.editingCellData=null,this.dt.editingCellField=null,this.dt.unbindDocumentEditListener(),this.dt.overlaySubscription&&this.dt.overlaySubscription.unsubscribe()}onEnterKeyDown(e){this.isEnabled()&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),e.preventDefault())}onEscapeKeyDown(e){this.isEnabled()&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!1,e),e.preventDefault())}onShiftKeyDown(e){this.isEnabled()&&(e.shiftKey?this.moveToPreviousCell(e):this.moveToNextCell(e))}onArrowDown(e){if(this.isEnabled()){let n=this.findCell(e.target);if(n){let s=R.index(n),o=this.findNextEditableColumnByIndex(n,s);o&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(o,"click")),e.preventDefault()}}}onArrowUp(e){if(this.isEnabled()){let n=this.findCell(e.target);if(n){let s=R.index(n),o=this.findPrevEditableColumnByIndex(n,s);o&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(o,"click")),e.preventDefault()}}}onArrowLeft(e){this.isEnabled()&&this.moveToPreviousCell(e)}onArrowRight(e){this.isEnabled()&&this.moveToNextCell(e)}findCell(e){if(e){let n=e;for(;n&&!R.hasClass(n,"p-cell-editing");)n=n.parentElement;return n}return null}moveToPreviousCell(e){let n=this.findCell(e.target);if(n){let s=this.findPreviousEditableColumn(n);s&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(s,"click"),e.preventDefault())}}moveToNextCell(e){let n=this.findCell(e.target);if(n){let s=this.findNextEditableColumn(n);s&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(s,"click"),e.preventDefault())}}findPreviousEditableColumn(e){let n=e.previousElementSibling;if(!n){let s=e.parentElement.previousElementSibling;s&&(n=s.lastElementChild)}return n?R.hasClass(n,"p-editable-column")?n:this.findPreviousEditableColumn(n):null}findNextEditableColumn(e){let n=e.nextElementSibling;if(!n){let s=e.parentElement.nextElementSibling;s&&(n=s.firstElementChild)}return n?R.hasClass(n,"p-editable-column")?n:this.findNextEditableColumn(n):null}findNextEditableColumnByIndex(e,n){let s=e.parentElement.nextElementSibling;if(s){let o=s.children[n];return o&&R.hasClass(o,"p-editable-column")?o:null}return null}findPrevEditableColumnByIndex(e,n){let s=e.parentElement.previousElementSibling;if(s){let o=s.children[n];return o&&R.hasClass(o,"p-editable-column")?o:null}return null}isEnabled(){return!0!==this.pEditableColumnDisabled}ngOnDestroy(){this.dt.overlaySubscription&&this.dt.overlaySubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(D(Dn),D(De),D(nt))},t.\u0275dir=le({type:t,selectors:[["","pEditableColumn",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,n){1&e&&C("click",function(o){return n.onClick(o)})("keydown.enter",function(o){return n.onEnterKeyDown(o)})("keydown.escape",function(o){return n.onEscapeKeyDown(o)})("keydown.tab",function(o){return n.onShiftKeyDown(o)})("keydown.shift.tab",function(o){return n.onShiftKeyDown(o)})("keydown.meta.tab",function(o){return n.onShiftKeyDown(o)})("keydown.arrowdown",function(o){return n.onArrowDown(o)})("keydown.arrowup",function(o){return n.onArrowUp(o)})("keydown.arrowleft",function(o){return n.onArrowLeft(o)})("keydown.arrowright",function(o){return n.onArrowRight(o)})},inputs:{data:["pEditableColumn","data"],field:["pEditableColumnField","field"],rowIndex:["pEditableColumnRowIndex","rowIndex"],pEditableColumnDisabled:"pEditableColumnDisabled",pFocusCellSelector:"pFocusCellSelector"}}),t})(),xU=(()=>{class t{constructor(e){this.el=e}isEnabled(){return!0!==this.pEditableRowDisabled}}return t.\u0275fac=function(e){return new(e||t)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pEditableRow",""]],hostAttrs:[1,"p-element"],inputs:{data:["pEditableRow","data"],pEditableRowDisabled:"pEditableRowDisabled"}}),t})(),DU=(()=>{class t{constructor(e,n,s){this.dt=e,this.editableColumn=n,this.editableRow=s}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"input":this.inputTemplate=e.template;break;case"output":this.outputTemplate=e.template}})}get editing(){return this.dt.editingCell&&this.editableColumn&&this.dt.editingCell===this.editableColumn.el.nativeElement||this.editableRow&&"row"===this.dt.editMode&&this.dt.isRowEditing(this.editableRow.data)}}return t.\u0275fac=function(e){return new(e||t)(D(Dn),D($2,8),D(xU,8))},t.\u0275cmp=z({type:t,selectors:[["p-cellEditor"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let o;V(o=B())&&(n.templates=o)}},hostAttrs:[1,"p-element"],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,n){1&e&&(_(0,zG,2,1,"ng-container",0),_(1,$G,2,1,"ng-container",0)),2&e&&(d("ngIf",n.editing),a(1),d("ngIf",!n.editing))},directives:[Q,Rt],encapsulation:2}),t})(),MU=(()=>{class t{constructor(e){this.dt=e,this.useGrouping=!0}ngOnInit(){this.filterCallback=e=>{this.filterConstraint.value=e,this.dt._filter()}}onModelChange(e){this.filterConstraint.value=e,("boolean"===this.type||""===e)&&this.dt._filter()}onTextInputEnterKeyDown(e){this.dt._filter(),e.preventDefault()}onNumericInputKeyDown(e){"Enter"===e.key&&(this.dt._filter(),e.preventDefault())}}return t.\u0275fac=function(e){return new(e||t)(D(Dn))},t.\u0275cmp=z({type:t,selectors:[["p-columnFilterFormElement"]],hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",filterConstraint:"filterConstraint",filterTemplate:"filterTemplate",placeholder:"placeholder",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["builtInElement",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["type","text","pInputText","",3,"value","input","keydown.enter",4,"ngSwitchCase"],[3,"ngModel","showButtons","minFractionDigits","maxFractionDigits","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown",4,"ngSwitchCase"],[3,"ngModel","ngModelChange",4,"ngSwitchCase"],[3,"placeholder","ngModel","ngModelChange",4,"ngSwitchCase"],["type","text","pInputText","",3,"value","input","keydown.enter"],[3,"ngModel","showButtons","minFractionDigits","maxFractionDigits","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown"],[3,"ngModel","ngModelChange"],[3,"placeholder","ngModel","ngModelChange"]],template:function(e,n){if(1&e&&(_(0,QG,2,5,"ng-container",0),_(1,eU,5,5,"ng-template",null,1,Se)),2&e){const s=F(2);d("ngIf",n.filterTemplate)("ngIfElse",s)}},directives:[pt,G2,Do,Q,Rt,_o,Ya,DT,we,_e],encapsulation:2}),t})(),vg=(()=>{class t{constructor(e,n,s,o,r){this.el=e,this.dt=n,this.renderer=s,this.config=o,this.overlayService=r,this.type="text",this.display="row",this.showMenu=!0,this.operator=fl.AND,this.showOperator=!0,this.showClearButton=!0,this.showApplyButton=!0,this.showMatchModes=!0,this.showAddButton=!0,this.hideOnClear=!1,this.maxConstraints=2,this.useGrouping=!0}ngOnInit(){this.dt.filters[this.field]||this.initFieldFilterConstraint(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.generateMatchModeOptions(),this.generateOperatorOptions()}),this.resetSubscription=this.dt.tableService.resetSource$.subscribe(()=>{this.initFieldFilterConstraint()}),this.generateMatchModeOptions(),this.generateOperatorOptions()}generateMatchModeOptions(){var e;this.matchModes=this.matchModeOptions||(null===(e=this.config.filterMatchModeOptions[this.type])||void 0===e?void 0:e.map(n=>({label:this.config.getTranslation(n),value:n})))}generateOperatorOptions(){this.operatorOptions=[{label:this.config.getTranslation(Nt.MATCH_ALL),value:fl.AND},{label:this.config.getTranslation(Nt.MATCH_ANY),value:fl.OR}]}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"filter":default:this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}initFieldFilterConstraint(){let e=this.getDefaultMatchMode();this.dt.filters[this.field]="row"==this.display?{value:null,matchMode:e}:[{value:null,matchMode:e,operator:this.operator}]}onMenuMatchModeChange(e,n){n.matchMode=e,this.showApplyButton||this.dt._filter()}onRowMatchModeChange(e){this.dt.filters[this.field].matchMode=e,this.dt._filter(),this.hide()}onRowMatchModeKeyDown(e){let n=e.target;switch(e.key){case"ArrowDown":var s=this.findNextItem(n);s&&(n.removeAttribute("tabindex"),s.tabIndex="0",s.focus()),e.preventDefault();break;case"ArrowUp":var o=this.findPrevItem(n);o&&(n.removeAttribute("tabindex"),o.tabIndex="0",o.focus()),e.preventDefault()}}onRowClearItemClick(){this.clearFilter(),this.hide()}isRowMatchModeSelected(e){return this.dt.filters[this.field].matchMode===e}addConstraint(){this.dt.filters[this.field].push({value:null,matchMode:this.getDefaultMatchMode(),operator:this.getDefaultOperator()}),this.dt._filter()}removeConstraint(e){this.dt.filters[this.field]=this.dt.filters[this.field].filter(n=>n!==e),this.dt._filter()}onOperatorChange(e){this.dt.filters[this.field].forEach(n=>{n.operator=e,this.operator=e}),this.showApplyButton||this.dt._filter()}toggleMenu(){this.overlayVisible=!this.overlayVisible}onToggleButtonKeyDown(e){switch(e.key){case"Escape":case"Tab":this.overlayVisible=!1;break;case"ArrowDown":if(this.overlayVisible){let n=R.getFocusableElements(this.overlay);n&&n[0].focus(),e.preventDefault()}else e.altKey&&(this.overlayVisible=!0,e.preventDefault())}}onEscape(){this.overlayVisible=!1,this.icon.nativeElement.focus()}findNextItem(e){let n=e.nextElementSibling;return n?R.hasClass(n,"p-column-filter-separator")?this.findNextItem(n):n:e.parentElement.firstElementChild}findPrevItem(e){let n=e.previousElementSibling;return n?R.hasClass(n,"p-column-filter-separator")?this.findPrevItem(n):n:e.parentElement.lastElementChild}onContentClick(){this.selfClick=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,document.body.appendChild(this.overlay),dt.set("overlay",this.overlay,this.config.zIndex.overlay),R.absolutePosition(this.overlay,this.icon.nativeElement),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.overlayEventListener=n=>{this.overlay&&this.overlay.contains(n.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener);break;case"void":this.onOverlayHide(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}getDefaultMatchMode(){return this.matchMode?this.matchMode:"text"===this.type?bt.STARTS_WITH:"numeric"===this.type?bt.EQUALS:"date"===this.type?bt.DATE_IS:bt.CONTAINS}getDefaultOperator(){return this.dt.filters?this.dt.filters[this.field][0].operator:this.operator}hasRowFilter(){return this.dt.filters[this.field]&&!this.dt.isFilterBlank(this.dt.filters[this.field].value)}get fieldConstraints(){return this.dt.filters?this.dt.filters[this.field]:null}get showRemoveIcon(){return!!this.fieldConstraints&&this.fieldConstraints.length>1}get showMenuButton(){return this.showMenu&&("row"!==this.display||"boolean"!==this.type)}get isShowOperator(){return this.showOperator&&"boolean"!==this.type}get isShowAddConstraint(){return this.showAddButton&&"boolean"!==this.type&&this.fieldConstraints&&this.fieldConstraints.length{this.overlayVisible&&!this.selfClick&&this.isOutsideClicked(n)&&this.hide(),this.selfClick=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}bindDocumentResizeListener(){this.documentResizeListener=()=>this.hide(),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Qs(this.icon.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}hide(){this.overlayVisible=!1}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}clearFilter(){this.initFieldFilterConstraint(),this.dt._filter(),this.hideOnClear&&this.hide()}applyFilter(){this.dt._filter(),this.hide()}ngOnDestroy(){this.overlay&&(this.el.nativeElement.appendChild(this.overlay),dt.clear(this.overlay),this.onOverlayHide()),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.resetSubscription&&this.resetSubscription.unsubscribe(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(Dn),D(gn),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-columnFilter"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let o;V(o=B())&&(n.templates=o)}},viewQuery:function(e,n){if(1&e&&W(tU,5),2&e){let s;V(s=B())&&(n.icon=s.first)}},hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",display:"display",showMenu:"showMenu",matchMode:"matchMode",operator:"operator",showOperator:"showOperator",showClearButton:"showClearButton",showApplyButton:"showApplyButton",showMatchModes:"showMatchModes",showAddButton:"showAddButton",hideOnClear:"hideOnClear",placeholder:"placeholder",matchModeOptions:"matchModeOptions",maxConstraints:"maxConstraints",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping"},decls:5,vars:8,consts:[[1,"p-column-filter",3,"ngClass"],["class","p-fluid",3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping",4,"ngIf"],["type","button","class","p-column-filter-menu-button p-link","aria-haspopup","true",3,"ngClass","click","keydown",4,"ngIf"],["type","button","class","p-column-filter-clear-button p-link",3,"ngClass","click",4,"ngIf"],[3,"ngClass","click","keydown.escape",4,"ngIf"],[1,"p-fluid",3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping"],["type","button","aria-haspopup","true",1,"p-column-filter-menu-button","p-link",3,"ngClass","click","keydown"],["icon",""],[1,"pi","pi-filter-icon","pi-filter"],["type","button",1,"p-column-filter-clear-button","p-link",3,"ngClass","click"],[1,"pi","pi-filter-slash"],[3,"ngClass","click","keydown.escape"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-column-filter-row-items",4,"ngIf","ngIfElse"],["menu",""],[1,"p-column-filter-row-items"],["class","p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter",4,"ngFor","ngForOf"],[1,"p-column-filter-separator"],[1,"p-column-filter-row-item",3,"click","keydown","keydown.enter"],[1,"p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter"],["class","p-column-filter-operator",4,"ngIf"],[1,"p-column-filter-constraints"],["class","p-column-filter-constraint",4,"ngFor","ngForOf"],["class","p-column-filter-add-rule",4,"ngIf"],[1,"p-column-filter-buttonbar"],["type","button","pButton","","class","p-button-outlined p-button-sm","pRipple","",3,"label","click",4,"ngIf"],["type","button","pButton","","class","p-button-sm","pRipple","",3,"label","click",4,"ngIf"],[1,"p-column-filter-operator"],["styleClass","p-column-filter-operator-dropdown",3,"options","ngModel","ngModelChange"],[1,"p-column-filter-constraint"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange",4,"ngIf"],[3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping"],["type","button","pButton","","icon","pi pi-trash","class","p-column-filter-remove-button p-button-text p-button-danger p-button-sm","pRipple","",3,"label","click",4,"ngIf"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange"],["type","button","pButton","","icon","pi pi-trash","pRipple","",1,"p-column-filter-remove-button","p-button-text","p-button-danger","p-button-sm",3,"label","click"],[1,"p-column-filter-add-rule"],["type","button","pButton","","icon","pi pi-plus","pRipple","",1,"p-column-filter-add-button","p-button-text","p-button-sm",3,"label","click"],["type","button","pButton","","pRipple","",1,"p-button-outlined","p-button-sm",3,"label","click"],["type","button","pButton","","pRipple","",1,"p-button-sm",3,"label","click"]],template:function(e,n){1&e&&(l(0,"div",0),_(1,nU,1,14,"p-columnFilterFormElement",1),_(2,sU,3,5,"button",2),_(3,rU,3,3,"button",3),_(4,yU,6,14,"div",4),c()),2&e&&(d("ngClass",Ge(5,wU,"row"===n.display,"menu"===n.display)),a(1),d("ngIf","row"===n.display),a(1),d("ngIf",n.showMenuButton),a(1),d("ngIf",n.showClearButton&&"row"===n.display),a(1),d("ngIf",n.showMenu&&n.overlayVisible))},directives:[MU,Ot,Le,Q,Rt,at,we,_e,An],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt(".12s cubic-bezier(0, 0, 0.2, 1)")]),Lt(":leave",[kt(".1s linear",it({opacity:0}))])])]}}),t})(),kU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,RT,MT,td,Fr,Eu,_l,Tq,cT,nd,Iq],Vt,Fr]}),t})();const W2=["container"],IU=function(t,i,e,n){return{"pi-info-circle":t,"pi-exclamation-triangle":i,"pi-times-circle":e,"pi-check":n}};function EU(t,i){if(1&t&&(de(0),M(1,"span",6),l(2,"div",7)(3,"div",8),g(4),c(),l(5,"div",9),g(6),c()(),pe()),2&t){const e=p();a(1),me("p-toast-message-icon pi"+(e.message.icon?" "+e.message.icon:"")),d("ngClass",Ln(5,IU,"info"==e.message.severity,"warn"==e.message.severity,"error"==e.message.severity,"success"==e.message.severity)),a(3),S(e.message.summary),a(2),S(e.message.detail)}}function RU(t,i){1&t&&Y(0)}function LU(t,i){if(1&t){const e=I();l(0,"button",10),C("click",function(s){return v(e),p().onCloseIconClick(s)})("keydown.enter",function(s){return v(e),p().onCloseIconClick(s)}),M(1,"span",11),c()}}const OU=function(t){return[t,"p-toast-message"]},AU=function(t,i,e,n){return{showTransformParams:t,hideTransformParams:i,showTransitionParams:e,hideTransitionParams:n}},PU=function(t){return{value:"visible",params:t}},FU=function(t){return{$implicit:t}};function NU(t,i){if(1&t){const e=I();l(0,"p-toastItem",3),C("onClose",function(s){return v(e),p().onMessageClose(s)})("@toastAnimation.start",function(s){return v(e),p().onAnimationStart(s)})("@toastAnimation.done",function(s){return v(e),p().onAnimationEnd(s)}),c()}if(2&t){const e=i.$implicit,n=i.index,s=p();d("message",e)("index",n)("template",s.template)("@toastAnimation",void 0)("showTransformOptions",s.showTransformOptions)("hideTransformOptions",s.hideTransformOptions)("showTransitionOptions",s.showTransitionOptions)("hideTransitionOptions",s.hideTransitionOptions)}}let VU=(()=>{class t{constructor(e){this.zone=e,this.onClose=new H}ngAfterViewInit(){this.initTimeout()}initTimeout(){this.message.sticky||this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>{this.onClose.emit({index:this.index,message:this.message})},this.message.life||3e3)})}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick(e){this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),e.preventDefault()}ngOnDestroy(){this.clearTimeout()}}return t.\u0275fac=function(e){return new(e||t)(D(nt))},t.\u0275cmp=z({type:t,selectors:[["p-toastItem"]],viewQuery:function(e,n){if(1&e&&W(W2,5),2&e){let s;V(s=B())&&(n.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{message:"message",index:"index",template:"template",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},decls:6,vars:21,consts:[[3,"ngClass","mouseenter","mouseleave"],["container",""],["role","alert","aria-live","assertive","aria-atomic","true",1,"p-toast-message-content",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","class","p-toast-icon-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[3,"ngClass"],[1,"p-toast-message-text"],[1,"p-toast-summary"],[1,"p-toast-detail"],["type","button","pRipple","",1,"p-toast-icon-close","p-link",3,"click","keydown.enter"],[1,"p-toast-icon-close-icon","pi","pi-times"]],template:function(e,n){1&e&&(l(0,"div",0,1),C("mouseenter",function(){return n.onMouseEnter()})("mouseleave",function(){return n.onMouseLeave()}),l(2,"div",2),_(3,EU,7,10,"ng-container",3),_(4,RU,1,0,"ng-container",4),_(5,LU,2,0,"button",5),c()()),2&e&&(me(n.message.styleClass),d("ngClass",U(10,OU,"p-toast-message-"+n.message.severity))("@messageState",U(17,PU,Ln(12,AU,n.showTransformOptions,n.hideTransformOptions,n.showTransitionOptions,n.hideTransitionOptions))),ie("id",n.message.id),a(2),d("ngClass",n.message.contentStyleClass),a(1),d("ngIf",!n.template),a(1),d("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(19,FU,n.message)),a(1),d("ngIf",!1!==n.message.closable))},directives:[Le,Q,Rt,vt],encapsulation:2,data:{animation:[wi("messageState",[ws("visible",it({transform:"translateY(0)",opacity:1})),Lt("void => *",[it({transform:"{{showTransformParams}}",opacity:0}),kt("{{showTransitionParams}}")]),Lt("* => void",[kt("{{hideTransitionParams}}",it({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0}),t})(),Sd=(()=>{class t{constructor(e,n,s){this.messageService=e,this.cd=n,this.config=s,this.autoZIndex=!0,this.baseZIndex=0,this.position="top-right",this.preventOpenDuplicates=!1,this.preventDuplicates=!1,this.showTransformOptions="translateY(100%)",this.hideTransformOptions="translateY(-100%)",this.showTransitionOptions="300ms ease-out",this.hideTransitionOptions="250ms ease-in",this.onClose=new H,this.id=hl()}ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e)if(e instanceof Array){const n=e.filter(s=>this.canAdd(s));this.add(n)}else this.canAdd(e)&&this.add([e])}),this.clearSubscription=this.messageService.clearObserver.subscribe(e=>{e?this.key===e&&(this.messages=null):this.messages=null,this.cd.markForCheck()})}ngAfterViewInit(){this.breakpoints&&this.createStyle()}add(e){this.messages=this.messages?[...this.messages,...e]:[...e],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...e]:[...e]),this.cd.markForCheck()}canAdd(e){let n=this.key===e.key;return n&&this.preventOpenDuplicates&&(n=!this.containsMessage(this.messages,e)),n&&this.preventDuplicates&&(n=!this.containsMessage(this.messagesArchieve,e)),n}containsMessage(e,n){return!!e&&null!=e.find(s=>s.summary===n.summary&&s.detail==n.detail&&s.severity===n.severity)}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.template=e.template})}onMessageClose(e){this.messages.splice(e.index,1),this.onClose.emit({message:e.message}),this.cd.detectChanges()}onAnimationStart(e){"void"===e.fromState&&(this.containerViewChild.nativeElement.setAttribute(this.id,""),this.autoZIndex&&dt.set("modal",this.containerViewChild.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&Z.isEmpty(this.messages)&&dt.clear(this.containerViewChild.nativeElement)}createStyle(){if(!this.styleElement){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e="";for(let n in this.breakpoints){let s="";for(let o in this.breakpoints[n])s+=o+":"+this.breakpoints[n][o]+" !important;";e+=`\n @media screen and (max-width: ${n}) {\n .p-toast[${this.id}] {\n ${s}\n }\n }\n `}this.styleElement.innerHTML=e}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&dt.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}}return t.\u0275fac=function(e){return new(e||t)(D(Gi),D(ot),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-toast"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let o;V(o=B())&&(n.templates=o)}},viewQuery:function(e,n){if(1&e&&W(W2,5),2&e){let s;V(s=B())&&(n.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{key:"key",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",style:"style",styleClass:"styleClass",position:"position",preventOpenDuplicates:"preventOpenDuplicates",preventDuplicates:"preventDuplicates",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},decls:3,vars:5,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"message","index","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"message","index","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose"]],template:function(e,n){1&e&&(l(0,"div",0,1),_(2,NU,1,8,"p-toastItem",2),c()),2&e&&(me(n.styleClass),d("ngClass","p-toast p-component p-toast-"+n.position)("ngStyle",n.style),a(2),d("ngForOf",n.messages))},directives:[VU,Le,lt,at],styles:[".p-toast{position:fixed;width:25rem}.p-toast-message{overflow:hidden}.p-toast-message-content{display:flex;align-items:flex-start}.p-toast-message-text{flex:1 1 auto}.p-toast-top-right{top:20px;right:20px}.p-toast-top-left{top:20px;left:20px}.p-toast-bottom-left{bottom:20px;left:20px}.p-toast-bottom-right{bottom:20px;right:20px}.p-toast-top-center{top:20px;left:50%;transform:translate(-50%)}.p-toast-bottom-center{bottom:20px;left:50%;transform:translate(-50%)}.p-toast-center{left:50%;top:50%;min-width:20vw;transform:translate(-50%,-50%)}.p-toast-icon-close{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-toast-icon-close.p-link{cursor:pointer}\n"],encapsulation:2,data:{animation:[wi("toastAnimation",[Lt(":enter, :leave",[$A("@*",jA())])])]},changeDetection:0}),t})(),BU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn],Vt]}),t})(),GU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const UU=["rb"],zU=function(t,i,e){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":t,"p-disabled":i,"p-radiobutton-label-focus":e}};function jU(t,i){if(1&t){const e=I();l(0,"label",4),C("click",function(s){return v(e),p().select(s)}),g(1),c()}if(2&t){const e=p(),n=F(3);me(e.labelStyleClass),d("ngClass",Jt(5,zU,n.checked,e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const $U=function(t,i,e){return{"p-radiobutton p-component":!0,"p-radiobutton-checked":t,"p-radiobutton-disabled":i,"p-radiobutton-focused":e}},WU=function(t,i,e){return{"p-radiobutton-box":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},KU={provide:dn,useExisting:je(()=>Al),multi:!0};let QU=(()=>{class t{constructor(){this.accessors=[]}add(e,n){this.accessors.push([e,n])}remove(e){this.accessors=this.accessors.filter(n=>n[1]!==e)}select(e){this.accessors.forEach(n=>{this.isSameGroup(n,e)&&n[1]!==e&&n[1].writeValue(e.value)})}isSameGroup(e,n){return!!e[0].control&&e[0].control.root===n.control.control.root&&e[1].name===n.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Al=(()=>{class t{constructor(e,n,s){this.cd=e,this.injector=n,this.registry=s,this.onClick=new H,this.onFocus=new H,this.onBlur=new H,this.onModelChange=()=>{},this.onModelTouched=()=>{}}ngOnInit(){this.control=this.injector.get(os),this.checkName(),this.registry.add(this.control,this)}handleClick(e,n,s){e.preventDefault(),!this.disabled&&(this.select(e),s&&n.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit(e))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}onChange(e){this.select(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}return t.\u0275fac=function(e){return new(e||t)(D(ot),D(En),D(QU))},t.\u0275cmp=z({type:t,selectors:[["p-radioButton"]],viewQuery:function(e,n){if(1&e&&W(UU,5),2&e){let s;V(s=B())&&(n.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[Pe([KU])],decls:7,vars:23,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","radio",3,"checked","disabled","change","focus","blur"],["rb",""],[3,"ngClass","click"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"]],template:function(e,n){if(1&e){const s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("change",function(r){return n.onChange(r)})("focus",function(r){return n.onInputFocus(r)})("blur",function(r){return n.onInputBlur(r)}),c()(),l(4,"div",4),C("click",function(r){v(s);const u=F(3);return n.handleClick(r,u,!0)}),M(5,"span",5),c()(),_(6,jU,2,9,"label",6)}2&e&&(me(n.styleClass),d("ngStyle",n.style)("ngClass",Jt(15,$U,n.checked,n.disabled,n.focused)),a(2),d("checked",n.checked)("disabled",n.disabled),ie("id",n.inputId)("name",n.name)("value",n.value)("tabindex",n.tabindex)("aria-checked",n.checked)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy),a(2),d("ngClass",Jt(19,WU,n.checked,n.disabled,n.focused)),a(2),d("ngIf",n.label))},directives:[lt,Le,Q],encapsulation:2,changeDetection:0}),t})(),JU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function YU(t,i){if(1&t&&(l(0,"div",5),g(1),c()),2&t){const e=p(2);_i("display",null!=e.value&&0!==e.value?"flex":"none"),a(1),We("",e.value,"",e.unit,"")}}function ZU(t,i){if(1&t&&(l(0,"div",3),_(1,YU,2,4,"div",4),c()),2&t){const e=p();_i("width",e.value+"%"),a(1),d("ngIf",e.showValue)}}function XU(t,i){1&t&&(l(0,"div",6),M(1,"div",7),c())}const ez=function(t,i){return{"p-progressbar p-component":!0,"p-progressbar-determinate":t,"p-progressbar-indeterminate":i}};let tz=(()=>{class t{constructor(){this.showValue=!0,this.unit="%",this.mode="determinate"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",style:"style",styleClass:"styleClass",unit:"unit",mode:"mode"},decls:3,vars:10,consts:[["role","progressbar","aria-valuemin","0","aria-valuemax","100",3,"ngStyle","ngClass"],["class","p-progressbar-value p-progressbar-value-animate","style","display:flex",3,"width",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(e,n){1&e&&(l(0,"div",0),_(1,ZU,2,3,"div",1),_(2,XU,2,0,"div",2),c()),2&e&&(me(n.styleClass),d("ngStyle",n.style)("ngClass",Ge(7,ez,"determinate"===n.mode,"indeterminate"===n.mode)),ie("aria-valuenow",n.value),a(1),d("ngIf","determinate"===n.mode),a(1),d("ngIf","indeterminate"===n.mode))},directives:[lt,Le,Q],styles:['.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none;display:flex;align-items:center;justify-content:center;overflow:hidden}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate .p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0}),t})(),nz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const iz=["container"],sz=["content"],oz=["xBar"],rz=["yBar"];function az(t,i){1&t&&Y(0)}const lz=["*"];let K2=(()=>{class t{constructor(e,n,s){this.el=e,this.zone=n,this.cd=s,this.timeoutFrame=o=>setTimeout(o,0)}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),window.addEventListener("resize",this.moveBar),this.contentViewChild.nativeElement.addEventListener("scroll",this.moveBar),this.contentViewChild.nativeElement.addEventListener("mouseenter",this.moveBar),this.xBarViewChild.nativeElement.addEventListener("mousedown",this.onXBarMouseDown),this.yBarViewChild.nativeElement.addEventListener("mousedown",this.onYBarMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}calculateContainerHeight(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,s=this.xBarViewChild.nativeElement,o=getComputedStyle(e),r=getComputedStyle(s),u=R.getHeight(e)-parseInt(r.height,10);"none"!=o["max-height"]&&0==u&&(e.style.height=n.offsetHeight+parseInt(r.height,10)>parseInt(o["max-height"],10)?o["max-height"]:n.offsetHeight+parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth)+"px")}moveBar(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,s=this.xBarViewChild.nativeElement,o=n.scrollWidth,r=n.clientWidth,u=-1*(e.clientHeight-s.clientHeight);this.scrollXRatio=r/o;let h=this.yBarViewChild.nativeElement,b=n.scrollHeight,y=n.clientHeight,w=-1*(e.clientWidth-h.clientWidth);this.scrollYRatio=y/b,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)R.addClass(s,"p-scrollpanel-hidden");else{R.removeClass(s,"p-scrollpanel-hidden");const k=Math.max(100*this.scrollXRatio,10);s.style.cssText="width:"+k+"%; left:"+n.scrollLeft*(100-k)/(o-r)+"%;bottom:"+u+"px;"}if(this.scrollYRatio>=1)R.addClass(h,"p-scrollpanel-hidden");else{R.removeClass(h,"p-scrollpanel-hidden");const k=Math.max(100*this.scrollYRatio,10);h.style.cssText="height:"+k+"%; top: calc("+n.scrollTop*(100-k)/(b-y)+"% - "+s.clientHeight+"px);right:"+w+"px;"}}),this.cd.markForCheck()}onYBarMouseDown(e){this.isYBarClicked=!0,this.lastPageY=e.pageY,R.addClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.addClass(document.body,"p-scrollpanel-grabbed"),document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.lastPageX=e.pageX,R.addClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.addClass(document.body,"p-scrollpanel-grabbed"),document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;this.contentViewChild.nativeElement.scrollTop=e=e>n?n:e>0?e:0}onDocumentMouseUp(e){R.removeClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.removeClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.removeClass(document.body,"p-scrollpanel-grabbed"),document.removeEventListener("mousemove",this.onDocumentMouseMove),document.removeEventListener("mouseup",this.onDocumentMouseUp),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}ngOnDestroy(){this.initialized&&(window.removeEventListener("resize",this.moveBar),this.contentViewChild.nativeElement.removeEventListener("scroll",this.moveBar),this.contentViewChild.nativeElement.removeEventListener("mouseenter",this.moveBar),this.xBarViewChild.nativeElement.removeEventListener("mousedown",this.onXBarMouseDown),this.yBarViewChild.nativeElement.removeEventListener("mousedown",this.onYBarMouseDown))}refresh(){this.moveBar()}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(nt),D(ot))},t.\u0275cmp=z({type:t,selectors:[["p-scrollPanel"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let o;V(o=B())&&(n.templates=o)}},viewQuery:function(e,n){if(1&e&&(W(iz,5),W(sz,5),W(oz,5),W(rz,5)),2&e){let s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.contentViewChild=s.first),V(s=B())&&(n.xBarViewChild=s.first),V(s=B())&&(n.yBarViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass"},ngContentSelectors:lz,decls:11,vars:5,consts:[[3,"ngClass","ngStyle"],["container",""],[1,"p-scrollpanel-wrapper"],[1,"p-scrollpanel-content"],["content",""],[4,"ngTemplateOutlet"],[1,"p-scrollpanel-bar","p-scrollpanel-bar-x"],["xBar",""],[1,"p-scrollpanel-bar","p-scrollpanel-bar-y"],["yBar",""]],template:function(e,n){1&e&&(Sn(),l(0,"div",0,1)(2,"div",2)(3,"div",3,4),xt(5),_(6,az,1,0,"ng-container",5),c()(),M(7,"div",6,7)(9,"div",8,9),c()),2&e&&(me(n.styleClass),d("ngClass","p-scrollpanel p-component")("ngStyle",n.style),a(6),d("ngTemplateOutlet",n.contentTemplate))},directives:[Le,lt,Rt],styles:[".p-scrollpanel-wrapper{overflow:hidden;width:100%;height:100%;position:relative;z-index:1;float:left}.p-scrollpanel-content{height:calc(100% + 18px);width:calc(100% + 18px);padding:0 18px 18px 0;position:relative;overflow:auto;box-sizing:border-box}.p-scrollpanel-bar{position:relative;background:#c1c1c1;border-radius:3px;z-index:2;cursor:pointer;opacity:0;transition:opacity .25s linear}.p-scrollpanel-bar-y{width:9px;top:0}.p-scrollpanel-bar-x{height:9px;bottom:0}.p-scrollpanel-hidden{visibility:hidden}.p-scrollpanel:hover .p-scrollpanel-bar,.p-scrollpanel:active .p-scrollpanel-bar{opacity:1}.p-scrollpanel-grabbed{-webkit-user-select:none;user-select:none}\n"],encapsulation:2,changeDetection:0}),t})(),cz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const uz=["content"],dz=["navbar"],pz=["inkbar"],hz=["prevBtn"],mz=["nextBtn"];function fz(t,i){if(1&t){const e=I();l(0,"button",11,12),C("click",function(){return v(e),p().navBackward()}),M(2,"span",13),c()}}function gz(t,i){if(1&t&&M(0,"span",23),2&t){const e=p(3).$implicit;d("ngClass",e.icon)("ngStyle",e.iconStyle)}}function _z(t,i){if(1&t&&(l(0,"span",24),g(1),c()),2&t){const e=p(3).$implicit;a(1),S(e.label)}}function bz(t,i){1&t&&M(0,"span",25),2&t&&d("innerHTML",p(3).$implicit.label,Ft)}function vz(t,i){if(1&t&&(de(0),_(1,gz,1,2,"span",20),_(2,_z,2,1,"span",21),_(3,bz,1,1,"ng-template",null,22,Se),pe()),2&t){const e=F(4),n=p(2).$implicit;a(1),d("ngIf",n.icon),a(1),d("ngIf",!1!==n.escape)("ngIfElse",e)}}function Cz(t,i){1&t&&Y(0)}const Q2=function(t,i){return{$implicit:t,index:i}};function yz(t,i){if(1&t){const e=I();l(0,"a",17),C("click",function(s){v(e);const o=p().$implicit;return p().itemClick(s,o)})("keydown.enter",function(s){v(e);const o=p().$implicit;return p().itemClick(s,o)}),_(1,vz,5,3,"ng-container",18),_(2,Cz,1,0,"ng-container",19),c()}if(2&t){const e=p(),n=e.$implicit,s=e.index,o=p();d("target",n.target),ie("href",n.url,Wt)("tabindex",n.disabled?null:"0")("title",n.title)("id",n.id),a(1),d("ngIf",!o.itemTemplate),a(1),d("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",Ge(8,Q2,n,s))}}function wz(t,i){if(1&t&&M(0,"span",23),2&t){const e=p(3).$implicit;d("ngClass",e.icon)("ngStyle",e.iconStyle)}}function Tz(t,i){if(1&t&&(l(0,"span",24),g(1),c()),2&t){const e=p(3).$implicit;a(1),S(e.label)}}function Sz(t,i){1&t&&M(0,"span",25),2&t&&d("innerHTML",p(3).$implicit.label,Ft)}function xz(t,i){if(1&t&&(de(0),_(1,wz,1,2,"span",20),_(2,Tz,2,1,"span",21),_(3,Sz,1,1,"ng-template",null,27,Se),pe()),2&t){const e=F(4),n=p(2).$implicit;a(1),d("ngIf",n.icon),a(1),d("ngIf",!1!==n.escape)("ngIfElse",e)}}function Dz(t,i){1&t&&Y(0)}const Mz=function(){return{exact:!1}};function kz(t,i){if(1&t){const e=I();l(0,"a",26),C("click",function(s){v(e);const o=p().$implicit;return p().itemClick(s,o)})("keydown.enter",function(s){v(e);const o=p().$implicit;return p().itemClick(s,o)}),_(1,xz,5,3,"ng-container",18),_(2,Dz,1,0,"ng-container",19),c()}if(2&t){const e=p(),n=e.$implicit,s=e.index,o=p();d("routerLink",n.routerLink)("queryParams",n.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.routerLinkActiveOptions||A(17,Mz))("target",n.target)("fragment",n.fragment)("queryParamsHandling",n.queryParamsHandling)("preserveFragment",n.preserveFragment)("skipLocationChange",n.skipLocationChange)("replaceUrl",n.replaceUrl)("state",n.state),ie("tabindex",n.disabled?null:"0")("title",n.title)("id",n.id),a(1),d("ngIf",!o.itemTemplate),a(1),d("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",Ge(18,Q2,n,s))}}const Iz=function(t,i,e){return{"p-tabmenuitem":!0,"p-disabled":t,"p-highlight":i,"p-hidden":e}};function Ez(t,i){if(1&t&&(l(0,"li",14),_(1,yz,3,11,"a",15),_(2,kz,3,21,"a",16),c()),2&t){const e=i.$implicit,n=p();me(e.styleClass),d("ngStyle",e.style)("ngClass",Jt(9,Iz,e.disabled,n.isActive(e),!1===e.visible))("tooltipOptions",e.tooltipOptions),ie("aria-selected",n.isActive(e))("aria-expanded",n.isActive(e)),a(1),d("ngIf",!e.routerLink),a(1),d("ngIf",e.routerLink)}}function Rz(t,i){if(1&t){const e=I();l(0,"button",28,29),C("click",function(){return v(e),p().navForward()}),M(2,"span",30),c()}}const Lz=function(t){return{"p-tabmenu p-component":!0,"p-tabmenu-scrollable":t}};let J2=(()=>{class t{constructor(e,n,s){this.router=e,this.route=n,this.cd=s,this.backwardIsDisabled=!0,this.forwardIsDisabled=!1}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.itemTemplate=e.template})}ngAfterViewInit(){this.updateInkBar()}ngAfterViewChecked(){this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}isActive(e){if(e.routerLink){let n=Array.isArray(e.routerLink)?e.routerLink:[e.routerLink];return this.router.isActive(this.router.createUrlTree(n,{relativeTo:this.route}).toString(),!1)}return e===this.activeItem}itemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),this.activeItem=n,this.tabChanged=!0)}updateInkBar(){let e=R.findSingle(this.navbar.nativeElement,"li.p-highlight");e&&(this.inkbar.nativeElement.style.width=R.getWidth(e)+"px",this.inkbar.nativeElement.style.left=R.getOffset(e).left-R.getOffset(this.navbar.nativeElement).left+"px")}getVisibleButtonWidths(){var e,n;return[null===(e=this.prevBtn)||void 0===e?void 0:e.nativeElement,null===(n=this.nextBtn)||void 0===n?void 0:n.nativeElement].reduce((s,o)=>o?s+R.getWidth(o):s,0)}updateButtonState(){const e=this.content.nativeElement,{scrollLeft:n,scrollWidth:s}=e,o=R.getWidth(e);this.backwardIsDisabled=0===n,this.forwardIsDisabled=parseInt(n)===s-o}updateScrollBar(e){this.navbar.nativeElement.children[e].scrollIntoView({block:"nearest"})}onScroll(e){this.scrollable&&this.updateButtonState(),e.preventDefault()}navBackward(){const e=this.content.nativeElement,n=R.getWidth(e)-this.getVisibleButtonWidths(),s=e.scrollLeft-n;e.scrollLeft=s<=0?0:s}navForward(){const e=this.content.nativeElement,n=R.getWidth(e)-this.getVisibleButtonWidths(),s=e.scrollLeft+n,o=e.scrollWidth-n;e.scrollLeft=s>=o?o:s}}return t.\u0275fac=function(e){return new(e||t)(D(It),D(Ro),D(ot))},t.\u0275cmp=z({type:t,selectors:[["p-tabMenu"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let o;V(o=B())&&(n.templates=o)}},viewQuery:function(e,n){if(1&e&&(W(uz,5),W(dz,5),W(pz,5),W(hz,5),W(mz,5)),2&e){let s;V(s=B())&&(n.content=s.first),V(s=B())&&(n.navbar=s.first),V(s=B())&&(n.inkbar=s.first),V(s=B())&&(n.prevBtn=s.first),V(s=B())&&(n.nextBtn=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",activeItem:"activeItem",scrollable:"scrollable",popup:"popup",style:"style",styleClass:"styleClass"},decls:11,vars:9,consts:[[3,"ngClass","ngStyle"],[1,"p-tabmenu-nav-container"],["class","p-tabmenu-nav-prev p-tabmenu-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabmenu-nav-content",3,"scroll"],["content",""],["role","tablist",1,"p-tabmenu-nav","p-reset"],["navbar",""],["role","tab","pTooltip","",3,"ngStyle","class","ngClass","tooltipOptions",4,"ngFor","ngForOf"],[1,"p-tabmenu-ink-bar"],["inkbar",""],["class","p-tabmenu-nav-next p-tabmenu-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],["type","button","pRipple","",1,"p-tabmenu-nav-prev","p-tabmenu-nav-btn","p-link",3,"click"],["prevBtn",""],[1,"pi","pi-chevron-left"],["role","tab","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],["class","p-menuitem-link","role","presentation","pRipple","",3,"target","click","keydown.enter",4,"ngIf"],["role","presentation","class","p-menuitem-link","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter",4,"ngIf"],["role","presentation","pRipple","",1,"p-menuitem-link",3,"target","click","keydown.enter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],["role","presentation","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter"],["htmlRouteLabel",""],["type","button","pRipple","",1,"p-tabmenu-nav-next","p-tabmenu-nav-btn","p-link",3,"click"],["nextBtn",""],[1,"pi","pi-chevron-right"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1),_(2,fz,3,0,"button",2),l(3,"div",3,4),C("scroll",function(o){return n.onScroll(o)}),l(5,"ul",5,6),_(7,Ez,3,13,"li",7),M(8,"li",8,9),c()(),_(10,Rz,3,0,"button",10),c()()),2&e&&(me(n.styleClass),d("ngClass",U(7,Lz,n.scrollable))("ngStyle",n.style),a(2),d("ngIf",n.scrollable&&!n.backwardIsDisabled),a(5),d("ngForOf",n.model),a(3),d("ngIf",n.scrollable&&!n.forwardIsDisabled))},directives:[Le,lt,Q,vt,at,Qt,Rt,Hr,Cd],styles:[".p-tabmenu-nav-container{position:relative}.p-tabmenu-scrollable .p-tabmenu-nav-container{overflow:hidden}.p-tabmenu-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior:contain auto}.p-tabmenu-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabmenu-nav-prev{left:0}.p-tabmenu-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabmenu-nav{display:flex;margin:0;padding:0;list-style-type:none;flex-wrap:nowrap}.p-tabmenu-nav a{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabmenu-nav a:focus{z-index:1}.p-tabmenu-nav .p-menuitem-text{line-height:1;white-space:nowrap}.p-tabmenu-ink-bar{display:none;z-index:1}.p-tabmenu-nav-content::-webkit-scrollbar{display:none}\n"],encapsulation:2,changeDetection:0}),t})(),Oz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,Vt,pn,jn],vn,Vt,jn]}),t})();function Az(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const e=p();a(1),S(e.label)}}function Pz(t,i){1&t&&Y(0)}const Y2=function(t){return{height:t}},Fz=function(t,i){return{"p-highlight":t,"p-disabled":i}},Nz=function(t){return{"p-highlight":t}},Z2=function(t){return{"pi pi-check":t}},Pl=function(t){return{$implicit:t}},Vz=["container"],Bz=["filterInput"],Hz=["in"];function qz(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=p(2);a(1),S(e.valuesAsString||"empty")}}function Gz(t,i){if(1&t){const e=I();l(0,"span",18),C("click",function(s){v(e);const o=p().$implicit;return p(3).removeChip(o,s)}),c()}}function Uz(t,i){if(1&t&&(l(0,"div",14,15)(2,"span",16),g(3),c(),_(4,Gz,1,0,"span",17),c()),2&t){const e=i.$implicit,n=p(3);a(3),S(n.findLabelByValue(e)),a(1),d("ngIf",!n.disabled)}}function zz(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=p(3);a(1),S(e.placeholder||e.defaultLabel||"empty")}}function jz(t,i){if(1&t&&(de(0),_(1,Uz,5,2,"div",13),_(2,zz,2,1,"ng-container",7),pe()),2&t){const e=p(2);a(1),d("ngForOf",e.value),a(1),d("ngIf",!e.value||0===e.value.length)}}function $z(t,i){if(1&t&&(de(0),_(1,qz,2,1,"ng-container",7),_(2,jz,3,2,"ng-container",7),pe()),2&t){const e=p();a(1),d("ngIf","comma"===e.display),a(1),d("ngIf","chip"===e.display)}}function Wz(t,i){1&t&&Y(0)}function Kz(t,i){if(1&t){const e=I();l(0,"i",19),C("click",function(s){return v(e),p().clear(s)}),c()}}function Qz(t,i){1&t&&Y(0)}const Jz=function(t){return{"p-checkbox-disabled":t}},Yz=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function Zz(t,i){if(1&t){const e=I();l(0,"div",32)(1,"div",2)(2,"input",33),C("focus",function(){return v(e),p(3).onHeaderCheckboxFocus()})("blur",function(){return v(e),p(3).onHeaderCheckboxBlur()})("keydown.space",function(s){return v(e),p(3).toggleAll(s)}),c()(),l(3,"div",34),C("click",function(s){return v(e),p(3).toggleAll(s)}),M(4,"span",35),c()()}if(2&t){const e=p(3);d("ngClass",U(6,Jz,e.disabled||e.toggleAllDisabled)),a(2),d("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),a(1),d("ngClass",Jt(8,Yz,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),ie("aria-checked",e.allChecked),a(1),d("ngClass",U(12,Z2,e.allChecked))}}function Xz(t,i){if(1&t){const e=I();l(0,"div",36)(1,"input",37,38),C("input",function(s){return v(e),p(3).onFilterInputChange(s)}),c(),M(3,"span",39),c()}if(2&t){const e=p(3);a(1),d("value",e.filterValue||"")("disabled",e.disabled),ie("autocomplete",e.autocomplete)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function ej(t,i){if(1&t){const e=I();l(0,"div",26),xt(1),_(2,Qz,1,0,"ng-container",27),_(3,Zz,5,14,"div",28),_(4,Xz,4,5,"div",29),l(5,"button",30),C("click",function(s){return v(e),p(2).close(s)}),M(6,"span",31),c()()}if(2&t){const e=p(2);a(2),d("ngTemplateOutlet",e.headerTemplate),a(1),d("ngIf",e.showToggleAll&&!e.selectionLimit),a(1),d("ngIf",e.filter)}}function tj(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const e=p().$implicit,n=p(3);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function nj(t,i){1&t&&Y(0)}function ij(t,i){1&t&&Y(0)}function sj(t,i){if(1&t&&(l(0,"li",41),_(1,tj,2,1,"span",7),_(2,nj,1,0,"ng-container",8),c(),_(3,ij,1,0,"ng-container",8)),2&t){const e=i.$implicit;p(2);const n=F(7),s=p();a(1),d("ngIf",!s.groupTemplate),a(1),d("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(5,Pl,e)),a(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",U(7,Pl,s.getOptionGroupChildren(e)))}}function oj(t,i){if(1&t&&(de(0),_(1,sj,4,9,"ng-template",40),pe()),2&t){const e=p(2);a(1),d("ngForOf",e.optionsToRender)}}function rj(t,i){1&t&&Y(0)}function aj(t,i){if(1&t&&(de(0),_(1,rj,1,0,"ng-container",8),pe()),2&t){p();const e=F(7),n=p();a(1),d("ngTemplateOutlet",e)("ngTemplateOutletContext",U(2,Pl,n.optionsToRender))}}function lj(t,i){if(1&t){const e=I();l(0,"p-multiSelectItem",45),C("onClick",function(s){return v(e),p(4).onOptionClick(s)})("onKeydown",function(s){return v(e),p(4).onOptionKeydown(s)}),c()}if(2&t){const e=i.$implicit,n=p(4);d("option",e)("selected",n.isSelected(e))("label",n.getOptionLabel(e))("disabled",n.isOptionDisabled(e))("template",n.itemTemplate)}}function cj(t,i){if(1&t&&(de(0),_(1,lj,1,5,"ng-template",40),pe()),2&t){const e=p().$implicit;a(1),d("ngForOf",e)}}function uj(t,i){if(1&t){const e=I();de(0),l(1,"p-multiSelectItem",50),C("onClick",function(s){return v(e),p(5).onOptionClick(s)})("onKeydown",function(s){return v(e),p(5).onOptionKeydown(s)}),c(),pe()}if(2&t){const e=i.$implicit,n=p(5);a(1),d("option",e)("selected",n.isSelected(e))("label",n.getOptionLabel(e))("disabled",n.isOptionDisabled(e))("template",n.itemTemplate)("itemSize",n.itemSize)}}function dj(t,i){if(1&t&&(l(0,"cdk-virtual-scroll-viewport",47,48),_(2,uj,2,6,"ng-container",49),c()),2&t){const e=p(2).$implicit,n=p(2);d("ngStyle",U(3,Y2,n.scrollHeight))("itemSize",n.itemSize),a(2),d("cdkVirtualForOf",e)}}function pj(t,i){if(1&t&&_(0,dj,3,5,"cdk-virtual-scroll-viewport",46),2&t){const e=p(3);d("ngIf",e.virtualScroll&&!e.emptyOptions)}}function hj(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=p(4);a(1),T(" ",e.emptyFilterMessageLabel," ")}}function mj(t,i){1&t&&Y(0,null,52)}function fj(t,i){if(1&t&&(l(0,"li",51),_(1,hj,2,1,"ng-container",42),_(2,mj,2,0,"ng-container",27),c()),2&t){const e=p(3);a(1),d("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),d("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function gj(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=p(4);a(1),T(" ",e.emptyMessageLabel," ")}}function _j(t,i){1&t&&Y(0,null,53)}function bj(t,i){if(1&t&&(l(0,"li",51),_(1,gj,2,1,"ng-container",42),_(2,_j,2,0,"ng-container",27),c()),2&t){const e=p(3);a(1),d("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),d("ngTemplateOutlet",e.emptyTemplate)}}function vj(t,i){if(1&t&&(_(0,cj,2,1,"ng-container",42),_(1,pj,1,1,"ng-template",null,43,Se),_(3,fj,3,3,"li",44),_(4,bj,3,3,"li",44)),2&t){const e=F(2),n=p(2);d("ngIf",!n.virtualScroll)("ngIfElse",e),a(3),d("ngIf",n.hasFilter()&&n.emptyOptions),a(1),d("ngIf",!n.hasFilter()&&n.emptyOptions)}}function Cj(t,i){1&t&&Y(0)}function yj(t,i){if(1&t&&(l(0,"div",54),xt(1,1),_(2,Cj,1,0,"ng-container",27),c()),2&t){const e=p(2);a(2),d("ngTemplateOutlet",e.footerTemplate)}}const wj=function(){return["p-multiselect-panel p-component"]},Tj=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},Sj=function(t){return{value:"visible",params:t}},xj=function(t){return{"p-multiselect-virtualscroll":t}};function Dj(t,i){if(1&t){const e=I();l(0,"div",20),C("@overlayAnimation.start",function(s){return v(e),p().onOverlayAnimationStart(s)})("@overlayAnimation.done",function(s){return v(e),p().onOverlayAnimationEnd(s)})("keydown",function(s){return v(e),p().onKeydown(s)})("click",function(s){return v(e),p().onOverlayClick(s)}),_(1,ej,7,3,"div",21),l(2,"div",22)(3,"ul",23),_(4,oj,2,1,"ng-container",7),_(5,aj,2,4,"ng-container",7),_(6,vj,5,4,"ng-template",null,24,Se),c()(),_(8,yj,3,1,"div",25),c()}if(2&t){const e=p();me(e.panelStyleClass),d("ngClass",A(12,wj))("@overlayAnimation",U(16,Sj,Ge(13,Tj,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),a(1),d("ngIf",e.showHeader),a(1),_i("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a(1),d("ngClass",U(18,xj,e.virtualScroll)),a(1),d("ngIf",e.group),a(1),d("ngIf",!e.group),a(3),d("ngIf",e.footerFacet||e.footerTemplate)}}const Mj=[[["p-header"]],[["p-footer"]]],kj=function(t,i,e,n){return{"p-multiselect p-component":!0,"p-multiselect-open":t,"p-multiselect-chip":i,"p-focus":e,"p-disabled":n}},Ij=function(t,i){return{"p-placeholder":t,"p-multiselect-label-empty":i}},Ej=function(){return{"p-multiselect-trigger":!0}},Rj=["p-header","p-footer"],Lj={provide:dn,useExisting:je(()=>X2),multi:!0};let Oj=(()=>{class t{constructor(){this.onClick=new H,this.onKeydown=new H}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}onOptionKeydown(e){this.onKeydown.emit({originalEvent:e,option:this.option})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick",onKeydown:"onKeydown"},decls:6,vars:20,consts:[["pRipple","",1,"p-multiselect-item",3,"ngStyle","ngClass","click","keydown"],[1,"p-checkbox","p-component"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-checkbox-icon",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){1&e&&(l(0,"li",0),C("click",function(o){return n.onOptionClick(o)})("keydown",function(o){return n.onOptionKeydown(o)}),l(1,"div",1)(2,"div",2),M(3,"span",3),c()(),_(4,Az,2,1,"span",4),_(5,Pz,1,0,"ng-container",5),c()),2&e&&(d("ngStyle",U(9,Y2,n.itemSize+"px"))("ngClass",Ge(11,Fz,n.selected,n.disabled)),ie("aria-label",n.label)("tabindex",n.disabled?null:"0"),a(2),d("ngClass",U(14,Nz,n.selected)),a(1),d("ngClass",U(16,Z2,n.selected)),a(1),d("ngIf",!n.template),a(1),d("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(18,Pl,n.option)))},directives:[vt,lt,Le,Q,Rt],encapsulation:2}),t})(),X2=(()=>{class t{constructor(e,n,s,o,r,u){this.el=e,this.renderer=n,this.cd=s,this.filterService=o,this.config=r,this.overlayService=u,this.filter=!0,this.displaySelectedLabel=!0,this.maxSelectedLabels=3,this.selectedItemsLabel="ellipsis",this.showToggleAll=!0,this.emptyFilterMessage="",this.emptyMessage="",this.resetFilterOnHide=!1,this.dropdownIcon="pi pi-chevron-down",this.optionGroupChildren="items",this.showHeader=!0,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.filterMatchMode="contains",this.tooltip="",this.tooltipPosition="right",this.tooltipPositionStyle="absolute",this.autofocusFilter=!0,this.display="comma",this.autocomplete="on",this.showClear=!1,this.onChange=new H,this.onFilter=new H,this.onFocus=new H,this.onBlur=new H,this.onClick=new H,this.onClear=new H,this.onPanelShow=new H,this.onPanelHide=new H,this.scrollHeight="200px",this.onModelChange=()=>{},this.onModelTouched=()=>{}}set defaultLabel(e){this._defaultLabel=e,this.updateLabel()}get defaultLabel(){return this._defaultLabel}set placeholder(e){this._placeholder=e,this.updateLabel()}get placeholder(){return this._placeholder}get options(){return this._options}set options(e){this._options=e,this.updateLabel()}get filterValue(){return this._filterValue}set filterValue(e){this._filterValue=e,this.activateFilter()}ngOnInit(){this.updateLabel()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItems":this.selectedItemsTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.alignOverlay(),this.filtered=!1)}getOptionLabel(e){return this.optionLabel?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}getOptionGroupLabel(e){return this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?Z.resolveFieldData(e,this.optionGroupChildren):e.items}isOptionDisabled(e){return(this.optionDisabled?Z.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled)||this.maxSelectionLimitReached&&!this.isSelected(e)}writeValue(e){this.value=e,this.updateLabel(),this.updateFilledState(),this.checkSelectionLimit(),this.cd.markForCheck()}checkSelectionLimit(){this.maxSelectionLimitReached=!(!this.selectionLimit||!this.value||this.value.length!==this.selectionLimit)}updateFilledState(){this.filled=this.value&&this.value.length>0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionClick(e){let n=e.option;if(this.isOptionDisabled(n))return;let s=this.getOptionValue(n),o=this.findSelectionIndex(s);-1!=o?(this.value=this.value.filter((r,u)=>u!=o),this.selectionLimit&&(this.maxSelectionLimitReached=!1)):((!this.selectionLimit||!this.value||this.value.length{if(this.group){let o=this.getOptionGroupChildren(s);o&&o.forEach(r=>{let u=this.isOptionDisabled(r);(!u||u&&this.isSelected(r))&&n.push(this.getOptionValue(r))})}else{let o=this.isOptionDisabled(s);(!o||o&&this.isSelected(s))&&n.push(this.getOptionValue(s))}}),this.value=n}uncheckAll(){let n=[];this.optionsToRender.forEach(s=>{this.group?s.items&&s.items.forEach(o=>{this.isOptionDisabled(o)&&this.isSelected(o)&&n.push(this.getOptionValue(o))}):this.isOptionDisabled(s)&&this.isSelected(s)&&n.push(this.getOptionValue(s))}),this.value=n}show(){this.overlayVisible||(this.overlayVisible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck())}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&dt.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit();break;case"void":this.onOverlayHide()}}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=R.getWidth(this.containerViewChild.nativeElement)+"px"))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.overlay&&(this.appendTo?R.absolutePosition(this.overlay,this.containerViewChild.nativeElement):R.relativePosition(this.overlay,this.containerViewChild.nativeElement))}hide(){this.overlayVisible=!1,this.unbindDocumentClickListener(),this.resetFilterOnHide&&(this.filterInputChild.nativeElement.value="",this._filterValue=null,this._filteredOptions=null),this.onPanelHide.emit(),this.cd.markForCheck()}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.updateLabel(),this.updateFilledState(),this.onClear.emit(),this.onModelChange(this.value),e.stopPropagation()}onMouseclick(e,n){this.disabled||this.readonly||e.target.isSameNode(this.accessibleViewChild.nativeElement)||(this.onClick.emit(e),!this.isOverlayClick(e)&&!R.hasClass(e.target,"p-multiselect-token-icon")&&(this.overlayVisible?this.hide():(n.focus(),this.show())))}removeChip(e,n){this.value=this.value.filter(s=>!Z.equals(s,e,this.dataKey)),this.onModelChange(this.value),this.checkSelectionLimit(),this.onChange.emit({originalEvent:n,value:this.value,itemValue:e}),this.updateLabel(),this.updateFilledState()}isOverlayClick(e){let n=e.target;return!!this.overlay&&(this.overlay.isSameNode(n)||this.overlay.contains(n))}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.el.nativeElement.contains(e.target)||this.isOverlayClick(e))}onInputFocus(e){this.focus=!0,this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focus=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onOptionKeydown(e){if(!this.readonly)switch(e.originalEvent.which){case 40:var n=this.findNextItem(e.originalEvent.target.parentElement);n&&n.focus(),e.originalEvent.preventDefault();break;case 38:var s=this.findPrevItem(e.originalEvent.target.parentElement);s&&s.focus(),e.originalEvent.preventDefault();break;case 13:this.onOptionClick(e),e.originalEvent.preventDefault();break;case 9:this.hide()}}findNextItem(e){let n=e.nextElementSibling;return n?R.hasClass(n.children[0],"p-disabled")||R.isHidden(n.children[0])||R.hasClass(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let n=e.previousElementSibling;return n?R.hasClass(n.children[0],"p-disabled")||R.isHidden(n.children[0])||R.hasClass(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}onKeydown(e){switch(e.which){case 40:!this.overlayVisible&&e.altKey&&(this.show(),e.preventDefault());break;case 32:this.overlayVisible||(this.show(),e.preventDefault());break;case 27:this.hide()}}updateLabel(){if(this.value&&this.options&&this.value.length&&this.displaySelectedLabel){let e="";for(let n=0;n0&&(e+=", "),e+=s)}if(this.value.length<=this.maxSelectedLabels||"ellipsis"===this.selectedItemsLabel)this.valuesAsString=e;else{let n=/{(.*?)}/;this.valuesAsString=n.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(n)[0],this.value.length+""):this.selectedItemsLabel}}else this.valuesAsString=this.placeholder||this.defaultLabel}findLabelByValue(e){if(this.group){let n=null;for(let s=0;s0}onFilterInputChange(e){this._filterValue=e.target.value,this.activateFilter(),this.onFilter.emit({originalEvent:e,filter:this._filterValue}),this.cd.detectChanges(),this.alignOverlay()}activateFilter(){if(this.hasFilter()&&this._options){let e=(this.filterBy||this.optionLabel||"label").split(",");if(this.group){let n=[];for(let s of this.options){let o=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);o&&o.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:o}))}this._filteredOptions=n}else this._filteredOptions=this.filterService.filter(this.options,e,this._filterValue,this.filterMatchMode,this.filterLocale)}else this._filteredOptions=null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",n=>{!this.preventDocumentDefault&&this.isOutsideClicked(n)&&this.hide(),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){R.isAndroid()||this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Qs(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null,this.onModelTouched()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&dt.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(gn),D(ot),D(ml),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-multiSelect"]],contentQueries:function(e,n,s){if(1&e&&(st(s,gl,5),st(s,Or,5),st(s,ne,4)),2&e){let o;V(o=B())&&(n.footerFacet=o.first),V(o=B())&&(n.headerFacet=o.first),V(o=B())&&(n.templates=o)}},viewQuery:function(e,n){if(1&e&&(W(Vz,5),W(Bz,5),W(Hz,5)),2&e){let s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.filterInputChild=s.first),V(s=B())&&(n.accessibleViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focus||n.overlayVisible)("p-multiselect-clearable",n.showClear&&!n.disabled)},inputs:{style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:"disabled",readonly:"readonly",group:"group",filter:"filter",filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:"overlayVisible",tabindex:"tabindex",appendTo:"appendTo",dataKey:"dataKey",name:"name",label:"label",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:"selectionLimit",selectedItemsLabel:"selectedItemsLabel",showToggleAll:"showToggleAll",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:"showHeader",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",filterBy:"filterBy",virtualScroll:"virtualScroll",itemSize:"itemSize",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",display:"display",autocomplete:"autocomplete",showClear:"showClear",scrollHeight:"scrollHeight",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide"},features:[Pe([Lj])],ngContentSelectors:Rj,decls:13,vars:34,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","readonly","aria-haspopup","listbox","role","listbox",3,"disabled","focus","blur","keydown"],["in",""],[1,"p-multiselect-label-container",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[1,"p-multiselect-label",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-multiselect-clear-icon pi pi-times",3,"click",4,"ngIf"],[3,"ngClass"],[1,"p-multiselect-trigger-icon",3,"ngClass"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","class","keydown","click",4,"ngIf"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],["token",""],[1,"p-multiselect-token-label"],["class","p-multiselect-token-icon pi pi-times-circle",3,"click",4,"ngIf"],[1,"p-multiselect-token-icon","pi","pi-times-circle",3,"click"],[1,"p-multiselect-clear-icon","pi","pi-times",3,"click"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","keydown","click"],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass"],["itemslist",""],["class","p-multiselect-footer",4,"ngIf"],[1,"p-multiselect-header"],[4,"ngTemplateOutlet"],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link",3,"click"],[1,"p-multiselect-close-icon","pi","pi-times"],[1,"p-checkbox","p-component",3,"ngClass"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[1,"p-multiselect-filter-container"],["type","text","role","textbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"value","disabled","input"],["filterInput",""],[1,"p-multiselect-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-multiselect-item-group"],[4,"ngIf","ngIfElse"],["virtualScrollList",""],["class","p-multiselect-empty-message",4,"ngIf"],[3,"option","selected","label","disabled","template","onClick","onKeydown"],[3,"ngStyle","itemSize",4,"ngIf"],[3,"ngStyle","itemSize"],["viewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[3,"option","selected","label","disabled","template","itemSize","onClick","onKeydown"],[1,"p-multiselect-empty-message"],["emptyFilter",""],["empty",""],[1,"p-multiselect-footer"]],template:function(e,n){if(1&e){const s=I();Sn(Mj),l(0,"div",0,1),C("click",function(r){v(s);const u=F(4);return n.onMouseclick(r,u)}),l(2,"div",2)(3,"input",3,4),C("focus",function(r){return n.onInputFocus(r)})("blur",function(r){return n.onInputBlur(r)})("keydown",function(r){return n.onKeydown(r)}),c()(),l(5,"div",5)(6,"div",6),_(7,$z,3,2,"ng-container",7),_(8,Wz,1,0,"ng-container",8),c(),_(9,Kz,1,0,"i",9),c(),l(10,"div",10),M(11,"span",11),c(),_(12,Dj,9,20,"div",12),c()}2&e&&(me(n.styleClass),d("ngClass",Ln(23,kj,n.overlayVisible,"chip"===n.display,n.focus,n.disabled))("ngStyle",n.style),a(3),d("disabled",n.disabled),ie("label",n.label)("id",n.inputId)("name",n.name)("tabindex",n.tabindex)("aria-expanded",n.overlayVisible)("aria-labelledby",n.ariaLabelledBy),a(2),d("pTooltip",n.tooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass),a(1),d("ngClass",Ge(28,Ij,n.valuesAsString===(n.defaultLabel||n.placeholder),!(null!=n.valuesAsString&&0!==n.valuesAsString.length||null!=n.placeholder&&0!==n.placeholder.length))),a(1),d("ngIf",!n.selectedItemsTemplate),a(1),d("ngTemplateOutlet",n.selectedItemsTemplate)("ngTemplateOutletContext",U(31,Pl,n.value)),a(1),d("ngIf",null!=n.value&&n.filled&&!n.disabled&&n.showClear),a(1),d("ngClass",A(33,Ej)),a(1),d("ngClass",n.dropdownIcon),a(1),d("ngIf",n.overlayVisible))},directives:[Oj,Pr,Le,lt,Qt,Q,at,Rt,vt,Qf,Jf],styles:[".p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1 1 auto;cursor:pointer}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect .p-multiselect-panel{min-width:100%}.p-multiselect-panel{position:absolute;top:0;left:0}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1 1 auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container .p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid .p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),Aj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Vt,Fr,jn,pn],Vt,Fr]}),t})(),e$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,jn],vn,jn]}),t})(),tS=(()=>{class t{constructor(e,n,s,o){this.el=e,this.ngModel=n,this.control=s,this.cd=o,this.onResize=new H}ngOnInit(){this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe(()=>{this.updateState()})),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe(()=>{this.updateState()}))}ngAfterViewInit(){this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(e){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length}onFocus(e){this.autoResize&&this.resize(e)}onBlur(e){this.autoResize&&this.resize(e)}resize(e){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(e||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(_e,8),D(os,8),D(ot))},t.\u0275dir=le({type:t,selectors:[["","pInputTextarea",""]],hostAttrs:[1,"p-inputtextarea","p-inputtext","p-component","p-element"],hostVars:4,hostBindings:function(e,n){1&e&&C("input",function(o){return n.onInput(o)})("focus",function(o){return n.onFocus(o)})("blur",function(o){return n.onBlur(o)}),2&e&&si("p-filled",n.filled)("p-inputtextarea-resizable",n.autoResize)},inputs:{autoResize:"autoResize"},outputs:{onResize:"onResize"}}),t})(),t$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const n$=["sublist"],i$=function(t){return{"p-hidden":t}};function s$(t,i){if(1&t&&M(0,"li",5),2&t){const e=p().$implicit;d("ngClass",U(1,i$,!1===e.visible))}}function o$(t,i){if(1&t&&M(0,"span",16),2&t){const e=p(3).$implicit;d("ngClass",e.icon)("ngStyle",e.iconStyle)}}function r$(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const e=p(3).$implicit;a(1),S(e.label)}}function a$(t,i){1&t&&M(0,"span",18),2&t&&d("innerHTML",p(3).$implicit.label,Ft)}function l$(t,i){1&t&&M(0,"span",19)}const nS=function(t){return{"p-menuitem-link":!0,"p-disabled":t}};function c$(t,i){if(1&t){const e=I();l(0,"a",11),C("keydown",function(s){v(e);const o=p(2).$implicit;return p().onItemKeyDown(s,o)})("click",function(s){v(e);const o=p(2).$implicit;return p().onItemClick(s,o)})("mouseenter",function(s){v(e);const o=p(2).$implicit;return p().onItemMouseEnter(s,o)}),_(1,o$,1,2,"span",12),_(2,r$,2,1,"span",13),_(3,a$,1,1,"ng-template",null,14,Se),_(5,l$,1,0,"span",15),c()}if(2&t){const e=F(4),n=p(2).$implicit,s=p();d("target",n.target)("ngClass",U(13,nS,n.disabled)),ie("href",n.url,Wt)("data-automationid",n.automationId)("title",n.title)("id",n.id)("tabindex",n.disabled?null:"0")("aria-haspopup",null!=s.item.items)("aria-expanded",s.item===s.activeItem),a(1),d("ngIf",n.icon),a(1),d("ngIf",!1!==n.escape)("ngIfElse",e),a(3),d("ngIf",n.items)}}function u$(t,i){if(1&t&&M(0,"span",16),2&t){const e=p(3).$implicit;d("ngClass",e.icon)("ngStyle",e.iconStyle)}}function d$(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const e=p(3).$implicit;a(1),S(e.label)}}function p$(t,i){1&t&&M(0,"span",18),2&t&&d("innerHTML",p(3).$implicit.label,Ft)}function h$(t,i){1&t&&M(0,"span",19)}const m$=function(){return{exact:!1}};function f$(t,i){if(1&t){const e=I();l(0,"a",20),C("keydown",function(s){v(e);const o=p(2).$implicit;return p().onItemKeyDown(s,o)})("click",function(s){v(e);const o=p(2).$implicit;return p().onItemClick(s,o)})("mouseenter",function(s){v(e);const o=p(2).$implicit;return p().onItemMouseEnter(s,o)}),_(1,u$,1,2,"span",12),_(2,d$,2,1,"span",13),_(3,p$,1,1,"ng-template",null,21,Se),_(5,h$,1,0,"span",15),c()}if(2&t){const e=F(4),n=p(2).$implicit;d("routerLink",n.routerLink)("queryParams",n.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.routerLinkActiveOptions||A(20,m$))("target",n.target)("ngClass",U(21,nS,n.disabled))("fragment",n.fragment)("queryParamsHandling",n.queryParamsHandling)("preserveFragment",n.preserveFragment)("skipLocationChange",n.skipLocationChange)("replaceUrl",n.replaceUrl)("state",n.state),ie("data-automationid",n.automationId)("title",n.title)("id",n.id)("tabindex",n.disabled?null:"0"),a(1),d("ngIf",n.icon),a(1),d("ngIf",!1!==n.escape)("ngIfElse",e),a(3),d("ngIf",n.items)}}function g$(t,i){if(1&t){const e=I();l(0,"p-tieredMenuSub",22),C("keydownItem",function(s){return v(e),p(3).onChildItemKeyDown(s)})("leafClick",function(){return v(e),p(3).onLeafClick()}),c()}if(2&t){const e=p(2).$implicit,n=p();d("parentActive",e===n.activeItem)("item",e)("mobileActive",n.mobileActive)("autoDisplay",n.autoDisplay)("popup",n.popup)}}const _$=function(t,i){return{"p-menuitem":!0,"p-menuitem-active":t,"p-hidden":i}};function b$(t,i){if(1&t&&(l(0,"li",6,7),_(2,c$,6,15,"a",8),_(3,f$,6,23,"a",9),_(4,g$,1,5,"p-tieredMenuSub",10),c()),2&t){const e=p().$implicit,n=p();me(e.styleClass),d("ngClass",Ge(8,_$,e===n.activeItem,!1===e.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions),a(2),d("ngIf",!e.routerLink),a(1),d("ngIf",e.routerLink),a(1),d("ngIf",e.items)}}function v$(t,i){if(1&t&&(_(0,s$,1,3,"li",3),_(1,b$,5,11,"li",4)),2&t){const e=i.$implicit;d("ngIf",e.separator),a(1),d("ngIf",!e.separator)}}const C$=function(t){return{"p-submenu-list":t}},y$=function(t){return{"p-tieredmenu p-component":!0,"p-tieredmenu-overlay":t}},w$=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},T$=function(t){return{value:"visible",params:t}};function S$(t,i){if(1&t){const e=I();l(0,"div",1),C("click",function(s){return v(e),p().onOverlayClick(s)})("@overlayAnimation.start",function(s){return v(e),p().onOverlayAnimationStart(s)})("@overlayAnimation.done",function(s){return v(e),p().onOverlayAnimationEnd(s)}),l(1,"p-tieredMenuSub",2),C("leafClick",function(){return v(e),p().onLeafClick()}),c()()}if(2&t){const e=p();me(e.styleClass),d("ngClass",U(12,y$,e.popup))("ngStyle",e.style)("@overlayAnimation",U(17,T$,Ge(14,w$,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup),a(1),d("item",e.model)("parentActive",e.parentActive)("baseZIndex",e.baseZIndex)("autoZIndex",e.autoZIndex)("autoDisplay",e.autoDisplay)("popup",e.popup)}}let x$=(()=>{class t{constructor(e,n,s){this.el=e,this.renderer=n,this.cd=s,this.autoZIndex=!0,this.baseZIndex=0,this.leafClick=new H,this.keydownItem=new H,this.menuHoverActive=!1}get parentActive(){return this._parentActive}set parentActive(e){this.root||(this._parentActive=e,e?this.positionSubmenu():this.activeItem=null)}onItemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),n.items&&(this.activeItem&&n===this.activeItem?(this.activeItem=null,this.unbindDocumentClickListener()):(this.activeItem=n,this.root&&this.bindDocumentClickListener())),n.items||this.onLeafClick())}onItemMouseEnter(e,n){n.disabled||this.mobileActive?e.preventDefault():this.root?(this.activeItem||this.autoDisplay||this.popup)&&(this.activeItem=n,this.bindDocumentClickListener()):(this.activeItem=n,this.bindDocumentClickListener())}onLeafClick(){this.activeItem=null,this.root&&this.unbindDocumentClickListener(),this.leafClick.emit()}onItemKeyDown(e,n){let s=e.currentTarget.parentElement;switch(e.key){case"ArrowDown":var o=this.findNextItem(s);o&&o.children[0].focus(),e.preventDefault();break;case"ArrowUp":var r=this.findPrevItem(s);r&&r.children[0].focus(),e.preventDefault();break;case"ArrowRight":n.items&&(this.activeItem=n,this.root&&this.bindDocumentClickListener(),setTimeout(()=>{s.children[1].children[0].children[0].children[0].focus()},50)),e.preventDefault()}this.keydownItem.emit({originalEvent:e,element:s})}positionSubmenu(){let e=this.sublistViewChild&&this.sublistViewChild.nativeElement;if(e){const n=e.parentElement.parentElement,s=R.getOffset(n),o=R.getViewport(),r=e.offsetParent?e.offsetWidth:R.getHiddenElementOuterWidth(e),u=R.getOuterWidth(n.children[0]);parseInt(s.left,10)+u+r>o.width-R.calculateScrollbarWidth()&&R.addClass(e,"p-submenu-list-flipped")}}findNextItem(e){let n=e.nextElementSibling;return n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findNextItem(n):n:null}findPrevItem(e){let n=e.previousElementSibling;return n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findPrevItem(n):n:null}onChildItemKeyDown(e){"ArrowLeft"===e.originalEvent.key&&(this.activeItem=null,this.root&&this.unbindDocumentClickListener(),e.element.parentElement.parentElement.parentElement.children[0].focus())}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=e=>{this.el&&!this.el.nativeElement.contains(e.target)&&(this.activeItem=null,this.cd.markForCheck(),this.unbindDocumentClickListener())},document.addEventListener("click",this.documentClickListener))}unbindDocumentClickListener(){this.documentClickListener&&(document.removeEventListener("click",this.documentClickListener),this.documentClickListener=null)}ngOnDestroy(){this.unbindDocumentClickListener()}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(gn),D(ot))},t.\u0275cmp=z({type:t,selectors:[["p-tieredMenuSub"]],viewQuery:function(e,n){if(1&e&&W(n$,5),2&e){let s;V(s=B())&&(n.sublistViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{item:"item",root:"root",autoDisplay:"autoDisplay",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",mobileActive:"mobileActive",popup:"popup",parentActive:"parentActive"},outputs:{leafClick:"leafClick",keydownItem:"keydownItem"},decls:3,vars:4,consts:[[3,"ngClass"],["sublist",""],["ngFor","",3,"ngForOf"],["class","p-menu-separator",3,"ngClass",4,"ngIf"],["pTooltip","",3,"ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],[1,"p-menu-separator",3,"ngClass"],["pTooltip","",3,"ngClass","ngStyle","tooltipOptions"],["listItem",""],["pRipple","",3,"target","ngClass","keydown","click","mouseenter",4,"ngIf"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click","mouseenter",4,"ngIf"],[3,"parentActive","item","mobileActive","autoDisplay","popup","keydownItem","leafClick",4,"ngIf"],["pRipple","",3,"target","ngClass","keydown","click","mouseenter"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-submenu-icon pi pi-angle-right",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-submenu-icon","pi","pi-angle-right"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click","mouseenter"],["htmlRouteLabel",""],[3,"parentActive","item","mobileActive","autoDisplay","popup","keydownItem","leafClick"]],template:function(e,n){1&e&&(l(0,"ul",0,1),_(2,v$,2,2,"ng-template",2),c()),2&e&&(d("ngClass",U(2,C$,!n.root)),a(2),d("ngForOf",n.root?n.item:n.item.items))},directives:[t,Le,at,Q,Qt,lt,vt,Hr,Cd],encapsulation:2}),t})(),D$=(()=>{class t{constructor(e,n,s,o,r){this.el=e,this.renderer=n,this.cd=s,this.config=o,this.overlayService=r,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear"}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.parentActive=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide()}}alignOverlay(){this.relativeAlign?R.relativePosition(this.container,this.target):R.absolutePosition(this.container,this.target)}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&dt.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.parentActive=!1,this.cd.markForCheck()}onWindowResize(){this.hide()}onLeafClick(){this.popup&&this.hide(),this.unbindDocumentClickListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{!this.preventDocumentDefault&&this.popup&&this.hide(),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Qs(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefault=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&dt.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide())}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(gn),D(ot),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-tieredMenu"]],hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",autoDisplay:"autoDisplay",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["root","root",3,"item","parentActive","baseZIndex","autoZIndex","autoDisplay","popup","leafClick"]],template:function(e,n){1&e&&_(0,S$,2,19,"div",0),2&e&&d("ngIf",!n.popup||n.visible)},directives:[x$,Q,Le,lt],styles:[".p-tieredmenu-overlay{position:absolute;top:0;left:0}.p-tieredmenu ul{margin:0;padding:0;list-style:none}.p-tieredmenu .p-submenu-list{position:absolute;min-width:100%;z-index:1;display:none}.p-tieredmenu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-tieredmenu .p-menuitem-text{line-height:1}.p-tieredmenu .p-menuitem{position:relative}.p-tieredmenu .p-menuitem-link .p-submenu-icon{margin-left:auto}.p-tieredmenu .p-menuitem-active>p-tieredmenusub>.p-submenu-list{display:block;left:100%;top:0}.p-tieredmenu .p-menuitem-active>p-tieredmenusub>.p-submenu-list.p-submenu-list-flipped{left:-100%}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),M$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})(),k$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[sN,_l,cT,_5,S5,Q6,T7,D7,td,G7,nd,TB,m9,y9,A9,G9,J9,Y9,pn,iq,sq,hq,kU,BU,GU,jn,JU,nz,cz,Oz,Aj,e$,t$,M$]}),t})();const I$=["pMenuItemContent",""];function E$(t,i){if(1&t&&M(0,"span",6),2&t){const e=p(2);me(e.item.iconClass),d("ngClass",e.item.icon)("ngStyle",e.item.iconStyle)}}function R$(t,i){if(1&t&&(l(0,"span",7),g(1),c()),2&t){const e=p(2);a(1),S(e.item.label)}}function L$(t,i){1&t&&M(0,"span",8),2&t&&d("innerHTML",p(2).item.label,Ft)}const iS=function(t){return{"p-disabled":t}};function O$(t,i){if(1&t){const e=I();l(0,"a",2),C("keydown",function(s){return v(e),p().onItemKeyDown(s)})("click",function(s){v(e);const o=p();return o.menu.itemClick(s,o.item)}),_(1,E$,1,4,"span",3),_(2,R$,2,1,"span",4),_(3,L$,1,1,"ng-template",null,5,Se),c()}if(2&t){const e=F(4),n=p();d("target",n.item.target)("ngClass",U(11,iS,n.item.disabled))("target",n.item.target),ie("href",n.item.url||null,Wt)("tabindex",n.item.disabled?null:"0")("data-automationid",n.item.automationId)("title",n.item.title)("id",n.item.id),a(1),d("ngIf",n.item.icon),a(1),d("ngIf",!1!==n.item.escape)("ngIfElse",e)}}function A$(t,i){1&t&&M(0,"span",12),2&t&&d("ngClass",p(2).item.icon)}function P$(t,i){if(1&t&&(l(0,"span",7),g(1),c()),2&t){const e=p(2);a(1),S(e.item.label)}}function F$(t,i){1&t&&M(0,"span",8),2&t&&d("innerHTML",p(2).item.label,Ft)}const N$=function(){return{exact:!1}};function V$(t,i){if(1&t){const e=I();l(0,"a",9),C("keydown",function(s){return v(e),p().onItemKeyDown(s)})("click",function(s){v(e);const o=p();return o.menu.itemClick(s,o.item)}),_(1,A$,1,1,"span",10),_(2,P$,2,1,"span",4),_(3,F$,1,1,"ng-template",null,11,Se),c()}if(2&t){const e=F(4),n=p();d("routerLink",n.item.routerLink)("queryParams",n.item.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.item.routerLinkActiveOptions||A(19,N$))("target",n.item.target)("ngClass",U(20,iS,n.item.disabled))("fragment",n.item.fragment)("queryParamsHandling",n.item.queryParamsHandling)("preserveFragment",n.item.preserveFragment)("skipLocationChange",n.item.skipLocationChange)("replaceUrl",n.item.replaceUrl)("state",n.item.state),ie("data-automationid",n.item.automationId)("id",n.item.id)("tabindex",n.item.disabled?null:"0")("title",n.item.title),a(1),d("ngIf",n.item.icon),a(1),d("ngIf",!1!==n.item.escape)("ngIfElse",e)}}const B$=["container"],Ur=function(t){return{"p-hidden":t}};function H$(t,i){if(1&t&&M(0,"li",8),2&t){const e=p().$implicit;d("ngClass",U(1,Ur,!1===e.visible))}}function q$(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const e=p(2).$implicit;a(1),S(e.label)}}function G$(t,i){1&t&&M(0,"span",12),2&t&&d("innerHTML",p(2).$implicit.label,Ft)}function U$(t,i){if(1&t&&(l(0,"li",9),_(1,q$,2,1,"span",10),_(2,G$,1,1,"ng-template",null,11,Se),c()),2&t){const e=F(3),n=p().$implicit;d("ngClass",U(5,Ur,!1===n.visible))("tooltipOptions",n.tooltipOptions),ie("data-automationid",n.automationId),a(1),d("ngIf",!1!==n.escape)("ngIfElse",e)}}function z$(t,i){if(1&t&&M(0,"li",8),2&t){const e=p().$implicit,n=p().$implicit;d("ngClass",U(1,Ur,!1===e.visible||!1===n.visible))}}function j$(t,i){if(1&t&&M(0,"li",14),2&t){const e=p().$implicit,n=p().$implicit;me(e.styleClass),d("pMenuItemContent",e)("ngClass",U(6,Ur,!1===e.visible||!1===n.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions)}}function $$(t,i){if(1&t&&(_(0,z$,1,3,"li",6),_(1,j$,1,8,"li",13)),2&t){const e=i.$implicit;d("ngIf",e.separator),a(1),d("ngIf",!e.separator)}}function W$(t,i){if(1&t&&(_(0,H$,1,3,"li",6),_(1,U$,4,7,"li",7),_(2,$$,2,2,"ng-template",5)),2&t){const e=i.$implicit;d("ngIf",e.separator),a(1),d("ngIf",!e.separator),a(1),d("ngForOf",e.items)}}function K$(t,i){1&t&&_(0,W$,3,3,"ng-template",5),2&t&&d("ngForOf",p(2).model)}function Q$(t,i){if(1&t&&M(0,"li",8),2&t){const e=p().$implicit;d("ngClass",U(1,Ur,!1===e.visible))}}function J$(t,i){if(1&t&&M(0,"li",14),2&t){const e=p().$implicit;me(e.styleClass),d("pMenuItemContent",e)("ngClass",U(6,Ur,!1===e.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions)}}function Y$(t,i){if(1&t&&(_(0,Q$,1,3,"li",6),_(1,J$,1,8,"li",13)),2&t){const e=i.$implicit;d("ngIf",e.separator),a(1),d("ngIf",!e.separator)}}function Z$(t,i){1&t&&_(0,Y$,2,2,"ng-template",5),2&t&&d("ngForOf",p(2).model)}const X$=function(t){return{"p-menu p-component":!0,"p-menu-overlay":t}},eW=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},tW=function(t){return{value:"visible",params:t}};function nW(t,i){if(1&t){const e=I();l(0,"div",1,2),C("click",function(s){return v(e),p().onOverlayClick(s)})("@overlayAnimation.start",function(s){return v(e),p().onOverlayAnimationStart(s)})("@overlayAnimation.done",function(s){return v(e),p().onOverlayAnimationEnd(s)}),l(2,"ul",3),_(3,K$,1,1,null,4),_(4,Z$,1,1,null,4),c()()}if(2&t){const e=p();me(e.styleClass),d("ngClass",U(8,X$,e.popup))("ngStyle",e.style)("@overlayAnimation",U(13,tW,Ge(10,eW,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup),a(3),d("ngIf",e.hasSubMenu()),a(1),d("ngIf",!e.hasSubMenu())}}let iW=(()=>{class t{constructor(e){this.menu=e}onItemKeyDown(e){let n=e.currentTarget.parentElement;switch(e.code){case"ArrowDown":var s=this.findNextItem(n);s&&s.children[0].focus(),e.preventDefault();break;case"ArrowUp":var o=this.findPrevItem(n);o&&o.children[0].focus(),e.preventDefault();break;case"Space":case"Enter":n&&!R.hasClass(n,"p-disabled")&&n.children[0].click(),e.preventDefault()}}findNextItem(e){let n=e.nextElementSibling;return n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findNextItem(n):n:null}findPrevItem(e){let n=e.previousElementSibling;return n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findPrevItem(n):n:null}}return t.\u0275fac=function(e){return new(e||t)(D(je(()=>sS)))},t.\u0275cmp=z({type:t,selectors:[["","pMenuItemContent",""]],hostAttrs:[1,"p-element"],inputs:{item:["pMenuItemContent","item"]},attrs:I$,decls:2,vars:2,consts:[["class","p-menuitem-link","role","menuitem",3,"target","ngClass","keydown","click",4,"ngIf"],["class","p-menuitem-link","role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click",4,"ngIf"],["role","menuitem",1,"p-menuitem-link",3,"target","ngClass","keydown","click"],["class","p-menuitem-icon",3,"ngClass","class","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],["role","menuitem","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click"],["class","p-menuitem-icon",3,"ngClass",4,"ngIf"],["htmlRouteLabel",""],[1,"p-menuitem-icon",3,"ngClass"]],template:function(e,n){1&e&&(_(0,O$,5,13,"a",0),_(1,V$,5,22,"a",1)),2&e&&(d("ngIf",!n.item.routerLink),a(1),d("ngIf",n.item.routerLink))},directives:[Q,Le,lt,Hr,vt,Cd],encapsulation:2}),t})(),sS=(()=>{class t{constructor(e,n,s,o,r){this.el=e,this.renderer=n,this.cd=s,this.config=o,this.overlayService=r,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onShow=new H,this.onHide=new H}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.onShow.emit({}),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide(),this.onHide.emit({})}}onOverlayAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&dt.clear(e.element)}alignOverlay(){this.relativeAlign?R.relativePosition(this.container,this.target):R.absolutePosition(this.container,this.target)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&dt.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.cd.markForCheck()}onWindowResize(){this.hide()}itemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),this.popup&&this.hide())}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.preventDocumentDefault||this.hide(),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Qs(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefault=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&dt.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide())}hasSubMenu(){if(this.model)for(var e of this.model)if(e.items)return!0;return!1}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(gn),D(ot),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-menu"]],viewQuery:function(e,n){if(1&e&&W(B$,5),2&e){let s;V(s=B())&&(n.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["container",""],["role","menu",1,"p-menu-list","p-reset"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["class","p-menu-separator","role","separator",3,"ngClass",4,"ngIf"],["class","p-submenu-header","pTooltip","","role","none",3,"ngClass","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menu-separator",3,"ngClass"],["pTooltip","","role","none",1,"p-submenu-header",3,"ngClass","tooltipOptions"],[4,"ngIf","ngIfElse"],["htmlSubmenuLabel",""],[3,"innerHTML"],["class","p-menuitem","pTooltip","","role","none",3,"pMenuItemContent","ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],["pTooltip","","role","none",1,"p-menuitem",3,"pMenuItemContent","ngClass","ngStyle","tooltipOptions"]],template:function(e,n){1&e&&_(0,nW,5,15,"div",0),2&e&&d("ngIf",!n.popup||n.visible)},directives:[iW,Q,Le,lt,at,Qt],styles:[".p-menu-overlay{position:absolute;top:0;left:0}.p-menu ul{margin:0;padding:0;list-style:none}.p-menu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-menu .p-menuitem-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),sW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})(),zr=(()=>{class t{constructor(e){this.httpClient=e}GetDatabaseStatus(){return this.httpClient.get("/Config/GetDatabaseStatus")}SetDatabaseCredentials(e){return this.httpClient.post("/Config/SetDatabaseCredentials",e)}GetCountries(){return this.httpClient.get("/Config/GetCountries")}GetLanguages(){return this.httpClient.get("/Config/GetLanguages")}GetIPAddresses(e){let n=(new ve).set("Protocol",e);return this.httpClient.get("/Config/GetIPAddresses",{params:n})}GetSystemEvents(e){let n=new ve;return e&&n.set("Host",e),this.httpClient.get("/Config/GetSystemEvents",{params:n})}}return t.\u0275fac=function(e){return new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Bt=(()=>{class t{constructor(e){this.httpClient=e}AddStorageGroupDir(e){return this.httpClient.post("/Myth/AddStorageGroupDir",e)}BackupDatabase(){return this.httpClient.post("/Myth/BackupDatabase",{body:void 0})}CheckDatabase(e){return this.httpClient.post("/Myth/CheckDatabase",e)}DelayShutdown(){return this.httpClient.post("Myth/DelayShutdown",{body:void 0})}GetBackendInfo(){return this.httpClient.get("/Myth/GetBackendInfo")}GetConnectionInfo(e){let n=(new ve).set("Pin",e);return this.httpClient.get("/Myth/GetConnectionInfo",{params:n})}GetFrontends(e){let n=(new ve).set("OnLine",e);return this.httpClient.get("/Myth/GetFrontends",{params:n})}GetHostName(){return this.httpClient.get("/Myth/GetHostName")}GetHosts(){return this.httpClient.get("/Myth/GetHosts")}GetKeys(){return this.httpClient.get("/Myth/GetKeys")}GetSetting(e){let n=(new ve).set("HostName",e.HostName).set("Key",e.Key).set("Default",e.Default?e.Default:"");return this.httpClient.get("/Myth/GetSetting",{params:n})}GetSettingList(e){let n=(new ve).set("HostName",e);return this.httpClient.get("/Myth/GetSettingList",{params:n})}GetStorageGroupDirs(e){return void 0===e||void 0===e.GroupName&&void 0===e.HostName?this.httpClient.get("/Myth/GetStorageGroupDirs"):this.httpClient.post("/Myth/GetStorageGroupDirs",e)}GetDirListing(e,n){let s=(new ve).set("DirName",e);return n&&(s=s.set("Files",n)),this.httpClient.get("/Myth/GetDirListing",{params:s})}GetTimeZone(){return this.httpClient.get("/Myth/GetTimeZone")}ManageDigestUser(e){return this.httpClient.post("/Myth/ManageDigestUser",e)}ManageUrlProtection(e){return this.httpClient.post("/Myth/ManageUrlProtection",e)}ProfileDelete(){return this.httpClient.post("/Myth/ProfileDelete",{body:void 0})}ProfileSubmit(){return this.httpClient.post("/Myth/ProfileSubmit",{body:void 0})}ProfileText(){return this.httpClient.get("/Myth/ProfileText")}ProfileURL(){return this.httpClient.get("/Myth/ProfileURL")}ProfileUpdated(){return this.httpClient.get("/Myth/ProfileUpdated")}PutSetting(e){return this.httpClient.post("/Myth/PutSetting",e)}DeleteSetting(e){return this.httpClient.post("/Myth/DeleteSetting",e)}RemoveStorageGroupDir(e){return this.httpClient.post("/Myth/RemoveStorageGroupDir",e)}SetConnectionInfo(e){return this.httpClient.post("/Myth/SetConnectionInfo",e)}TestDBSettings(e){return this.httpClient.post("/Myth/TestDBSettings",e)}ManageScheduler(e){return this.httpClient.post("/Myth/ManageScheduler",e)}Shutdown(e){return this.httpClient.post("/Myth/Shutdown",e)}Proxy(e){return this.httpClient.post("/Myth/Proxy",{Url:e})}}return t.\u0275fac=function(e){return new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xd=(()=>{class t{constructor(e,n){this.configService=e,this.mythService=n,this.m_wizardData={Country:{Code:"",Country:"",NativeCountry:"",Image:""},Language:{Code:"",Language:"",NativeLanguage:"",Image:""},Database:{Host:"localhost",Port:3306,UserName:"mythtv",Password:"mythtv",Ping:!1,Name:"mythconverg",Type:"QMYSQL",LocalHostName:"my-unique-identifier-goes-here",LocalEnabled:!1,DoTest:!0,WOLEnabled:!1,WOLReconnect:0,WOLRetry:0,WOLCommand:""},DatabaseStatus:{DatabaseStatus:{Host:"",Port:0,UserName:"",Password:"",Ping:!1,Name:"",Type:"",LocalHostName:"",LocalEnabled:!1,Connected:!1,HaveDatabase:!1,SchemaVersion:0,WOLEnabled:!1,WOLReconnect:0,WOLRetry:0,WOLCommand:""}}},this.m_topElement=null,this.m_hostName="",this.m_languageSetting="",this.m_languages=[],this.m_countrySetting="",this.m_countries=[],this.fullMenu=[],this.dbSetupMenu=[],this.wizardItems=[],this.mythService.GetHostName().subscribe(s=>{this.m_hostName=s.String})}ngOnInit(){}Init(){this.initDatabaseStatus(),this.initLanguages()}getWizardData(){return this.Init(),this.m_wizardData}initDatabaseStatus(){this.dbPromise=new Promise((e,n)=>{this.configService.GetDatabaseStatus().subscribe(s=>{this.m_wizardData.DatabaseStatus=s,this.m_wizardData.Database.Host=s.DatabaseStatus.Host,this.m_wizardData.Database.Port=s.DatabaseStatus.Port,this.m_wizardData.Database.UserName=s.DatabaseStatus.UserName,this.m_wizardData.Database.Password=s.DatabaseStatus.Password,this.m_wizardData.Database.Name=s.DatabaseStatus.Name,this.m_wizardData.Database.LocalEnabled=s.DatabaseStatus.LocalEnabled,this.m_wizardData.Database.LocalHostName=s.DatabaseStatus.LocalHostName,this.m_wizardData.Database.WOLEnabled=s.DatabaseStatus.WOLEnabled,this.m_wizardData.Database.WOLReconnect=s.DatabaseStatus.WOLReconnect,this.m_wizardData.Database.WOLRetry=s.DatabaseStatus.WOLRetry,this.m_wizardData.Database.WOLCommand=s.DatabaseStatus.WOLCommand,e(!0)},s=>{console.log("Failed to get database status",s.statusText),n(!0)})})}initLanguages(){this.configService.GetCountries().subscribe(e=>{this.m_countries=e.CountryList.Countries,this.initCountry()}),this.configService.GetLanguages().subscribe(e=>{this.m_languages=e.LanguageList.Languages,this.initLanguage()})}initCountry(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"Country",Default:"US"}).subscribe(e=>{this.m_wizardData.Country=this.findCountryByCode(e.String)})}findCountryByCode(e){for(var n=0;n{this.m_wizardData.Language=this.findLanguageByCode(e.String)})}findLanguageByCode(e){for(var n=0;n{this.m_wizardData.DatabaseStatus=e},e=>{console.log("Failed to get database status",e.statusText)})}}return t.\u0275fac=function(e){return new(e||t)(K(zr),K(Bt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Me=(()=>{class t{constructor(e,n){this.mythService=e,this.translate=n,this.m_hostName="",this.m_initialized=!1,this.requesterForm=null,this.m_HostAddressData={successCount:0,errorCount:0,thisHostName:this.m_hostName,BackendServerPort:6543,BackendStatusPort:6544,SecurityPin:"0000",AllowConnFromAll:!1,ListenOnAllIps:!0,BackendServerIP:"127.0.0.1",BackendServerIP6:"::1",AllowLinkLocal:!0,BackendServerAddr:"",IsMasterBackend:!0,MasterServerName:this.m_hostName},this.HostAddressObs={next:s=>{s.bool?this.m_HostAddressData.successCount++:(this.m_HostAddressData.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty())},error:s=>{console.error(s),this.m_HostAddressData.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty()}},this.JobQCommandsObs={next:s=>{s.bool?this.m_JobQCommands.successCount++:(this.m_JobQCommands.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty())},error:s=>{console.error(s),this.m_JobQCommands.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty()}},this.currentForm=null,this.schedulingEnabled=!0,this.isDatabaseIgnored=!1,this.DBTimezoneSupport=!1,this.WebOnlyStartup="",this.pageType=""}Init(){this.m_initialized=!0}getHostAddressData(){return this.mythService.GetHostName().subscribe({next:e=>{this.m_hostName=e.String,this.m_HostAddressData.thisHostName=this.m_hostName,this.m_HostAddressData.MasterServerName=this.m_hostName,this.getHostSettings()},error:()=>this.m_HostAddressData.errorCount++}),this.m_HostAddressData}getHostSettings(){this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerPort",Default:"6543"}).subscribe({next:e=>this.m_HostAddressData.BackendServerPort=Number(e.String),error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendStatusPort",Default:"6544"}).subscribe({next:e=>this.m_HostAddressData.BackendStatusPort=Number(e.String),error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"SecurityPin",Default:"0000"}).subscribe({next:e=>this.m_HostAddressData.SecurityPin=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"AllowConnFromAll",Default:"0"}).subscribe({next:e=>this.m_HostAddressData.AllowConnFromAll="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"ListenOnAllIps",Default:"1"}).subscribe({next:e=>this.m_HostAddressData.ListenOnAllIps="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerIP"}).subscribe({next:e=>this.m_HostAddressData.BackendServerIP=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerIP6"}).subscribe({next:e=>this.m_HostAddressData.BackendServerIP6=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"UseLinkLocal"}).subscribe({next:e=>this.m_HostAddressData.AllowLinkLocal="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerAddr"}).subscribe({next:e=>this.m_HostAddressData.BackendServerAddr=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Default:this.m_hostName}).subscribe({next:e=>{this.m_HostAddressData.MasterServerName=e.String,this.m_HostAddressData.IsMasterBackend=this.m_HostAddressData.MasterServerName==this.m_hostName},error:()=>this.m_HostAddressData.errorCount++})}saveHostAddressData(e){this.requesterForm=e,this.m_HostAddressData.successCount=0,this.m_HostAddressData.errorCount=0,this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerPort",Value:String(this.m_HostAddressData.BackendServerPort)}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendStatusPort",Value:String(this.m_HostAddressData.BackendStatusPort)}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"SecurityPin",Value:this.m_HostAddressData.SecurityPin}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"AllowConnFromAll",Value:this.m_HostAddressData.AllowConnFromAll?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"ListenOnAllIps",Value:this.m_HostAddressData.ListenOnAllIps?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerIP",Value:this.m_HostAddressData.BackendServerIP}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerIP6",Value:this.m_HostAddressData.BackendServerIP6}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"AllowLinkLocal",Value:this.m_HostAddressData.AllowLinkLocal?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerAddr",Value:this.m_HostAddressData.BackendServerAddr}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Value:this.m_HostAddressData.MasterServerName}).subscribe(this.HostAddressObs)}getLocaleData(){return this.m_LocaleData={successCount:0,errorCount:0,TVFormat:"PAL",VbiFormat:"None",FreqTable:"us-bcast"},this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"TVFormat"}).subscribe({next:e=>this.m_LocaleData.TVFormat=e.String,error:()=>this.m_LocaleData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"VbiFormat"}).subscribe({next:e=>this.m_LocaleData.VbiFormat=e.String,error:()=>this.m_LocaleData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"FreqTable"}).subscribe({next:e=>this.m_LocaleData.FreqTable=e.String,error:()=>this.m_LocaleData.errorCount++}),this.m_LocaleData}getSetupData(){return this.getHostAddressData(),this.getLocaleData(),this.m_setupData={General:{HostAddress:this.m_HostAddressData,Locale:this.m_LocaleData}},this.m_setupData}parseTime(e,n){let s=n.split(":");e.setHours(Number(s[0])),e.setMinutes(Number(s[1]))}formatTime(e){let n=e.getHours(),s=e.getMinutes(),o="";return n<10&&(o+="0"),o+=String(n),o+=":",s<10&&(o+="0"),o+=String(s),o}getJobQCommands(){if("object"==typeof this.m_JobQCommands)return this.m_JobQCommands;this.m_JobQCommands={successCount:0,errorCount:0,UserJobDesc:[],UserJob:[]};for(let e=0;e<4;e++){let n=e+1;this.translate.get("settings.services.job_default",{num:n}).subscribe(s=>this.m_JobQCommands.UserJobDesc[e]=s),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+n,Default:""}).subscribe({next:s=>{s.String&&s.String.length>0&&(this.m_JobQCommands.UserJobDesc[e]=s.String)},error:()=>this.m_JobQCommands.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJob"+n,Default:""}).subscribe({next:s=>this.m_JobQCommands.UserJob[e]=s.String,error:()=>this.m_JobQCommands.errorCount++})}return this.m_JobQCommands}saveJobQCommands(e){this.requesterForm=e,this.m_JobQCommands.successCount=0,this.m_JobQCommands.errorCount=0;for(let n=0;n<4;n++){let s=n+1;this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+s,Value:this.m_JobQCommands.UserJobDesc[n]}).subscribe(this.JobQCommandsObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UserJob"+s,Value:this.m_JobQCommands.UserJob[n]}).subscribe(this.JobQCommandsObs)}}getCurrentForm(){return this.currentForm}setCurrentForm(e){this.currentForm=e}}return t.\u0275fac=function(e){return new(e||t)(K(Bt),K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jr=(()=>{class t{constructor(e){this.httpClient=e}AddDontRecordSchedule(e){return this.httpClient.post("/Dvr/AddDontRecordSchedule",e)}AddRecordSchedule(e){return this.httpClient.post("/Dvr/AddRecordSchedule",e)}UpdateRecordSchedule(e){return this.httpClient.post("/Dvr/UpdateRecordSchedule",e)}RemoveRecordSchedule(e){return this.httpClient.post("/Dvr/RemoveRecordSchedule",{RecordId:e})}AddRecordedCredits(e){return this.httpClient.post("/Dvr/AddRecordedCredits",e)}AddRecordedProgram(e){return this.httpClient.post("/Dvr/AddRecordedProgram",e)}AllowReRecord(e){return this.httpClient.post("/Dvr/AllowReRecord",{RecordedId:e})}DeleteRecording(e){return this.httpClient.post("/Dvr/DeleteRecording",e)}UnDeleteRecording(e){return this.httpClient.post("/Dvr/UnDeleteRecording",e)}UpdateRecordedMetadata(e){return this.httpClient.post("/Dvr/UpdateRecordedMetadata",e)}DisableRecordSchedule(e){return this.httpClient.post("/Dvr/DisableRecordSchedule",{RecordId:e})}DupInToDescription(e){let n=(new ve).set("DupIn",e);return this.httpClient.get("/Dvr/DupInToDescription",{params:n})}DupInToString(e){let n=(new ve).set("DupIn",e);return this.httpClient.get("/Dvr/DupInToString",{params:n})}DupMethodToDescription(e){let n=(new ve).set("DupMethod",e);return this.httpClient.get("/Dvr/DupMethodToDescription",{params:n})}DupMethodToString(e){let n=(new ve).set("DupMethod",e);return this.httpClient.get("/Dvr/DupMethodToString",{params:n})}EnableRecordSchedule(e){return this.httpClient.post("/Dvr/EnableRecordSchedule",e)}GetConflictList(e){let n=(new ve).set("StartIndex",e.StartIndex).set("Count",e.Count).set("RecordId",e.RecordId);return this.httpClient.get("/Dvr/GetConflictList",{params:n})}GetEncoderList(){return this.httpClient.get("/Dvr/GetEncoderList")}GetExpiringList(e){let n=(new ve).set("StartIndex",e.StartIndex).set("Count",e.Count);return this.httpClient.get("/Dvr/GetExpiringList",{params:n})}GetInputList(){return this.httpClient.get("/Dvr/GetInputList")}GetLastPlayPos(e){let n=(new ve).set("RecordedId",e.RecordedId).set("ChanId",e.ChanId).set("StartTime",e.StartTime).set("OffsetType",e.OffsetType);return this.httpClient.get("/Dvr/GetLastPlayPos",{params:n})}GetOldRecordedList(e){let n=(new ve).set("Descending",e.Descending).set("StartIndex",e.StartIndex).set("Count",e.Count).set("StartTime",e.StartTime).set("EndTime",e.EndTime).set("Title",e.Title).set("SeriesId",e.SeriesId).set("RecordId",e.RecordId).set("Sort",e.Sort);return this.httpClient.get("/Dvr/GetOldRecordedList",{params:n})}GetPlayGroupList(){return this.httpClient.get("/Dvr/GetPlayGroupList")}GetProgramCategories(e){return(new ve).set("OnlyRecorded",e),this.httpClient.get("/Dvr/GetProgramCategories")}GetRecGroupList(){return this.httpClient.get("/Dvr/GetRecGroupList")}GetRecRuleFilterList(){return this.httpClient.get("/Dvr/GetRecRuleFilterList")}GetRecStorageGroupList(){return this.httpClient.get("/Dvr/GetRecStorageGroupList")}GetRecordSchedule(e){let n=new ve;for(const[s,o]of Object.entries(e))n=n.set(s,o);return this.httpClient.get("/Dvr/GetRecordSchedule",{params:n})}GetRecordScheduleList(e){let n=new ve;for(const[s,o]of Object.entries(e))n=n.set(s,o);return this.httpClient.get("/Dvr/GetRecordScheduleList",{params:n})}GetRecorded(e){let n=new ve;for(const[s,o]of Object.entries(e))n=n.set(s,o);return this.httpClient.get("/Dvr/GetRecorded",{params:n})}GetRecordedList(e){let n=new ve;for(const[s,o]of Object.entries(e))n=n.set(s,o);return this.httpClient.get("/Dvr/GetRecordedList",{params:n})}GetUpcomingList(e){let n=new ve;for(const[s,o]of Object.entries(e))n=n.set(s,o);return this.httpClient.get("/Dvr/GetUpcomingList",{params:n})}RecStatusToString(e){let n=(new ve).set("RecStatus",e);return this.httpClient.get("/Dvr/RecStatusToString",{params:n})}ManageJobQueue(e){return this.httpClient.post("/Dvr/ManageJobQueue",e)}StopRecording(e){return this.httpClient.post("/Dvr/StopRecording",{RecordedId:e})}}return t.\u0275fac=function(e){return new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function oW(t,i){if(1&t&&(l(0,"div",9),M(1,"p-message",10),m(2,"translate"),c()),2&t){const e=p();a(1),x("text",f(2,2,"settings.main.webonly."+e.setupService.WebOnlyStartup)),d("styleClass","font-bold")}}function rW(t,i){1&t&&(M(0,"p-message",10),m(1,"translate")),2&t&&(x("text",f(1,2,"settings.main.mustenable")),d("styleClass","font-bold"))}function aW(t,i){1&t&&(M(0,"p-message",10),m(1,"translate")),2&t&&(x("text",f(1,2,"settings.main.mustrestart")),d("styleClass","font-bold"))}function lW(t,i){if(1&t&&(l(0,"div",9),_(1,rW,2,4,"p-message",11),_(2,aW,2,4,"ng-template",null,12,Se),c()),2&t){const e=F(3),n=p();a(1),d("ngIf",n.setupService.schedulingEnabled)("ngIfElse",e)}}function cW(t,i){if(1&t){const e=I();l(0,"div",13)(1,"div",14)(2,"p-button",15),C("onClick",function(){return v(e),p().disableSched()}),m(3,"translate"),c()(),l(4,"div",14),g(5),m(6,"translate"),c()()}2&t&&(a(2),x("label",f(3,2,"settings.main.enableupdates_label")),a(3),S(f(6,4,"settings.main.enableupdates_desc")))}function uW(t,i){1&t&&(l(0,"div",14)(1,"div",17),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.main.restart_desc")))}function dW(t,i){1&t&&(l(0,"div",14),g(1),m(2,"translate"),c()),2&t&&(a(1),T(" ",f(2,1,"settings.main.slave_enabled"),""))}function pW(t,i){if(1&t){const e=I();l(0,"div",13)(1,"div",14)(2,"p-button",15),C("onClick",function(){return v(e),p().restart()}),m(3,"translate"),c()(),_(4,uW,4,3,"div",16),_(5,dW,3,3,"div",16),c()}if(2&t){const e=p();a(2),x("label",f(3,3,"WEBONLYPARM"==e.setupService.WebOnlyStartup?"settings.main.shutdown_label":"settings.main.restart_label")),a(2),d("ngIf",!e.masterServerName||!e.hostName||e.masterServerName==e.hostName),a(1),d("ngIf",e.masterServerName&&e.hostName&&e.masterServerName!=e.hostName)}}const hW=function(t,i,e){return{Title:t,StartTime:i,Status:e}};function mW(t,i){if(1&t&&(l(0,"small",18),g(1),m(2,"translate"),c()),2&t){const e=p();a(1),T(" ",_t(2,1,"settings.main.upcomingrec",Jt(4,hW,e.upComing[0].Title,e.recStartTime,e.recStatusDesc))," ")}}function fW(t,i){1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"p"),g(5),m(6,"translate"),c()()),2&t&&(a(2),T("",f(3,2,"settings.main.slave_instructions")," "),a(3),T("",f(6,4,"settings.main.slave_warning")," "))}function gW(t,i){1&t&&M(0,"p-progressSpinner")}function _W(t,i){1&t&&(M(0,"p-message",19),m(1,"translate")),2&t&&x("text",f(1,1,"settings.main.restarting"))}function bW(t,i){1&t&&(M(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}let vW=(()=>{class t{constructor(e,n,s,o,r,u){this.mythService=e,this.setupService=n,this.dvrService=s,this.wizardService=o,this.messageService=r,this.translate=u,this.errorCount=0,this.retryCount=0,this.upComing=[],this.recStatusDesc="",this.recStartTime="",this.ready=!1,this.delay=0,this.busy=!1,this.hostName="",this.masterServerName="",this.getBackendInfo(),this.refreshInfo()}refreshInfo(){setTimeout(()=>{this.getBackendInfo(),this.refreshInfo()},12e4)}getBackendInfo(){0==this.retryCount&&(this.errorCount=0),this.ready=!1,this.recStatusDesc="",this.recStartTime="",this.upComing=[],this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Default:this.hostName}).subscribe({next:n=>{this.masterServerName=n.String},error:()=>this.errorCount++})},error:()=>this.errorCount++}),this.mythService.GetBackendInfo().subscribe({next:e=>{this.setupService.schedulingEnabled=e.BackendInfo.Env.SchedulingEnabled,this.setupService.isDatabaseIgnored=e.BackendInfo.Env.IsDatabaseIgnored,this.setupService.DBTimezoneSupport=e.BackendInfo.Env.DBTimezoneSupport,this.setupService.WebOnlyStartup=e.BackendInfo.Env.WebOnlyStartup,this.wizardService.wizardItems=this.setupService.isDatabaseIgnored?this.wizardService.dbSetupMenu:this.wizardService.fullMenu,this.wizardService.getWizardData(),this.retryCount>0&&this.errorCount>0?(this.retryCount=0,this.errorCount=0):this.retryCount>0&&0==this.errorCount&&setTimeout(()=>this.getBackendInfo(),2e3),0==this.retryCount&&(setTimeout(()=>this.getUpcoming(),this.delay),this.delay=0)},error:()=>{this.setupService.schedulingEnabled=!0,this.errorCount++,this.errorCountthis.getBackendInfo(),2e3):this.retryCount=0}})}getUpcoming(){this.errorCount=0,this.dvrService.GetUpcomingList({Count:1}).subscribe({next:e=>{if(this.upComing=e.ProgramList.Programs,this.ready=!0,this.upComing.length>0){this.dvrService.RecStatusToString(this.upComing[0].Recording.Status).subscribe({next:s=>this.recStatusDesc=s.String,error:()=>this.errorCount++});var n=new Date(this.upComing[0].Recording.StartTs);this.recStartTime=n.toLocaleString()}},error:()=>this.errorCount++})}disableSched(){this.mythService.ManageScheduler({Disable:!0}).subscribe({next:e=>this.getBackendInfo(),error:()=>this.errorCount++})}restart(){let e="WEBONLYPARM"!=this.setupService.WebOnlyStartup;this.mythService.Shutdown({Restart:e}).subscribe({next:n=>{n.bool?(this.retryCount=e?30:9999,this.getBackendInfo()):this.errorCount++},error:()=>this.errorCount++}),this.delay=5e3}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(D(Bt),D(Me),D(jr),D(xd),D(Gi),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-backend-warning"]],features:[Pe([Gi])],decls:15,vars:9,consts:[[1,"block","card","w-full"],[1,"block"],[1,"m-5"],["class","flex mb-3",4,"ngIf"],["class","flex",4,"ngIf"],["class","pb-0 m-0",4,"ngIf"],[4,"ngIf"],["severity","info",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],[1,"flex","mb-3"],["severity","warn",3,"styleClass","text"],["severity","warn",3,"styleClass","text",4,"ngIf","ngIfElse"],["mustrestart",""],[1,"flex"],[1,"flex","align-items-center"],["icon","pi pi-save","iconPos","left",1,"pr-5","pb-1","pt-0","m-0",3,"label","onClick"],["class","flex align-items-center",4,"ngIf"],[1,"text-pink-500"],[1,"pb-0","m-0"],["severity","info",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1)(2,"p-card",2),_(3,oW,3,4,"div",3),_(4,lW,4,2,"div",3),_(5,cW,7,6,"div",4),_(6,pW,6,5,"div",4),l(7,"div"),_(8,mW,3,8,"small",5),c(),_(9,fW,7,6,"div",6),l(10,"div"),_(11,gW,1,0,"p-progressSpinner",6),_(12,_W,2,3,"p-message",7),l(13,"p"),_(14,bW,2,3,"p-message",8),c()()()()()),2&e&&(a(3),d("ngIf",0==n.retryCount&&"NONE"!=n.setupService.WebOnlyStartup),a(1),d("ngIf",0==n.retryCount),a(1),d("ngIf",n.setupService.schedulingEnabled&&0==n.retryCount),a(1),d("ngIf",!n.setupService.schedulingEnabled&&0==n.retryCount),a(2),d("ngIf",n.upComing.length>0),a(1),d("ngIf",n.masterServerName&&n.hostName&&n.masterServerName!=n.hostName&&0==n.retryCount),a(2),d("ngIf",n.retryCount>0),a(1),d("ngIf",n.retryCount>0),a(2),d("ngIf",!n.setupService.isDatabaseIgnored&&n.errorCount>0&&0==n.retryCount))},directives:[Ne,Q,qe,Ce,Gr],pipes:[ce],styles:[""]}),t})();const CW=["top"];let oS=(()=>{class t{constructor(e,n,s){this.wizardService=e,this.setupService=n,this.translate=s,this.fullMenu=[],this.dbSetupMenu=[],this.activeIndex=0,n.pageType="S"}ngOnInit(){this.translate.get("setupwizard.steps.selectlanguage").subscribe(e=>{this.fullMenu=[{label:this.translate.instant("setupwizard.steps.dbsetup"),routerLink:"dbsetup"},{label:this.translate.instant("setupwizard.steps.selectlanguage"),routerLink:"selectlanguage"},{label:this.translate.instant("setupwizard.steps.general"),routerLink:"general"},{label:this.translate.instant("setupwizard.steps.capture_cards"),routerLink:"capture-cards"},{label:this.translate.instant("setupwizard.steps.recording_profiles"),routerLink:"recording-profiles"},{label:this.translate.instant("setupwizard.steps.video_sources"),routerLink:"video-sources"},{label:this.translate.instant("setupwizard.steps.input_connections"),routerLink:"input-connections"},{label:this.translate.instant("setupwizard.steps.channel_editor"),routerLink:"channel-editor"},{label:this.translate.instant("setupwizard.steps.storage_groups"),routerLink:"storage-groups"},{label:this.translate.instant("setupwizard.steps.system_events"),routerLink:"system-events"}],this.wizardService.fullMenu=this.fullMenu,this.activeItem=this.fullMenu[0],this.dbSetupMenu=[this.fullMenu[0]],this.wizardService.dbSetupMenu=this.dbSetupMenu,this.wizardService.wizardItems=this.wizardService.fullMenu})}ngAfterViewInit(){this.wizardService.m_topElement=this.topElement}}return t.\u0275fac=function(e){return new(e||t)(D(xd),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-settings"]],viewQuery:function(e,n){if(1&e&&W(CW,5),2&e){let s;V(s=B())&&(n.topElement=s.first)}},decls:17,vars:12,consts:[["top",""],[1,"content-section","implementation"],[1,"card"],[1,"flex","flex-row"],["pButton","","pRipple","","icon","pi pi-angle-double-left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-11"],[3,"model","activeItem","scrollable"],["menu",""],["pButton","","pRipple","","icon","pi pi-angle-double-right",1,"p-button-text","p-button-primary",3,"pTooltip","click"]],template:function(e,n){if(1&e){const s=I();M(0,"span",null,0),l(2,"div",1)(3,"h1"),g(4),m(5,"translate"),c(),l(6,"div",2)(7,"div",3)(8,"button",4),C("click",function(){return v(s),F(12).navBackward()}),m(9,"translate"),c(),l(10,"div",5),M(11,"p-tabMenu",6,7),c(),l(13,"button",8),C("click",function(){return v(s),F(12).navForward()}),m(14,"translate"),c()()(),M(15,"app-backend-warning")(16,"router-outlet"),c()}2&e&&(a(4),S(f(5,6,"settings.main.title")),a(4),x("pTooltip",f(9,8,"dashboard.scrolltabsleft")),a(3),d("model",n.wizardService.wizardItems)("activeItem",n.activeItem)("scrollable",!1),a(2),x("pTooltip",f(14,10,"dashboard.scrolltabsright")))},directives:[An,vt,Qt,J2,vW,kl],pipes:[ce],styles:['.warning[_ngcontent-%COMP%]{color:#cc8925;background-color:#fff2e2}.connected[_ngcontent-%COMP%]{color:#1ea97c;background-color:#e4f8f0}.medium-width[_ngcontent-%COMP%]{width:"600"}']}),t})();function yW(t,i){if(1&t){const e=I();l(0,"div"),M(1,"h1"),l(2,"div",1)(3,"button",2),C("click",function(){return v(e),F(7).navBackward()}),m(4,"translate"),c(),l(5,"div",3),M(6,"p-tabMenu",4,5),c(),l(8,"button",6),C("click",function(){return v(e),F(7).navForward()}),m(9,"translate"),c()(),M(10,"router-outlet"),c()}if(2&t){const e=p();a(3),x("pTooltip",f(4,5,"dashboard.scrolltabsleft")),a(3),d("model",e.fullMenu)("activeItem",e.activeItem)("scrollable",!1),a(2),x("pTooltip",f(9,7,"dashboard.scrolltabsright"))}}let rS=(()=>{class t{constructor(e,n){this.translate=e,this.setupService=n,this.translateDone=!1,this.fullMenu=[{label:"dashboard.backendStatus",routerLink:"status"},{label:"dashboard.channeleditor",routerLink:"channel-editor"},{label:"dashboard.programguide",routerLink:"program-guide"},{label:"dashboard.recordings.heading",routerLink:"recordings"},{label:"dashboard.upcoming.heading",routerLink:"upcoming"},{label:"dashboard.recrules.heading",routerLink:"recrules"},{label:"dashboard.videos.heading",routerLink:"videos"}],this.activeItem=this.fullMenu[0],n.pageType="D",this.fullMenu.forEach(s=>{s.label&&this.translate.get(s.label).subscribe(o=>{s.label=o,this.translateDone=!0})})}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(D(Oe),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-dashboard"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"flex","flex-row"],["pButton","","pRipple","","icon","pi pi-angle-double-left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-11"],[3,"model","activeItem","scrollable"],["menu",""],["pButton","","pRipple","","icon","pi pi-angle-double-right",1,"p-button-text","p-button-primary",3,"pTooltip","click"]],template:function(e,n){1&e&&_(0,yW,11,9,"div",0),2&e&&d("ngIf",n.translateDone)},directives:[Q,An,vt,Qt,J2,kl],pipes:[ce],styles:["[_nghost-%COMP%] .dark-panel.p-panel .p-panel-header{background:#c0c0c0}"]}),t})(),$i=(()=>{class t{constructor(){}canDeactivate(e,n,s,o){return!e.canDeactivate||e.canDeactivate()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const wW=[{path:"dashboard",component:rS},{path:"setupwizard",component:oS}];let TW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[$i],imports:[[vn.forRoot(wW)],vn]}),t})(),SW=(()=>{class t{constructor(e,n){this.http=e,this.document=n}switchTheme(e){let n=this.document.getElementById("app-theme");n&&(n.href="assets/themes/"+e)}getThemes(){return this.http.get("assets/themes/themes.json").toPromise().then(e=>e.data).then(e=>e)}}return t.\u0275fac=function(e){return new(e||t)(K(Bi),K(en))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Fl=(()=>{class t{constructor(e){this.translate=e,this.m_showSidebar=!0,this.recStatusText={Pending:"",Failing:"",MissedFuture:"",Tuning:"",Failed:"",TunerBusy:"",LowDiskSpace:"",Cancelled:"",Missed:"",Aborted:"",Recorded:"",Recording:"",WillRecord:"",Unknown:"",DontRecord:"",PreviousRecording:"",CurrentRecording:"",EarlierShowing:"",TooManyRecordings:"",NotListed:"",Conflict:"",LaterShowing:"",Repeat:"",Inactive:"",NeverRecord:"",Offline:""},this.getTranslations()}getTranslations(){for(const[e,n]of Object.entries(this.recStatusText))this.translate.get("data.recstatus."+e).subscribe(s=>{Object.defineProperty(this.recStatusText,e,{value:s})})}toggleShowSidebar(){this.m_showSidebar=!this.m_showSidebar}showSidebar(e){this.m_showSidebar=e}}return t.\u0275fac=function(e){return new(e||t)(K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function xW(t,i){if(1&t&&(l(0,"div"),M(1,"img",26),c()),2&t){const e=p(2);a(1),Hn("src","images/themes/",e.m_selectedTheme.Image,"",Wt)}}function DW(t,i){if(1&t&&(l(0,"div"),M(1,"img",27),c()),2&t){const e=p(2);a(1),Hn("src","images/locale/",e.m_selectedLanguage.Image,"",Wt)}}function MW(t,i){if(1&t){const e=I();l(0,"div",7)(1,"div",8)(2,"a",9),C("click",function(){return v(e),p().toggleShowSidebar()}),M(3,"i",10)(4,"span",11),c(),M(5,"img",12),l(6,"div",13)(7,"h1"),g(8),m(9,"translate"),c()()(),l(10,"div",14)(11,"button",15),C("click",function(){return v(e),p().showTopBar=!1}),m(12,"translate"),c()(),l(13,"div",16)(14,"a",17),C("click",function(){return v(e),p().toggleShowNavbar()}),M(15,"i",18)(16,"span",11),c(),l(17,"ul",19)(18,"li",20)(19,"a",21),C("click",function(s){return v(e),p(),F(5).toggle(s)}),m(20,"translate"),_(21,xW,2,1,"div",22),l(22,"span",23),g(23),m(24,"translate"),c(),M(25,"span",24),c()(),l(26,"li",20)(27,"a",25),C("click",function(s){return v(e),p(),F(8).toggle(s)}),m(28,"translate"),_(29,DW,2,1,"div",22),l(30,"span",23),g(31),m(32,"translate"),c(),M(33,"span",24),c()()()()()}if(2&t){const e=p();a(8),S(f(9,9,"navbar.mainheading")),a(3),x("pTooltip",f(12,11,"navbar.hide")),a(6),d("hidden",e.m_showNavbar),a(2),x("pTooltip",f(20,13,"navbar.switchTheme")),a(2),d("ngIf",e.m_selectedTheme),a(2),S(f(24,15,"navbar.switchTheme")),a(4),x("pTooltip",f(28,17,"navbar.changeLanguage")),a(2),d("ngIf",e.m_selectedLanguage),a(2),S(f(32,19,"navbar.changeLanguage"))}}function kW(t,i){if(1&t){const e=I();l(0,"div",28)(1,"button",29),C("click",function(){return v(e),p().showTopBar=!0}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"navbar.show")))}function IW(t,i){if(1&t&&(l(0,"tr",33)(1,"td",34)(2,"span",35),g(3),c()()()),2&t){const e=i.$implicit;a(3),S(e.Category)}}function EW(t,i){if(1&t){const e=I();l(0,"tr",36),C("click",function(){const o=v(e).$implicit;return p(2).changeTheme(o)}),l(1,"td",37),M(2,"img",38),c(),l(3,"td"),g(4),c()()}if(2&t){const n=i.$implicit;d("pSelectableRow",i.$implicit),a(2),Hn("src","images/themes/",n.Image,"",Wt),d("alt",n.image),a(2),S(n.Name)}}function RW(t,i){1&t&&(l(0,"p-table",30),_(1,IW,4,1,"ng-template",31),_(2,EW,5,4,"ng-template",32),c()),2&t&&d("value",p().m_themes$)("paginator",!1)("scrollable",!0)}function LW(t,i){if(1&t){const e=I();l(0,"tr",36),C("click",function(){const o=v(e).$implicit,r=p(2);return F(8).hide(),r.changeLanguage(o)}),l(1,"td",37),M(2,"img",38),c(),l(3,"td")(4,"pre")(5,"span",40),g(6),c(),M(7,"br"),g(8),c()()()}if(2&t){const n=i.$implicit;d("pSelectableRow",i.$implicit),a(2),Hn("src","images/locale/",n.Image,"",Wt),d("alt",n.image),a(4),S(n.Language),a(2),T("",n.NativeLanguage," ")}}function OW(t,i){1&t&&(l(0,"p-table",39),_(1,LW,9,5,"ng-template",32),c()),2&t&&d("value",p().m_languages)("paginator",!1)("scrollable",!0)}const AW=function(){return{width:"350px"}},PW=function(){return{width:"450px"}};let FW=(()=>{class t{constructor(e,n,s,o,r,u,h){this.themeService=e,this.configService=n,this.translateService=s,this.primeconfigService=o,this.dataService=r,this.mythService=u,this.router=h,this.m_showNavbar=!0,this.showTopBar=!0,this.m_devMode=function KR(){return ZC=!0,YC}(),this.m_haveDatabase=!0,this.themeService.getThemes().then(b=>{this.m_themes$=b,this.m_selectedTheme=this.findThemeByName(localStorage.getItem("Theme")||"Indigo Light"),this.themeService.switchTheme(this.m_selectedTheme.CSS)}),this.configService.GetLanguages().subscribe(b=>{this.m_languages=b.LanguageList.Languages,this.m_selectedLanguage=this.findLanguageByCode(localStorage.getItem("Language")||"en_US")}),this.mythService.GetBackendInfo().subscribe(b=>{var y=this.router.url;b.BackendInfo.Env.IsDatabaseIgnored||!b.BackendInfo.Env.SchedulingEnabled&&!y.startsWith("/setupwizard/")?h.navigate(["setupwizard/dbsetup"]):"/"==y&&h.navigate(["dashboard/status"])})}ngOnInit(){}findThemeByName(e){for(var n=0;nthis.primeconfigService.setTranslation(n))}toggleShowNavbar(){this.m_showNavbar=!this.m_showNavbar}toggleShowSidebar(){this.dataService.toggleShowSidebar()}}return t.\u0275fac=function(e){return new(e||t)(D(SW),D(zr),D(Oe),D(zn),D(Fl),D(Bt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-navbar"]],decls:10,vars:10,consts:[[1,"flex","flex-column","relative","flex-auto"],["class","toolbar flex justify-content-between align-items-center pm-8 surface-section relative lg:static surface-border","style","height: 80px;",4,"ngIf","ngIfElse"],["hidden",""],[3,"showCloseIcon"],["themePanel",""],["pTemplate",""],["languagePanel",""],[1,"toolbar","flex","justify-content-between","align-items-center","pm-8","surface-section","relative","lg:static","surface-border",2,"height","80px"],[1,"toolbar","flex","align-items-left","flex-shrink-0",2,"height","80px"],["pRipple","",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-3","lg:hidden","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"click"],[1,"pi","pi-bars","mr-1","lg:ml-1","text-base","lg:text-xl"],["ng","","serve","",1,"p-ink"],["src","images/mythtv.png","alt","Image","height","80",1,"py-2","pl-1"],[1,"hidden","md:inline-flex"],[1,"toolbar","flex","flex-grow-1","align-items-end",2,"height","80px"],["pButton","","pRipple","","icon","pi pi-angle-up",1,"p-button-text","lg:col-offset-3","p-button-secondary",3,"pTooltip","click"],[1,"pr-2","toolbar",2,"height","80px"],["pRipple","",1,"toolbar","p-ripple","p-element","my-2","mx-2","flex","align-items-center","cursor-pointer","p-3","md:hidden","md:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",2,"height","80px",3,"click"],[1,"pi","pi-ellipsis-v","mr-1","md:mr-0","text-base","md:text-xl"],[1,"toolbar","list-none","p-0","m-0","md:flex","md:align-items-center","select-none","md:flex-row","surface-section","border-1","md:border-none","surface-border","right-0","top-100","z-2","shadow-2","md:shadow-none","absolute","md:static",3,"hidden"],[1,"toolbar",2,"height","80px"],["pRipple","","tooltipPosition","bottom",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-2","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"pTooltip","click"],[4,"ngIf"],[1,"font-medium","inline","md:hidden"],[1,"p-ink"],["pRipple","","tooltipPosition","bottom",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"pTooltip","click"],[1,"mr-2","lg:mr-0",2,"width","32px","height","32px",3,"src"],[1,"mr-2","lg:mr-0",2,"width","32px",3,"src"],[1,"toolbar","block","flex","flex-grow-1","justify-content-center","align-items-end",2,"height","2rem"],["pButton","","pRipple","","icon","pi pi-angle-down",1,"p-button-text","p-button-secondary",3,"pTooltip","click"],["selectionMode","single","sortField","Name","sortMode","single","scrollHeight","500px","rowGroupMode","subheader","groupRowsBy","Category","responsiveLayout","scroll",3,"value","paginator","scrollable"],["pTemplate","groupheader"],["pTemplate","body"],["pRowGroupHeader",""],["colspan","2"],[1,"font-bold","ml-2"],[3,"pSelectableRow","click"],[2,"max-width","80px"],[1,"theme-image",3,"src","alt"],["selectionMode","single","sortField","NativeLanguage","sortMode","single","scrollHeight","500px","responsiveLayout","scroll",3,"value","paginator","scrollable"],[1,"font-bold"]],template:function(e,n){if(1&e&&(l(0,"div",0),_(1,MW,34,21,"div",1),_(2,kW,3,3,"ng-template",null,2,Se),c(),l(4,"p-overlayPanel",3,4),_(6,RW,3,3,"ng-template",5),c(),l(7,"p-overlayPanel",3,6),_(9,OW,2,3,"ng-template",5),c()),2&e){const s=F(3);a(1),d("ngIf",n.showTopBar)("ngIfElse",s),a(3),q(A(8,AW)),d("showCloseIcon",!0),a(3),q(A(9,PW)),d("showCloseIcon",!0)}},directives:[Q,vt,An,Qt,q9,ne,Dn,SU,j2],pipes:[ce],styles:[".toolbar[_ngcontent-%COMP%]{background-color:#000;color:#4682b4}.theme-image[_ngcontent-%COMP%]{width:50px}"]}),t})(),NW=(()=>{class t{constructor(e){this.dataService=e}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(D(Fl))},t.\u0275cmp=z({type:t,selectors:[["app-sidenav"]],decls:32,vars:25,consts:[[1,"navbar","flex","relative","lg:static","surface-ground"],["id","sidebar",1,"bg-gray-900","lg:block","flex-shrink-0","absolute","lg:static","left-0","top-0","z-2","border-gray-800","w-18rem","lg:w-5rem","select-none",3,"hidden"],[1,"flex","flex-column","h-full"],[1,"mt-1","select-none"],[1,"list-none","p-3","lg:py-3","lg:px-2","m-0"],[3,"routerLink","pTooltip","tooltipDisabled","click"],["pRipple","",1,"p-ripple","p-element","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-gray-300","hover:text-white","transition-duration-150","transition-colors"],[1,"pi","pi-home","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"font-medium","inline","lg:hidden"],[1,"p-ink"],["pRipple","",1,"p-element","flex","align-items-center","cursor-pointer","p-3","lg:justify-content-center","hover:bg-gray-800","border-round","text-gray-300","hover:text-white","transition-duration-150","transition-colors"],[1,"pi","pi-cog","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"pi","pi-map","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"contentarea","px-0","lg:px-3","w-full"]],template:function(e,n){1&e&&(de(0),l(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"ul",4)(6,"li",5),C("click",function(){return n.dataService.showSidebar(!0)}),m(7,"translate"),l(8,"a",6),M(9,"i",7),l(10,"span",8),g(11),m(12,"translate"),c(),M(13,"span",9),c()(),l(14,"li",5),C("click",function(){return n.dataService.showSidebar(!0)}),m(15,"translate"),l(16,"a",10),M(17,"i",11),l(18,"span",8),g(19),m(20,"translate"),c(),M(21,"span",9),c()(),l(22,"li",5),C("click",function(){return n.dataService.showSidebar(!0)}),m(23,"translate"),l(24,"a",10),M(25,"i",12),l(26,"span",8),g(27),m(28,"translate"),c(),M(29,"span",9),c()()()()()(),l(30,"div",13),M(31,"router-outlet"),c()(),pe()),2&e&&(a(2),d("hidden",n.dataService.m_showSidebar),a(4),x("pTooltip",f(7,13,"navbar.dashboard")),d("routerLink","dashboard/status")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(12,15,"navbar.dashboard")),a(3),x("pTooltip",f(15,17,"navbar.backendSetup")),d("routerLink","setupwizard/dbsetup")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(20,19,"navbar.backendSetup")),a(3),x("pTooltip",f(23,21,"dashboard.programguide")),d("routerLink","dashboard/program-guide")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(28,23,"dashboard.programguide")))},directives:[vd,Qt,vt,kl],pipes:[ce],styles:[".sidebar[_ngcontent-%COMP%]{width:70px;height:100%;margin:0}.navbar[_ngcontent-%COMP%]{min-height:calc(100vh - 85px);max-height:calc(100vh - 85px)}.contentarea[_ngcontent-%COMP%]{overflow:scroll;height:calc(100vh - 85px)}"]}),t})(),VW=(()=>{class t{constructor(e,n){this.config=e,this.translate=n,this.title="MythTV Backend",n.setDefaultLang("en_US"),n.use(localStorage.getItem("Language")||"en_US"),n.get("primeng").subscribe(s=>this.config.setTranslation(s)),this.config.ripple=!0}}return t.\u0275fac=function(e){return new(e||t)(D(zn),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(e,n){1&e&&M(0,"app-navbar")(1,"app-sidenav")},directives:[FW,NW],styles:[""]}),t})();const BW=["langform"],HW=["countryrow"],qW=["languagerow"];function GW(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"setupwizard.localSetup")," ")}function UW(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"setupwizard.countryAndLanguage")," ")}function zW(t,i){1&t&&(l(0,"h2"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"setupwizard.selectCountry")))}function jW(t,i){if(1&t&&(l(0,"div",18,19),M(2,"img",20),l(3,"pre")(4,"span",21),g(5),c(),g(6),c()()),2&t){const e=i.$implicit;ie("id",e.Code),a(2),Hn("src","images/locale/",e.Image,"",Wt),a(3),S(e.Country),a(1),We("",null!==e.NativeCountry?" - "+e.NativeCountry:""," (",e.Code,")")}}function $W(t,i){if(1&t&&(l(0,"div",22),M(1,"p-message",23),m(2,"translate"),c()),2&t){const e=p(2);a(1),Oa("text","",f(2,2,"setupwizard.selectedCountry")," ",e.m_wizardData.Country.Country,"")}}function WW(t,i){1&t&&(l(0,"div",22),M(1,"p-message",24),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.noCountry")))}function KW(t,i){1&t&&(l(0,"h2"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"setupwizard.selectLanguage")))}function QW(t,i){if(1&t&&(l(0,"div",18,25),M(2,"img",20),l(3,"pre")(4,"span",21),g(5),c(),g(6),c()()),2&t){const e=i.$implicit;ie("id",e.Code),a(2),Hn("src","images/locale/",e.Image,"",Wt),a(3),S(e.Language),a(1),We(" - ",e.NativeLanguage," (",e.Code,")")}}function JW(t,i){if(1&t&&(l(0,"div",22),M(1,"p-message",23),m(2,"translate"),c()),2&t){const e=p(2);a(1),Oa("text","",f(2,2,"setupwizard.selectedLanguage")," ",e.m_wizardData.Language.NativeLanguage,"")}}function YW(t,i){1&t&&(l(0,"div",22),M(1,"p-message",26),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.noLanguage")))}const aS=function(){return{"max-height":"460px","min-height":"460px"}};function ZW(t,i){if(1&t){const e=I();l(0,"div",8)(1,"div",9)(2,"p-listbox",10),C("ngModelChange",function(s){return v(e),p().m_wizardData.Country=s}),_(3,zW,3,3,"ng-template",11),_(4,jW,7,5,"ng-template",12),c(),_(5,$W,3,4,"div",13),_(6,WW,3,3,"ng-template",null,14,Se),c(),l(8,"div",15)(9,"p-listbox",16),C("ngModelChange",function(s){return v(e),p().m_wizardData.Language=s}),_(10,KW,3,3,"ng-template",11),_(11,QW,7,5,"ng-template",12),c(),_(12,JW,3,4,"div",13),_(13,YW,3,3,"ng-template",null,17,Se),c()()}if(2&t){const e=F(7),n=F(14),s=p();a(2),d("options",s.m_countries)("ngModel",s.m_wizardData.Country)("multiple",!1)("filter",!0)("listStyle",A(14,aS)),a(3),d("ngIf",""!=s.m_wizardData.Country.Code)("ngIfElse",e),a(4),d("options",s.m_languages)("ngModel",s.m_wizardData.Language)("multiple",!1)("filter",!0)("listStyle",A(15,aS)),a(3),d("ngIf",""!=s.m_wizardData.Language.Code)("ngIfElse",n)}}function XW(t,i){1&t&&(M(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function eK(t,i){1&t&&(M(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function tK(t,i){if(1&t){const e=I();l(0,"div",27)(1,"div",28),_(2,XW,2,3,"p-message",29),_(3,eK,2,3,"p-message",30),c(),l(4,"p-button",31),C("onClick",function(){v(e);const s=p(),o=F(2);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c(),l(6,"p-button",32),C("onClick",function(){return v(e),p().router.navigate(["setupwizard/dbsetup"])}),m(7,"translate"),c(),l(8,"p-button",33),C("onClick",function(){return v(e),p().router.navigate(["setupwizard/general"])}),m(9,"translate"),c()()}if(2&t){const e=p(),n=F(2);a(2),d("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,7,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled),a(2),x("label",f(7,9,"common.back")),a(2),x("label",f(9,11,"common.next")),d("disabled",""==e.m_wizardData.Country.Code||""==e.m_wizardData.Language.Code)}}let nK=(()=>{class t{constructor(e,n,s,o,r,u){this.router=e,this.translate=n,this.setupService=s,this.configService=o,this.wizardService=r,this.mythService=u,this.m_countries=[],this.m_languages=[],this.successCount=0,this.errorCount=0,this.expectedCount=0,this.warningText="settings.common.warning",this.saveObserver={next:h=>{h.bool?(this.successCount++,this.successCount>=this.expectedCount&&localStorage.setItem("Language",this.m_wizardData.Language.Code),this.translate.use(this.m_wizardData.Language.Code)):(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:h=>{console.error(h),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.translate.get(this.warningText).subscribe(h=>{this.warningText=h})}ngOnInit(){this.configService.GetLanguages().subscribe(e=>this.m_languages=e.LanguageList.Languages),this.configService.GetCountries().subscribe(e=>this.m_countries=e.CountryList.Countries),this.m_wizardData=this.wizardService.getWizardData(),setTimeout(()=>this.scrollIntoView(),1e3)}ngAfterViewInit(){}scrollIntoView(){if(""!=this.m_wizardData.Country.Code){const e=this.countryRowElement.find(n=>n.nativeElement.getAttribute("id")===this.m_wizardData.Country.Code);e?e.nativeElement.scrollIntoView({behavior:"instant",inline:"start",block:"center"}):console.log("Failed to find element by ID")}if(""!=this.m_wizardData.Language.Code){const e=this.languageRowElement.find(n=>n.nativeElement.getAttribute("id")===this.m_wizardData.Language.Code);e&&e.nativeElement.scrollIntoView({behavior:"instant",inline:"start",block:"center"})}null!=this.wizardService.m_topElement&&this.wizardService.m_topElement.nativeElement.scrollIntoView({behavior:"instant",block:"start"})}saveForm(){this.successCount=0,this.errorCount=0,this.expectedCount=2,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"Country",Value:this.m_wizardData.Country.Code}).subscribe(this.saveObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"Language",Value:this.m_wizardData.Language.Code}).subscribe(this.saveObserver)}confirm(e){return re(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return t.\u0275fac=function(e){return new(e||t)(D(It),D(Oe),D(Me),D(zr),D(xd),D(Bt))},t.\u0275cmp=z({type:t,selectors:[["app-selectlanguage"]],viewQuery:function(e,n){if(1&e&&(W(BW,5),W(HW,5,De),W(qW,5,De)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.countryRowElement=s),V(s=B())&&(n.languageRowElement=s)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(o){return n.onWindowClose(o)},!1,ni)},decls:8,vars:0,consts:[[1,"wizard-content","m-0","md:m-3"],["name","langform",1,"mx-0","md:mx-3"],["langform","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid","m-0","md:m-3"],[1,"col-12","md:col-6","pt-2"],["optionLabel","Country","name","countries",3,"options","ngModel","multiple","filter","listStyle","ngModelChange"],["pTemplate","header"],["pTemplate","item"],["class","pt-5",4,"ngIf","ngIfElse"],["noCountry",""],[1,"col-12","md:col-6"],["optionLabel","Language","name","languages",3,"options","ngModel","multiple","filter","listStyle","ngModelChange"],["noLanguage",""],[1,"language-item"],["countryrow",""],[1,"pr-3",2,"width","70px",3,"src"],[1,"font-bold"],[1,"pt-5"],["severity","success",3,"text"],["severity","error",3,"text"],["languagerow",""],["severity","error",1,"pt-2",3,"text"],[1,"grid","nogutter","m-5"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["icon","pi pi-angle-left","iconPos","left",1,"pr-3",3,"label","onClick"],["icon","pi pi-angle-right","iconPos","right",3,"label","disabled","onClick"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"form",1,2)(3,"p-card",3),_(4,GW,2,3,"ng-template",4),_(5,UW,2,3,"ng-template",5),_(6,ZW,15,16,"ng-template",6),_(7,tK,10,13,"ng-template",7),c()()())},directives:[ze,Ue,He,Ne,ne,zi,we,_e,Q,qe,Ce],pipes:[ce],styles:[".language-item{display:flex;align-items:center}@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();class iK{constructor(i,e){this._document=e;const n=this._textarea=this._document.createElement("textarea"),s=n.style;s.position="fixed",s.top=s.opacity="0",s.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,this._document.body.appendChild(n)}copy(){const i=this._textarea;let e=!1;try{if(i){const n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let lS=(()=>{class t{constructor(e){this._document=e}copy(e){const n=this.beginCopy(e),s=n.copy();return n.destroy(),s}beginCopy(e){return new iK(e,this._document)}}return t.\u0275fac=function(e){return new(e||t)(K(en))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const sK=["databaseForm"];function oK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"setupwizard.databaseSetup")," ")}function rK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"setupwizard.enterDBLoginDetails")," ")}function aK(t,i){1&t&&(l(0,"div")(1,"small",42),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.IPorAddressRequired")))}function lK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.portRequired")))}function cK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.userRequired")))}function uK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.passwordRequired")))}function dK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.databaseNameRequired")))}function pK(t,i){if(1&t){const e=I();l(0,"div",30)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"input",45,46),C("ngModelChange",function(s){return v(e),p(2).database.LocalHostName=s}),c(),l(6,"small",47),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,3,"setupwizard.LocalHostName_label")),a(2),d("ngModel",e.database.LocalHostName),a(3),S(f(8,5,"setupwizard.LocalHostName_desc"))}}function hK(t,i){if(1&t){const e=I();l(0,"div",8)(1,"label",48),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",49),C("ngModelChange",function(s){return v(e),p(2).database.WOLReconnect=s}),c(),l(5,"small",32),g(6),m(7,"translate"),c()()}if(2&t){const e=p(2);a(2),T(" ",f(3,8,"settings.vsource.WOLReconnect_label")," "),a(2),d("ngModel",e.database.WOLReconnect)("min",0)("max",60)("step",1)("useGrouping",!1)("showButtons",!0),a(2),T(" ",f(7,10,"settings.vsource.WOLReconnect_desc")," ")}}function mK(t,i){if(1&t){const e=I();l(0,"div",8)(1,"label",50),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",51),C("ngModelChange",function(s){return v(e),p(2).database.WOLRetry=s}),c(),l(5,"small",32),g(6),m(7,"translate"),c()()}if(2&t){const e=p(2);a(2),T(" ",f(3,8,"settings.vsource.WOLRetry_label")," "),a(2),d("ngModel",e.database.WOLRetry)("min",1)("max",10)("step",1)("useGrouping",!1)("showButtons",!0),a(2),T(" ",f(7,10,"settings.vsource.WOLRetry_desc")," ")}}function fK(t,i){if(1&t){const e=I();l(0,"div",30)(1,"label",52),g(2),m(3,"translate"),c(),l(4,"input",53,54),C("ngModelChange",function(s){return v(e),p(2).database.WOLCommand=s}),c(),l(6,"small",55),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,3,"setupwizard.WOLCommand_label")),a(2),d("ngModel",e.database.WOLCommand),a(3),S(f(8,5,"setupwizard.WOLCommand_desc"))}}function gK(t,i){1&t&&(l(0,"div"),M(1,"p-message",56),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.connectedToDatabase")))}function _K(t,i){1&t&&(l(0,"div",57,39),M(2,"p-message",58),m(3,"translate"),c()),2&t&&(a(2),x("text",f(3,1,"setupwizard.notConnectedToDatabase")))}const cS=function(t){return{Name:t}};function bK(t,i){if(1&t&&(l(0,"div"),M(1,"p-message",56),m(2,"translate"),c()),2&t){const e=p(2);a(1),x("text",_t(2,1,"setupwizard.dbsetup.havedb",U(4,cS,e.m_wizardData.Database.Name)))}}function vK(t,i){if(1&t&&(l(0,"div",59,40),M(2,"p-message",60),m(3,"translate"),c()),2&t){const e=p(2);a(2),x("text",_t(3,1,"setupwizard.dbsetup.havenotdb",U(4,cS,e.m_wizardData.Database.Name)))}}const CK=function(t){return{SchemaVersion:t}};function yK(t,i){if(1&t&&(l(0,"div"),M(1,"p-message",61),m(2,"translate"),c()),2&t){const e=p(2);a(1),x("text",_t(2,1,"setupwizard.dbsetup.schemaver",U(4,CK,e.m_wizardData.DatabaseStatus.DatabaseStatus.SchemaVersion)))}}function wK(t,i){1&t&&(l(0,"div",62,40),M(2,"p-message",63),m(3,"translate"),c()),2&t&&(a(2),x("text",f(3,1,"setupwizard.databaseSchemaUnknown")))}function TK(t,i){if(1&t){const e=I();l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"div",68)(5,"div",69),g(6," Sql Server Type: "),c(),l(7,"div",70)(8,"p-radioButton",71),C("ngModelChange",function(s){return v(e),p(3).dbtype=s})("ngModelChange",function(){return v(e),p(3).setCommandList()}),c(),l(9,"label",72),g(10,"MySql"),c()(),l(11,"div",73)(12,"p-radioButton",74),C("ngModelChange",function(s){return v(e),p(3).dbtype=s})("ngModelChange",function(){return v(e),p(3).setCommandList()}),c(),l(13,"label",75),g(14,"MariaDB"),c()()(),l(15,"table",76)(16,"tr")(17,"td",65),g(18),c(),l(19,"td",66)(20,"button",67),C("click",function(){v(e);const s=p(3);return s.copyToclipboard(s.commandlist)}),m(21,"translate"),c()()()(),l(22,"p"),g(23),m(24,"translate"),c(),l(25,"table")(26,"tr")(27,"td",65),g(28),c(),l(29,"td",66)(30,"button",67),C("click",function(){v(e);const s=p(3);return s.copyToclipboard(s.mySqlCommand)}),m(31,"translate"),c()()()()()}if(2&t){const e=p(3);a(2),T(" ",f(3,8,"setupwizard.sqlinstructions")," "),a(6),d("ngModel",e.dbtype),a(4),d("ngModel",e.dbtype),a(6),T(" ",e.commandlist," "),a(2),x("pTooltip",f(21,10,"settings.common.clipboard_tooltip")),a(3),S(f(24,12,"setupwizard.runcommand")),a(5),T(" ",e.mySqlCommand," "),a(2),x("pTooltip",f(31,14,"settings.common.clipboard_tooltip"))}}function SK(t,i){if(1&t){const e=I();l(0,"div")(1,"h2"),g(2),m(3,"translate"),c(),_(4,TK,32,16,"div",13),l(5,"p",64),g(6),m(7,"translate"),c(),l(8,"table")(9,"tr")(10,"td",65),g(11),c(),l(12,"td",66)(13,"button",67),C("click",function(){v(e);const s=p(2);return s.copyToclipboard(s.tzCommand)}),m(14,"translate"),c()()()(),l(15,"p"),g(16),m(17,"translate"),c(),l(18,"p"),g(19),m(20,"translate"),c(),l(21,"p"),g(22),m(23,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"common.instructions")),a(2),d("ngIf",e.connectionFail),a(2),S(f(7,10,"setupwizard.tztables")),a(5),T(" ",e.tzCommand," "),a(2),x("pTooltip",f(14,12,"settings.common.clipboard_tooltip")),a(3),T("",f(17,14,"setupwizard.ignoremessages")," "),a(3),S(f(20,16,"setupwizard.savethis")),a(3),S(f(23,18,"setupwizard.restartbe"))}}const xK=function(t){return{"is-invalid":t}};function DK(t,i){if(1&t){const e=I();l(0,"div",7)(1,"div",8)(2,"label",9),g(3),m(4,"translate"),c(),l(5,"input",10,11),C("ngModelChange",function(s){return v(e),p().database.Host=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c(),_(10,aK,4,3,"div",13),c(),l(11,"div",8)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"input",15,16),C("ngModelChange",function(s){return v(e),p().database.Port=s}),c(),l(17,"small",17),g(18),m(19,"translate"),c(),_(20,lK,4,3,"div",13),c(),l(21,"div",8)(22,"label",18),g(23),m(24,"translate"),c(),l(25,"input",19,20),C("ngModelChange",function(s){return v(e),p().database.UserName=s}),c(),l(27,"small",21),g(28),m(29,"translate"),c(),_(30,cK,4,3,"div",13),c(),l(31,"div",8)(32,"label",22),g(33),m(34,"translate"),c(),l(35,"input",23,24),C("ngModelChange",function(s){return v(e),p().database.Password=s}),c(),l(37,"small",25),g(38),m(39,"translate"),c(),_(40,uK,4,3,"div",13),c(),l(41,"div",8)(42,"label",26),g(43),m(44,"translate"),c(),l(45,"input",27,28),C("ngModelChange",function(s){return v(e),p().database.Name=s}),c(),l(47,"small",29),g(48),m(49,"translate"),c(),_(50,dK,4,3,"div",13),c(),l(51,"div",30)(52,"p-checkbox",31),C("ngModelChange",function(s){return v(e),p().database.LocalEnabled=s}),m(53,"translate"),c(),l(54,"small",32),g(55),m(56,"translate"),c()(),_(57,pK,9,7,"div",33),l(58,"div",30)(59,"p-checkbox",34),C("ngModelChange",function(s){return v(e),p().database.WOLEnabled=s}),m(60,"translate"),c(),l(61,"small",32),g(62),m(63,"translate"),c()(),_(64,hK,8,12,"div",35),_(65,mK,8,12,"div",35),_(66,fK,9,7,"div",33),c(),l(67,"div")(68,"p-button",36),C("click",function(){return v(e),p().saveForm(!1)}),m(69,"translate"),c()(),l(70,"div",37),_(71,gK,3,3,"div",38),_(72,_K,4,3,"ng-template",null,39,Se),_(74,bK,3,6,"div",38),_(75,vK,4,6,"ng-template",null,40,Se),_(77,yK,3,6,"div",38),_(78,wK,4,3,"ng-template",null,41,Se),c(),_(80,SK,24,20,"div",13)}if(2&t){const e=F(6),n=F(16),s=F(26),o=F(36),r=F(46),u=F(73),h=F(76),b=F(79),y=p(),w=F(2);a(3),S(f(4,42,"setupwizard.MySQLServerIP")),a(2),d("ngModel",y.database.Host)("ngClass",U(72,xK,e.invalid)),a(3),S(f(9,44,"setupwizard.ipaddress_help")),a(2),d("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),S(f(14,46,"setupwizard.MySQLServerPort")),a(2),d("ngModel",y.database.Port),a(3),S(f(19,48,"setupwizard.port_help")),a(2),d("ngIf",n.invalid&&(n.dirty||n.touched)),a(3),S(f(24,50,"setupwizard.MySQLUser")),a(2),d("ngModel",y.database.UserName),a(3),S(f(29,52,"setupwizard.user_help")),a(2),d("ngIf",s.invalid&&(s.dirty||s.touched)),a(3),S(f(34,54,"setupwizard.MySQLPassword")),a(2),d("ngModel",y.database.Password),a(3),S(f(39,56,"setupwizard.password_help")),a(2),d("ngIf",o.invalid&&(o.dirty||o.touched)),a(3),S(f(44,58,"setupwizard.MySQLDatabaseName")),a(2),d("ngModel",y.database.Name),a(3),S(f(49,60,"setupwizard.dbname_help")),a(2),d("ngIf",r.invalid&&(r.dirty||r.touched)),a(2),x("label",f(53,62,"setupwizard.LocalEnabled_label")),d("ngModel",y.database.LocalEnabled)("binary",!0),a(3),T(" ",f(56,64,"setupwizard.LocalEnabled_desc")," "),a(2),d("ngIf",y.database.LocalEnabled),a(2),x("label",f(60,66,"setupwizard.WOLEnabled_label")),d("ngModel",y.database.WOLEnabled)("binary",!0),a(3),T(" ",f(63,68,"setupwizard.WOLEnabled_desc")," "),a(2),d("ngIf",y.database.WOLEnabled),a(1),d("ngIf",y.database.WOLEnabled),a(1),d("ngIf",y.database.WOLEnabled),a(2),x("label",f(69,70,"setupwizard.testConnection")),d("disabled",null==w.invalid||w.invalid),a(3),d("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Connected)("ngIfElse",u),a(3),d("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase)("ngIfElse",h),a(3),d("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Connected&&y.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase)("ngIfElse",b),a(3),d("ngIf",y.setupService.isDatabaseIgnored)}}function MK(t,i){1&t&&(M(0,"p-message",83),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function kK(t,i){1&t&&(M(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function IK(t,i){1&t&&(M(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"setupwizard.connectionfail"))}function EK(t,i){if(1&t){const e=I();l(0,"div",77)(1,"div",78),_(2,MK,2,3,"p-message",79),_(3,kK,2,3,"p-message",80),_(4,IK,2,3,"p-message",80),c(),l(5,"p-button",81),C("onClick",function(){v(e);const s=p(),o=F(2);return s.saveForm(!0),o.form.markAsPristine()}),m(6,"translate"),c(),l(7,"p-button",82),C("onClick",function(){return v(e),p().router.navigate(["setupwizard/selectlanguage"])}),m(8,"translate"),c()()}if(2&t){const e=p(),n=F(2);a(2),d("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),d("ngIf",e.connectionFail),a(1),x("label",f(6,7,"common.save")),d("disabled",(!n.dirty||e.setupService.schedulingEnabled)&&!e.setupService.isDatabaseIgnored),a(2),x("label",f(8,9,"common.next")),d("disabled",e.setupService.isDatabaseIgnored)}}let RK=(()=>{class t{constructor(e,n,s,o,r,u,h,b){this.router=e,this.configService=n,this.mythService=s,this.wizardService=o,this.translate=r,this.messageService=u,this.setupService=h,this.clipboard=b,this.successCount=0,this.errorCount=0,this.expectedCount=2,this.connectionFail=!1,this.commandlist="",this.mySqlCommand="sudo mysql -u root < setup.sql",this.tzCommand="mysql_tzinfo_to_sql /usr/share/zoneinfo | sudo mysql -u root mysql",this.dbtype="MySQL",this.msg_testconnection="setupwizard.testConnection",this.msg_connectionsuccess="setupwizard.connectionsuccess",this.msg_connectionfail="setupwizard.connectionfail",this.warningText="settings.common.warning",this.saveObserver={next:y=>{y.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:y=>{console.error(y),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.translate.get(this.msg_testconnection).subscribe(y=>this.msg_testconnection=y),this.translate.get(this.msg_connectionsuccess).subscribe(y=>this.msg_connectionsuccess=y),this.translate.get(this.msg_connectionfail).subscribe(y=>this.msg_connectionfail=y),this.translate.get(this.warningText).subscribe(y=>this.warningText=y)}ngOnInit(){this.wizardService.initDatabaseStatus(),this.m_wizardData=this.wizardService.getWizardData(),this.database=Object.assign({},this.m_wizardData.Database),this.wizardService.dbPromise.then(()=>{this.database=Object.assign({},this.m_wizardData.Database)},()=>this.errorCount++)}copyToclipboard(e){this.clipboard.copy(e)}saveForm(e){this.successCount=0,this.errorCount=0,this.expectedCount=1,this.connectionFail=!1;const n={HostName:this.database.Host,UserName:this.database.UserName,Password:this.database.Password,DBName:this.database.Name,dbPort:this.database.Port};this.commandlist="",this.mythService.TestDBSettings(n).subscribe(s=>{s.bool?e?this.configService.SetDatabaseCredentials(this.database).subscribe(this.saveObserver):this.messageService.add({severity:"success",life:5e3,summary:this.msg_testconnection,detail:this.msg_connectionsuccess}):(this.messageService.add({severity:"error",life:5e3,summary:this.msg_testconnection,detail:this.msg_connectionfail}),this.connectionFail=!0,this.setCommandList())})}setCommandList(){let e="";"MySQL"==this.dbtype&&(e="WITH mysql_native_password"),this.commandlist=`CREATE DATABASE IF NOT EXISTS ${this.database.Name};\nCREATE USER IF NOT EXISTS '${this.database.UserName}'@'localhost' IDENTIFIED ${e} by '${this.database.Password}';\nCREATE USER IF NOT EXISTS '${this.database.UserName}'@'%' IDENTIFIED ${e} by '${this.database.Password}';\nGRANT ALL ON ${this.database.Name}.* TO '${this.database.UserName}'@'localhost';\nGRANT ALL ON ${this.database.Name}.* TO '${this.database.UserName}'@'%';`}confirm(e){return re(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return t.\u0275fac=function(e){return new(e||t)(D(It),D(zr),D(Bt),D(xd),D(Oe),D(Gi),D(Me),D(lS))},t.\u0275cmp=z({type:t,selectors:[["app-dbsetup"]],viewQuery:function(e,n){if(1&e&&W(sK,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(o){return n.onWindowClose(o)},!1,ni)},features:[Pe([Gi])],decls:8,vars:0,consts:[["name","databaseForm",1,"mx-0","md:mx-3"],["databaseForm","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"formgrid","grid","form-group"],[1,"field","col-12","md:col-6"],["for","ipaddress",1,"label","block"],["pInputText","","id","ipaddress","type","text","aria-describedby","ipaddress-help","name","hostname","placeholder","Ex. 127.0.0.1 or localhost","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngClass","ngModelChange"],["host","ngModel"],["id","ipaddress-help"],[4,"ngIf"],["for","port",1,"label","block"],["pInputText","","id","port","type","number","aria-describedby","port-help","name","port","placeholder","Ex. 3306","min","0","max","65536",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["port","ngModel"],["id","port-help"],["for","user",1,"label","block"],["pInputText","","id","user","type","text","aria-describedby","user-help","name","user","placeholder","Ex. mythtv","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["user","ngModel"],["id","user-help"],["for","password",1,"label","block"],["pInputText","","id","password","type","text","aria-describedby","password-help","name","password","placeholder","Ex. mythtv","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["password","ngModel"],["id","password-help"],["for","dbname",1,"label","block"],["pInputText","","id","dbname","type","text","aria-describedby","dbname-help","name","dbname","placeholder","Ex. mythconverg","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["dbname","ngModel"],["id","dbname-help"],[1,"field","col-12"],["name","LocalEnabled",1,"mb-2","w-full","label","block",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["class","field col-12",4,"ngIf"],["name","WOLEnabled",1,"mb-2","w-full","label","block",3,"ngModel","binary","label","ngModelChange"],["class","field col-12 md:col-6",4,"ngIf"],["type","button",1,"mr-1","p-button-raised","p-button-secondary",3,"label","disabled","click"],[1,"pt-4",2,"display","flex"],[4,"ngIf","ngIfElse"],["notconnected",""],["nodatabase",""],["noschema",""],["id","address-help",1,"p-error","block"],[1,"p-error","block"],["for","LocalHostName",1,"label","block"],["pInputText","","id","LocalHostName","type","text","aria-describedby","LocalHostName-help","name","LocalHostName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["LocalHostName","ngModel"],["id","LocalHostName-help"],["for","WOLReconnect",1,"label","block"],["name","WOLReconnect","id","WOLReconnect",3,"ngModel","min","max","step","useGrouping","showButtons","ngModelChange"],["for","WOLRetry",1,"label","block"],["name","WOLRetry","id","WOLRetry",3,"ngModel","min","max","step","useGrouping","showButtons","ngModelChange"],["for","WOLCommand",1,"label","block"],["pInputText","","id","WOLCommand","type","text","aria-describedby","WOLCommand-help","name","WOLCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["WOLCommand","ngModel"],["id","WOLCommand-help"],["severity","success",1,"pr-2",3,"text"],[1,"pr-2","notconnected"],["severity","error",1,"",3,"text"],[1,"pr-2","nodatabase"],["severity","error",3,"text"],["severity","info",1,"pr-2",3,"text"],[1,"pr-2","noschema"],["severity","info",3,"text"],[1,""],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi pi-copy",1,"p-button-rounded","p-button-text",3,"pTooltip","click"],[1,"flex","pb-3"],[1,"flex-none","flex","align-items-center","label","block","pr-5"],[1,"flex-none","flex","align-items-center","pr-5"],["name","dbtype","value","MySQL","inputId","mysql",3,"ngModel","ngModelChange"],["for","mysql"],[1,"flex-none","flex","align-items-center"],["name","dbtype","value","MariaDB","inputId","mariadb",3,"ngModel","ngModelChange"],["for","mariadb"],[2,"white-space","pre-line"],[1,"grid","nogutter","m-5"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["icon","pi pi-angle-right","iconPos","right",1,"pr-3",3,"label","disabled","onClick"],["severity","success",3,"text"]],template:function(e,n){1&e&&(M(0,"p-toast"),l(1,"form",0,1)(3,"p-card",2),_(4,oK,2,3,"ng-template",3),_(5,rK,2,3,"ng-template",4),_(6,DK,81,74,"ng-template",5),_(7,EK,9,11,"ng-template",6),c()())},directives:[Sd,ze,Ue,He,Ne,ne,Ye,cl,we,_e,Le,Q,Iu,ku,Mu,on,pt,Ce,qe,Al,An,vt,Qt],pipes:[ce],styles:[".is-invalid{border-color:red}@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const LK=["hostaddress"];function OK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.hostaddress.title")," ")}function AK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.hostaddress.subtitle")," ")}function PK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.portRequired")))}function FK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.portRequired")))}function NK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),T(" ",f(3,1,"settings.hostaddress.pin_reqd")," "))}function VK(t,i){1&t&&(l(0,"div")(1,"small",52),g(2,"IPv4 address"),c()())}function BK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2,"IPv6 address"),c()())}function HK(t,i){if(1&t){const e=I();l(0,"div")(1,"div",9)(2,"label",41),g(3),m(4,"translate"),c(),l(5,"p-dropdown",42,43),C("ngModelChange",function(s){return v(e),p(2).m_HostAddressData.BackendServerIP=s}),c(),l(7,"small",44),g(8),m(9,"translate"),c(),_(10,VK,3,0,"div",14),c(),l(11,"div",9)(12,"label",45),g(13),m(14,"translate"),c(),l(15,"p-dropdown",46,47),C("ngModelChange",function(s){return v(e),p(2).m_HostAddressData.BackendServerIP6=s}),c(),l(17,"small",48),g(18),m(19,"translate"),c(),_(20,BK,3,0,"div",14),c(),l(21,"div",9)(22,"p-checkbox",49,50),C("ngModelChange",function(s){return v(e),p(2).m_HostAddressData.AllowLinkLocal=s}),m(24,"translate"),c(),l(25,"small",51),g(26),m(27,"translate"),c()()()}if(2&t){const e=F(6),n=F(16),s=p(2);a(3),S(f(4,14,"settings.hostaddress.ipv4_label")),a(2),d("options",s.m_IPsV4)("ngModel",s.m_HostAddressData.BackendServerIP),a(3),T(" ",f(9,16,"settings.hostaddress.ipv4_desc")," "),a(2),d("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),T(" ",f(14,18,"settings.hostaddress.ipv6_label")," "),a(2),d("options",s.m_IPsV6)("ngModel",s.m_HostAddressData.BackendServerIP6),a(3),T(" ",f(19,20,"settings.hostaddress.ipv6_desc")," "),a(2),d("ngIf",n.invalid&&(n.dirty||n.touched)),a(2),x("label",f(24,22,"settings.hostaddress.listenlinklocal_label")),d("ngModel",s.m_HostAddressData.AllowLinkLocal)("binary",!0),a(4),T(" ",f(27,24,"settings.hostaddress.listenlinklocal_desc")," ")}}function qK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2,"Primary IP address / DNS name is required"),c()())}function GK(t,i){1&t&&(l(0,"div")(1,"small",53),g(2),m(3,"translate"),c()()),2&t&&(a(2),T(" ",f(3,1,"settings.hostaddress.ismaster_hint")," "))}function UK(t,i){1&t&&(l(0,"div")(1,"small",54),g(2,"Hostname of master backend is required"),c()())}const uS=function(t){return{"is-invalid":t}};function zK(t,i){if(1&t){const e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5),m(6,"translate"),c(),l(7,"input",11,12),C("ngModelChange",function(s){return v(e),p().m_HostAddressData.BackendServerPort=s}),c(),l(9,"small",13),g(10),m(11,"translate"),c(),_(12,PK,4,3,"div",14),c(),l(13,"div",9)(14,"label",15),g(15),m(16,"translate"),c(),l(17,"input",16,17),C("ngModelChange",function(s){return v(e),p().m_HostAddressData.BackendStatusPort=s}),c(),l(19,"small",18),g(20),m(21,"translate"),c(),_(22,FK,4,3,"div",14),c()(),l(23,"p-fieldset",8),m(24,"translate"),l(25,"div",9)(26,"label",19),g(27),m(28,"translate"),c(),l(29,"input",20,21),C("ngModelChange",function(s){return v(e),p().m_HostAddressData.SecurityPin=s}),c(),l(31,"small",22),g(32),m(33,"translate"),c(),_(34,NK,4,3,"div",14),c()(),l(35,"p-fieldset",8),m(36,"translate"),l(37,"div",9)(38,"p-checkbox",23,24),C("ngModelChange",function(s){return v(e),p().m_HostAddressData.AllowConnFromAll=s}),m(40,"translate"),c(),l(41,"small",22),M(42,"div",25),m(43,"translate"),c()()(),l(44,"p-fieldset",8),m(45,"translate"),l(46,"div",9)(47,"p-checkbox",26,27),C("ngModelChange",function(s){return v(e),p().m_HostAddressData.ListenOnAllIps=s}),m(49,"translate"),c(),l(50,"small",28),g(51),m(52,"translate"),c()(),_(53,HK,28,26,"div",14),c(),l(54,"p-fieldset",8),m(55,"translate"),l(56,"div",9)(57,"div",9)(58,"label",29),g(59),m(60,"translate"),c(),l(61,"p-dropdown",30,31),C("ngModelChange",function(s){return v(e),p().m_HostAddressData.BackendServerAddr=s}),c(),l(63,"small",32),g(64),m(65,"translate"),c()(),_(66,qK,3,0,"div",14),c()(),l(67,"p-fieldset",8),m(68,"translate"),l(69,"div",9)(70,"p-checkbox",33,34),C("ngModelChange",function(s){return v(e),p().m_HostAddressData.IsMasterBackend=s})("onChange",function(){return v(e),p().setMaster()}),m(72,"translate"),c(),l(73,"small",35),g(74),m(75,"translate"),c(),_(76,GK,4,3,"div",14),c(),l(77,"div",9)(78,"label",36),g(79),m(80,"translate"),c(),l(81,"input",37,38),C("ngModelChange",function(s){return v(e),p().m_HostAddressData.MasterServerName=s}),c(),l(83,"small",39),M(84,"div",25),m(85,"translate"),c(),_(86,UK,3,0,"div",14),c()()()}if(2&t){const e=F(8),n=F(18),s=F(30),o=F(62),r=F(82),u=p();a(1),x("legend",f(2,44,"settings.hostaddress.panel.ports")),a(4),T(" ",f(6,46,"settings.hostaddress.backendport_label")," "),a(2),d("ngModel",u.m_HostAddressData.BackendServerPort)("ngClass",U(88,uS,e.invalid)),a(3),T(" ",f(11,48,"settings.hostaddress.backendport_desc")," "),a(2),d("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),T(" ",f(16,50,"settings.hostaddress.statusport_label")," "),a(2),d("ngModel",u.m_HostAddressData.BackendStatusPort)("ngClass",U(90,uS,n.invalid)),a(3),S(f(21,52,"settings.hostaddress.statusport_desc")),a(2),d("ngIf",n.invalid&&(n.dirty||n.touched)),a(1),x("legend",f(24,54,"settings.hostaddress.panel.pin")),a(4),T(" ",f(28,56,"settings.hostaddress.pin_label")," "),a(2),d("ngModel",u.m_HostAddressData.SecurityPin),a(3),T(" ",f(33,58,"settings.hostaddress.pin_desc")," "),a(2),d("ngIf",s.invalid&&(s.dirty||s.touched)),a(1),x("legend",f(36,60,"settings.hostaddress.panel.allowconn")),a(3),x("label",f(40,62,"settings.hostaddress.allowconn_label")),d("ngModel",u.m_HostAddressData.AllowConnFromAll)("binary",!0),a(4),d("innerHTML",f(43,64,"settings.hostaddress.allowconn_desc"),Ft),a(2),x("legend",f(45,66,"settings.hostaddress.panel.iplisten")),a(3),x("label",f(49,68,"settings.hostaddress.listenall_label")),d("ngModel",u.m_HostAddressData.ListenOnAllIps)("binary",!0),a(4),T(" ",f(52,70,"settings.hostaddress.listenall_desc")," "),a(2),d("ngIf",!u.m_HostAddressData.ListenOnAllIps),a(1),x("legend",f(55,72,"settings.hostaddress.panel.primaryadd")),a(5),T(" ",f(60,74,"settings.hostaddress.primaryip_label")," "),a(2),d("options",u.m_IPsAll)("ngModel",u.m_HostAddressData.BackendServerAddr)("editable",!0),a(3),T(" ",f(65,76,"settings.hostaddress.primaryip_desc")," "),a(2),d("ngIf",o.invalid&&(o.dirty||o.touched)),a(1),x("legend",f(68,78,"settings.hostaddress.panel.masterbe")),a(3),x("label",f(72,80,"settings.hostaddress.ismaster_label")),d("ngModel",u.m_HostAddressData.IsMasterBackend)("binary",!0),a(4),T(" ",f(75,82,"settings.hostaddress.ismaster_desc")," "),a(2),d("ngIf",u.m_showChangeHint),a(3),S(f(80,84,"settings.hostaddress.master_label")),a(2),d("ngModel",u.m_HostAddressData.MasterServerName),a(3),d("innerHTML",f(85,86,"settings.hostaddress.master_desc"),Ft),a(2),d("ngIf",r.invalid&&(r.dirty||r.touched))}}function jK(t,i){1&t&&(M(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function $K(t,i){1&t&&(M(0,"p-message",61),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function WK(t,i){if(1&t){const e=I();l(0,"div",55)(1,"div",56),_(2,jK,2,3,"p-message",57),_(3,$K,2,3,"p-message",58),c(),l(4,"p-button",59),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.m_HostAddressData.successCount>0&&0==e.m_HostAddressData.errorCount&&!n.dirty),a(1),d("ngIf",e.m_HostAddressData.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let KK=(()=>{class t{constructor(e,n){this.setupService=e,this.configService=n,this.m_IsMasterBackend=!1,this.m_showChangeHint=!1,this.m_HostAddressData=this.setupService.getHostAddressData(),setTimeout(()=>n.GetIPAddresses("All").subscribe(s=>this.m_IPsAll=s.IPAddresses),500),n.GetIPAddresses("IPv4").subscribe(s=>this.m_IPsV4=s.IPAddresses),n.GetIPAddresses("IPv6").subscribe(s=>this.m_IPsV6=s.IPAddresses)}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}setMaster(){void 0===this.m_savedMaster&&(this.m_savedMaster=this.m_HostAddressData.MasterServerName),this.m_HostAddressData.IsMasterBackend?(this.m_HostAddressData.MasterServerName=this.m_HostAddressData.thisHostName,this.m_showChangeHint=!1):this.m_HostAddressData.MasterServerName==this.m_savedMaster?this.m_showChangeHint=!0:this.m_HostAddressData.MasterServerName=this.m_savedMaster}saveForm(){console.log("save form clicked"),this.setupService.saveHostAddressData(this.currentForm)}}return t.\u0275fac=function(e){return new(e||t)(D(Me),D(zr))},t.\u0275cmp=z({type:t,selectors:[["app-host-address"]],viewQuery:function(e,n){if(1&e&&W(LK,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","hostaddress",1,"mx-0","md:mx-3"],["hostaddress","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend"],[1,"form-group","field"],["for","backendserverport",1,"label","block"],["pInputText","","id","backendserverport","type","number","name","backendserverport","placeholder","Ex. 6543","required","","min","0","max","65536",1,"mb-2","form-control","w-10rem",3,"ngModel","ngClass","ngModelChange"],["backendserverport","ngModel"],["id","backendserverport-help",1,"block"],[4,"ngIf"],["for","backendstatusport",1,"label","block"],["pInputText","","id","backendstatusport","type","number","name","backendstatusport","placeholder","Ex. 6544","required","","min","0","max","65536",1,"mb-2","form-control","w-10rem",3,"ngModel","ngClass","ngModelChange"],["backendstatusport","ngModel"],["id","backendstatusport-help",1,"block"],["for","securitypin",1,"label","block"],["pInputText","","id","securitypin","type","text","name","securitypin","placeholder","Ex. 1234","required","",1,"mb-2","form-control","w-10rem",3,"ngModel","ngModelChange"],["securitypin","ngModel"],["id","securitypin-help",1,"block"],["inputId","AllowConnFromAll","name","AllowConnFromAll",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AllowConnFromAll","ngModel"],[3,"innerHTML"],["inputId","ListenOnAllIps","name","ListenOnAllIps",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["ListenOnAllIps","ngModel"],["id","ListenOnAllIps-help",1,"block"],["for","BackendServerAddr",1,"label","block","w-full"],["name","BackendServerAddr","aria-describedby","BackendServerAddr-help",1,"block","mb-2","w-full",3,"options","ngModel","editable","ngModelChange"],["BackendServerAddr","ngModel"],["id","BackendServerAddr-help",1,"block","w-full"],["inputId","IsMasterBackend","name","IsMasterBackend",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange","onChange"],["IsMasterBackend","ngModel"],["id","IsMasterBackend-help",1,"block"],["for","MasterServerName",1,"label","block"],["pInputText","","id","MasterServerName","type","text","name","MasterServerName","placeholder","Ex. masterbe","disabled","disabled",1,"mb-2","form-control","w-15rem","read-only",3,"ngModel","ngModelChange"],["MasterServerName","ngModel"],["id","MasterServerName-help",1,"block"],[1,"p-error","block"],["for","BackendServerIP",1,"label","block"],["name","BackendServerIP","aria-describedby","BackendServerIP-help",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["BackendServerIP","ngModel"],["id","BackendServerIP-help",1,"block"],["for","BackendServerIP6",1,"label","block"],["name","BackendServerIP6","aria-describedby","BackendServerIP6-help",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["BackendServerIP6","ngModel"],["id","BackendServerIP6-help",1,"block"],["inputId","AllowLinkLocal","name","AllowLinkLocal",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AllowLinkLocal","ngModel"],["id","AllowLinkLocal-help",1,"block"],["id","LocalServerIP-help",1,"p-error","block"],["id","IsMasterBackend-help",1,"p-error","block"],["id","MasterServerName-help",1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,OK,2,3,"ng-template",3),_(4,AK,2,3,"ng-template",4),_(5,zK,87,92,"ng-template",5),_(6,WK,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,Iu,ku,Mu,Ye,cl,we,_e,Le,Q,on,Ot,qe,Ce],pipes:[ce],styles:["[_nghost-%COMP%] .p-dropdown{width:18rem}.read-only[_ngcontent-%COMP%]{opacity:1;background-color:#e0e0e0;border-style:solid;height:2rem}"]}),t})();const QK=["locale"];function JK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.locale.title")," ")}function YK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.locale.subtitle")," ")}function ZK(t,i){if(1&t){const e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5,"TV Format"),c(),l(6,"p-dropdown",11),C("ngModelChange",function(s){return v(e),p().TVFormat=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",13),g(12),m(13,"translate"),c(),l(14,"p-dropdown",14),C("ngModelChange",function(s){return v(e),p().VbiFormat=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()(),l(18,"p-fieldset",8),m(19,"translate"),l(20,"div",9)(21,"label",16),g(22),m(23,"translate"),c(),l(24,"p-dropdown",17),C("ngModelChange",function(s){return v(e),p().FreqTable=s}),c(),l(25,"small",18),g(26),m(27,"translate"),c()()()()}if(2&t){const e=p();a(1),x("legend",f(2,13,"settings.locale.tvformat_label")),a(5),d("options",e.m_TVFormats)("ngModel",e.TVFormat),a(2),T(" ",f(9,15,"settings.locale.tvformat_desc")," "),a(4),S(f(13,17,"settings.locale.vbiformat_label")),a(2),d("options",e.m_vbiFormats)("ngModel",e.VbiFormat),a(2),T(" ",f(17,19,"settings.locale.vbiformat_desc")," "),a(2),x("legend",f(19,21,"settings.locale.freqtable_label")),a(4),S(f(23,23,"settings.locale.channfreq_label")),a(2),d("options",e.m_FreqTables)("ngModel",e.FreqTable),a(2),T(" ",f(27,25,"settings.locale.channfreq_desc")," ")}}function XK(t,i){1&t&&(M(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function eQ(t,i){1&t&&(M(0,"p-message",25),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function tQ(t,i){if(1&t){const e=I();l(0,"div",19)(1,"div",20),_(2,XK,2,3,"p-message",21),_(3,eQ,2,3,"p-message",22),c(),l(4,"p-button",23),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}const nQ=function(){return{width:"100%"}};let iQ=(()=>{class t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.TVFormat="PAL",this.VbiFormat="None",this.FreqTable="us-bcast",this.LocaleObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.m_TVFormats=["NTSC","NTSC-JP","PAL","PAL-60","PAL-BG","PAL-DK","PAL-D","PAL-I","PAL-M","PAL-N","PAL-NC","SECAM","SECAM-D","DECAM-DK"],this.m_vbiFormats=["None","PAL teletext","NTSC closed caption"],this.m_FreqTables=["us-bcast","us-cable","us-cable-hrc","us-cable-irc","japan-bcast","japan-cable","europe-west","europe-east","italy","newzealand","australia","ireland","france","china-bcast","southafrica","argentina","australia-optus","singapore","malaysia","israel-hot-matav","try-all"],this.getLocaleData()}getLocaleData(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"TVFormat"}).subscribe({next:e=>this.TVFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"VbiFormat"}).subscribe({next:e=>this.VbiFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"FreqTable"}).subscribe({next:e=>this.FreqTable=e.String,error:()=>this.errorCount++})}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"TVFormat",Value:this.TVFormat}).subscribe(this.LocaleObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"VbiFormat",Value:this.VbiFormat}).subscribe(this.LocaleObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"FreqTable",Value:this.FreqTable}).subscribe(this.LocaleObs)}}return t.\u0275fac=function(e){return new(e||t)(D(Me),D(Bt))},t.\u0275cmp=z({type:t,selectors:[["app-locale"]],viewQuery:function(e,n){if(1&e&&W(QK,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:3,consts:[["name","locale",1,"ml-3","mr-3",3,"ngSubmit"],["locale","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","TV Formats"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend"],[1,"form-group","field"],["for","tvformat",1,"label","block"],["name","tvformat","aria-describedby","tvformat-help",1,"w-full","mb-2",3,"options","ngModel","ngModelChange"],["id","tvformat-help",1,"block","mt-2"],["for","vbiformat",1,"label","block"],["name","vbiformat","aria-describedby","vbiformat-help",1,"mb-5","w-full",3,"options","ngModel","ngModelChange"],["id","vbiformat-help",1,"block","mt-2"],["for","freqtable",1,"label","block"],["name","freqtable",1,"mb-2","w-full",3,"options","ngModel","ngModelChange"],["id","freqtable-help",1,"block","pt-2"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),C("ngSubmit",function(){return n.saveForm()}),l(2,"p-card",2),_(3,JK,2,3,"ng-template",3),_(4,YK,2,3,"ng-template",4),_(5,ZK,28,27,"ng-template",5),_(6,tQ,6,6,"ng-template",6),c()()),2&e&&(a(2),q(A(2,nQ)))},directives:[ze,Ue,He,Ne,ne,Ui,Ot,we,_e,Q,qe,Ce],pipes:[ce],styles:["[_nghost-%COMP%] .p-dropdown{width:18rem}"]}),t})();const sQ=["miscsettings"];function oQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.misc.title")," ")}function rQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.misc.subtitle")," ")}function aQ(t,i){if(1&t){const e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"p-checkbox",10),C("ngModelChange",function(s){return v(e),p().MasterBackendOverride=s}),m(5,"translate"),c(),l(6,"small",11),g(7),m(8,"translate"),c()(),l(9,"div",9)(10,"p-checkbox",12),C("ngModelChange",function(s){return v(e),p().DeletesFollowLinks=s}),m(11,"translate"),c(),l(12,"small",11),g(13),m(14,"translate"),c()(),l(15,"div",9)(16,"p-checkbox",13),C("ngModelChange",function(s){return v(e),p().TruncateDeletesSlowly=s}),m(17,"translate"),c(),l(18,"small",11),g(19),m(20,"translate"),c()(),l(21,"div",9)(22,"label",14),g(23),m(24,"translate"),c(),l(25,"p-inputNumber",15),C("ngModelChange",function(s){return v(e),p().HDRingbufferSize=s}),c(),l(26,"small",11),g(27),m(28,"translate"),c()(),l(29,"div",9)(30,"label",16),g(31),m(32,"translate"),c(),l(33,"p-dropdown",17),C("ngModelChange",function(s){return v(e),p().StorageScheduler=s}),c(),l(34,"small",11),g(35),m(36,"translate"),c()()(),l(37,"p-fieldset",8),m(38,"translate"),l(39,"div",9)(40,"label",18),g(41),m(42,"translate"),c(),l(43,"p-dropdown",19),C("ngModelChange",function(s){return v(e),p().UPNPWmpSource=s}),c(),l(44,"small",11),g(45),m(46,"translate"),c()()(),l(47,"div",20)(48,"div",9)(49,"label",21),g(50),m(51,"translate"),c(),l(52,"input",22),C("ngModelChange",function(s){return v(e),p().MiscStatusScript=s}),c(),l(53,"small",11),g(54),m(55,"translate"),l(56,"a",23),g(57,"Miscellaneous Status Information"),c()()(),l(58,"div",9)(59,"p-checkbox",24),C("ngModelChange",function(s){return v(e),p().DisableAutomaticBackup=s}),m(60,"translate"),c(),l(61,"small",11),g(62),m(63,"translate"),c()(),l(64,"div",9)(65,"p-checkbox",25),C("ngModelChange",function(s){return v(e),p().DisableFirewireReset=s}),m(66,"translate"),c(),l(67,"small",11),g(68),m(69,"translate"),c()()()()}if(2&t){const e=p();a(1),x("legend",f(2,44,"settings.misc.panel_filemgmt")),d("toggleable",!0)("collapsed",!0),a(3),x("label",f(5,46,"settings.misc.mbo_label")),d("ngModel",e.MasterBackendOverride)("binary",!0),a(3),T(" ",f(8,48,"settings.misc.mbo_desc")," "),a(3),x("label",f(11,50,"settings.misc.follow_label")),d("ngModel",e.DeletesFollowLinks)("binary",!0),a(3),T(" ",f(14,52,"settings.misc.follow_desc")," "),a(3),x("label",f(17,54,"settings.misc.slowly_label")),d("ngModel",e.TruncateDeletesSlowly)("binary",!0),a(3),T(" ",f(20,56,"settings.misc.slowly_desc")," "),a(4),S(f(24,58,"settings.misc.ringbuf_label")),a(2),d("ngModel",e.HDRingbufferSize)("showButtons",!0)("min",4700)("max",94e3)("step",4700),a(2),T(" ",f(28,60,"settings.misc.ringbuf_desc")," "),a(4),S(f(32,62,"settings.misc.sg_label")),a(2),d("options",e.soptions)("ngModel",e.StorageScheduler),a(2),T(" ",f(36,64,"settings.misc.sg_desc")," "),a(2),x("legend",f(38,66,"settings.misc.panel_upnp")),d("toggleable",!0)("collapsed",!0),a(4),S(f(42,68,"settings.misc.upnp_label")),a(2),d("options",e.uoptions)("ngModel",e.UPNPWmpSource),a(2),T(" ",f(46,70,"settings.misc.upnp_desc")," "),a(5),S(f(51,72,"settings.misc.statapp_label")),a(2),d("ngModel",e.MiscStatusScript),a(2),T(" ",f(55,74,"settings.misc.statapp_desc")," "),a(5),x("label",f(60,76,"settings.misc.disback_label")),d("ngModel",e.DisableAutomaticBackup)("binary",!0),a(3),T(" ",f(63,78,"settings.misc.disback_desc")," "),a(3),x("label",f(66,80,"settings.misc.disfwr_label")),d("ngModel",e.DisableFirewireReset)("binary",!0),a(3),T(" ",f(69,82,"settings.misc.disfwr_desc")," ")}}function lQ(t,i){1&t&&(M(0,"p-message",31),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function cQ(t,i){1&t&&(M(0,"p-message",32),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function uQ(t,i){if(1&t){const e=I();l(0,"div",26)(1,"div",27),_(2,lQ,2,3,"p-message",28),_(3,cQ,2,3,"p-message",29),c(),l(4,"p-button",30),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0&&!n.dirty),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let dQ=(()=>{class t{constructor(e,n,s){this.setupService=e,this.translate=n,this.mythService=s,this.successCount=0,this.errorCount=0,this.MasterBackendOverride=!1,this.DeletesFollowLinks=!1,this.TruncateDeletesSlowly=!1,this.HDRingbufferSize=9400,this.StorageScheduler="BalancedFreeSpace",this.UPNPWmpSource="0",this.MiscStatusScript="",this.DisableAutomaticBackup=!1,this.DisableFirewireReset=!1,this.hostName="",this.soptions=[{name:"settings.misc.sg_balfree",code:"BalancedFreeSpace"},{name:"settings.misc.sg_balpercent",code:"BalancedPercFreeSpace"},{name:"settings.misc.bal_io",code:"BalancedDiskIO"},{name:"settings.misc.sg_combination",code:"Combination"}],this.uoptions=[{name:"settings.misc.upnp_recs",code:"0"},{name:"settings.misc.upnp_videos",code:"1"}],this.miscObserver={next:o=>{o.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:o=>{console.error(o),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},n.get(this.soptions[0].name).subscribe(o=>this.soptions[0].name=o),n.get(this.soptions[1].name).subscribe(o=>this.soptions[1].name=o),n.get(this.soptions[2].name).subscribe(o=>this.soptions[2].name=o),n.get(this.soptions[3].name).subscribe(o=>this.soptions[3].name=o),n.get(this.uoptions[0].name).subscribe(o=>this.uoptions[0].name=o),n.get(this.uoptions[1].name).subscribe(o=>this.uoptions[1].name=o),this.mythService.GetHostName().subscribe({next:o=>{this.hostName=o.String,this.getMiscellaneousData()},error:()=>this.errorCount++})}getMiscellaneousData(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterBackendOverride",Default:"0"}).subscribe({next:e=>this.MasterBackendOverride="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"DeletesFollowLinks",Default:"0"}).subscribe({next:e=>this.DeletesFollowLinks="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"TruncateDeletesSlowly",Default:"0"}).subscribe({next:e=>this.TruncateDeletesSlowly="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"HDRingbufferSize",Default:"9400"}).subscribe({next:e=>this.HDRingbufferSize=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"StorageScheduler",Default:"BalancedFreeSpace"}).subscribe({next:e=>this.StorageScheduler=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UPNPWmpSource",Default:"0"}).subscribe({next:e=>this.UPNPWmpSource=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"MiscStatusScript",Default:""}).subscribe({next:e=>this.MiscStatusScript=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"DisableAutomaticBackup",Default:"0"}).subscribe({next:e=>this.DisableAutomaticBackup="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"DisableFirewireReset",Default:"0"}).subscribe({next:e=>this.DisableFirewireReset="1"==e.String,error:()=>this.errorCount++})}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MasterBackendOverride",Value:this.MasterBackendOverride?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"DeletesFollowLinks",Value:this.DeletesFollowLinks?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"TruncateDeletesSlowly",Value:this.TruncateDeletesSlowly?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"HDRingbufferSize",Value:String(this.HDRingbufferSize)}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"StorageScheduler",Value:this.StorageScheduler}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UPNPWmpSource",Value:this.UPNPWmpSource}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"MiscStatusScript",Value:this.MiscStatusScript}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"DisableAutomaticBackup",Value:this.DisableAutomaticBackup?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"DisableFirewireReset",Value:this.DisableFirewireReset?"1":"0"}).subscribe(this.miscObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Me),D(Oe),D(Bt))},t.\u0275cmp=z({type:t,selectors:[["app-misc-settings"]],viewQuery:function(e,n){if(1&e&&W(sQ,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","miscsettings",1,"ml-3","mr-3"],["miscsettings","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],[1,"form-group","field"],["name","MasterBackendOverride",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["name","DeletesFollowLinks",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["name","TruncateDeletesSlowly",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["for","HDRingbufferSize",1,"label","block"],["name","HDRingbufferSize","id","HDRingbufferSize",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","StorageScheduler",1,"label","block"],["optionLabel","name","optionValue","code","name","StorageScheduler",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["for","UPNPWmpSource",1,"label","block"],["optionLabel","name","optionValue","code","name","UPNPWmpSource",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],[1,"mb-4","w-full"],["for","MiscStatusScript",1,"label","block"],["pInputText","","id","MiscStatusScript","name","MiscStatusScript",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["href","http://www.mythtv.org/wiki/Miscellaneous_Status_Information","target","_blank"],["name","DisableAutomaticBackup",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["name","DisableFirewireReset",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,oQ,2,3,"ng-template",3),_(4,rQ,2,3,"ng-template",4),_(5,aQ,70,84,"ng-template",5),_(6,uQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,on,we,_e,pt,Ot,Ye,Q,qe,Ce],pipes:[ce],styles:["a[_ngcontent-%COMP%]:link, a[_ngcontent-%COMP%]:visited, a[_ngcontent-%COMP%]:active{background-color:#fff}"]}),t})();const pQ=["eitscanopt"];function hQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.eit.title")," ")}function mQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.eit.subtitle")," ")}function fQ(t,i){if(1&t){const e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",11),C("ngModelChange",function(s){return v(e),p().EITTransportTimeout=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",13),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",14),C("ngModelChange",function(s){return v(e),p().EITCrawIdleStart=s}),c(),l(15,"small",12),g(16),m(17,"translate"),c()(),l(18,"div",9)(19,"label",15),g(20),m(21,"translate"),c(),l(22,"p-inputNumber",16),C("ngModelChange",function(s){return v(e),p().EITScanPeriod=s}),c(),l(23,"small",12),g(24),m(25,"translate"),c()()()()}if(2&t){const e=p();a(4),S(f(5,21,"settings.eit.timeout_label")),a(2),d("ngModel",e.EITTransportTimeout)("showButtons",!0)("min",1)("max",15)("step",1),a(2),T(" ",f(9,23,"settings.eit.timeout_desc")," "),a(4),S(f(13,25,"settings.eit.crawl_label")),a(2),d("ngModel",e.EITCrawIdleStart)("showButtons",!0)("min",30)("max",7200)("step",30),a(2),T(" ",f(17,27,"settings.eit.crawl_desc")," "),a(4),S(f(21,29,"settings.eit.scan_label")),a(2),d("ngModel",e.EITScanPeriod)("showButtons",!0)("min",5)("max",60)("step",5),a(2),T(" ",f(25,31,"settings.eit.scan_desc")," ")}}function gQ(t,i){1&t&&(M(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function _Q(t,i){1&t&&(M(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function bQ(t,i){if(1&t){const e=I();l(0,"div",17)(1,"div",18),_(2,gQ,2,3,"p-message",19),_(3,_Q,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let vQ=(()=>{class t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.EITTransportTimeout=5,this.EITCrawIdleStart=60,this.EITScanPeriod=15,this.eitObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getEITScanner()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getEITScanner(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITTransportTimeout",Default:"5"}).subscribe({next:e=>this.EITTransportTimeout=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITCrawIdleStart",Default:"60"}).subscribe({next:e=>this.EITCrawIdleStart=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITScanPeriod",Default:"15"}).subscribe({next:e=>this.EITScanPeriod=Number(e.String),error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITTransportTimeout",Value:String(this.EITTransportTimeout)}).subscribe(this.eitObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITCrawIdleStart",Value:String(this.EITCrawIdleStart)}).subscribe(this.eitObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITScanPeriod",Value:String(this.EITScanPeriod)}).subscribe(this.eitObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Me),D(Bt))},t.\u0275cmp=z({type:t,selectors:[["app-eit-scanner"]],viewQuery:function(e,n){if(1&e&&W(pQ,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","eitscanopt",1,"ml-3","mr-3"],["eitscanopt","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","EITTransportTimeout",1,"label","block"],["name","EITTransportTimeout","id","EITTransportTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","EITCrawIdleStart",1,"label","block"],["name","EITCrawIdleStart","id","EITCrawIdleStart",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","EITScanPeriod",1,"label","block"],["name","EITScanPeriod","id","EITScanPeriod",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,hQ,2,3,"ng-template",3),_(4,mQ,2,3,"ng-template",4),_(5,fQ,26,33,"ng-template",5),_(6,bQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,pt,we,_e,Q,qe,Ce],pipes:[ce],styles:[""]}),t})();const CQ=["shutwakeopt"];function yQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.shutwake.title")," ")}function wQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.shutwake.subtitle")," ")}function TQ(t,i){if(1&t){const e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"input",11),C("ngModelChange",function(s){return v(e),p().startupCommand=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"p-checkbox",13),C("ngModelChange",function(s){return v(e),p().blockSDWUwithoutClient=s}),m(12,"translate"),c(),l(13,"small",12),g(14),m(15,"translate"),c()(),l(16,"div",9)(17,"label",14),g(18),m(19,"translate"),c(),l(20,"p-inputNumber",15),C("ngModelChange",function(s){return v(e),p().idleTimeoutSecs=s}),c(),l(21,"small",12),g(22),m(23,"translate"),c()(),l(24,"div",9)(25,"label",16),g(26),m(27,"translate"),c(),l(28,"p-inputNumber",17),C("ngModelChange",function(s){return v(e),p().idleWaitForRecordingTime=s}),c(),l(29,"small",12),g(30),m(31,"translate"),c()(),l(32,"div",9)(33,"label",18),g(34),m(35,"translate"),c(),l(36,"p-inputNumber",19),C("ngModelChange",function(s){return v(e),p().StartupSecsBeforeRecording=s}),c(),l(37,"small",12),g(38),m(39,"translate"),c()(),l(40,"div",9)(41,"label",20),g(42),m(43,"translate"),c(),l(44,"input",21),C("ngModelChange",function(s){return v(e),p().WakeupTimeFormat=s}),c(),l(45,"small",12),g(46),m(47,"translate"),c()(),l(48,"div",9)(49,"label",22),g(50),m(51,"translate"),c(),l(52,"input",23),C("ngModelChange",function(s){return v(e),p().SetWakeuptimeCommand=s}),c(),l(53,"small",12),g(54),m(55,"translate"),c()(),l(56,"div",9)(57,"label",24),g(58),m(59,"translate"),c(),l(60,"input",25),C("ngModelChange",function(s){return v(e),p().ServerHaltCommand=s}),c(),l(61,"small",12),g(62),m(63,"translate"),c()(),l(64,"div",9)(65,"label",26),g(66),m(67,"translate"),c(),l(68,"input",27),C("ngModelChange",function(s){return v(e),p().preSDWUCheckCommand=s}),c(),l(69,"small",12),g(70),m(71,"translate"),c()()()()}if(2&t){const e=p();a(4),S(f(5,40,"settings.shutwake.startcmd_label")),a(2),d("ngModel",e.startupCommand),a(2),T(" ",f(9,42,"settings.shutwake.startcmd_desc")," "),a(3),x("label",f(12,44,"settings.shutwake.block_label")),d("ngModel",e.blockSDWUwithoutClient)("binary",!0),a(3),T(" ",f(15,46,"settings.shutwake.block_desc")," "),a(4),T("",f(19,48,"settings.shutwake.idletime_label"),"}"),a(2),d("ngModel",e.idleTimeoutSecs)("showButtons",!0)("min",0)("max",1200)("step",5),a(2),T(" ",f(23,50,"settings.shutwake.idletime_desc")," "),a(4),S(f(27,52,"settings.shutwake.maxwait_label")),a(2),d("ngModel",e.idleWaitForRecordingTime)("showButtons",!0)("min",0)("max",300)("step",1),a(2),T(" ",f(31,54,"settings.shutwake.maxwait_desc")," "),a(4),S(f(35,56,"settings.shutwake.startbefore_label")),a(2),d("ngModel",e.StartupSecsBeforeRecording)("showButtons",!0)("min",0)("max",300)("step",1),a(2),T(" ",f(39,58,"settings.shutwake.startbefore_desc")," "),a(4),S(f(43,60,"settings.shutwake.timeformat_label")),a(2),d("ngModel",e.WakeupTimeFormat),a(2),T(" ",f(47,62,"settings.shutwake.timeformat_desc")," "),a(4),S(f(51,64,"settings.shutwake.timecmd_label")),a(2),d("ngModel",e.SetWakeuptimeCommand),a(2),T(" ",f(55,66,"settings.shutwake.timecmd_desc")," "),a(4),S(f(59,68,"settings.shutwake.serverhalt_label")),a(2),d("ngModel",e.ServerHaltCommand),a(2),T(" ",f(63,70,"settings.shutwake.serverhalt_desc")," "),a(4),S(f(67,72,"settings.shutwake.preshut_label")),a(2),d("ngModel",e.preSDWUCheckCommand),a(2),T(" ",f(71,74,"settings.shutwake.preshut_desc")," ")}}function SQ(t,i){1&t&&(M(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function xQ(t,i){1&t&&(M(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function DQ(t,i){if(1&t){const e=I();l(0,"div",28)(1,"div",29),_(2,SQ,2,3,"p-message",30),_(3,xQ,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let MQ=(()=>{class t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.startupCommand="",this.blockSDWUwithoutClient=!0,this.idleTimeoutSecs=0,this.idleWaitForRecordingTime=15,this.StartupSecsBeforeRecording=120,this.WakeupTimeFormat="hh =mm yyyy-MM-dd",this.SetWakeuptimeCommand="",this.ServerHaltCommand="sudo /sbin/halt -p",this.preSDWUCheckCommand="",this.swObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getShutWake()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getShutWake(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"startupCommand",Default:""}).subscribe({next:e=>this.startupCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"blockSDWUwithoutClient",Default:"1"}).subscribe({next:e=>this.blockSDWUwithoutClient="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"idleTimeoutSecs",Default:"0"}).subscribe({next:e=>this.idleTimeoutSecs=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"idleWaitForRecordingTime",Default:""}).subscribe({next:e=>this.idleWaitForRecordingTime=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"StartupSecsBeforeRecording",Default:"120"}).subscribe({next:e=>this.StartupSecsBeforeRecording=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WakeupTimeFormat",Default:"hh:mm yyyy-MM-dd"}).subscribe({next:e=>this.WakeupTimeFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"SetWakeuptimeCommand",Default:""}).subscribe({next:e=>this.SetWakeuptimeCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"ServerHaltCommand",Default:"sudo /sbin/halt -p"}).subscribe({next:e=>this.ServerHaltCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"preSDWUCheckCommand",Default:""}).subscribe({next:e=>this.preSDWUCheckCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"startupCommand",Value:this.startupCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"blockSDWUwithoutClient",Value:this.blockSDWUwithoutClient?"1":"0"}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"idleTimeoutSecs",Value:String(this.idleTimeoutSecs)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"idleWaitForRecordingTime",Value:String(this.idleWaitForRecordingTime)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"StartupSecsBeforeRecording",Value:String(this.StartupSecsBeforeRecording)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WakeupTimeFormat",Value:this.WakeupTimeFormat}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"SetWakeuptimeCommand",Value:this.SetWakeuptimeCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"ServerHaltCommand",Value:this.ServerHaltCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"preSDWUCheckCommand",Value:this.preSDWUCheckCommand}).subscribe(this.swObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Me),D(Bt))},t.\u0275cmp=z({type:t,selectors:[["app-shutdown-wakeup"]],viewQuery:function(e,n){if(1&e&&W(CQ,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","shutwakeopt",1,"ml-3","mr-3"],["shutwakeopt","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","startupCommand",1,"label","block"],["pInputText","","id","startupCommand","name","startupCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"block"],["inputId","blockSDWUwithoutClient","name","blockSDWUwithoutClient",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["for","idleTimeoutSecs",1,"label","block"],["name","idleTimeoutSecs","id","idleTimeoutSecs",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","idleWaitForRecordingTime",1,"label","block"],["name","idleWaitForRecordingTime","id","idleWaitForRecordingTime",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","StartupSecsBeforeRecording",1,"label","block"],["name","StartupSecsBeforeRecording","id","StartupSecsBeforeRecording",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","WakeupTimeFormat",1,"label","block"],["pInputText","","id","WakeupTimeFormat","name","WakeupTimeFormat",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SetWakeuptimeCommand",1,"label","block"],["pInputText","","id","SetWakeuptimeCommand","name","SetWakeuptimeCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","ServerHaltCommand",1,"label","block"],["pInputText","","id","ServerHaltCommand","name","ServerHaltCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","preSDWUCheckCommand",1,"label","block"],["pInputText","","id","preSDWUCheckCommand","name","preSDWUCheckCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,yQ,2,3,"ng-template",3),_(4,wQ,2,3,"ng-template",4),_(5,TQ,72,76,"ng-template",5),_(6,DQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ye,we,_e,on,pt,Q,qe,Ce],pipes:[ce],styles:[""]}),t})();const kQ=["backendwakeup"];function IQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.backendwake.title")," ")}function EQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.backendwake.subtitle")," ")}function RQ(t,i){if(1&t){const e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5),m(6,"translate"),c(),l(7,"p-inputNumber",11),C("ngModelChange",function(s){return v(e),p().WOLbackendReconnectWaitTime=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",9)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return v(e),p().WOLbackendConnectRetry=s}),c(),l(16,"small",12),g(17),m(18,"translate"),c()(),l(19,"div",9)(20,"label",15),g(21),m(22,"translate"),c(),l(23,"input",16),C("ngModelChange",function(s){return v(e),p().WOLbackendCommand=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()()(),l(27,"p-fieldset",8),m(28,"translate"),l(29,"div",9)(30,"label",17),g(31),m(32,"translate"),c(),l(33,"input",18),C("ngModelChange",function(s){return v(e),p().SleepCommand=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",9)(38,"label",19),g(39),m(40,"translate"),c(),l(41,"input",20),C("ngModelChange",function(s){return v(e),p().WakeUpCommand=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()()()()}if(2&t){const e=p();a(1),x("legend",f(2,29,"settings.backendwake.master.title")),d("toggleable",!0)("collapsed",!0),a(4),S(f(6,31,"settings.backendwake.master.delay_label")),a(2),d("ngModel",e.WOLbackendReconnectWaitTime)("showButtons",!0)("min",0)("max",1200)("step",5),a(2),T(" ",f(10,33,"settings.backendwake.master.delay_desc")," "),a(4),S(f(14,35,"settings.backendwake.master.attempts_label")),a(2),d("ngModel",e.WOLbackendConnectRetry)("showButtons",!0)("min",1)("max",60)("step",1),a(2),T(" ",f(18,37,"settings.backendwake.master.attempts_desc")," "),a(4),S(f(22,39,"settings.backendwake.master.cmd_label")),a(2),d("ngModel",e.WOLbackendCommand),a(2),T(" ",f(26,41,"settings.backendwake.master.cmd_desc")," "),a(2),x("legend",f(28,43,"settings.backendwake.slave.title")),d("toggleable",!0)("collapsed",!0),a(4),S(f(32,45,"settings.backendwake.slave.sleep_label")),a(2),d("ngModel",e.SleepCommand),a(2),T(" ",f(36,47,"settings.backendwake.slave.sleep_desc")," "),a(4),S(f(40,49,"settings.backendwake.slave.wake_label")),a(2),d("ngModel",e.WakeUpCommand),a(2),T(" ",f(44,51,"settings.backendwake.slave.wake_desc")," ")}}function LQ(t,i){1&t&&(M(0,"p-message",26),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function OQ(t,i){1&t&&(M(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function AQ(t,i){if(1&t){const e=I();l(0,"div",21)(1,"div",22),_(2,LQ,2,3,"p-message",23),_(3,OQ,2,3,"p-message",24),c(),l(4,"p-button",25),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let PQ=(()=>{class t{constructor(e,n){this.setupService=e,this.mythService=n,this.hostName="",this.successCount=0,this.errorCount=0,this.WOLbackendReconnectWaitTime=0,this.WOLbackendConnectRetry=5,this.WOLbackendCommand="",this.SleepCommand="",this.WakeUpCommand="",this.bewObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getBackendWake(){this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.getSettings()},error:()=>this.errorCount++})}getSettings(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendReconnectWaitTime",Default:"0"}).subscribe({next:e=>this.WOLbackendReconnectWaitTime=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendConnectRetry",Default:"5"}).subscribe({next:e=>this.WOLbackendConnectRetry=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendCommand",Default:""}).subscribe({next:e=>this.WOLbackendCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"SleepCommand",Default:""}).subscribe({next:e=>this.SleepCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"WakeUpCommand",Default:""}).subscribe({next:e=>this.WakeUpCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendReconnectWaitTime",Value:String(this.WOLbackendReconnectWaitTime)}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendConnectRetry",Value:String(this.WOLbackendConnectRetry)}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendCommand",Value:this.WOLbackendCommand}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"SleepCommand",Value:this.SleepCommand}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"WakeUpCommand",Value:this.WakeUpCommand}).subscribe(this.bewObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Me),D(Bt))},t.\u0275cmp=z({type:t,selectors:[["app-backend-wakeup"]],viewQuery:function(e,n){if(1&e&&W(kQ,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","backendwakeup",1,"ml-3","mr-3"],["backendwakeup","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],[1,"form-group","field"],["for","WOLbackendReconnectWaitTime",1,"label","block"],["name","WOLbackendReconnectWaitTime","id","WOLbackendReconnectWaitTime",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","WOLbackendConnectRetry",1,"label","block"],["name","WOLbackendConnectRetry","id","WOLbackendConnectRetry",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","WOLbackendCommand",1,"label","block"],["pInputText","","id","WOLbackendCommand","name","WOLbackendCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SleepCommand",1,"label","block"],["pInputText","","id","SleepCommand","name","SleepCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","WakeUpCommand",1,"label","block"],["pInputText","","id","WakeUpCommand","name","WakeUpCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,IQ,2,3,"ng-template",3),_(4,EQ,2,3,"ng-template",4),_(5,RQ,45,53,"ng-template",5),_(6,AQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,pt,we,_e,Ye,Q,qe,Ce],pipes:[ce],styles:[""]}),t})();const FQ=["backendcontrol"];function NQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.backendctrl.title")," ")}function VQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.backendctrl.subtitle")," ")}function BQ(t,i){if(1&t){const e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"input",11,12),C("ngModelChange",function(s){return v(e),p().BackendStopCommand=s}),c(),l(8,"small",13),g(9),m(10,"translate"),c()(),l(11,"div",9)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"input",15,12),C("ngModelChange",function(s){return v(e),p().BackendStartCommand=s}),c(),l(17,"small",13),g(18),m(19,"translate"),c()()()()}if(2&t){const e=p();a(4),S(f(5,6,"settings.backendctrl.stop_label")),a(2),d("ngModel",e.BackendStopCommand),a(3),T(" ",f(10,8,"settings.backendctrl.stop_desc")," "),a(4),S(f(14,10,"settings.backendctrl.start_label")),a(2),d("ngModel",e.BackendStartCommand),a(3),T(" ",f(19,12,"settings.backendctrl.start_desc")," ")}}function HQ(t,i){1&t&&(M(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function qQ(t,i){1&t&&(M(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function GQ(t,i){if(1&t){const e=I();l(0,"div",16)(1,"div",17),_(2,HQ,2,3,"p-message",18),_(3,qQ,2,3,"p-message",19),c(),l(4,"p-button",20),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let UQ=(()=>{class t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.BackendStopCommand="killall mythbackend",this.BackendStartCommand="mythbackend",this.becObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getBackendControl(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"BackendStopCommand",Default:"killall mythbackend"}).subscribe({next:e=>this.BackendStopCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"BackendStartCommand",Default:"mythbackend"}).subscribe({next:e=>this.BackendStartCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"BackendStopCommand",Value:this.BackendStopCommand}).subscribe(this.becObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"BackendStartCommand",Value:this.BackendStartCommand}).subscribe(this.becObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Me),D(Bt))},t.\u0275cmp=z({type:t,selectors:[["app-backend-control"]],viewQuery:function(e,n){if(1&e&&W(FQ,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","backendcontrol",1,"ml-3","mr-3"],["backendcontrol","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","BackendStopCommand",1,"label","block"],["pInputText","","id","BackendStopCommand","name","BackendStopCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["MiscStatusScript","ngModel"],[1,"block"],["for","BackendStartCommand",1,"label","block"],["pInputText","","id","BackendStartCommand","name","BackendStartCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,NQ,2,3,"ng-template",3),_(4,VQ,2,3,"ng-template",4),_(5,BQ,20,14,"ng-template",5),_(6,GQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ye,we,_e,Q,qe,Ce],pipes:[ce],styles:[""]}),t})();const zQ=["jobqbackend"],jQ=["JobQueueWindowStartHT"],$Q=["JobQueueWindowEndHT"];function WQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.jobqbackend.title")," ")}function KQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.jobqbackend.subtitle")," ")}function QQ(t,i){if(1&t){const e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",11),C("ngModelChange",function(s){return v(e),p().JobQueueMaxSimultaneousJobs=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",13),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",14),C("ngModelChange",function(s){return v(e),p().JobQueueCheckFrequency=s}),c(),l(15,"small",12),g(16),m(17,"translate"),c()(),l(18,"div",9)(19,"label",15),g(20),m(21,"translate"),c(),l(22,"p-calendar",16,17),C("ngModelChange",function(s){return v(e),p().JobQueueWindowStart=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()(),l(27,"div",9)(28,"label",18),g(29),m(30,"translate"),c(),l(31,"p-calendar",19,20),C("ngModelChange",function(s){return v(e),p().JobQueueWindowEnd=s}),c(),l(33,"small",12),g(34),m(35,"translate"),c()(),l(36,"div",9)(37,"label",21),g(38),m(39,"translate"),c(),l(40,"p-dropdown",22),C("ngModelChange",function(s){return v(e),p().JobQueueCPU=s}),c(),l(41,"small",12),g(42),m(43,"translate"),c()(),l(44,"div",9)(45,"p-checkbox",23),C("ngModelChange",function(s){return v(e),p().JobAllowMetadata=s}),m(46,"translate"),c(),l(47,"small",12),g(48),m(49,"translate"),c()(),l(50,"div",9)(51,"p-checkbox",24),C("ngModelChange",function(s){return v(e),p().JobAllowCommFlag=s}),m(52,"translate"),c(),l(53,"small",12),g(54),m(55,"translate"),c()(),l(56,"div",9)(57,"p-checkbox",25),C("ngModelChange",function(s){return v(e),p().JobAllowTranscode=s}),m(58,"translate"),c(),l(59,"small",12),g(60),m(61,"translate"),c()(),l(62,"div",9)(63,"p-checkbox",26),C("ngModelChange",function(s){return v(e),p().JobAllowPreview=s}),m(64,"translate"),c(),l(65,"small",12),g(66),m(67,"translate"),c()(),l(68,"div",9)(69,"p-checkbox",27),C("ngModelChange",function(s){return v(e),p().JobAllowUserJob1=s}),c(),l(70,"small",12),g(71),m(72,"translate"),c()(),l(73,"div",9)(74,"p-checkbox",28),C("ngModelChange",function(s){return v(e),p().JobAllowUserJob2=s}),c(),l(75,"small",12),g(76),m(77,"translate"),c()(),l(78,"div",9)(79,"p-checkbox",29),C("ngModelChange",function(s){return v(e),p().JobAllowUserJob3=s}),c(),l(80,"small",12),g(81),m(82,"translate"),c()(),l(83,"div",9)(84,"p-checkbox",30),C("ngModelChange",function(s){return v(e),p().JobAllowUserJob4=s}),c(),l(85,"small",12),g(86),m(87,"translate"),c()()()()}if(2&t){const e=p();a(4),S(f(5,60,"settings.jobqbackend.maxjobs_label")),a(2),d("ngModel",e.JobQueueMaxSimultaneousJobs)("showButtons",!0)("min",1)("max",10)("step",1),a(2),T(" ",f(9,62,"settings.jobqbackend.maxjobs_desc")," "),a(4),S(f(13,64,"settings.jobqbackend.freq_label")),a(2),d("ngModel",e.JobQueueCheckFrequency)("showButtons",!0)("min",5)("max",300)("step",5),a(2),T(" ",f(17,66,"settings.jobqbackend.freq_desc")," "),a(4),S(f(21,68,"settings.jobqbackend.start_label")),a(2),d("ngModel",e.JobQueueWindowStart)("timeOnly",!0)("readonlyInput",!0),a(3),T(" ",f(26,70,"settings.jobqbackend.start_desc")," "),a(4),S(f(30,72,"settings.jobqbackend.end_label")),a(2),d("ngModel",e.JobQueueWindowEnd)("timeOnly",!0)("readonlyInput",!0),a(3),T(" ",f(35,74,"settings.jobqbackend.end_desc")," "),a(4),S(f(39,76,"settings.jobqbackend.cpu_label")),a(2),d("options",e.cpuOptions)("ngModel",e.JobQueueCPU),a(2),T(" ",f(43,78,"settings.jobqbackend.cpu_desc")," "),a(3),x("label",f(46,80,"settings.jobqbackend.meta_label")),d("ngModel",e.JobAllowMetadata)("binary",!0),a(3),T(" ",f(49,82,"settings.jobqbackend.allow_desc")," "),a(3),x("label",f(52,84,"settings.jobqbackend.comm_label")),d("ngModel",e.JobAllowCommFlag)("binary",!0),a(3),T(" ",f(55,86,"settings.jobqbackend.allow_desc")," "),a(3),x("label",f(58,88,"settings.jobqbackend.trans_label")),d("ngModel",e.JobAllowTranscode)("binary",!0),a(3),T(" ",f(61,90,"settings.jobqbackend.allow_desc")," "),a(3),x("label",f(64,92,"settings.jobqbackend.preview_label")),d("ngModel",e.JobAllowPreview)("binary",!0),a(3),T(" ",f(67,94,"settings.jobqbackend.allow_desc")," "),a(3),x("label",e.JobQCmds.UserJobDesc[0]),d("ngModel",e.JobAllowUserJob1)("binary",!0),a(2),T(" ",f(72,96,"settings.jobqbackend.allow_desc")," "),a(3),x("label",e.JobQCmds.UserJobDesc[1]),d("ngModel",e.JobAllowUserJob2)("binary",!0),a(2),T(" ",f(77,98,"settings.jobqbackend.allow_desc")," "),a(3),x("label",e.JobQCmds.UserJobDesc[2]),d("ngModel",e.JobAllowUserJob3)("binary",!0),a(2),T(" ",f(82,100,"settings.jobqbackend.allow_desc")," "),a(3),x("label",e.JobQCmds.UserJobDesc[3]),d("ngModel",e.JobAllowUserJob4)("binary",!0),a(2),T(" ",f(87,102,"settings.jobqbackend.allow_desc")," ")}}function JQ(t,i){1&t&&(M(0,"p-message",36),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function YQ(t,i){1&t&&(M(0,"p-message",37),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function ZQ(t,i){if(1&t){const e=I();l(0,"div",31)(1,"div",32),_(2,JQ,2,3,"p-message",33),_(3,YQ,2,3,"p-message",34),c(),l(4,"p-button",35),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let XQ=(()=>{class t{constructor(e,n,s){this.setupService=e,this.translate=n,this.mythService=s,this.successCount=0,this.errorCount=0,this.hostName="",this.JobQueueMaxSimultaneousJobs=1,this.JobQueueCheckFrequency=60,this.JobQueueWindowStart=new Date(0),this.JobQueueWindowStartHT$=new Je,this.JobQueueWindowEnd=new Date(0),this.JobQueueWindowEndHT$=new Je,this.JobQueueCPU="0",this.JobAllowMetadata=!0,this.JobAllowCommFlag=!0,this.JobAllowTranscode=!0,this.JobAllowPreview=!0,this.JobAllowUserJob1=!1,this.JobAllowUserJob2=!1,this.JobAllowUserJob3=!1,this.JobAllowUserJob4=!1,this.cpuOptions=[{name:"settings.jobqbackend.cpu_low",code:"0"},{name:"settings.jobqbackend.cpu_med",code:"1"},{name:"settings.jobqbackend.cpu_high",code:"2"}],this.jqbObserver={next:o=>{o.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:o=>{console.error(o),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getJobQBackend(),this.JobQueueWindowStartHT$.subscribe({complete:()=>this.JobQueueWindowStartHT.updateInputfield()}),this.JobQueueWindowEndHT$.subscribe({complete:()=>this.JobQueueWindowEndHT.updateInputfield()}),this.JobQCmds=this.setupService.getJobQCommands(),n.get(this.cpuOptions[0].name).subscribe(o=>this.cpuOptions[0].name=o),n.get(this.cpuOptions[1].name).subscribe(o=>this.cpuOptions[1].name=o),n.get(this.cpuOptions[2].name).subscribe(o=>this.cpuOptions[2].name=o)}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getJobQBackend(){this.successCount=0,this.errorCount=0,this.setupService.parseTime(this.JobQueueWindowStart,"00:00"),this.setupService.parseTime(this.JobQueueWindowEnd,"23:59"),this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.getSettings()},error:()=>this.errorCount++})}getSettings(){this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueMaxSimultaneousJobs",Default:"1"}).subscribe({next:e=>this.JobQueueMaxSimultaneousJobs=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueCheckFrequency",Default:"60"}).subscribe({next:e=>this.JobQueueCheckFrequency=Number(e.String),error:()=>this.errorCount++}),this.JobQueueWindowStartHT$=this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueWindowStart",Default:"00:00"}),this.JobQueueWindowStartHT$.subscribe({next:e=>{this.setupService.parseTime(this.JobQueueWindowStart,e.String),this.JobQueueWindowStartHT.updateInputfield()},error:()=>this.errorCount++}),this.JobQueueWindowEndHT$=this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueWindowEnd",Default:"23:59"}),this.JobQueueWindowEndHT$.subscribe({next:e=>{this.setupService.parseTime(this.JobQueueWindowEnd,e.String),this.JobQueueWindowEndHT.updateInputfield()},error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueCPU",Default:"0"}).subscribe({next:e=>this.JobQueueCPU=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowMetadata",Default:"1"}).subscribe({next:e=>this.JobAllowMetadata="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowCommFlag",Default:"1"}).subscribe({next:e=>this.JobAllowCommFlag="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowTranscode",Default:"1"}).subscribe({next:e=>this.JobAllowTranscode="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowPreview",Default:"1"}).subscribe({next:e=>this.JobAllowPreview="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob1",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob1="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob2",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob2="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob3",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob3="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob4",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob4="1"==e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueMaxSimultaneousJobs",Value:String(this.JobQueueMaxSimultaneousJobs)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueCheckFrequency",Value:String(this.JobQueueCheckFrequency)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueWindowStart",Value:this.setupService.formatTime(this.JobQueueWindowStart)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueWindowEnd",Value:this.setupService.formatTime(this.JobQueueWindowEnd)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueCPU",Value:this.JobQueueCPU}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowMetadata",Value:this.JobAllowMetadata?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowCommFlag",Value:this.JobAllowCommFlag?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowTranscode",Value:this.JobAllowTranscode?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowPreview",Value:this.JobAllowPreview?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob1",Value:this.JobAllowUserJob1?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob2",Value:this.JobAllowUserJob2?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob3",Value:this.JobAllowUserJob3?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob4",Value:this.JobAllowUserJob4?"1":"0"}).subscribe(this.jqbObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Me),D(Oe),D(Bt))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-backend"]],viewQuery:function(e,n){if(1&e&&(W(zQ,5),W(jQ,5),W($Q,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.JobQueueWindowStartHT=s.first),V(s=B())&&(n.JobQueueWindowEndHT=s.first)}},decls:7,vars:0,consts:[["name","jobqbackend",1,"ml-3","mr-3"],["jobqbackend","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","JobQueueMaxSimultaneousJobs",1,"label","block"],["name","JobQueueMaxSimultaneousJobs","id","JobQueueMaxSimultaneousJobs",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","JobQueueCheckFrequency",1,"label","block"],["name","JobQueueCheckFrequency","id","JobQueueCheckFrequency",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","JobQueueWindowStart",1,"label","block"],["name","JobQueueWindowStart","id","JobQueueWindowStart","ngControl","JobQueueWindowStart",3,"ngModel","timeOnly","readonlyInput","ngModelChange"],["JobQueueWindowStartHT",""],["for","JobQueueWindowEnd",1,"label","block"],["name","JobQueueWindowEnd","id","JobQueueWindowEnd","ngControl","JobQueueWindowEnd",3,"ngModel","timeOnly","readonlyInput","ngModelChange"],["JobQueueWindowEndHT",""],["for","JobQueueCPU",1,"label","block"],["optionLabel","name","optionValue","code","name","JobQueueCPU",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["inputId","JobAllowMetadata","name","JobAllowMetadata",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowCommFlag","name","JobAllowCommFlag",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowTranscode","name","JobAllowTranscode",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowPreview","name","JobAllowPreview",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob1","name","JobAllowUserJob1",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob2","name","JobAllowUserJob2",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob3","name","JobAllowUserJob3",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob4","name","JobAllowUserJob4",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,WQ,2,3,"ng-template",3),_(4,KQ,2,3,"ng-template",4),_(5,QQ,88,104,"ng-template",5),_(6,ZQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,pt,we,_e,Do,Ot,on,Q,qe,Ce],pipes:[ce],styles:[""]}),t})();const eJ=["jobqglobal"];function tJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.jobqglobal.title")," ")}function nJ(t,i){}function iJ(t,i){if(1&t){const e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"p-checkbox",10),C("ngModelChange",function(s){return v(e),p().JobsRunOnRecordHost=s}),m(4,"translate"),c(),l(5,"small",11),g(6),m(7,"translate"),c()(),l(8,"div",9)(9,"p-checkbox",12),C("ngModelChange",function(s){return v(e),p().AutoCommflagWhileRecording=s}),m(10,"translate"),c(),l(11,"small",11),g(12),m(13,"translate"),c()(),l(14,"div",9)(15,"label",13),g(16),m(17,"translate"),c(),l(18,"input",14),C("ngModelChange",function(s){return v(e),p().JobQueueCommFlagCommand=s}),c(),l(19,"small",11),g(20),m(21,"translate"),c()(),l(22,"div",9)(23,"label",15),g(24),m(25,"translate"),c(),l(26,"input",16),C("ngModelChange",function(s){return v(e),p().JobQueueTranscodeCommand=s}),c(),l(27,"small",11),g(28),m(29,"translate"),c()(),l(30,"div",9)(31,"p-checkbox",17),C("ngModelChange",function(s){return v(e),p().AutoTranscodeBeforeAutoCommflag=s}),m(32,"translate"),c(),l(33,"small",11),g(34),m(35,"translate"),c()(),l(36,"div",9)(37,"p-checkbox",18),C("ngModelChange",function(s){return v(e),p().SaveTranscoding=s}),m(38,"translate"),c(),l(39,"small",11),g(40),m(41,"translate"),c()()()()}if(2&t){const e=p();a(3),x("label",f(4,22,"settings.jobqglobal.runonrechost_label")),d("ngModel",e.JobsRunOnRecordHost)("binary",!0),a(3),T(" ",f(7,24,"settings.jobqglobal.runonrechost_desc")," "),a(3),x("label",f(10,26,"settings.jobqglobal.startcomm_label")),d("ngModel",e.AutoCommflagWhileRecording)("binary",!0),a(3),T(" ",f(13,28,"settings.jobqglobal.startcomm_desc")," "),a(4),S(f(17,30,"settings.jobqglobal.commcmd_label")),a(2),d("ngModel",e.JobQueueCommFlagCommand),a(2),T(" ",f(21,32,"settings.jobqglobal.commcmd_desc")," "),a(4),S(f(25,34,"settings.jobqglobal.transcmd_label")),a(2),d("ngModel",e.JobQueueTranscodeCommand),a(2),T(" ",f(29,36,"settings.jobqglobal.transcmd_desc")," "),a(3),x("label",f(32,38,"settings.jobqglobal.transfirst_label")),d("ngModel",e.AutoTranscodeBeforeAutoCommflag)("binary",!0),a(3),T(" ",f(35,40,"settings.jobqglobal.transfirst_desc")," "),a(3),x("label",f(38,42,"settings.jobqglobal.transsave_label")),d("ngModel",e.SaveTranscoding)("binary",!0),a(3),T(" ",f(41,44,"settings.jobqglobal.transsave_desc")," ")}}function sJ(t,i){1&t&&(M(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function oJ(t,i){1&t&&(M(0,"p-message",25),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function rJ(t,i){if(1&t){const e=I();l(0,"div",19)(1,"div",20),_(2,sJ,2,3,"p-message",21),_(3,oJ,2,3,"p-message",22),c(),l(4,"p-button",23),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let aJ=(()=>{class t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.JobsRunOnRecordHost=!1,this.AutoCommflagWhileRecording=!1,this.JobQueueCommFlagCommand="mythcommflag",this.JobQueueTranscodeCommand="mythtranscode",this.AutoTranscodeBeforeAutoCommflag=!1,this.SaveTranscoding=!1,this.JobQGlobalObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getJobQGlobal()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getJobQGlobal(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobsRunOnRecordHost",Default:"0"}).subscribe({next:e=>this.JobsRunOnRecordHost="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"AutoCommflagWhileRecording",Default:"0"}).subscribe({next:e=>this.AutoCommflagWhileRecording="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobQueueCommFlagCommand",Default:"mythcommflag"}).subscribe({next:e=>this.JobQueueCommFlagCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobQueueTranscodeCommand",Default:"mythtranscode"}).subscribe({next:e=>this.JobQueueTranscodeCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"AutoTranscodeBeforeAutoCommflag",Default:"0"}).subscribe({next:e=>this.AutoTranscodeBeforeAutoCommflag="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"SaveTranscoding",Default:"0"}).subscribe({next:e=>this.SaveTranscoding="1"==e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobsRunOnRecordHost",Value:this.JobsRunOnRecordHost?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"AutoCommflagWhileRecording",Value:this.AutoCommflagWhileRecording?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobQueueCommFlagCommand",Value:this.JobQueueCommFlagCommand}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobQueueTranscodeCommand",Value:this.JobQueueTranscodeCommand}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"AutoTranscodeBeforeAutoCommflag",Value:this.AutoTranscodeBeforeAutoCommflag?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"SaveTranscoding",Value:this.SaveTranscoding?"1":"0"}).subscribe(this.JobQGlobalObs)}}return t.\u0275fac=function(e){return new(e||t)(D(Me),D(Bt))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-global"]],viewQuery:function(e,n){if(1&e&&W(eJ,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","jobqglobal",1,"ml-3","mr-3"],["jobqglobal","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["inputId","JobsRunOnRecordHost","name","JobsRunOnRecordHost",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["inputId","AutoCommflagWhileRecording","name","AutoCommflagWhileRecording",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["for","JobQueueCommFlagCommand",1,"label","block"],["pInputText","","id","JobQueueCommFlagCommand","name","JobQueueCommFlagCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","JobQueueTranscodeCommand",1,"label","block"],["pInputText","","id","JobQueueTranscodeCommand","name","JobQueueTranscodeCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["inputId","AutoTranscodeBeforeAutoCommflag","name","AutoTranscodeBeforeAutoCommflag",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","SaveTranscoding","name","SaveTranscoding",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,tJ,2,3,"ng-template",3),_(4,nJ,0,0,"ng-template",4),_(5,iJ,42,46,"ng-template",5),_(6,rJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,on,we,_e,Ye,Q,qe,Ce],pipes:[ce],styles:[""]}),t})();const lJ=["jobqcommands"];function cJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.jobqcommands.title")," ")}function uJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.jobqcommands.subtitle")," ")}const dS=function(t){return{num:t}};function dJ(t,i){if(1&t){const e=I();l(0,"div")(1,"div",10)(2,"label",11),M(3,"div",12),c(),l(4,"input",13,14),C("ngModelChange",function(s){const r=v(e).$implicit;return p(2).JobQCommandsData.UserJobDesc[r]=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()(),l(9,"div",10)(10,"label",11),M(11,"div",12),c(),l(12,"input",13,16),C("ngModelChange",function(s){const r=v(e).$implicit;return p(2).JobQCommandsData.UserJob[r]=s}),c(),l(14,"small",15),g(15),m(16,"translate"),c()()()}if(2&t){const e=i.$implicit,n=p(2);a(2),Hn("for","UserJobDesc",e,""),a(1),d("translate","settings.jobqcommands.job_label")("translateParams",U(18,dS,e+1)),a(1),Hn("id","UserJobDesc",e,"")("name","UserJobDesc",e,""),d("ngModel",n.JobQCommandsData.UserJobDesc[e]),a(3),T(" ",f(8,14,"settings.jobqcommands.job_desc")," "),a(3),Hn("for","UserJob",e,""),a(1),d("translate","settings.jobqcommands.command_label")("translateParams",U(20,dS,e+1)),a(1),Hn("id","UserJob",e,"")("name","UserJob",e,""),d("ngModel",n.JobQCommandsData.UserJob[e]),a(3),T(" ",f(16,16,"settings.jobqcommands.command_desc")," ")}}function pJ(t,i){if(1&t&&(l(0,"div",7)(1,"div",8),_(2,dJ,17,22,"div",9),c()()),2&t){const e=p();a(2),d("ngForOf",e.items)}}function hJ(t,i){1&t&&(M(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function mJ(t,i){1&t&&(M(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function fJ(t,i){if(1&t){const e=I();l(0,"div",17)(1,"div",18),_(2,hJ,2,3,"p-message",19),_(3,mJ,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.JobQCommandsData.successCount>0&&0==e.JobQCommandsData.errorCount&&!n.dirty),a(1),d("ngIf",e.JobQCommandsData.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let gJ=(()=>{class t{constructor(e){this.setupService=e,this.items=[0,1,2,3],this.JobQCommandsData=this.setupService.getJobQCommands()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.setupService.saveJobQCommands(this.currentForm)}}return t.\u0275fac=function(e){return new(e||t)(D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-commands"]],viewQuery:function(e,n){if(1&e&&W(lJ,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","jobqcommands",1,"ml-3","mr-3"],["jobqcommands","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[4,"ngFor","ngForOf"],[1,"form-group","field"],[1,"label","block",3,"for"],[3,"translate","translateParams"],["pInputText","",1,"mb-2","form-control","w-full",3,"id","ngModel","name","ngModelChange"],["UserJobDesc{{item}}","ngModel"],[1,"block"],["UserJob{{item}}","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,cJ,2,3,"ng-template",3),_(4,uJ,2,3,"ng-template",4),_(5,pJ,3,1,"ng-template",5),_(6,fJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,at,_u,Ye,we,_e,Q,qe,Ce],pipes:[ce],styles:[""]}),t})();const _J=["epgdownload"];function bJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.epgdownload.title")," ")}function vJ(t,i){}function CJ(t,i){if(1&t){const e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"p-checkbox",10),C("ngModelChange",function(s){return v(e),p().MythFillEnabled=s}),m(4,"translate"),c(),l(5,"small",11),g(6),m(7,"translate"),c()()()()}if(2&t){const e=p();a(3),x("label",f(4,4,"settings.epgdownload.enabled_label")),d("ngModel",e.MythFillEnabled)("binary",!0),a(3),T(" ",f(7,6,"settings.epgdownload.enabled_desc")," ")}}function yJ(t,i){1&t&&(M(0,"p-message",17),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function wJ(t,i){1&t&&(M(0,"p-message",18),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function TJ(t,i){if(1&t){const e=I();l(0,"div",12)(1,"div",13),_(2,yJ,2,3,"p-message",14),_(3,wJ,2,3,"p-message",15),c(),l(4,"p-button",16),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let SJ=(()=>{class t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.MythFillEnabled=!0,this.EpgDownloadObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getEpgDownload()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getEpgDownload(){this.successCount=0,this.errorCount=0,this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MythFillEnabled",Default:"1"}).subscribe({next:e=>this.MythFillEnabled="1"==e.String,error:()=>this.errorCount++})}saveForm(){console.log("save form clicked"),this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MythFillEnabled",Value:this.MythFillEnabled?"1":"0"}).subscribe(this.EpgDownloadObs)}}return t.\u0275fac=function(e){return new(e||t)(D(Me),D(Bt))},t.\u0275cmp=z({type:t,selectors:[["app-epg-downloading"]],viewQuery:function(e,n){if(1&e&&W(_J,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","epgdownload",1,"ml-3","mr-3"],["epgdownload","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["inputId","MythFillEnabled","name","MythFillEnabled",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,bJ,2,3,"ng-template",3),_(4,vJ,0,0,"ng-template",4),_(5,CJ,8,8,"ng-template",5),_(6,TJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,on,we,_e,Q,qe,Ce],pipes:[ce],styles:[""]}),t})();function xJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const e=p();a(1),T("\xa0",e.dirtyMessages[0],"")}}function DJ(t,i){1&t&&M(0,"app-host-address")}function MJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const e=p();a(1),T("\xa0",e.dirtyMessages[1],"")}}function kJ(t,i){1&t&&M(0,"app-locale")}function IJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const e=p();a(1),T("\xa0",e.dirtyMessages[2],"")}}function EJ(t,i){1&t&&M(0,"app-misc-settings")}function RJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const e=p();a(1),T("\xa0",e.dirtyMessages[3],"")}}function LJ(t,i){1&t&&M(0,"app-eit-scanner")}function OJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const e=p();a(1),T("\xa0",e.dirtyMessages[4],"")}}function AJ(t,i){1&t&&M(0,"app-shutdown-wakeup")}function PJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const e=p();a(1),T("\xa0",e.dirtyMessages[5],"")}}function FJ(t,i){1&t&&M(0,"app-backend-wakeup")}function NJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const e=p();a(1),T("\xa0",e.dirtyMessages[6],"")}}function VJ(t,i){1&t&&M(0,"app-backend-control")}function BJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const e=p();a(1),T("\xa0",e.dirtyMessages[7],"")}}function HJ(t,i){1&t&&M(0,"app-jobqueue-backend")}function qJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const e=p();a(1),T("\xa0",e.dirtyMessages[8],"")}}function GJ(t,i){1&t&&M(0,"app-jobqueue-global")}function UJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const e=p();a(1),T("\xa0",e.dirtyMessages[9],"")}}function zJ(t,i){1&t&&M(0,"app-jobqueue-commands")}function jJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const e=p();a(1),T("\xa0",e.dirtyMessages[10],"")}}function $J(t,i){1&t&&M(0,"app-epg-downloading")}let WJ=(()=>{class t{constructor(e,n,s){this.setupService=e,this.translate=n,this.router=s,this.m_showHelp=!1,this.currentTab=-1,this.dirtyMessages=["","","","","","","","","","","","","","","",""],this.forms=[,,,,,,,,,,,,,,,,],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.setupService.setCurrentForm(null),n.get(this.dirtyText).subscribe(o=>this.dirtyText=o),n.get(this.warningText).subscribe(o=>this.warningText=o)}ngOnInit(){}onTabOpen(e){this.showDirty(),void 0===this.forms[e.index]&&(this.forms[e.index]=this.setupService.getCurrentForm()),this.currentTab=e.index,console.log("onTabOpen"),console.log(e),this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty()}showDirty(){-1!=this.currentTab&&(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}showHelp(){this.m_showHelp=!0}confirm(e){return re(window.confirm(e))}canDeactivate(){return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(e=>e.length>0))||this.confirm(this.warningText)}onWindowClose(e){(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n.length>0))&&(e.preventDefault(),e.returnValue=!1)}}return t.\u0275fac=function(e){return new(e||t)(D(Me),D(Oe),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-general-settings"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(o){return n.onWindowClose(o)},!1,ni)},decls:54,vars:42,consts:[[1,"col-12","w-full","p-0",3,"onClose","onOpen"],[3,"header"],["pTemplate","header"],["pTemplate","content"],[1,"flex","justify-content-end"],["icon","pi pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"p-card")(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",0),C("onClose",function(o){return n.onTabClose(o)})("onOpen",function(o){return n.onTabOpen(o)}),l(5,"p-accordionTab",1),m(6,"translate"),_(7,xJ,2,1,"ng-template",2),_(8,DJ,1,0,"ng-template",3),c(),l(9,"p-accordionTab",1),m(10,"translate"),_(11,MJ,2,1,"ng-template",2),_(12,kJ,1,0,"ng-template",3),c(),l(13,"p-accordionTab",1),m(14,"translate"),_(15,IJ,2,1,"ng-template",2),_(16,EJ,1,0,"ng-template",3),c(),l(17,"p-accordionTab",1),m(18,"translate"),_(19,RJ,2,1,"ng-template",2),_(20,LJ,1,0,"ng-template",3),c(),l(21,"p-accordionTab",1),m(22,"translate"),_(23,OJ,2,1,"ng-template",2),_(24,AJ,1,0,"ng-template",3),c(),l(25,"p-accordionTab",1),m(26,"translate"),_(27,PJ,2,1,"ng-template",2),_(28,FJ,1,0,"ng-template",3),c(),l(29,"p-accordionTab",1),m(30,"translate"),_(31,NJ,2,1,"ng-template",2),_(32,VJ,1,0,"ng-template",3),c(),l(33,"p-accordionTab",1),m(34,"translate"),_(35,BJ,2,1,"ng-template",2),_(36,HJ,1,0,"ng-template",3),c(),l(37,"p-accordionTab",1),m(38,"translate"),_(39,qJ,2,1,"ng-template",2),_(40,GJ,1,0,"ng-template",3),c(),l(41,"p-accordionTab",1),m(42,"translate"),_(43,UJ,2,1,"ng-template",2),_(44,zJ,1,0,"ng-template",3),c(),l(45,"p-accordionTab",1),m(46,"translate"),_(47,jJ,2,1,"ng-template",2),_(48,$J,1,0,"ng-template",3),c()(),l(49,"div",4)(50,"p-button",5),C("onClick",function(){return n.router.navigate(["setupwizard/selectlanguage"])}),m(51,"translate"),c(),l(52,"p-button",6),C("onClick",function(){return n.router.navigate(["setupwizard/capture-cards"])}),m(53,"translate"),c()()()),2&e&&(a(2),S(f(3,14,"settings.general.title")),a(3),x("header",f(6,16,"settings.hostaddress.title")),a(4),x("header",f(10,18,"settings.locale.title")),a(4),x("header",f(14,20,"settings.misc.title")),a(4),x("header",f(18,22,"settings.eit.title")),a(4),x("header",f(22,24,"settings.shutwake.title")),a(4),x("header",f(26,26,"settings.backendwake.title")),a(4),x("header",f(30,28,"settings.backendctrl.title")),a(4),x("header",f(34,30,"settings.jobqbackend.title")),a(4),x("header",f(38,32,"settings.jobqglobal.title")),a(4),x("header",f(42,34,"settings.jobqcommands.title")),a(4),x("header",f(46,36,"settings.epgdownload.title")),a(5),x("label",f(51,38,"common.back")),a(2),x("label",f(53,40,"common.next")))},directives:[Ne,Ss,Ts,ne,KK,iQ,dQ,vQ,MQ,PQ,UQ,XQ,aJ,gJ,SJ,Ce],pipes:[ce],styles:["@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})(),Gt=(()=>{class t{constructor(e){this.httpClient=e,this.diseqcTypes=[{description:"Switch",type:"switch",inactive:!1},{description:"Rotor",type:"rotor",inactive:!1},{description:"Unicable",type:"scr",inactive:!1},{description:"LNB",type:"lnb",inactive:!1}]}GetCaptureCardList(e,n){let s=(new ve).set("HostName",e).set("CardType",n);return this.httpClient.get("/Capture/GetCaptureCardList",{params:s})}GetCardTypeList(){return this.httpClient.get("/Capture/GetCardTypeList",{})}UpdateCaptureCard(e,n,s){return this.httpClient.post("/Capture/UpdateCaptureCard",{Cardid:e,Setting:n,Value:s})}DeleteCaptureCard(e){return this.httpClient.post("/Capture/RemoveCardInput",{CardInputId:e})}AddCaptureCard(e){return this.httpClient.post("/Capture/AddCaptureCard",e)}GetCaptureDeviceList(e){let n=(new ve).set("CardType",e);return this.httpClient.get("/Capture/GetCaptureDeviceList",{params:n})}GetDiseqcTreeList(){return this.httpClient.get("/Capture/GetDiseqcTreeList",{})}AddDiseqcTree(e){return this.httpClient.post("/Capture/AddDiseqcTree",e)}UpdateDiseqcTree(e){return this.httpClient.post("/Capture/UpdateDiseqcTree",e)}DeleteDiseqcTree(e){return this.httpClient.post("/Capture/RemoveDiseqcTree",{DiseqcId:e})}GetDiseqcConfigList(){return this.httpClient.get("/Capture/GetDiseqcConfigList",{})}AddDiseqcConfig(e){return this.httpClient.post("/Capture/AddDiseqcConfig",e)}DeleteDiseqcConfig(e){return console.log(e),this.httpClient.post("/Capture/RemoveDiseqcConfig",{CardId:e})}GetInputGroupList(){return this.httpClient.get("/Capture/GetUserInputGroupList",{})}SetInputMaxRecordings(e,n){return this.httpClient.post("/Capture/SetInputMaxRecordings",{InputId:e,Max:n})}AddUserInputGroup(e){return this.httpClient.post("/Capture/AddUserInputGroup",{Name:e})}LinkInputGroup(e,n){return this.httpClient.post("/Capture/LinkInputGroup",{InputId:e,InputGroupId:n})}UnlinkInputGroup(e,n){return this.httpClient.post("/Capture/UnlinkInputGroup",{InputId:e,InputGroupId:n})}GetRecProfileGroupList(e,n,s){let o=(new ve).set("GroupId",e).set("ProfileId",n).set("OnlyInUse",s);return this.httpClient.get("/Capture/GetRecProfileGroupList",{params:o})}AddRecProfile(e,n,s,o){return this.httpClient.post("/Capture/AddRecProfile",{GroupId:e,ProfileName:n,VideoCodec:s,AudioCodec:o})}DeleteRecProfile(e){return this.httpClient.post("/Capture/DeleteRecProfile",{ProfileId:e})}UpdateRecProfile(e,n,s){return this.httpClient.post("/Capture/UpdateRecProfile",{ProfileId:e,VideoCodec:n,AudioCodec:s})}UpdateRecProfileParam(e,n,s){return this.httpClient.post("/Capture/UpdateRecProfileParam",{ProfileId:e,Name:n,Value:s})}GetCardSubType(e){let n=(new ve).set("cardid",e);return this.httpClient.get("/Capture/GetCardSubType",{params:n})}}return t.\u0275fac=function(e){return new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function KJ(t,i){if(1&t){const e=I();l(0,"p-button",14),C("onClick",function(){return v(e),p().displayModal=!1}),m(1,"translate"),c(),l(2,"p-button",15),C("onClick",function(){return v(e),p().newCard()}),m(3,"translate"),c()}if(2&t){const e=p();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),d("disabled",""==e.selectedCardType.CardType)}}function QJ(t,i){if(1&t){const e=I();l(0,"p-button",16),C("click",function(){return v(e),p().displayDeleteAllonHost=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){return v(e),p().deleteAllOnHost()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function JJ(t,i){if(1&t){const e=I();l(0,"p-button",16),C("click",function(){return v(e),p().displayDeleteAll=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){return v(e),p().deleteAllOnAllHosts()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function YJ(t,i){1&t&&(l(0,"div",18),M(1,"br")(2,"p-message",19),m(3,"translate"),M(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function ZJ(t,i){1&t&&(l(0,"div",18),M(1,"br")(2,"p-message",20),m(3,"translate"),M(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function XJ(t,i){if(1&t&&(l(0,"div",24)(1,"div",25),g(2),l(3,"b"),g(4),c()()()),2&t){const e=p().index,n=p();a(2),yr(" ",n.m_CaptureCardsFiltered[e].CardType," ",n.m_CaptureCardsFiltered[e].VideoDevice," (",n.m_CaptureCardsFiltered[e].DisplayName,") "),a(2),T("\xa0",n.dirtyMessages[e],"")}}function eY(t,i){if(1&t){const e=I();l(0,"p-button",16),C("click",function(){v(e);const s=p(2).index;return p().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){v(e);const s=p(2).index;return p().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function tY(t,i){if(1&t&&M(0,"app-ceton",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function nY(t,i){if(1&t&&M(0,"app-dvb",32),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)("diseqcTreeList",n.diseqcTreeList)("parent",n)}}function iY(t,i){if(1&t&&M(0,"app-external",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function sY(t,i){if(1&t&&M(0,"app-hdhomerun",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function oY(t,i){if(1&t&&M(0,"app-iptv",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function rY(t,i){if(1&t&&M(0,"app-import",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function aY(t,i){if(1&t&&M(0,"app-demo",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function lY(t,i){if(1&t&&M(0,"app-v4l2",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function cY(t,i){if(1&t&&M(0,"app-hdpvr",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function uY(t,i){if(1&t&&M(0,"app-satip",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function dY(t,i){if(1&t&&M(0,"app-vbox",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function pY(t,i){if(1&t&&M(0,"app-firewire",31),2&t){const e=p(2).index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function hY(t,i){1&t&&(l(0,"div"),M(1,"br"),g(2,"Not Supported "),c())}const Dd=function(){return{width:"50vw"}},mY=function(t,i,e){return{CardType:t,VideoDevice:i,DisplayName:e}};function fY(t,i){if(1&t){const e=I();l(0,"p-button",26),C("onClick",function(){v(e);const s=p().index;return p().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",2),C("visibleChange",function(s){v(e);const o=p().index;return p().displayDeleteThis[o]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,eY,4,6,"ng-template",4),c(),l(11,"div",27),_(12,tY,1,2,"app-ceton",28),_(13,nY,1,4,"app-dvb",29),_(14,iY,1,2,"app-external",28),_(15,sY,1,2,"app-hdhomerun",28),_(16,oY,1,2,"app-iptv",28),_(17,rY,1,2,"app-import",28),_(18,aY,1,2,"app-demo",28),_(19,lY,1,2,"app-v4l2",28),_(20,cY,1,2,"app-hdpvr",28),_(21,uY,1,2,"app-satip",28),_(22,dY,1,2,"app-vbox",28),_(23,pY,1,2,"app-firewire",28),_(24,hY,3,0,"div",30),c()}if(2&t){const e=p().index,n=p();x("label",f(1,24,"settings.capture.delete_this")),d("disabled",!n.m_CaptureCardsFiltered[e].CardId||n.setupService.schedulingEnabled),a(2),q(A(33,Dd)),x("header",f(3,26,"settings.capture.delete_this")),d("visible",n.displayDeleteThis[e])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,28,"settings.common.ru_sure")),a(3),S(_t(9,30,"settings.capture.delete_details",Jt(34,mY,n.m_CaptureCardsFiltered[e].CardType,n.m_CaptureCardsFiltered[e].VideoDevice,n.m_CaptureCardsFiltered[e].DisplayName))),a(3),d("ngSwitch",n.m_CaptureCardsFiltered[e].CardType),a(1),d("ngSwitchCase","CETON"),a(1),d("ngSwitchCase","DVB"),a(1),d("ngSwitchCase","EXTERNAL"),a(1),d("ngSwitchCase","HDHOMERUN"),a(1),d("ngSwitchCase","FREEBOX"),a(1),d("ngSwitchCase","IMPORT"),a(1),d("ngSwitchCase","DEMO"),a(1),d("ngSwitchCase","V4L2ENC"),a(1),d("ngSwitchCase","HDPVR"),a(1),d("ngSwitchCase","SATIP"),a(1),d("ngSwitchCase","VBOX"),a(1),d("ngSwitchCase","FIREWIRE")}}function gY(t,i){if(1&t){const e=I();l(0,"p-accordionTab",21),C("selectedChange",function(s){const r=v(e).index;return p().activeTab[r]=s}),_(1,XJ,5,4,"ng-template",22),_(2,fY,25,38,"ng-template",23),c()}if(2&t){const e=i.index,n=p();d("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}const _Y=function(){return{height:"50vh"}},pS=function(t){return{host:t}};let hS=(()=>{class t{constructor(e,n,s,o,r){this.mythService=e,this.router=n,this.captureCardService=s,this.setupService=o,this.translate=r,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.m_hostName="",this.displayModal=!1,this.selectedCardType={CardType:"",Description:""},this.displayDeleteAllonHost=!1,this.displayDeleteAll=!1,this.successCount=0,this.expectedCount=0,this.errorCount=0,this.deleteAll=!1,this.delObserver={next:u=>{u.bool?(this.successCount++,this.successCount==this.expectedCount&&(this.deleteAll?(this.loadCards(!0),this.deleteAll=!1):this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1))):(this.errorCount++,this.deletedTab=-1,this.deleteAll=!1)},error:u=>{console.error(u),this.errorCount++,this.deleteAll=!1}},this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(u=>{this.m_hostName=u.String,this.loadCards(!0)}),r.get(this.dirtyText).subscribe(u=>this.dirtyText=u),r.get(this.warningText).subscribe(u=>this.warningText=u),r.get(this.deletedText).subscribe(u=>this.deletedText=u),r.get(this.newText).subscribe(u=>this.newText=u),this.captureCardService.GetCardTypeList().subscribe(u=>{this.cardTypes=u.CardTypeList.CardTypes,this.cardTypes.forEach(h=>{h.Inactive=t.supportedCardTypes.indexOf(h.CardType)<0})})}loadCards(e){this.m_CaptureCardList$=this.captureCardService.GetCaptureCardList("",""),this.m_CaptureCardList$.subscribe(n=>{this.m_CaptureCardList=n,e&&this.filterCards()})}filterCards(){this.m_CaptureCardsFiltered=this.m_CaptureCardList.CaptureCardList.CaptureCards.filter(e=>0==e.ParentId&&e.HostName==this.m_hostName),this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[];for(let e=0;e{this.diseqcTreeList=e},error:e=>{console.log("GetDiseqcTreeList",e),this.errorCount++}})}onTabOpen(e){this.successCount+this.errorCount>=this.expectedCount&&(this.errorCount=0,this.successCount=0,this.expectedCount=0),this.showDirty();let n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:this.m_CaptureCardsFiltered[this.currentTab].CardId?"":this.newText)}newCard(){this.displayModal=!1;let e={CardType:this.selectedCardType.CardType,HostName:this.m_hostName,ChannelTimeout:3e3,SignalTimeout:1e3};switch(e.CardType){case"EXTERNAL":e.ChannelTimeout=2e4;break;case"FREEBOX":e.VideoDevice="http://mafreebox.freebox.fr/freeboxtv/playlist.m3u",e.ChannelTimeout=3e4;break;case"SATIP":e.DVBDiSEqCType=1}for(let n=0;n{s.ParentId==n&&(console.log("DeleteThis (parent):",s.CardId),this.expectedCount++,this.captureCardService.DeleteCaptureCard(s.CardId).subscribe(this.delObserver))}),this.m_CaptureCardsFiltered[e].DiSEqCId=0,console.log("DeleteThis:",n),this.expectedCount++,this.captureCardService.DeleteCaptureCard(n).subscribe(this.delObserver)}deleteAllOnHost(){if(!(this.successCount+this.errorCount{e.HostName!=this.m_hostName&&(e.DiSEqCId=0,console.log("DeleteThis (other host):",e.CardId),this.expectedCount++,this.captureCardService.DeleteCaptureCard(e.CardId).subscribe(this.delObserver))}))}confirm(e){return re(window.confirm(e))}canDeactivate(){let e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return t.supportedCardTypes=["CETON","DVB","EXTERNAL","HDHOMERUN","FREEBOX","IMPORT","DEMO","V4L2ENC","HDPVR","SATIP","VBOX","FIREWIRE"],t.\u0275fac=function(e){return new(e||t)(D(Bt),D(It),D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-capture-cards"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(o){return n.onWindowClose(o)},!1,ni)},decls:42,vars:72,consts:[[1,"m-5"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["optionLabel","Description","optionDisabled","Inactive",3,"options","ngModel","listStyle","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","icon","pi pi-trash",3,"label","disabled","click"],["styleClass","p-button-danger","icon","pi pi-trash","iconPos","left",3,"label","disabled","click"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-11","pr-1"],["styleClass","p-button-warning","icon","pi pi-trash",3,"label","disabled","onClick"],[3,"ngSwitch"],[3,"card","cardList",4,"ngSwitchCase"],[3,"card","cardList","diseqcTreeList","parent",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"card","cardList"],[3,"card","cardList","diseqcTreeList","parent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return n.displayModal=!0}),m(5,"translate"),c(),l(6,"p-dialog",2),C("visibleChange",function(o){return n.displayModal=o}),m(7,"translate"),l(8,"p"),g(9),m(10,"translate"),c(),l(11,"p-listbox",3),C("ngModelChange",function(o){return n.selectedCardType=o})("onDblClick",function(){return n.newCard()}),c(),_(12,KJ,4,7,"ng-template",4),c(),g(13," \xa0 "),l(14,"p-button",5),C("click",function(){return n.displayDeleteAllonHost=!0}),m(15,"translate"),c(),l(16,"p-dialog",2),C("visibleChange",function(o){return n.displayDeleteAllonHost=o}),m(17,"translate"),l(18,"h2"),g(19),m(20,"translate"),c(),_(21,QJ,4,6,"ng-template",4),c(),g(22," \xa0 "),l(23,"p-button",6),C("click",function(){return n.displayDeleteAll=!0}),m(24,"translate"),c(),l(25,"p-dialog",2),C("visibleChange",function(o){return n.displayDeleteAll=o}),m(26,"translate"),l(27,"h2"),g(28),m(29,"translate"),c(),_(30,JJ,4,6,"ng-template",4),c(),M(31,"br"),l(32,"div",7),_(33,YJ,5,3,"div",8),_(34,ZJ,5,3,"div",8),c(),l(35,"p-accordion",9),C("onClose",function(o){return n.onTabClose(o)})("onOpen",function(o){return n.onTabOpen(o)}),_(36,gY,3,2,"p-accordionTab",10),c(),l(37,"div",11)(38,"p-button",12),C("onClick",function(){return n.router.navigate(["setupwizard/general"])}),m(39,"translate"),c(),l(40,"p-button",13),C("onClick",function(){return n.router.navigate(["setupwizard/recording-profiles"])}),m(41,"translate"),c()()()),2&e&&(a(2),S(f(3,38,"settings.capture.title")),a(2),x("label",f(5,40,"settings.capture.new_capture_card")),a(2),q(A(64,Dd)),x("header",f(7,42,"settings.capture.new_capture_card")),d("visible",n.displayModal)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(10,44,"settings.capture.select_type")),a(2),d("options",n.cardTypes)("ngModel",n.selectedCardType)("listStyle",A(65,_Y)),a(3),x("label",_t(15,46,"settings.capture.delete_on_host",U(66,pS,n.m_hostName))),d("disabled",n.setupService.schedulingEnabled),a(2),q(A(68,Dd)),x("header",_t(17,49,"settings.capture.delete_on_host",U(69,pS,n.m_hostName))),d("visible",n.displayDeleteAllonHost)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(20,52,"settings.common.ru_sure")),a(4),x("label",f(24,54,"settings.capture.delete_all")),d("disabled",n.setupService.schedulingEnabled),a(2),q(A(71,Dd)),x("header",f(26,56,"settings.capture.delete_all_all")),d("visible",n.displayDeleteAll)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(29,58,"settings.common.ru_sure")),a(5),d("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),d("ngIf",n.errorCount>0),a(2),d("ngForOf",n.m_CaptureCardsFiltered),a(2),x("label",f(39,60,"common.back")),a(2),x("label",f(41,62,"common.next")))},styles:["@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();function bY(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),g(2),l(3,"b"),g(4),c()()()),2&t){const e=p(2),n=e.$implicit,s=e.index,o=p();a(2),T(" ",n.Name," "),a(2),T("\xa0",o.dirtyMessages[s],"")}}function vY(t,i){1&t&&_(0,bY,5,2,"div",9),2&t&&d("ngIf",p(2).readyCount>0)}function CY(t,i){if(1&t&&M(0,"app-profile-group",12),2&t){const e=p().$implicit,n=p();d("group",e)("parentComponent",n)}}function yY(t,i){if(1&t){const e=I();l(0,"p-accordionTab",6),C("selectedChange",function(s){const r=v(e).index;return p().activeTab[r]=s}),_(1,vY,1,1,"ng-template",7),_(2,CY,1,2,"ng-template",8),c()}if(2&t){const e=i.index;d("selected",p().activeTab[e])}}let mS=(()=>{class t{constructor(e,n,s,o){this.captureCardService=e,this.router=n,this.translate=s,this.setupService=o,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.activeTab=[],this.readyCount=0,this.profileGroups=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.groups=[],this.setupService.setCurrentForm(null),this.loadGroups(),s.get(this.dirtyText).subscribe(r=>this.dirtyText=r),s.get(this.warningText).subscribe(r=>this.warningText=r)}loadGroups(){this.captureCardService.GetRecProfileGroupList(0,0,!0).subscribe(n=>{this.groups=n.RecProfileGroupList.RecProfileGroups,this.readyCount++})}ngOnInit(){}onTabOpen(e){this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.profileGroups[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.profileGroups[this.currentTab].allClean()?"":this.dirtyText)}confirm(e){return re(window.confirm(e))}canDeactivate(){let e=!0;return this.profileGroups.forEach(n=>{n.allClean()||(e=!1)}),!!e||this.confirm(this.warningText)}onWindowClose(e){let n=!0;this.profileGroups.forEach(s=>{s.allClean()||(n=!1)}),n||(e.preventDefault(),e.returnValue=!1)}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(It),D(Oe),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-recording-profiles"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(o){return n.onWindowClose(o)},!1,ni)},decls:11,vars:10,consts:[[1,"md:m-5"],[1,"col-12","w-full",3,"onOpen","onClose"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],["class","grid w-full",4,"ngIf"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"group","parentComponent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",1),C("onOpen",function(o){return n.onTabOpen(o)})("onClose",function(o){return n.onTabClose(o)}),_(5,yY,3,1,"p-accordionTab",2),c(),l(6,"div",3)(7,"p-button",4),C("onClick",function(){return n.router.navigate(["setupwizard/capture-cards"])}),m(8,"translate"),c(),l(9,"p-button",5),C("onClick",function(){return n.router.navigate(["setupwizard/video-sources"])}),m(10,"translate"),c()()()),2&e&&(a(2),S(f(3,4,"settings.rprofiles.title")),a(3),d("ngForOf",n.groups),a(2),x("label",f(8,6,"common.back")),a(2),x("label",f(10,8,"common.next")))},styles:["@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})(),Ao=(()=>{class t{constructor(e){this.httpClient=e}AddDBChannel(e){return this.httpClient.post("/Channel/AddDBChannel",e)}UpdateDBChannel(e){return this.httpClient.post("/Channel/UpdateDBChannel",e)}AddVideoSource(e){return this.httpClient.post("/Channel/AddVideoSource",e)}FetchChannelsFromSource(e){let n=(new ve).set("SourceId",e.SourceId).set("CardId",e.CardId).set("WaitForFinish",e.WaitForFinish);return this.httpClient.get("/Channel/FetchChannelsFromSource",{params:n})}GetChannelInfo(e){let n=(new ve).set("ChanID",e);return this.httpClient.get("/Channel/GetChannelInfo",{params:n})}GetChannelInfoList(e){let n=new ve;return void 0!==e.SourceID&&(n=n.set("SourceID",e.SourceID)),void 0!==e.ChannelGroupID&&(n=n.set("ChannelGroupID",e.ChannelGroupID)),void 0!==e.StartIndex&&(n=n.set("StartIndex",e.StartIndex)),void 0!==e.Count&&(n=n.set("Count",e.Count)),void 0!==e.OnlyVisible&&(n=n.set("OnlyVisible",e.OnlyVisible)),void 0!==e.Details&&(n=n.set("Details",e.Details)),void 0!==e.OrderByName&&(n=n.set("OrderByName",e.OrderByName)),void 0!==e.GroupByCallsign&&(n=n.set("GroupByCallsign",e.GroupByCallsign)),void 0!==e.OnlyTunable&&(n=n.set("OnlyTunable",e.OnlyTunable)),this.httpClient.get("/Channel/GetChannelInfoList",{params:n})}GetDDLineupList(e){let n=(new ve).set("Source",e.Source).set("UserId",e.UserId).set("Password",e.Password);return this.httpClient.get("/Channel/GetDDLineupList",{params:n})}GetVideoMultiplex(e){let n=(new ve).set("MplexID",e);return this.httpClient.get("/Channel/GetVideoMultiplex",{params:n})}GetVideoMultiplexList(e){let n=(new ve).set("SourceID",e.SourceID);return e.StartIndex&&(n=n.set("StartIndex",e.StartIndex)),e.Count&&(n=n.set("Count",e.Count)),this.httpClient.get("/Channel/GetVideoMultiplexList",{params:n})}GetVideoSource(e){let n=(new ve).set("SourceID",e);return this.httpClient.get("/Channel/GetVideoSource",{params:n})}GetVideoSourceList(){return this.httpClient.get("/Channel/GetVideoSourceList")}GetXMLTVIdList(e){let n=(new ve).set("SourceID",e);return this.httpClient.get("/Channel/GetXMLTVIdList",{params:n})}GetAvailableChanid(){return this.httpClient.get("/Channel/GetAvailableChanid",{})}RemoveDBChannel(e){return this.httpClient.post("/Channel/RemoveDBChannel",{ChannelID:e})}RemoveVideoSource(e){return this.httpClient.post("/Channel/RemoveVideoSource",{SourceId:e})}UpdateVideoSource(e){return this.httpClient.post("/Channel/UpdateVideoSource",e)}GetGrabberList(){return this.httpClient.get("/Channel/GetGrabberList")}GetFreqTableList(){return this.httpClient.get("/Channel/GetFreqTableList")}GetCommMethodList(){return this.httpClient.get("/Channel/GetCommMethodList")}StartScan(e){return this.httpClient.post("/Channel/StartScan",e)}GetScanStatus(){return this.httpClient.get("/Channel/GetScanStatus")}StopScan(e){return this.httpClient.post("/Channel/StopScan",{Cardid:e})}GetScanList(e){let n=(new ve).set("SourceID",e);return this.httpClient.get("/Channel/GetScanList",{params:n})}SendScanDialogResponse(e){return this.httpClient.post("/Channel/SendScanDialogResponse",e)}GetRestoreData(e,n,s,o){let r=(new ve).set("SourceId",e).set("XmltvId",n).set("Icon",s).set("Visible",o);return this.httpClient.get("/Channel/GetRestoreData",{params:r})}SaveRestoreData(e){return this.httpClient.post("/Channel/SaveRestoreData",{SourceId:e})}CopyIconToBackend(e,n){return this.httpClient.post("/Channel/CopyIconToBackend",{ChanId:e,Url:n})}}return t.\u0275fac=function(e){return new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const wY=["vsourceform"],TY=["top"];function SY(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.vsource.item_title")," ")}function xY(t,i){}function DY(t,i){if(1&t&&(l(0,"div")(1,"small",34),g(2),c()()),2&t){const e=p(2);a(2),T(" ",e.work.errorMessage," ")}}const fS=function(){return{minWidth:"80%"}};function MY(t,i){if(1&t){const e=I();l(0,"p-dropdown",35,36),C("ngModelChange",function(s){return v(e),p(2).videoSource.Grabber=s})("onChange",function(){return v(e),p(2).checkName()}),c()}if(2&t){const e=p(2);q(A(5,fS)),d("options",e.grabberList.GrabberList.Grabbers)("ngModel",e.videoSource.Grabber)("editable",!1)}}function kY(t,i){if(1&t){const e=I();l(0,"div",10)(1,"label",37),g(2),m(3,"translate"),c(),l(4,"p"),g(5),m(6,"translate"),l(7,"a",38),g(8,"XMLTV"),c()(),l(9,"table")(10,"tr")(11,"td",39),g(12),c(),l(13,"td",40)(14,"button",41),C("click",function(){return v(e),p(2).copyConfigure()}),m(15,"translate"),c()()()()()}if(2&t){const e=p(2);a(2),T(" ",f(3,4,"settings.vsource.grabberconfig_label")," "),a(3),T(" ",f(6,6,"settings.vsource.grabberconfig_desc")," "),a(7),T(" ",e.configCommand," "),a(2),x("pTooltip",f(15,8,"settings.common.clipboard_tooltip"))}}function IY(t,i){if(1&t){const e=I();l(0,"p-dropdown",42,43),C("ngModelChange",function(s){return v(e),p(2).videoSource.FreqTable=s}),c()}if(2&t){const e=p(2);q(A(5,fS)),d("options",e.freqTableList.FreqTableList)("ngModel",e.videoSource.FreqTable)("editable",!1)}}function EY(t,i){if(1&t){const e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return v(e),p().videoSource.SourceName=s})("change",function(){return v(e),p().checkName()}),c(),_(8,DY,3,1,"div",14),l(9,"small",15),g(10),m(11,"translate"),c()(),l(12,"div",10)(13,"label",16),g(14),m(15,"translate"),c(),_(16,MY,2,6,"p-dropdown",17),l(17,"small",15),g(18),m(19,"translate"),c()(),_(20,kY,16,10,"div",18),l(21,"div",10)(22,"p-checkbox",19,20),C("ngModelChange",function(s){return v(e),p().videoSource.UseEIT=s}),m(24,"translate"),c(),l(25,"small",15),g(26),m(27,"translate"),c()(),l(28,"div",10)(29,"label",21),g(30),m(31,"translate"),c(),_(32,IY,2,6,"p-dropdown",22),l(33,"small",15),g(34),m(35,"translate"),c()(),l(36,"div",10)(37,"label",23),g(38),m(39,"translate"),c(),l(40,"p-inputNumber",24),C("ngModelChange",function(s){return v(e),p().videoSource.ScanFrequency=s}),c(),l(41,"small",15),g(42),m(43,"translate"),c()(),l(44,"div",10)(45,"label",25),g(46),m(47,"translate"),c(),l(48,"p-inputNumber",26),C("ngModelChange",function(s){return v(e),p().videoSource.NITId=s}),c(),l(49,"small",15),g(50),m(51,"translate"),c()(),l(52,"div",10)(53,"label",27),g(54),m(55,"translate"),c(),l(56,"p-inputNumber",28),C("ngModelChange",function(s){return v(e),p().videoSource.BouquetId=s}),c(),l(57,"small",15),g(58),m(59,"translate"),l(60,"a",29),g(61,"DVB UK"),c()()(),l(62,"div",10)(63,"label",30),g(64),m(65,"translate"),c(),l(66,"p-inputNumber",31),C("ngModelChange",function(s){return v(e),p().videoSource.RegionId=s}),c(),l(67,"small",15),g(68),m(69,"translate"),l(70,"a",29),g(71,"DVB UK"),c()()(),l(72,"div",10)(73,"label",32),g(74),m(75,"translate"),c(),l(76,"p-inputNumber",33),C("ngModelChange",function(s){return v(e),p().videoSource.LCNOffset=s}),c(),l(77,"small",15),g(78),m(79,"translate"),c()()()()}if(2&t){const e=p();a(4),S(f(5,54,"settings.vsource.source_label")),a(2),d("ngModel",e.videoSource.SourceName)("disabled",e.videoSource.Id>0)("maxlength",50),a(2),d("ngIf",e.work.errorMessage),a(2),T(" ",f(11,56,"settings.vsource.source_desc")," "),a(4),T(" ",f(15,58,"settings.vsource.grabber_label")," "),a(2),d("ngIf",e.grabberList.GrabberList.Grabbers.length>0),a(2),T(" ",f(19,60,"settings.vsource.grabber_desc")," "),a(2),d("ngIf",e.configCommand.length>0),a(2),x("label",f(24,62,"settings.vsource.eit_label")),d("ngModel",e.videoSource.UseEIT)("binary",!0),a(4),T(" ",f(27,64,"settings.vsource.eit_desc")," "),a(4),T(" ",f(31,66,"settings.vsource.freqtable_label")," "),a(2),d("ngIf",e.freqTableList.FreqTableList.length>0),a(2),T(" ",f(35,68,"settings.vsource.freqtable_desc")," "),a(4),T(" ",f(39,70,"settings.vsource.scanfreq_label")," "),a(2),d("ngModel",e.videoSource.ScanFrequency)("min",0)("max",999999999),a(2),T(" ",f(43,72,"settings.vsource.scanfreq_desc")," "),a(4),T(" ",f(47,74,"settings.vsource.netid_label")," "),a(2),d("ngModel",e.videoSource.NITId)("showButtons",!0)("min",-1)("max",65535)("step",1)("useGrouping",!1),a(2),T(" ",f(51,76,"settings.vsource.netid_desc")," "),a(4),T(" ",f(55,78,"settings.vsource.bouquet_label")," "),a(2),d("ngModel",e.videoSource.BouquetId)("showButtons",!0)("min",0)("max",65535)("step",1)("useGrouping",!1),a(2),T(" ",f(59,80,"settings.vsource.bouquet_desc")," "),a(6),T(" ",f(65,82,"settings.vsource.region_label")," "),a(2),d("ngModel",e.videoSource.RegionId)("showButtons",!0)("min",0)("max",100)("step",1)("useGrouping",!1),a(2),T(" ",f(69,84,"settings.vsource.region_desc")," "),a(6),T(" ",f(75,86,"settings.vsource.lcnoffset_label")," "),a(2),d("ngModel",e.videoSource.LCNOffset)("showButtons",!0)("min",0)("max",2e4)("step",100)("useGrouping",!1),a(2),T(" ",f(79,88,"settings.vsource.lcnoffset_desc")," ")}}function RY(t,i){1&t&&(M(0,"p-message",49),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function LY(t,i){1&t&&(M(0,"p-message",50),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function OY(t,i){if(1&t){const e=I();l(0,"div",44)(1,"div",45),_(2,RY,2,3,"p-message",46),_(3,LY,2,3,"p-message",47),c(),l(4,"p-button",48),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||!e.videoSource.SourceName||e.work.validateError||e.setupService.schedulingEnabled)}}let AY=(()=>{class t{constructor(e,n,s,o,r){this.channelService=e,this.translate=n,this.setupService=s,this.clipboard=o,this.mythService=r,this.grabberList={GrabberList:{Grabbers:[]}},this.freqTableList={FreqTableList:[]},this.work={successCount:0,errorCount:0,errorMessage:"",validateError:!1},this.messages={nameInUse:"settings.vsource.nameInUse",nameRequired:"settings.vsource.nameRequired"},this.configCommand="",this.saveObserver={next:u=>{u.bool?this.work.successCount++:!this.videoSource.Id&&u.int?(this.work.successCount++,this.videoSource.Id||(this.videoSource.Id=u.int)):(console.log("saveObserver error",u),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:u=>{console.log("saveObserver error",u),this.work.errorCount++,this.currentForm.form.markAsDirty()}},n.get(this.messages.nameInUse).subscribe(u=>this.messages.nameInUse=u),n.get(this.messages.nameRequired).subscribe(u=>this.messages.nameRequired=u)}ngOnInit(){this.channelService.GetGrabberList().subscribe(e=>{this.grabberList=e}),this.channelService.GetFreqTableList().subscribe(e=>{this.freqTableList=e}),this.mythService.GetBackendInfo().subscribe(e=>{this.backendInfo=e,this.setupConf()})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}copyConfigure(){this.clipboard.copy(this.configCommand)}checkName(){this.work.errorMessage="",this.work.validateError=!1,this.videoSource.SourceName=this.videoSource.SourceName.trim(),this.videoSourceList.VideoSourceList.VideoSources.find(n=>n.SourceName==this.videoSource.SourceName&&n.Id!=this.videoSource.Id)&&(this.work.errorMessage=this.messages.nameInUse,this.work.validateError=!0),""==this.videoSource.SourceName&&(this.work.errorMessage=this.messages.nameRequired,this.work.validateError=!0),this.setupConf()}setupConf(){if("eitonly"==this.videoSource.Grabber||"/bin/true"==this.videoSource.Grabber||""==this.videoSource.Grabber||""==this.videoSource.SourceName||this.work.validateError)this.configCommand="";else{let e=this.backendInfo.BackendInfo.Env.MYTHCONFDIR;e||(e=this.backendInfo.BackendInfo.Env.HOME+"/.mythtv"),this.configCommand="sudo -u "+this.backendInfo.BackendInfo.Env.USER+" "+this.videoSource.Grabber+' --configure --config-file "'+e+"/"+this.videoSource.SourceName+'.xmltv"'}}saveForm(){if(this.work.successCount=0,this.work.errorCount=0,this.videoSource.Id){let e=this.videoSource;e.SourceID=this.videoSource.Id,this.channelService.UpdateVideoSource(e).subscribe(this.saveObserver)}else this.channelService.AddVideoSource(this.videoSource).subscribe(this.saveObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Ao),D(Oe),D(Me),D(lS),D(Bt))},t.\u0275cmp=z({type:t,selectors:[["app-vsource"]],viewQuery:function(e,n){if(1&e&&(W(wY,5),W(TY,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{videoSource:"videoSource",videoSourceList:"videoSourceList"},decls:9,vars:0,consts:[["name","vsourceform",1,"ml-3","mr-3"],["vsourceform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","SourceName",1,"label","block"],["pInputText","","id","SourceName","name","SourceName",1,"mb-2","form-control","w-full",3,"ngModel","disabled","maxlength","ngModelChange","change"],["SourceName","ngModel"],[4,"ngIf"],[1,"block"],["for","Grabber",1,"label","block"],["optionLabel","DisplayName","optionValue","Program","name","Grabber",3,"options","ngModel","editable","style","ngModelChange","onChange",4,"ngIf"],["class","form-group field",4,"ngIf"],["inputId","UseEIT","name","UseEIT",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","FreqTable",1,"label","block"],["name","FreqTable",3,"options","ngModel","editable","style","ngModelChange",4,"ngIf"],["for","ScanFrequency",1,"label","block"],["name","ScanFrequency","id","ScanFrequency",3,"ngModel","min","max","ngModelChange"],["for","NITId",1,"label","block"],["name","NITId","id","NITId",3,"ngModel","showButtons","min","max","step","useGrouping","ngModelChange"],["for","BouquetId",1,"label","block"],["name","BouquetId","id","BouquetId",3,"ngModel","showButtons","min","max","step","useGrouping","ngModelChange"],["href","https://www.mythtv.org/wiki/DVB_UK","target","_blank"],["for","RegionId",1,"label","block"],["name","RegionId","id","RegionId",3,"ngModel","showButtons","min","max","step","useGrouping","ngModelChange"],["for","LCNOffset",1,"label","block"],["name","LCNOffset","id","LCNOffset",3,"ngModel","showButtons","min","max","step","useGrouping","ngModelChange"],[1,"p-error","block"],["optionLabel","DisplayName","optionValue","Program","name","Grabber",3,"options","ngModel","editable","ngModelChange","onChange"],["Grabber","ngModel"],["for","configure",1,"label","block"],["href","http://www.mythtv.org/wiki/XMLTV","target","_blank"],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi pi-copy",1,"p-button-rounded","p-button-text",3,"pTooltip","click"],["name","FreqTable",3,"options","ngModel","editable","ngModelChange"],["FreqTable","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),M(2,"span",null,2),l(4,"p-card",3),_(5,SY,2,3,"ng-template",4),_(6,xY,0,0,"ng-template",5),_(7,EY,80,90,"ng-template",6),_(8,OY,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,we,_e,_n,Q,Ot,An,vt,Qt,on,pt,qe,Ce],pipes:[ce],styles:["a[_ngcontent-%COMP%]:link, a[_ngcontent-%COMP%]:visited, a[_ngcontent-%COMP%]:active{background-color:#fff}"]}),t})();function PY(t,i){if(1&t){const e=I();l(0,"p-button",12),C("click",function(){return v(e),p().displayDeleteAll=!1}),m(1,"translate"),c(),l(2,"p-button",13),C("click",function(){return v(e),p().deleteAllSources()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function FY(t,i){1&t&&(l(0,"div",14),M(1,"br")(2,"p-message",15),m(3,"translate"),M(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function NY(t,i){1&t&&(l(0,"div",14),M(1,"br")(2,"p-message",16),m(3,"translate"),M(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function VY(t,i){if(1&t&&(l(0,"div",20)(1,"div",21),g(2),l(3,"b"),g(4),c()()()),2&t){const e=p().index,n=p();a(2),We(" ",n.videoSourceList.VideoSourceList.VideoSources[e].SourceName," (",n.videoSourceList.VideoSourceList.VideoSources[e].Grabber,") "),a(2),T("\xa0",n.dirtyMessages[e],"")}}function BY(t,i){if(1&t){const e=I();l(0,"p-button",12),C("click",function(){v(e);const s=p(2).index;return p().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",13),C("click",function(){v(e);const s=p(2).index;return p().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const gS=function(){return{width:"50vw"}},HY=function(t,i){return{Grabber:t,DisplayName:i}};function qY(t,i){if(1&t){const e=I();l(0,"p-button",22),C("onClick",function(){v(e);const s=p().index;return p().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",3),C("visibleChange",function(s){v(e);const o=p().index;return p().displayDeleteThis[o]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,BY,4,6,"ng-template",4),c(),M(11,"app-vsource",23)}if(2&t){const e=p().index,n=p();x("label",f(1,13,"settings.vsource.delete_this")),d("disabled",!n.videoSourceList.VideoSourceList.VideoSources[e].Id||n.setupService.schedulingEnabled),a(2),q(A(22,gS)),x("header",f(3,15,"settings.vsource.delete_this")),d("visible",n.displayDeleteThis[e])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,17,"settings.common.ru_sure")),a(3),S(_t(9,19,"settings.vsource.delete_details",Ge(23,HY,n.videoSourceList.VideoSourceList.VideoSources[e].Grabber,n.videoSourceList.VideoSourceList.VideoSources[e].SourceName))),a(3),d("videoSource",n.videoSourceList.VideoSourceList.VideoSources[e])("videoSourceList",n.videoSourceList)}}function GY(t,i){if(1&t){const e=I();l(0,"p-accordionTab",17),C("selectedChange",function(s){const r=v(e).index;return p().activeTab[r]=s}),_(1,VY,5,3,"ng-template",18),_(2,qY,12,26,"ng-template",19),c()}if(2&t){const e=i.index,n=p();d("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}let UY=(()=>{class t{constructor(e,n,s,o){this.setupService=e,this.translate=n,this.channelService=s,this.router=o,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.successCount=0,this.expectedCount=0,this.errorCount=0,this.displayDeleteAll=!1,this.deleteAll=!1,this.videoSourceList={VideoSourceList:{VideoSources:[],AsOf:"",Version:"",ProtoVer:""}},this.delObserver={next:r=>{r.bool?(this.successCount++,this.successCount==this.expectedCount&&(this.deleteAll?(this.loadSources(),this.deleteAll=!1):this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1))):(this.errorCount++,this.deletedTab=-1,this.deleteAll=!1)},error:r=>{console.error(r),this.errorCount++,this.deleteAll=!1}},this.setupService.setCurrentForm(null),this.loadSources(),n.get(this.dirtyText).subscribe(r=>this.dirtyText=r),n.get(this.warningText).subscribe(r=>this.warningText=r),n.get(this.deletedText).subscribe(r=>this.deletedText=r),n.get(this.newText).subscribe(r=>this.newText=r)}loadSources(){this.channelService.GetVideoSourceList().subscribe(e=>{this.videoSourceList=e,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[];for(let n=0;n=this.expectedCount&&(this.errorCount=0,this.successCount=0,this.expectedCount=0),this.showDirty();let n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:this.videoSourceList.VideoSourceList.VideoSources[this.currentTab].Id?"":this.newText)}newSource(){for(let n=0;nn==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return t.\u0275fac=function(e){return new(e||t)(D(Me),D(Oe),D(Ao),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-video-sources"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(o){return n.onWindowClose(o)},!1,ni)},decls:26,vars:32,consts:[[1,"m-5"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["styleClass","p-button-danger","icon","pi pi-trash","iconPos","left",3,"label","disabled","click"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],["styleClass","p-button-warning","icon","pi pi-trash",3,"label","disabled","onClick"],[3,"videoSource","videoSourceList"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return n.newSource()}),m(5,"translate"),c(),g(6," \xa0 "),l(7,"p-button",2),C("click",function(){return n.displayDeleteAll=!0}),m(8,"translate"),c(),l(9,"p-dialog",3),C("visibleChange",function(o){return n.displayDeleteAll=o}),m(10,"translate"),l(11,"h2"),g(12),m(13,"translate"),c(),_(14,PY,4,6,"ng-template",4),c(),M(15,"br"),l(16,"div",5),_(17,FY,5,3,"div",6),_(18,NY,5,3,"div",6),c(),l(19,"p-accordion",7),C("onClose",function(o){return n.onTabClose(o)})("onOpen",function(o){return n.onTabOpen(o)}),_(20,GY,3,2,"p-accordionTab",8),c(),l(21,"div",9)(22,"p-button",10),C("onClick",function(){return n.router.navigate(["setupwizard/recording-profiles"])}),m(23,"translate"),c(),l(24,"p-button",11),C("onClick",function(){return n.router.navigate(["setupwizard/input-connections"])}),m(25,"translate"),c()()()),2&e&&(a(2),S(f(3,17,"settings.vsource.title")),a(2),x("label",f(5,19,"settings.vsource.new_video_source")),a(3),x("label",f(8,21,"settings.vsource.delete_all")),d("disabled",n.setupService.schedulingEnabled),a(2),q(A(31,gS)),x("header",f(10,23,"settings.vsource.delete_all")),d("visible",n.displayDeleteAll)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(13,25,"settings.common.ru_sure")),a(5),d("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),d("ngIf",n.errorCount>0),a(2),d("ngForOf",n.videoSourceList.VideoSourceList.VideoSources),a(2),x("label",f(23,27,"common.back")),a(2),x("label",f(25,29,"common.next")))},directives:[Ne,Ce,bn,ne,Q,qe,Ss,at,Ts,AY],pipes:[ce],styles:["@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();function zY(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),g(2),l(3,"b"),g(4),c()()()),2&t){const e=p(2),n=e.$implicit,s=e.index,o=p();a(2),Oc(" ",n.CardType," ",n.VideoDevice," (",n.DisplayName,") => ",o.videoSourceLookup[n.SourceId].SourceName," "),a(2),T("\xa0",o.dirtyMessages[s],"")}}function jY(t,i){1&t&&_(0,zY,5,5,"div",9),2&t&&d("ngIf",p(2).readyCount>1)}function $Y(t,i){if(1&t&&M(0,"app-iconnection",12),2&t){const e=p().index,n=p();d("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)("videoSourceLookup",n.videoSourceLookup)("videoSourceList",n.videoSourceList)("parentComponent",n)}}function WY(t,i){if(1&t){const e=I();l(0,"p-accordionTab",6),C("selectedChange",function(s){const r=v(e).index;return p().activeTab[r]=s}),_(1,jY,1,1,"ng-template",7),_(2,$Y,1,5,"ng-template",8),c()}if(2&t){const e=i.index;d("selected",p().activeTab[e])}}let _S=(()=>{class t{constructor(e,n,s,o,r,u){this.mythService=e,this.router=n,this.captureCardService=s,this.setupService=o,this.translate=r,this.channelService=u,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.activeTab=[],this.readyCount=0,this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.m_hostName="",this.m_CaptureCardsFiltered=[],this.videoSourceList={VideoSourceList:{VideoSources:[],AsOf:"",Version:"",ProtoVer:""}},this.videoSourceLookup=[],this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(h=>{this.m_hostName=h.String,this.loadCards(!0)}),this.loadSources(),r.get(this.dirtyText).subscribe(h=>this.dirtyText=h),r.get(this.warningText).subscribe(h=>this.warningText=h)}loadCards(e){this.m_CaptureCardList$=this.captureCardService.GetCaptureCardList("",""),this.m_CaptureCardList$.subscribe(n=>{this.m_CaptureCardList=n,e&&this.filterCards(),this.readyCount++})}filterCards(){this.m_CaptureCardsFiltered=this.m_CaptureCardList.CaptureCardList.CaptureCards.filter(e=>0==e.ParentId&&e.HostName==this.m_hostName),this.dirtyMessages=[],this.forms=[],this.activeTab=[];for(let e=0;e{this.videoSourceList=e,this.videoSourceList.VideoSourceList.VideoSources.unshift({Id:0,SourceName:"(None)",ScanFrequency:0}),this.videoSourceLookup=[],this.videoSourceList.VideoSourceList.VideoSources.forEach(n=>{this.videoSourceLookup[n.Id]=n}),this.readyCount++})}ngOnInit(){}onTabOpen(e){this.showDirty();let n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}confirm(e){return re(window.confirm(e))}canDeactivate(){let e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return t.\u0275fac=function(e){return new(e||t)(D(Bt),D(It),D(Gt),D(Me),D(Oe),D(Ao))},t.\u0275cmp=z({type:t,selectors:[["app-input-connections"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(o){return n.onWindowClose(o)},!1,ni)},decls:11,vars:10,consts:[[1,"m-5"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],["class","grid w-full",4,"ngIf"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"card","cardList","videoSourceLookup","videoSourceList","parentComponent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",1),C("onClose",function(o){return n.onTabClose(o)})("onOpen",function(o){return n.onTabOpen(o)}),_(5,WY,3,1,"p-accordionTab",2),c(),l(6,"div",3)(7,"p-button",4),C("onClick",function(){return n.router.navigate(["setupwizard/video-sources"])}),m(8,"translate"),c(),l(9,"p-button",5),C("onClick",function(){return n.router.navigate(["setupwizard/channel-editor"])}),m(10,"translate"),c()()()),2&e&&(a(2),S(f(3,4,"settings.iconnections.title")),a(3),d("ngForOf",n.m_CaptureCardsFiltered),a(2),x("label",f(8,6,"common.back")),a(2),x("label",f(10,8,"common.next")))},styles:["@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const KY=["sgroupform"],QY=function(t){return{name:t}};function JY(t,i){if(1&t&&M(0,"span",8),2&t){const e=p();d("translate","settings.sgroups.sgroup_title")("translateParams",U(2,QY,e.sgroup.LocalizedName))}}function YY(t,i){}function ZY(t,i){1&t&&(l(0,"div")(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.sgroups.deleted_label")))}function XY(t,i){if(1&t){const e=I();l(0,"tr")(1,"td",20),g(2),c(),l(3,"td",21)(4,"button",22),C("click",function(){const o=v(e).index;return p(2).editDirectory(o)}),c()(),l(5,"td",21)(6,"button",23),C("click",function(){const o=v(e).index;return p(2).deleteDirectory(o)}),c()(),l(7,"td"),_(8,ZY,4,3,"div",24),c()()}if(2&t){const e=i.index,n=p(2);a(2),T(" ",n.editDirs[e]," "),a(2),d("disabled",!n.editDirs[e]),a(2),d("disabled",!n.editDirs[e]),a(2),d("ngIf",!n.editDirs[e])}}function eZ(t,i){if(1&t){const e=I();l(0,"p-button",25),C("onClick",function(){return v(e),p(2).showEditDlg=!1}),m(1,"translate"),c(),l(2,"p-button",26),C("onClick",function(){v(e);const s=p(2);return s.editDirs[s.editDlgNum]=s.editDirName,s.showEditDlg=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.cancel")),a(2),x("label",f(3,4,"common.ok")))}const tZ=function(){return{width:"50vw"}},nZ=function(){return{height:"50vh"}};function iZ(t,i){if(1&t){const e=I();l(0,"div",9)(1,"div",10)(2,"table"),_(3,XY,9,4,"tr",11),c(),l(4,"p-dialog",12),C("visibleChange",function(s){return v(e),p().showEditDlg=s}),m(5,"translate"),l(6,"div",13)(7,"label",14),g(8),m(9,"translate"),c(),l(10,"input",15,16),C("ngModelChange",function(s){return v(e),p().editDirName=s})("change",function(){return v(e),p().textChange()}),c()(),l(12,"p-listbox",17,18),C("ngModelChange",function(s){return v(e),p().selectedDir=s})("onClick",function(){return v(e),p().selectDir()}),c(),_(14,eZ,4,6,"ng-template",7),c(),M(15,"br"),l(16,"p-button",19),C("onClick",function(){return v(e),p().addDirectory()}),m(17,"translate"),c()()()}if(2&t){const e=p();a(3),d("ngForOf",e.editDirs),a(1),q(A(20,tZ)),x("header",f(5,14,"settings.sgroups.seldir_title")),d("visible",e.showEditDlg)("modal",!0)("draggable",!1)("resizable",!1),a(4),S(f(9,16,"settings.sgroups.dirname_label")),a(2),d("ngModel",e.editDirName),a(2),d("options",e.dirSelect)("ngModel",e.selectedDir)("listStyle",A(21,nZ)),a(4),x("label",f(17,18,"settings.sgroups.adddir_button"))}}function sZ(t,i){1&t&&(M(0,"p-message",32),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function oZ(t,i){1&t&&(M(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function rZ(t,i){if(1&t){const e=I();l(0,"div",27)(1,"div",28),_(2,sZ,2,3,"p-message",29),_(3,oZ,2,3,"p-message",30),c(),l(4,"p-button",31),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let aZ=(()=>{class t{constructor(e,n,s){this.mythService=e,this.setupService=n,this.translate=s,this.successCount=0,this.errorCount=0,this.expectCount=0,this.showEditDlg=!1,this.editDlgNum=-1,this.editDirName="",this.editDirs=[],this.dirSelect=[],this.selectedDir="",this.upString="UP 1 LEVEL",this.saveObserver={next:o=>{o.bool?(this.successCount++,this.successCount==this.expectCount&&(this.sgroup.DirNames=this.editDirs.filter(r=>r.length>1))):(this.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.error(o),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get("settings.sgroups.updir").subscribe(o=>this.upString="// ** "+o+" **")}ngOnInit(){this.editDirs=this.sgroup.DirNames.slice()}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}selectDir(){for(;"/"==this.editDirName.charAt(this.editDirName.length-1);)this.editDirName=this.editDirName.substring(0,this.editDirName.length-1);if(this.selectedDir.startsWith("//")){let e=this.editDirName.lastIndexOf("/");this.editDirName=this.editDirName.substring(0,e),0==this.editDirName.length&&(this.editDirName="/")}else this.editDirName=this.editDirName+"/"+this.selectedDir;this.fillDirList()}textChange(){this.fillDirList()}fillDirList(){0!=this.editDirName.indexOf("/")&&(this.editDirName="/"+this.editDirName),this.mythService.GetDirListing(this.editDirName).subscribe(e=>{"/"!=this.editDirName&&e.DirListing.unshift(this.upString),this.dirSelect=e.DirListing})}addDirectory(){this.editDirs.push("/"),this.editDirectory(this.editDirs.length-1)}editDirectory(e){this.editDirName=this.editDirs[e],this.editDlgNum=e,this.showEditDlg=!0,this.fillDirList()}deleteDirectory(e){this.editDirs[e]="",this.currentForm.form.markAsDirty()}saveForm(){this.successCount=0,this.errorCount=0,this.expectCount=0;for(let e=0;e{""!=e&&-1==this.sgroup.DirNames.indexOf(e)&&(this.mythService.AddStorageGroupDir({GroupName:this.sgroup.GroupName,DirName:e,HostName:this.hostName}).subscribe(this.saveObserver),this.expectCount++)}),this.sgroup.DirNames.forEach(e=>{-1==this.editDirs.indexOf(e)&&(this.mythService.RemoveStorageGroupDir({GroupName:this.sgroup.GroupName,DirName:e,HostName:this.hostName}).subscribe(this.saveObserver),this.expectCount++)})}}return t.\u0275fac=function(e){return new(e||t)(D(Bt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-sgroup"]],viewQuery:function(e,n){if(1&e&&W(KY,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},inputs:{sgroup:"sgroup",hostName:"hostName"},decls:9,vars:0,consts:[["name","sgroupform",1,"ml-3","mr-3"],["sgroupform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[3,"translate","translateParams"],[1,"grid"],[1,"mb-4","w-full"],[4,"ngFor","ngForOf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[1,"form-group","field"],["for","DirName",1,"label","block"],["pInputText","","id","DirName","name","DirName",1,"mb-2","form-control","w-full",2,"font-family","monospace",3,"ngModel","ngModelChange","change"],["DirName","ngModel"],["name","ListDirs",3,"options","ngModel","listStyle","ngModelChange","onClick"],["ListDirs","ngModel"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi pi-pencil","pTooltip","Edit",1,"p-button-rounded","p-button-text",3,"disabled","click"],["pButton","","pRipple","","type","button","icon","pi pi-trash","pTooltip","Delete",1,"p-button-rounded","p-button-text",3,"disabled","click"],[4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","onClick"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),M(2,"span",null,2),l(4,"p-card",3),_(5,JY,1,4,"ng-template",4),_(6,YY,0,0,"ng-template",5),_(7,iZ,18,22,"ng-template",6),_(8,rZ,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,_u,at,An,vt,Qt,Q,bn,Ye,we,_e,zi,Ce,qe],pipes:[ce],styles:[""]}),t})();function lZ(t,i){if(1&t){const e=I();l(0,"p-button",14),C("onClick",function(){return v(e),p().displayNewDlg=!1}),m(1,"translate"),c(),l(2,"p-button",15),C("onClick",function(){return v(e),p().newGroup()}),m(3,"translate"),c()}if(2&t){const e=p();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),d("disabled",""==e.newGroupName)}}const cZ=function(t){return{name:t}};function uZ(t,i){if(1&t&&M(0,"span",23),2&t){const e=p(2).index,n=p();d("translate","settings.sgroups.tab_create_title")("translateParams",U(2,cZ,n.storageGroups[e].LocalizedName))}}function dZ(t,i){if(1&t&&g(0),2&t){const e=p(2).index;T(" ",p().storageGroups[e].LocalizedName," ")}}function pZ(t,i){if(1&t&&(l(0,"div",19)(1,"div",20),_(2,uZ,1,4,"span",21),_(3,dZ,1,1,"ng-template",null,22,Se),l(5,"b"),g(6),c()()()),2&t){const e=F(4),n=p().index,s=p();a(2),d("ngIf",0==s.storageGroups[n].DirNames.length)("ngIfElse",e),a(4),T("\xa0",s.dirtyMessages[n],"")}}function hZ(t,i){if(1&t&&M(0,"app-sgroup",24),2&t){const e=p().index,n=p();d("sgroup",n.storageGroups[e])("hostName",n.hostName)}}function mZ(t,i){if(1&t){const e=I();l(0,"p-accordionTab",16),C("selectedChange",function(s){const r=v(e).index;return p().activeTab[r]=s}),_(1,pZ,7,3,"ng-template",17),_(2,hZ,1,2,"ng-template",18),c()}if(2&t){const e=i.index;d("selected",p().activeTab[e])}}const fZ=function(){return{width:"50vw"}};let gZ=(()=>{class t{constructor(e,n,s,o){this.setupService=e,this.translate=n,this.mythService=s,this.router=o,this.forms=[],this.dirtyMessages=[],this.currentTab=-1,this.activeTab=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.hostName="",this.storageGroupDirs=[],this.storageGroups=[{GroupName:"Default",LocalizedName:"",DirNames:[]},{GroupName:"LiveTV",LocalizedName:"",DirNames:[]},{GroupName:"DB Backups",LocalizedName:"",DirNames:[]},{GroupName:"Videos",LocalizedName:"",DirNames:[]},{GroupName:"Trailers",LocalizedName:"",DirNames:[]},{GroupName:"Coverart",LocalizedName:"",DirNames:[]},{GroupName:"Fanart",LocalizedName:"",DirNames:[]},{GroupName:"Screenshots",LocalizedName:"",DirNames:[]},{GroupName:"Banners",LocalizedName:"",DirNames:[]},{GroupName:"Photographs",LocalizedName:"",DirNames:[]},{GroupName:"Music",LocalizedName:"",DirNames:[]},{GroupName:"MusicArt",LocalizedName:"",DirNames:[]}],this.displayNewDlg=!1,this.newGroupName="",this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(r=>{this.hostName=r.String,this.loadGroups()}),n.get(this.dirtyText).subscribe(r=>this.dirtyText=r),n.get(this.warningText).subscribe(r=>this.warningText=r),n.get(this.deletedText).subscribe(r=>this.deletedText=r),n.get(this.newText).subscribe(r=>this.newText=r),this.storageGroups.forEach(r=>n.get("settings.sgroups.special."+r.GroupName).subscribe(u=>r.LocalizedName=u))}loadGroups(){this.mythService.GetStorageGroupDirs({HostName:this.hostName}).subscribe(e=>{this.storageGroupDirs=e.StorageGroupDirList.StorageGroupDirs,this.storageGroupDirs.forEach(n=>{let s=this.storageGroups.find(o=>o.GroupName==n.GroupName);s?s.DirNames.push(n.DirName):this.storageGroups.push({GroupName:n.GroupName,LocalizedName:n.GroupName,DirNames:[n.DirName]})})})}ngOnInit(){}onTabOpen(e){this.showDirty();let n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}newGroup(){this.displayNewDlg=!1,!this.storageGroups.find(n=>n.GroupName==this.newGroupName)&&(this.storageGroups.push({GroupName:this.newGroupName,LocalizedName:this.newGroupName,DirNames:[]}),this.newGroupName="")}confirm(e){return re(window.confirm(e))}canDeactivate(){let e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return t.\u0275fac=function(e){return new(e||t)(D(Me),D(Oe),D(Bt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-storage-groups"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(o){return n.onWindowClose(o)},!1,ni)},decls:25,vars:24,consts:[[1,"m-5"],["label","New Storage Group","icon","pi pi-plus-circle","styleClass","p-button-plain",3,"onClick"],["header","New Storage Group",3,"visible","modal","draggable","resizable","visibleChange"],[1,"form-group","field"],["for","GroupName",1,"block"],["pInputText","","id","GroupName","name","GroupName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["GroupName","ngModel"],[1,"block"],["pTemplate","footer"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"translate","translateParams",4,"ngIf","ngIfElse"],["onlyName",""],[3,"translate","translateParams"],[3,"sgroup","hostName"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return n.displayNewDlg=!0}),c(),l(5,"p-dialog",2),C("visibleChange",function(o){return n.displayNewDlg=o}),l(6,"p"),g(7),m(8,"translate"),c(),l(9,"div",3)(10,"label",4),g(11),m(12,"translate"),c(),l(13,"input",5,6),C("ngModelChange",function(o){return n.newGroupName=o}),c(),M(15,"small",7),c(),_(16,lZ,4,7,"ng-template",8),c(),M(17,"br"),l(18,"p-accordion",9),C("onClose",function(o){return n.onTabClose(o)})("onOpen",function(o){return n.onTabOpen(o)}),_(19,mZ,3,1,"p-accordionTab",10),c(),l(20,"div",11)(21,"p-button",12),C("onClick",function(){return n.router.navigate(["setupwizard/channel-editor"])}),m(22,"translate"),c(),l(23,"p-button",13),C("onClick",function(){return n.router.navigate(["setupwizard/system-events"])}),m(24,"translate"),c()()()),2&e&&(a(2),S(f(3,13,"settings.sgroups.title")),a(3),q(A(23,fZ)),d("visible",n.displayNewDlg)("modal",!0)("draggable",!1)("resizable",!1),a(2),S(f(8,15,"settings.sgroups.name_prompt")),a(4),S(f(12,17,"settings.sgroups.name_label")),a(2),d("ngModel",n.newGroupName),a(6),d("ngForOf",n.storageGroups),a(2),x("label",f(22,19,"common.back")),a(2),x("label",f(24,21,"common.next")))},directives:[Ne,Ce,bn,Ye,we,_e,ne,Ss,at,Ts,Q,_u,aZ],pipes:[ce],styles:["@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const _Z=["eventsform"];function bZ(t,i){if(1&t){const e=I();l(0,"div",9)(1,"div",10)(2,"label",11),g(3),c(),l(4,"input",12),C("ngModelChange",function(s){return v(e).$implicit.Value=s}),c()()()}if(2&t){const e=i.$implicit;a(2),x("for",e.Key),a(1),S(e.LocalizedName),a(1),x("id",e.Key),x("name",e.Key),d("ngModel",e.Value)}}function vZ(t,i){if(1&t&&(l(0,"div",7),_(1,bZ,5,5,"div",8),c()),2&t){const e=p();a(1),d("ngForOf",e.events)}}function CZ(t,i){1&t&&(M(0,"p-message",18),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function yZ(t,i){1&t&&(M(0,"p-message",19),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function wZ(t,i){if(1&t){const e=I();l(0,"div",13)(1,"div",14),_(2,CZ,2,3,"p-message",15),_(3,yZ,2,3,"p-message",16),c(),l(4,"p-button",17),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let TZ=(()=>{class t{constructor(e,n,s,o,r){this.configService=e,this.translate=n,this.setupService=s,this.mythService=o,this.router=r,this.hostName="",this.events=[],this.successCount=0,this.errorCount=0,this.expectedCount=0,this.warningText="settings.common.warning",this.kClearSettingValue="",this.jqbObserver={next:u=>{u.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:u=>{console.error(u),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.mythService.GetHostName().subscribe({next:u=>{this.hostName=u.String,this.configService.GetSystemEvents().subscribe(h=>{this.eventList=h,this.events=h.SystemEventList.SystemEvents})},error:()=>this.errorCount++}),this.translate.get(this.warningText).subscribe(u=>{this.warningText=u})}ngOnInit(){}saveForm(){this.successCount=0,this.errorCount=0,this.expectedCount=0,this.events.forEach(e=>{let n=e.Value.trim();n?this.mythService.PutSetting({HostName:this.hostName,Key:e.Key,Value:n}).subscribe(this.jqbObserver):this.mythService.DeleteSetting({HostName:this.hostName,Key:e.Key}).subscribe(this.jqbObserver),this.expectedCount++})}confirm(e){return re(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return t.\u0275fac=function(e){return new(e||t)(D(zr),D(Oe),D(Me),D(Bt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-system-events"]],viewQuery:function(e,n){if(1&e&&W(_Z,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(o){return n.onWindowClose(o)},!1,ni)},decls:11,vars:6,consts:[["name","eventsform",1,"ml-3","mr-3"],["eventsform","ngForm"],[1,"m-5"],["pTemplate","content"],["pTemplate","footer"],[1,"flex","justify-content-end"],["icon","pi pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],[1,"grid"],["class","mb-4 w-full",4,"ngFor","ngForOf"],[1,"mb-4","w-full"],[1,"form-group","field"],[1,"label","block",3,"for"],["pInputText","",1,"mb-2","form-control","w-full",3,"id","ngModel","name","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"h2"),g(3),m(4,"translate"),c(),l(5,"p-card",2),_(6,vZ,2,1,"ng-template",3),_(7,wZ,6,6,"ng-template",4),c(),l(8,"div",5)(9,"p-button",6),C("onClick",function(){return n.router.navigate(["setupwizard/storage-groups"])}),m(10,"translate"),c()()()),2&e&&(a(3),S(f(4,2,"settings.sysevents.title")),a(6),x("label",f(10,4,"common.back")))},directives:[ze,Ue,He,Ne,ne,at,Ye,we,_e,Q,qe,Ce],pipes:[ce],styles:["@media screen and (max-width: 48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const SZ=["chanform"];function xZ(t,i){if(1&t){const e=I();l(0,"button",78),C("click",function(){return v(e),p(2).openNew()}),m(1,"translate"),c()}if(2&t){const e=p(2);x("label",f(1,2,"settings.chanedit.new_channel")),d("disabled","S"==e.setupService.pageType&&e.setupService.schedulingEnabled)}}function DZ(t,i){1&t&&g(0),2&t&&T(" ",i.$implicit," ")}function MZ(t,i){if(1&t){const e=I();l(0,"p-dropdown",95),C("onChange",function(s){return v(e).filterCallback(s.value)}),m(1,"translate"),_(2,DZ,1,1,"ng-template",22),c()}if(2&t){const e=i.$implicit,n=p(3);x("placeholder",f(1,4,"settings.chanedit.all")),d("ngModel",e)("options",n.sourceNames)("showClear",!0)}}function kZ(t,i){if(1&t){const e=I();l(0,"p-button",96),C("onClick",function(){return v(e),p(3).deleteSourceRequest()}),m(1,"translate"),m(2,"translate"),c()}if(2&t){const e=p(3);x("pTooltip",f(1,3,"settings.chanedit.delete_source")),x("label",f(2,5,"common.delete")),d("disabled",e.setupService.schedulingEnabled)}}function IZ(t,i){1&t&&(l(0,"div",97),g(1),m(2,"translate"),c()),2&t&&(a(1),T(" ",f(2,1,"settings.chanedit.delete_message")," "))}function EZ(t,i){1&t&&M(0,"button",98)}function RZ(t,i){if(1&t){const e=I();l(0,"tr")(1,"th"),g(2),m(3,"translate"),l(4,"p-columnFilter",79),_(5,MZ,3,6,"ng-template",80),c(),_(6,kZ,3,7,"p-button",81),l(7,"p-button",82),C("onClick",function(){return v(e),p(2).restoreDataRequest()}),m(8,"translate"),m(9,"translate"),c(),l(10,"p-button",83),C("onClick",function(){return v(e),p(2).downloadIconsRequest()}),m(11,"translate"),m(12,"translate"),c(),_(13,IZ,3,3,"div",84),c()(),l(14,"tr")(15,"th",85),g(16,"\xa0"),c(),l(17,"th",86),g(18),m(19,"translate"),M(20,"p-sortIcon",87),c(),l(21,"th",88),g(22),m(23,"translate"),c(),l(24,"th",89),g(25),m(26,"translate"),c(),l(27,"th",90),g(28),m(29,"translate"),c(),l(30,"th",91),g(31),m(32,"translate"),M(33,"p-sortIcon",92),c(),l(34,"th",88),g(35),m(36,"translate"),c(),l(37,"th",89),g(38),m(39,"translate"),c(),l(40,"th",88),g(41),m(42,"translate"),c(),l(43,"th",88),M(44,"button",93),_(45,EZ,1,0,"button",94),c()()}if(2&t){const e=p(2);a(2),T("",f(3,19,"settings.chanedit.col_source"),": \xa0 "),a(2),d("showMenu",!1),a(2),d("ngIf","S"==e.setupService.pageType),a(1),x("pTooltip",f(8,21,"settings.chanedit.res_tooltip")),x("label",f(9,23,"settings.chanedit.res_title")),d("disabled",0==e.videoSources.length),a(3),x("pTooltip",f(11,25,"settings.chanedit.icondld_tooltip")),x("label",f(12,27,"settings.chanedit.icondld_title")),d("disabled",0==e.videoSources.length),a(3),d("ngIf","S"!=e.setupService.pageType),a(5),T(" ",f(19,29,"settings.chanedit.col_channum")," "),a(4),S(f(23,31,"settings.chanedit.col_freqid")),a(3),S(f(26,33,"settings.chanedit.col_callsign")),a(3),S(f(29,35,"settings.chanedit.col_name")),a(3),T(" ",f(32,37,"settings.chanedit.col_source")," "),a(4),S(f(36,39,"settings.chanedit.col_priority")),a(3),S(f(39,41,"settings.chanedit.col_visibility")),a(3),S(f(42,43,"settings.chanedit.col_useeit")),a(4),d("ngIf","S"==e.setupService.pageType)}}function LZ(t,i){1&t&&M(0,"img",106),2&t&&x("src","/Guide/GetChannelIcon?Filename="+p().$implicit.Icon,Wt)}function OZ(t,i){1&t&&M(0,"img",107)}function AZ(t,i){if(1&t){const e=I();l(0,"button",108),C("click",function(){v(e);const s=p().$implicit;return p(2).deleteRequest(s)}),m(1,"translate"),c()}if(2&t){const e=p().$implicit,n=p(2);x("pTooltip",f(1,2,"settings.chanedit.deletechan")),d("disabled",e.ChanId<0||n.setupService.schedulingEnabled)}}const PZ=function(t){return{"line-through":t}};function FZ(t,i){if(1&t){const e=I();l(0,"tr",99)(1,"td",85),_(2,LZ,1,1,"img",100),_(3,OZ,1,0,"ng-template",null,101,Se),c(),l(5,"td",102),g(6),c(),l(7,"td",88),g(8),c(),l(9,"td",89),g(10),c(),l(11,"td",90),g(12),c(),l(13,"td",103),g(14),c(),l(15,"td",88),g(16),c(),l(17,"td",89),g(18),c(),l(19,"td",88),g(20),c(),l(21,"td",88)(22,"button",104),C("click",function(){const o=v(e).$implicit;return p(2).editChannel(o)}),m(23,"translate"),c(),_(24,AZ,2,4,"button",105),c()()}if(2&t){const e=i.$implicit,n=F(4),s=p(2);d("ngClass",U(16,PZ,e.ChanId<0)),a(2),d("ngIf",e.Icon)("ngIfElse",n),a(4),S(e.ChanNum),a(2),S(e.FrequencyId),a(2),S(e.CallSign),a(2),S(e.ChannelName),a(2),S(e.Source),a(2),S(e.RecPriority),a(2),S(s.getVisibility(e)),a(2),S(e.UseEIT?"Y":"N"),a(2),x("pTooltip",f(23,14,"settings.chanedit.editchan")),d("disabled",e.ChanId<0||"S"==s.setupService.pageType&&s.setupService.schedulingEnabled),a(2),d("ngIf","S"==s.setupService.pageType)}}function NZ(t,i){if(1&t){const e=I();l(0,"div",73)(1,"p-table",74),C("onFilter",function(s){return v(e),p().onFilter(s)}),_(2,xZ,2,4,"ng-template",75),_(3,RZ,46,45,"ng-template",76),_(4,FZ,25,18,"ng-template",77),c()()}if(2&t){const e=p();a(1),d("value",e.allChannels)("scrollable",!0)("rowHover",!0)}}function VZ(t,i){1&t&&M(0,"p-progressSpinner")}function BZ(t,i){1&t&&M(0,"img",110),2&t&&x("src","/Guide/GetChannelIcon?Filename="+p(3).channel.Icon,Wt)}function HZ(t,i){if(1&t&&(l(0,"div"),_(1,BZ,1,1,"img",109),g(2),c()),2&t){const e=p(2);a(1),d("ngIf",!e.channel.Icon.endsWith("\t")),a(1),T(" \xa0\xa0",e.channel.Icon," ")}}function qZ(t,i){1&t&&_(0,HZ,3,2,"div",57),2&t&&d("ngIf",p().channel.Icon)}function GZ(t,i){1&t&&M(0,"img",110),2&t&&x("src","/Guide/GetChannelIcon?Filename="+p().$implicit,Wt)}function UZ(t,i){if(1&t&&(l(0,"div"),_(1,GZ,1,1,"img",109),g(2),c()),2&t){const e=i.$implicit;a(1),d("ngIf",!e.endsWith("\t")),a(1),T(" \xa0\xa0",e," ")}}function zZ(t,i){1&t&&(M(0,"p-message",116),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function jZ(t,i){1&t&&(M(0,"p-message",117),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function $Z(t,i){if(1&t){const e=I();l(0,"div",111),_(1,zZ,2,3,"p-message",112),_(2,jZ,2,3,"p-message",113),c(),l(3,"p-button",114),C("onClick",function(){return v(e),p().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",115),C("onClick",function(){return v(e),p().saveChannel()}),m(6,"translate"),c()}if(2&t){const e=p(),n=F(7);a(1),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),d("disabled",!n.dirty||""==e.channel.ChannelName.trim()||""==e.channel.ChanNum.trim()||""==e.channel.CallSign.trim())}}function WZ(t,i){if(1&t){const e=I();l(0,"p-button",118),C("onClick",function(){return v(e),p().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",119),C("onClick",function(){return v(e),p().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}function KZ(t,i){1&t&&(M(0,"p-message",117),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function QZ(t,i){if(1&t){const e=I();l(0,"div",111),_(1,KZ,2,3,"p-message",113),c(),l(2,"p-button",114),C("onClick",function(){v(e);const s=p(),o=F(7);return s.displayDelete=!1,o.form.markAsPristine()}),m(3,"translate"),c(),l(4,"p-button",120),C("onClick",function(){v(e);const s=p();return s.deleteChannel(s.channel)}),m(5,"translate"),c()}if(2&t){const e=p();a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"common.delete"))}}const JZ=function(t){return{Source:t}};function YZ(t,i){if(1&t&&(l(0,"p")(1,"b"),g(2),m(3,"translate"),c()()),2&t){const e=p();a(2),S(_t(3,1,"settings.chanedit.delete_source_details",U(4,JZ,e.filterEvent.filters.Source.value)))}}function ZZ(t,i){1&t&&(l(0,"p")(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.chanedit.delete_all_details")))}function XZ(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c()()),2&t){const e=p();a(2),yr(" ",f(3,3,"common.delete")," ",e.channel.ChanNum," ",e.channel.ChannelName,"")}}function eX(t,i){1&t&&(M(0,"p-message",117),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function tX(t,i){if(1&t){const e=I();l(0,"div",111),_(1,eX,2,3,"p-message",113),c(),l(2,"p-button",114),C("onClick",function(){v(e);const s=p(),o=F(7);return s.displayDeleteSource=!1,s.channelOperation=-1,o.form.markAsPristine()}),m(3,"translate"),c(),l(4,"p-button",121),C("onClick",function(){return v(e),p().deleteSource()}),m(5,"translate"),c()}if(2&t){const e=p();a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(3,4,"common.cancel")),a(2),x("label",f(5,6,"common.delete")),d("disabled",e.working)}}const nX=function(t,i,e,n){return{NumChannels:t,NumXLMTVID:i,NumVisible:e,NumIcon:n}};function iX(t,i){if(1&t&&(M(0,"p-message",124),m(1,"translate")),2&t){const e=p(2);x("text",_t(1,1,"settings.chanedit.restore_details",Ln(4,nX,e.resResult.NumChannels,e.resResult.NumXLMTVID,e.resResult.NumVisible,e.resResult.NumIcon)))}}function sX(t,i){1&t&&(M(0,"p-message",116),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function oX(t,i){1&t&&(M(0,"p-message",117),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function rX(t,i){if(1&t){const e=I();l(0,"div",111),_(1,iX,2,9,"p-message",122),c(),l(2,"div",111),_(3,sX,2,3,"p-message",112),c(),l(4,"div",111),_(5,oX,2,3,"p-message",113),c(),l(6,"p-button",114),C("onClick",function(){return v(e),p().closeDialog()}),m(7,"translate"),c(),l(8,"p-button",123),C("onClick",function(){return v(e),p().restoreSearch()}),m(9,"translate"),c(),l(10,"p-button",115),C("onClick",function(){return v(e),p().restoreSave()}),m(11,"translate"),c()}if(2&t){const e=p(),n=F(7);a(1),d("ngIf",e.resSearchDone&&!n.dirty),a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(2),d("ngIf",e.errorCount>0),a(1),x("label",f(7,8,"common.close")),a(2),x("label",f(9,10,"common.search")),d("disabled",!e.resSourceId||!e.resXMLTV&&!e.resIcon&&!e.resVisible),a(2),x("label",f(11,12,"common.save")),d("disabled",!e.resSearchDone||!e.resResult.NumChannels||!n.pristine)}}const aX=function(t,i){return{Count:t,Max:i}};function lX(t,i){if(1&t&&(l(0,"div",111),g(1),m(2,"translate"),l(3,"table")(4,"tr")(5,"td"),g(6),m(7,"translate"),c(),l(8,"td"),g(9),c()(),l(10,"tr")(11,"td"),g(12),m(13,"translate"),c(),l(14,"td"),g(15),c()(),l(16,"tr")(17,"td"),g(18),m(19,"translate"),c(),l(20,"td"),g(21),c()()()()),2&t){const e=p(2);a(1),T(" ",_t(2,7,"settings.chanedit.icondld_details",Ge(16,aX,e.icondldCount,e.icondldMax))," "),a(5),T(" ",f(7,10,"settings.chanedit.icondld_found")," "),a(3),S(e.icondldFound),a(3),T(" ",f(13,12,"settings.chanedit.icondld_success")," "),a(3),S(e.successCount),a(3),T(" ",f(19,14,"settings.chanedit.icondld_failed")," "),a(3),S(e.errorCount)}}function cX(t,i){1&t&&(M(0,"p-message",116),m(1,"translate")),2&t&&x("text",f(1,1,"settings.chanedit.icondld_complete"))}function uX(t,i){if(1&t){const e=I();_(0,lX,22,19,"div",125),l(1,"div",111),_(2,cX,2,3,"p-message",112),c(),l(3,"p-button",126),C("onClick",function(){return v(e),p().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",127),C("onClick",function(){return v(e),p().startIcondld()}),m(6,"translate"),c(),l(7,"p-button",128),C("onClick",function(){return v(e),p().stopIcondld()}),m(8,"translate"),c()}if(2&t){const e=p();d("ngIf",e.icondldStatus>0),a(2),d("ngIf",2==e.icondldStatus),a(1),x("label",f(4,8,"common.close")),d("disabled",1==e.icondldStatus),a(2),x("label",f(6,10,"common.start")),d("disabled",!e.icondldType||1==e.icondldStatus||2==e.icondldStatus),a(2),x("label",f(8,12,"common.stop")),d("disabled",!e.icondldType||1!=e.icondldStatus)}}function dX(t,i){1&t&&(l(0,"label",129),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"settings.chanedit.iconsrch_select")))}function pX(t,i){1&t&&(l(0,"label",129),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"primeng.emptyMessage")))}function hX(t,i){if(1&t&&(l(0,"div"),M(1,"img",110),g(2),c()),2&t){const e=i.$implicit;a(1),x("src",e.url,Wt),a(1),T(" \xa0\xa0",e.name," ")}}function mX(t,i){1&t&&M(0,"p-message",131)}function fX(t,i){if(1&t){const e=I();l(0,"div",111),_(1,mX,1,0,"p-message",130),c(),l(2,"p-button",114),C("onClick",function(){return v(e),p().iconsrchShowDialog=!1}),m(3,"translate"),c(),l(4,"p-button",115),C("onClick",function(){return v(e),p().iconsrchSave()}),m(5,"translate"),c()}if(2&t){const e=p();a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(3,4,"common.cancel")),a(2),x("label",f(5,6,"common.save")),d("disabled",!e.iconsrchSelect)}}const gX=function(){return{height:"75vw",width:"50vw"}},_X=function(t){return{iconDir:t}},$r=function(){return{minWidth:"400px"}},bX=function(t,i,e){return{ChanNum:t,ChannelName:i,Source:e}},vX=function(){return{height:"65vw",width:"40vw"}},CX=function(){return{"max-height":"18rem"}};let bS=(()=>{class t{constructor(e,n,s,o,r){this.channelService=e,this.translate=n,this.setupService=s,this.router=o,this.mythService=r,this.allChannels=[],this.videoSources=[],this.commMethods=[],this.sourceNames=[],this.multiplexes=[],this.resSources=[],this.icons=[],this.iconDir="",this.tvFormats=[{value:"Default",prompt:"common.default"},{value:"NTSC",prompt:"NTSC"},{value:"NTSC-JP",prompt:"NTSC-JP"},{value:"PAL",prompt:"PAL"},{value:"PAL-60",prompt:"PAL-60"},{value:"PAL-BG",prompt:"PAL-BG"},{value:"PAL-DK",prompt:"PAL-DK"},{value:"PAL-D",prompt:"PAL-D"},{value:"PAL-I",prompt:"PAL-I"},{value:"PAL-M",prompt:"PAL-M"},{value:"PAL-N",prompt:"PAL-N"},{value:"PAL-NC",prompt:"PAL-NC"},{value:"SECAM",prompt:"SECAM"},{value:"SECAM-D",prompt:"SECAM-D"},{value:"SECAM-DK",prompt:"SECAM-DK"}],this.visibilities=[{value:"Always Visible",prompt:"settings.chanedit.always-visible"},{value:"Visible",prompt:"settings.chanedit.visible"},{value:"Not Visible",prompt:"settings.chanedit.not-visible"},{value:"Never Visible",prompt:"settings.chanedit.never-visible"}],this.headingNew="settings.chanedit.new_channel",this.headingEdit="settings.chanedit.title",this.warningText="settings.common.warning",this.deleteText="settings.common.ru_sure",this.unassignedText="settings.chanedit.unassigned",this.noneSelected="common.none",this.transDone=0,this.visDone=0,this.numTranslations=11,this.successCount=0,this.errorCount=0,this.selectedAdvanced=!1,this.displayChannelDlg=!1,this.dialogHeader="",this.displayUnsaved=!1,this.displayDelete=!1,this.displayDeleteSource=!1,this.working=!1,this.chansLoaded=!1,this.filterEvent={filters:{Source:{matchMode:"",value:""}}},this.resSourceId=0,this.resXMLTV=!1,this.resVisible=!1,this.resIcon=!1,this.resSearchDone=!1,this.resShowDialog=!1,this.icondldShowDialog=!1,this.icondldType="",this.icondldMax=0,this.icondldCount=0,this.icondldPos=-1,this.icondldFound=0,this.icondldStatus=0,this.iconsrchShowDialog=!1,this.iconsrchTerm="",this.iconsrchResult=[],this.resResult={NumChannels:0,NumXLMTVID:0,NumIcon:0,NumVisible:0},this.channel=this.resetChannel(),this.channelOperation=0,this.saveObserver={next:u=>{if(u.bool)switch(this.successCount++,this.currentForm.form.markAsPristine(),this.channelOperation){case 0:this.editingChannel&&(Object.assign(this.editingChannel,this.channel),this.editingChannel.Source=this.getSource(this.editingChannel));break;case 1:this.allChannels.push(this.channel);break;case-1:this.channel.ChanId=-99,this.displayDelete=!1,this.displayDeleteSource=!1,this.currentForm.form.markAsPristine();break;case-2:this.channel.ChanId=-99,this.deleteSource();break;case 2:this.resSearchDone=!1,this.loadLists()}else console.log("saveObserver error",u),this.errorCount++,this.working=!1},error:u=>{console.log("saveObserver error",u),this.errorCount++,this.working=!1}},this.translate.get(this.unassignedText).subscribe(u=>{this.unassignedText=u,this.transDone++,this.loadLists()}),this.loadTranslations()}ngOnInit(){this.markPristine()}resetChannel(){return{ATSCMajorChan:0,ATSCMinorChan:0,CallSign:"",ChanFilters:"",ChanId:0,ChanNum:"",ChannelGroups:"",ChannelName:"",CommFree:!1,CommMethod:-1,DefaultAuth:"",ExtendedVisible:"Visible",FineTune:0,Format:"Default",FrequencyId:"",IconURL:"",Icon:"",InputId:0,Inputs:"",MplexId:0,Programs:[],RecPriority:0,ServiceId:0,ServiceType:0,SourceId:0,TimeOffset:0,UseEIT:!1,Visible:!0,XMLTVID:"",ChanSeq:0}}loadLists(){this.channelService.GetChannelInfoList({Details:!0}).subscribe(e=>{this.allChannels=e.ChannelInfoList.ChannelInfos,this.chansLoaded=!0,this.channelService.GetVideoSourceList().subscribe(n=>{this.videoSources=n.VideoSourceList.VideoSources,this.videoSources.unshift({Id:0,SourceName:this.unassignedText}),this.videoSources.forEach(s=>this.sourceNames.push(s.SourceName)),this.allChannels.forEach((s,o)=>{s.ChanSeq=o,s.Source=this.getSource(s)})})}),this.channelService.GetCommMethodList().subscribe(e=>this.commMethods=e.CommMethodList.CommMethods)}loadMultiplexes(e){this.channelService.GetVideoMultiplexList({SourceID:e}).subscribe(n=>{this.multiplexes=n.VideoMultiplexList.VideoMultiplexes})}loadIcons(e){this.mythService.GetBackendInfo().subscribe(n=>{this.iconDir=n.BackendInfo.Env.MYTHCONFDIR+"/channels",this.mythService.GetDirListing(this.iconDir,!0).subscribe(s=>{this.icons=s.DirListing.filter(o=>!o.match(/\.[0-9]*x[0-9]*\./)),this.icons.unshift(this.noneSelected+"\t"),e&&(this.editingChannel.Icon=e,this.channel.Icon=e)})})}loadTranslations(){this.visibilities.forEach(e=>{this.translate.get(e.prompt).subscribe(n=>{e.prompt=n,this.transDone++,this.visDone++,this.visDone>=this.visibilities.length&&(this.visibilities=[...this.visibilities])})}),this.translate.get(this.headingNew).subscribe(e=>{this.headingNew=e,this.transDone++}),this.translate.get(this.headingEdit).subscribe(e=>{this.headingEdit=e,this.transDone++}),this.translate.get(this.warningText).subscribe(e=>{this.warningText=e,this.transDone++}),this.translate.get(this.deleteText).subscribe(e=>{this.deleteText=e,this.transDone++}),this.translate.get(this.tvFormats[0].prompt).subscribe(e=>{this.tvFormats[0].prompt=e,this.tvFormats=[...this.tvFormats],this.transDone++}),this.translate.get(this.noneSelected).subscribe(e=>{this.noneSelected=e,this.transDone++})}getSource(e){const n=this.videoSources.find(s=>e.SourceId==s.Id);return null!=n?n.SourceName:this.unassignedText}getVisibility(e){const n=this.visibilities.find(s=>e.ExtendedVisible==s.value);return null!=n?n.prompt:""}openNew(){this.successCount=0,this.errorCount=0,this.dialogHeader=this.headingNew,this.channel=this.resetChannel(),this.displayChannelDlg=!0,this.markPristine()}editChannel(e){this.editingChannel=e,this.successCount=0,this.errorCount=0,this.dialogHeader=this.headingEdit,this.channel=Object.assign({},e),this.displayChannelDlg=!0,this.markPristine(),this.loadMultiplexes(e.SourceId),this.loadIcons(),this.selectedAdvanced=!1}saveChannel(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1;let e=this.channel.Icon;e.endsWith("\t")&&(e=""),this.channel.Icon=e;let n={CallSign:this.channel.CallSign,ChannelID:this.channel.ChanId,ChannelNumber:this.channel.ChanNum,ChannelName:this.channel.ChannelName,CommMethod:this.channel.CommMethod,ExtendedVisible:this.channel.ExtendedVisible,Format:this.channel.Format,FrequencyID:this.channel.FrequencyId,Icon:e,MplexID:this.channel.MplexId,RecPriority:this.channel.RecPriority,ServiceID:this.channel.ServiceId,SourceID:this.channel.SourceId,TimeOffset:this.channel.TimeOffset,UseEIT:this.channel.UseEIT,XMLTVID:this.channel.XMLTVID};0==this.channel.ChanId?(this.channelOperation=1,this.channelService.GetAvailableChanid().subscribe(s=>{this.channel.ChanId=s.int,n.ChannelID=s.int,this.channelService.AddDBChannel(n).subscribe(this.saveObserver)})):(this.channelOperation=0,this.channelService.UpdateDBChannel(n).subscribe(this.saveObserver))}closeDialog(){if(this.currentForm.dirty){if(this.displayUnsaved)return this.displayUnsaved=!1,this.displayChannelDlg=!1,this.resShowDialog=!1,this.editingChannel=void 0,void this.currentForm.form.markAsPristine();if(this.displayChannelDlg)return void(this.displayUnsaved=!0)}this.currentForm.form.markAsPristine(),this.displayChannelDlg=!1,this.resShowDialog=!1,this.displayUnsaved=!1,this.icondldShowDialog=!1,this.editingChannel=void 0}deleteRequest(e){this.channel=e,this.displayDelete=!0}deleteChannel(e,n){this.successCount=0,this.errorCount=0,this.channel=e,this.channelOperation=n?-2:-1,this.channelService.RemoveDBChannel(e.ChanId).subscribe(this.saveObserver)}deleteSourceRequest(){this.channel=this.resetChannel(),this.displayDeleteSource=!0}deleteSource(){this.working=!0;const e=this.allChannels.find(n=>n.ChanId>0&&(!this.filterEvent.filters.Source.value||this.filterEvent.filters.Source.value==n.Source));e?this.deleteChannel(e,!0):(this.displayDelete=!1,this.displayDeleteSource=!1,this.currentForm.form.markAsPristine(),this.working=!1)}restoreDataRequest(){this.resSources=[],this.resSearchDone=!1,this.allChannels.forEach(e=>{if(e.MplexId&&!this.resSources.find(n=>n.Id==e.SourceId)){const n=this.videoSources.find(s=>s.Id==e.SourceId);n&&this.resSources.push(n)}}),this.resShowDialog=!0,this.markPristine()}restoreSearch(){this.successCount=0,this.errorCount=0,this.resSearchDone=!1,this.channelService.GetRestoreData(this.resSourceId,this.resXMLTV,this.resIcon,this.resVisible).subscribe(e=>{this.resResult=e.ChannelRestore,this.resSearchDone=!0}),this.markPristine()}restoreSave(){this.errorCount=0,this.successCount=0,this.channelOperation=2,this.channelService.SaveRestoreData(this.resSourceId).subscribe(this.saveObserver)}onFilter(e){this.filterEvent=e}downloadIconsRequest(){this.icondldStatus=0,this.icondldShowDialog=!0,this.loadMultiplexes(0)}startIcondld(){0==this.icondldStatus&&(this.icondldCount=0,this.icondldPos=-1,this.errorCount=0,this.successCount=0,this.icondldFound=0,"all"==this.icondldType?this.icondldMax=this.allChannels.length:(this.icondldMax=0,this.allChannels.forEach(e=>{e.Icon||this.icondldMax++}))),this.icondldStatus=1,this.nextIconDld()}nextIconDld(){if(this.icondldPos++,this.icondldPos>=this.allChannels.length)return void(this.icondldStatus=2);if("all"!=this.icondldType)for(;this.allChannels[this.icondldPos].Icon;)if(this.icondldPos++,this.icondldPos>=this.allChannels.length)return void(this.icondldStatus=2);const n=this.allChannels[this.icondldPos],s=this.multiplexes.find(h=>h.MplexId==n.MplexId);let o=0,r=0;s&&(o=s.TransportId,r=s.NetworkId),this.mythService.Proxy(`http://services.mythtv.org/channel-icon/findmissing?csv="${n.ChanId}","${n.ChannelName}","${n.XMLTVID}","${n.CallSign}","${o}","${n.ATSCMajorChan}","${n.ATSCMinorChan}","${r}","${n.ServiceId}"`).subscribe({next:h=>{let b=h.String;if(this.icondldCount++,b&&b.length>0&&'"'==b.charAt(0)){let y=b.split("\n"),w=JSON.parse("["+y[0]+"]");this.icondldFound++,this.channelService.CopyIconToBackend(n.ChanId,w[4]).subscribe({next:k=>{k.bool?this.successCount++:this.errorCount++},error:k=>{console.log("channelService.CopyIconToBackend error",k),this.errorCount++,1==this.icondldStatus&&this.nextIconDld()}})}1==this.icondldStatus&&this.nextIconDld()},error:h=>{console.log("mythService.Proxy error",h),this.errorCount++,1==this.icondldStatus&&this.nextIconDld()}})}stopIcondld(){this.icondldStatus=3}searchIconRequest(){this.iconsrchShowDialog=!0,this.iconsrchResult=[]}iconSearch(){this.successCount=0,this.errorCount=0,this.iconsrchResult=[],this.mythService.Proxy("http://services.mythtv.org/channel-icon/search?s="+this.iconsrchTerm).subscribe({next:n=>{let s=n.String;this.successCount++,s.split("\n").forEach(r=>{if(r.length>1){let u=JSON.parse("["+r+"]");this.iconsrchResult.push({name:u[1],url:u[2]})}}),this.iconsrchResult=[...this.iconsrchResult]},error:n=>{console.log("mythService.Proxy error",n),this.errorCount++}})}iconsrchSave(){if(!this.iconsrchSelect)return;const e=this.iconsrchSelect.url;this.channelService.CopyIconToBackend(this.channel.ChanId,e).subscribe({next:n=>{if(n.bool){this.successCount++;const s=e.split("/");this.loadIcons(s[s.length-1]),this.iconsrchShowDialog=!1}else this.errorCount++},error:n=>{console.log("channelService.CopyIconToBackend error",n),this.errorCount++}})}markPristine(){setTimeout(()=>this.currentForm.form.markAsPristine(),200)}confirm(e){return re(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return t.\u0275fac=function(e){return new(e||t)(D(Ao),D(Oe),D(Me),D(It),D(Bt))},t.\u0275cmp=z({type:t,selectors:[["app-channel-editor"]],viewQuery:function(e,n){if(1&e&&W(SZ,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(o){return n.onWindowClose(o)},!1,ni)},decls:245,vars:301,consts:[["class","block card w-full","style","height: 90vh",4,"ngIf","ngIfElse"],["loading",""],["name","chanform",1,"ml-3","mr-3"],["chanform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","ChannelName",1,"label","block"],["pInputText","","id","ChannelName","name","ChannelName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ChannelName","ngModel"],[1,"block"],["for","ChanNum",1,"label","block"],["pInputText","","id","ChanNum","name","ChanNum",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ChanNum","ngModel"],["for","FrequencyId",1,"label","block"],["pInputText","","id","FrequencyId","name","FrequencyId",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrequencyId","ngModel"],["for","CallSign",1,"label","block"],["pInputText","","id","CallSign","name","CallSign",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["CallSign","ngModel"],["for","icon",1,"label","block"],["name","icon",3,"options","ngModel","ngModelChange"],["pTemplate","selectedItem"],["pTemplate","item"],[3,"innerHTML"],["icon","pi pi-search","styleClass","p-button-success",3,"label","onClick"],["for","ExtendedVisible",1,"label","block"],["optionLabel","prompt","optionValue","value","name","ExtendedVisible",3,"options","ngModel","editable","maxlength","ngModelChange"],["ExtendedVisible","ngModel"],["for","SourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","SourceId",3,"options","ngModel","editable","maxlength","ngModelChange"],["SourceId","ngModel"],["for","Format",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Format",3,"options","ngModel","editable","maxlength","ngModelChange"],["Format","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","UseEIT","name","UseEIT",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","XMLTVID",1,"label","block"],["pInputText","","id","XMLTVID","name","XMLTVID",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["XMLTVID","ngModel"],["for","TimeOffset",1,"label","block"],["name","TimeOffset","id","TimeOffset",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","CommMethod",1,"label","block"],["optionLabel","LocalizedName","optionValue","CommMethod","name","CommMethod",3,"options","ngModel","editable","maxlength","ngModelChange"],["CommMethod","ngModel"],[3,"header","selected","selectedChange"],["for","MplexId",1,"label","block"],["optionLabel","Description","optionValue","MplexId","name","MplexId",3,"options","ngModel","editable","maxlength","ngModelChange"],["MplexId","ngModel"],["for","ServiceId",1,"label","block"],["name","ServiceId","id","ServiceId",3,"ngModel","showButtons","min","max","step","ngModelChange"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[4,"ngIf","ngIfElse"],["all",""],[4,"ngIf"],["for","resSourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","resSourceId",3,"options","ngModel","editable","maxlength","ngModelChange"],["inputId","resXMLTV","name","resXMLTV",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","resVisible","name","resVisible",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","resIcon","name","resIcon",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"field-radiobutton"],["name","dldtype","value","all","inputId","dldAll",3,"ngModel","disabled","ngModelChange"],["for","dldAll",1,"label","block"],["name","dldtype","value","missing","inputId","dldMissing",3,"ngModel","disabled","ngModelChange"],["for","dldMissing",1,"label","block"],["for","iconsrchTerm",1,"label","block"],["pInputText","","id","iconsrchTerm","name","iconsrchTerm",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["srchTerm","ngModel"],["for","srchicon","class","label block",4,"ngIf"],["name","srchicon","optionlabel","name",3,"options","ngModel","listStyle","ngModelChange"],[1,"block","card","w-full",2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll","sortField","ChanSeq",3,"value","scrollable","rowHover","onFilter"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi pi-plus",1,"p-button-success","mr-2",3,"label","disabled","click"],["field","Source","matchMode","equals",3,"showMenu"],["pTemplate","filter"],["icon","pi pi-trash","tooltipPosition","top","styleClass","p-button-danger","class","p-2",3,"pTooltip","label","disabled","onClick",4,"ngIf"],["icon","pi pi-history","tooltipPosition","top","styleClass","p-button-success",1,"p-2",3,"pTooltip","label","disabled","onClick"],["icon","pi pi-download","tooltipPosition","top","styleClass","p-button-success",1,"p-2",3,"pTooltip","label","disabled","onClick"],["class","p-2",4,"ngIf"],[2,"flex-basis","8%"],["pSortableColumn","ChanSeq",2,"flex-basis","9%"],["field","ChanSeq"],[2,"flex-basis","6%"],[2,"flex-basis","10%"],[2,"flex-basis","24%"],["pSortableColumn","Source",2,"flex-basis","16%"],["field","Source"],["pButton","","pRipple","","icon","pi pi-pencil","disabled","true",1,"p-button-text"],["pButton","","pRipple","","icon","pi pi-trash","class","p-button-text p-button-danger","disabled","true",4,"ngIf"],["name","filter",3,"ngModel","options","placeholder","showClear","onChange"],["icon","pi pi-trash","tooltipPosition","top","styleClass","p-button-danger",1,"p-2",3,"pTooltip","label","disabled","onClick"],[1,"p-2"],["pButton","","pRipple","","icon","pi pi-trash","disabled","true",1,"p-button-text","p-button-danger"],["height","40",3,"ngClass"],["height","32","width","42","style","background-color:#000000","onerror","this.height='0'",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[2,"flex-basis","9%"],[2,"flex-basis","16%"],["pButton","","pRipple","","icon","pi pi-pencil","tooltipPosition","left",1,"p-button-text",3,"disabled","pTooltip","click"],["pButton","","pRipple","","icon","pi pi-trash","class","p-button-text p-button-danger","tooltipPosition","left",3,"pTooltip","disabled","click",4,"ngIf"],["height","32","width","42","onerror","this.height='0'",2,"background-color","#000000",3,"src"],["height","32","width","42"],["pButton","","pRipple","","icon","pi pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],["class","vertical-align-middle h-2rem",3,"src",4,"ngIf"],[1,"vertical-align-middle","h-2rem",3,"src"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi pi-save","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-success",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-danger",3,"disabled","label","onClick"],["severity","info",3,"text",4,"ngIf"],["icon","pi pi-search","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","info",3,"text"],["class","col-12","style","text-align: left;",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","disabled","onClick"],["icon","pi pi-play","styleClass","p-button-success",3,"label","disabled","onClick"],["icon","pi pi-stop","styleClass","p-button-danger",3,"label","disabled","onClick"],["for","srchicon",1,"label","block"],["severity","error","text","Icon Download Failed",4,"ngIf"],["severity","error","text","Icon Download Failed"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,NZ,5,3,"div",0),_(4,VZ,1,0,"ng-template",null,1,Se),l(6,"form",2,3)(8,"p-dialog",4),C("visibleChange",function(o){return n.displayChannelDlg=o}),l(9,"div",5)(10,"label",6),g(11),m(12,"translate"),c(),l(13,"input",7,8),C("ngModelChange",function(o){return n.channel.ChannelName=o}),c(),l(15,"small",9),g(16),m(17,"translate"),c()(),l(18,"div",5)(19,"label",10),g(20),m(21,"translate"),c(),l(22,"input",11,12),C("ngModelChange",function(o){return n.channel.ChanNum=o}),c(),l(24,"small",9),g(25),m(26,"translate"),c()(),l(27,"div",5)(28,"label",13),g(29),m(30,"translate"),c(),l(31,"input",14,15),C("ngModelChange",function(o){return n.channel.FrequencyId=o}),c(),l(33,"small",9),g(34),m(35,"translate"),c()(),l(36,"div",5)(37,"label",16),g(38),m(39,"translate"),c(),l(40,"input",17,18),C("ngModelChange",function(o){return n.channel.CallSign=o}),c(),l(42,"small",9),g(43),m(44,"translate"),c()(),l(45,"div",5)(46,"label",19),g(47),m(48,"translate"),c(),l(49,"p-dropdown",20),C("ngModelChange",function(o){return n.channel.Icon=o}),_(50,qZ,1,1,"ng-template",21),_(51,UZ,3,2,"ng-template",22),c(),l(52,"small",9),M(53,"div",23),m(54,"translate"),c()(),l(55,"div",5)(56,"p-button",24),C("onClick",function(){return n.searchIconRequest()}),m(57,"translate"),c(),l(58,"small",9),g(59),m(60,"translate"),c()(),l(61,"div",5)(62,"label",25),g(63),m(64,"translate"),c(),l(65,"p-dropdown",26,27),C("ngModelChange",function(o){return n.channel.ExtendedVisible=o}),c(),l(67,"small",9),g(68),m(69,"translate"),c()(),l(70,"div",5)(71,"label",28),g(72),m(73,"translate"),c(),l(74,"p-dropdown",29,30),C("ngModelChange",function(o){return n.channel.SourceId=o}),c(),l(76,"small",9),g(77),m(78,"translate"),c()(),l(79,"div",5)(80,"label",31),g(81),m(82,"translate"),c(),l(83,"p-dropdown",32,33),C("ngModelChange",function(o){return n.channel.Format=o}),c(),l(85,"small",9),g(86),m(87,"translate"),c()(),l(88,"div",5)(89,"label",34),g(90),m(91,"translate"),c(),l(92,"p-inputNumber",35),C("ngModelChange",function(o){return n.channel.RecPriority=o}),c(),l(93,"small",9),g(94),m(95,"translate"),c()(),l(96,"div",5)(97,"p-checkbox",36,37),C("ngModelChange",function(o){return n.channel.UseEIT=o}),m(99,"translate"),c(),l(100,"small",9),g(101),m(102,"translate"),c()(),l(103,"div",5)(104,"label",38),g(105),m(106,"translate"),c(),l(107,"input",39,40),C("ngModelChange",function(o){return n.channel.XMLTVID=o}),c(),l(109,"small",9),g(110),m(111,"translate"),c()(),l(112,"div",5)(113,"label",41),g(114),m(115,"translate"),c(),l(116,"p-inputNumber",42),C("ngModelChange",function(o){return n.channel.TimeOffset=o}),c(),l(117,"small",9),g(118),m(119,"translate"),c()(),l(120,"div",5)(121,"label",43),g(122),m(123,"translate"),c(),l(124,"p-dropdown",44,45),C("ngModelChange",function(o){return n.channel.CommMethod=o}),c(),l(126,"small",9),g(127),m(128,"translate"),c()(),l(129,"p-accordion")(130,"p-accordionTab",46),C("selectedChange",function(o){return n.selectedAdvanced=o}),m(131,"translate"),l(132,"div",5)(133,"label",47),g(134),m(135,"translate"),c(),l(136,"p-dropdown",48,49),C("ngModelChange",function(o){return n.channel.MplexId=o}),c(),l(138,"small",9),g(139),m(140,"translate"),c()(),l(141,"div",5)(142,"label",50),g(143),m(144,"translate"),c(),l(145,"p-inputNumber",51),C("ngModelChange",function(o){return n.channel.ServiceId=o}),c(),l(146,"small",9),g(147),m(148,"translate"),c()()()(),M(149,"br")(150,"br")(151,"br")(152,"br")(153,"br")(154,"br")(155,"br")(156,"br"),_(157,$Z,7,9,"ng-template",52),c(),l(158,"p-dialog",53),C("visibleChange",function(o){return n.displayUnsaved=o}),m(159,"translate"),l(160,"p"),g(161),m(162,"translate"),c(),_(163,WZ,4,6,"ng-template",52),c(),l(164,"p-dialog",54),C("visibleChange",function(o){return n.displayDelete=o}),m(165,"translate"),l(166,"h2"),g(167),m(168,"translate"),c(),l(169,"p"),g(170),m(171,"translate"),c(),_(172,QZ,6,7,"ng-template",52),c(),l(173,"p-dialog",54),C("visibleChange",function(o){return n.displayDeleteSource=o}),m(174,"translate"),l(175,"h2"),g(176),m(177,"translate"),c(),_(178,YZ,4,6,"p",55),_(179,ZZ,4,3,"ng-template",null,56,Se),_(181,XZ,4,5,"div",57),_(182,tX,6,8,"ng-template",52),c(),l(183,"p-dialog",4),C("visibleChange",function(o){return n.resShowDialog=o}),m(184,"translate"),l(185,"div",5)(186,"label",58),g(187),m(188,"translate"),c(),l(189,"p-dropdown",59),C("ngModelChange",function(o){return n.resSourceId=o}),c(),l(190,"small",9),g(191),m(192,"translate"),c()(),l(193,"div",5)(194,"p-checkbox",60),C("ngModelChange",function(o){return n.resXMLTV=o}),m(195,"translate"),c(),l(196,"small",9),g(197),m(198,"translate"),c()(),l(199,"div",5)(200,"p-checkbox",61),C("ngModelChange",function(o){return n.resVisible=o}),m(201,"translate"),c(),l(202,"small",9),g(203),m(204,"translate"),c()(),l(205,"div",5)(206,"p-checkbox",62),C("ngModelChange",function(o){return n.resIcon=o}),m(207,"translate"),c(),l(208,"small",9),g(209),m(210,"translate"),c()(),_(211,rX,12,14,"ng-template",52),c(),l(212,"p-dialog",4),C("visibleChange",function(o){return n.icondldShowDialog=o}),m(213,"translate"),l(214,"div",63)(215,"p-radioButton",64),C("ngModelChange",function(o){return n.icondldType=o}),c(),l(216,"label",65),g(217),m(218,"translate"),c()(),l(219,"div",63)(220,"p-radioButton",66),C("ngModelChange",function(o){return n.icondldType=o}),c(),l(221,"label",67),g(222),m(223,"translate"),c()(),_(224,uX,9,14,"ng-template",52),c(),l(225,"p-dialog",4),C("visibleChange",function(o){return n.iconsrchShowDialog=o}),m(226,"translate"),l(227,"div",5)(228,"label",68),g(229),m(230,"translate"),c(),l(231,"input",69,70),C("ngModelChange",function(o){return n.iconsrchTerm=o}),c(),l(233,"small",9),g(234),m(235,"translate"),c()(),l(236,"div",5)(237,"p-button",24),C("onClick",function(){return n.iconSearch()}),m(238,"translate"),c()(),l(239,"div",5),_(240,dX,3,3,"label",71),_(241,pX,3,3,"label",71),l(242,"p-listbox",72),C("ngModelChange",function(o){return n.iconsrchSelect=o}),_(243,hX,3,2,"ng-template",22),c()(),_(244,fX,6,8,"ng-template",52),c()()),2&e){const s=F(5),o=F(180);a(1),S(f(2,170,"settings.chanedit.title")),a(2),d("ngIf",n.chansLoaded&&n.transDone>=n.numTranslations)("ngIfElse",s),a(5),q(A(286,gX)),x("header",n.dialogHeader),d("visible",n.displayChannelDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),S(f(12,172,"settings.chanedit.channame")),a(2),d("ngModel",n.channel.ChannelName),a(3),T(" ",f(17,174,"settings.chanedit.channame_desc")," "),a(4),S(f(21,176,"settings.chanedit.channum")),a(2),d("ngModel",n.channel.ChanNum),a(3),T(" ",f(26,178,"settings.chanedit.channum_desc")," "),a(4),S(f(30,180,"settings.chanedit.freqid")),a(2),d("ngModel",n.channel.FrequencyId),a(3),T(" ",f(35,182,"settings.chanedit.freqid_desc")," "),a(4),S(f(39,184,"settings.chanedit.callsign")),a(2),d("ngModel",n.channel.CallSign),a(3),T(" ",f(44,186,"settings.chanedit.callsign_desc")," "),a(4),S(f(48,188,"settings.chanedit.icon_label")),a(2),d("options",n.icons)("ngModel",n.channel.Icon),a(4),d("innerHTML",_t(54,190,"settings.chanedit.icon_desc",U(287,_X,'"'+n.iconDir+'"
')),Ft),a(3),x("label",f(57,193,"settings.chanedit.iconsrch_title")),a(3),T(" ",f(60,195,"settings.chanedit.iconsearch_desc")," "),a(4),S(f(64,197,"settings.chanedit.visible_label")),a(2),q(A(289,$r)),d("options",n.visibilities)("ngModel",n.channel.ExtendedVisible)("editable",!1)("maxlength",0),a(3),T(" ",f(69,199,"settings.chanedit.visible_desc")," "),a(4),S(f(73,201,"settings.chanedit.source_label")),a(2),q(A(290,$r)),d("options",n.videoSources)("ngModel",n.channel.SourceId)("editable",!1)("maxlength",0),a(3),T(" ",f(78,203,"settings.chanedit.source_desc")," "),a(4),S(f(82,205,"settings.chanedit.format_label")),a(2),q(A(291,$r)),d("options",n.tvFormats)("ngModel",n.channel.Format)("editable",!1)("maxlength",0),a(3),T(" ",f(87,207,"settings.chanedit.format_desc")," "),a(4),S(f(91,209,"settings.chanedit.priority_label")),a(2),d("ngModel",n.channel.RecPriority)("showButtons",!0)("min",-99)("max",99)("step",1),a(2),T(" ",f(95,211,"settings.chanedit.priority_desc")," "),a(3),x("label",f(99,213,"settings.chanedit.eit_label")),d("ngModel",n.channel.UseEIT)("binary",!0),a(4),T(" ",f(102,215,"settings.chanedit.eit_desc")," "),a(4),S(f(106,217,"settings.chanedit.xmltvid_label")),a(2),d("ngModel",n.channel.XMLTVID),a(3),T(" ",f(111,219,"settings.chanedit.xmltvid_desc")," "),a(4),S(f(115,221,"settings.chanedit.timeoffset_label")),a(2),d("ngModel",n.channel.TimeOffset)("showButtons",!0)("min",-1440)("max",1440)("step",30),a(2),T(" ",f(119,223,"settings.chanedit.timeoffset_desc")," "),a(4),S(f(123,225,"settings.chanedit.commmethod_label")),a(2),q(A(292,$r)),d("options",n.commMethods)("ngModel",n.channel.CommMethod)("editable",!1)("maxlength",0),a(3),T(" ",f(128,227,"settings.chanedit.commmethod_desc")," "),a(3),x("header",f(131,229,"settings.chanedit_advanced")),d("selected",n.selectedAdvanced),a(4),S(f(135,231,"settings.chanedit.mplex_label")),a(2),q(A(293,$r)),d("options",n.multiplexes)("ngModel",n.channel.MplexId)("editable",!1)("maxlength",0),a(3),T(" ",f(140,233,"settings.chanedit.mplex_desc")," "),a(4),S(f(144,235,"settings.chanedit.serviceid_label")),a(2),d("ngModel",n.channel.ServiceId)("showButtons",!0)("min",-1)("max",65535)("step",1),a(2),T(" ",f(148,237,"settings.chanedit.serviceid_desc")," "),a(11),x("header",f(159,239,"common.unsaved_heading")),d("visible",n.displayUnsaved)("modal",!0),a(3),S(f(162,241,"common.unsaved_message")),a(3),x("header",f(165,243,"settings.chanedit.delete_this")),d("visible",n.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(168,245,"settings.common.ru_sure")),a(3),S(_t(171,247,"settings.chanedit.delete_details",Jt(294,bX,n.channel.ChanNum,n.channel.ChannelName,n.getSource(n.channel)))),a(3),x("header",f(174,250,"settings.chanedit.delete_source")),d("visible",n.displayDeleteSource)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(177,252,"settings.common.ru_sure")),a(2),d("ngIf",n.filterEvent.filters.Source.value)("ngIfElse",o),a(3),d("ngIf",0!=n.channel.ChanId),a(2),x("header",f(184,254,"settings.chanedit.res_title")),d("visible",n.resShowDialog)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(f(188,256,"settings.chanedit.source_label")),a(2),q(A(298,$r)),d("options",n.resSources)("ngModel",n.resSourceId)("editable",!1)("maxlength",0),a(2),T(" ",f(192,258,"settings.chanedit.res_source_desc")," "),a(3),x("label",f(195,260,"settings.chanedit.res_xmltv_label")),d("ngModel",n.resXMLTV)("binary",!0),a(3),T(" ",f(198,262,"settings.chanedit.res_xmltv_desc")," "),a(3),x("label",f(201,264,"settings.chanedit.res_visible_label")),d("ngModel",n.resVisible)("binary",!0),a(3),T(" ",f(204,266,"settings.chanedit.res_visible_desc")," "),a(3),x("label",f(207,268,"settings.chanedit.res_icon_label")),d("ngModel",n.resIcon)("binary",!0),a(3),T(" ",f(210,270,"settings.chanedit.res_icon_desc")," "),a(3),x("header",f(213,272,"settings.chanedit.icondld_title")),d("visible",n.icondldShowDialog)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),d("ngModel",n.icondldType)("disabled",n.icondldStatus>0),a(2),S(f(218,274,"settings.chanedit.iconall_title")),a(3),d("ngModel",n.icondldType)("disabled",n.icondldStatus>0),a(2),S(f(223,276,"settings.chanedit.iconmissing_title")),a(3),q(A(299,vX)),x("header",f(226,278,"settings.chanedit.iconsrch_title")),d("visible",n.iconsrchShowDialog)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(f(230,280,"settings.chanedit.iconsrchterm_title")),a(2),d("ngModel",n.iconsrchTerm),a(3),T(" ",f(235,282,"settings.chanedit.iconsrchterm_desc")," "),a(3),x("label",f(238,284,"common.search")),a(3),d("ngIf",n.iconsrchResult.length>0),a(1),d("ngIf",0==n.iconsrchResult.length&&(n.successCount>0||n.errorCount>0)),a(1),d("options",n.iconsrchResult)("ngModel",n.iconsrchSelect)("listStyle",A(300,CX))}},directives:[Q,Dn,ne,An,vt,vg,Ot,we,_e,Ce,Qt,Ll,Ol,Le,Gr,ze,Ue,He,bn,Ye,_n,pt,on,Ss,Ts,qe,Al,zi],pipes:[ce],styles:[""]}),t})(),yX=(()=>{class t{constructor(e){this.router=e}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(D(It))},t.\u0275cmp=z({type:t,selectors:[["app-wiz-channeledit"]],decls:11,vars:6,consts:[[1,"m-5"],[1,"flex","justify-content-end"],["icon","pi pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"p-card",0),M(1,"app-channel-editor")(2,"br")(3,"br")(4,"br")(5,"br"),l(6,"div",1)(7,"p-button",2),C("onClick",function(){return n.router.navigate(["setupwizard/input-connections"])}),m(8,"translate"),c(),l(9,"p-button",3),C("onClick",function(){return n.router.navigate(["setupwizard/storage-groups"])}),m(10,"translate"),c()()()),2&e&&(a(7),x("label",f(8,2,"common.back")),a(2),x("label",f(10,4,"common.next")))},directives:[Ne,bS,Ce],pipes:[ce],styles:[""]}),t})(),wX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[vn.forChild([{path:"setupwizard",component:oS,children:[{path:"selectlanguage",component:nK,canDeactivate:[$i]},{path:"dbsetup",component:RK,canDeactivate:[$i]},{path:"general",component:WJ,canDeactivate:[$i]},{path:"capture-cards",component:hS,canDeactivate:[$i]},{path:"recording-profiles",component:mS,canDeactivate:[$i]},{path:"video-sources",component:UY,canDeactivate:[$i]},{path:"input-connections",component:_S,canDeactivate:[$i]},{path:"channel-editor",component:yX,canDeactivate:[$i]},{path:"storage-groups",component:gZ,canDeactivate:[$i]},{path:"system-events",component:TZ,canDeactivate:[$i]}]}])],vn]}),t})(),vS=(()=>{class t{constructor(e){this.httpClient=e,this.guide_hours=3,this.guide_millisecs=60*this.guide_hours*60*1e3,this.startDate=new Date}toTime(e){return new Date(e).toISOString()}toStartTime(e){return this.toTime(e)}toEndTime(e){let n=new Date(e),s=new Date(n.getTime()+this.guide_millisecs);return this.toTime(s.toISOString())}toHalfHour(e){let n=new Date(e);return n.setMinutes(n.getMinutes()<30?0:30),n.setSeconds(0),n}AddToChannelGroup(e){return this.httpClient.post("/Guide/AddToChannelGroup",e)}GetCategoryList(){return this.httpClient.get("/Guide/GetCategoryList")}GetChannelGroupList(e){let n=(new ve).set("IncludeEmpty",e);return this.httpClient.get("/Guide/GetChannelGroupList",{params:n})}GetChannelIcon(e){let n=(new ve).set("ChanId",e.ChanId).set("Width",e.Width).set("Height",e.Height);return this.httpClient.get("/Guide/GetChannelIcon",{params:n})}GetProgramDetails(e){let n=(new ve).set("ChanId",e.ChanId).set("StartTime",e.StartTime);return this.httpClient.get("/Guide/GetProgramDetails",{params:n})}GetProgramGuide(e,n){e&&(this.startDate=e);let s=this.toHalfHour(this.startDate).toISOString(),o={StartTime:this.toStartTime(s),EndTime:this.toEndTime(s),Details:!0,ChannelGroupId:n};return this.httpClient.post("/Guide/GetProgramGuide",o)}GetProgramList(e){let n=new ve;for(const[s,o]of Object.entries(e))n=n.set(s,o);return this.httpClient.get("/Guide/GetProgramList",{params:n})}GetStoredSearches(e){let n=(new ve).set("Type",e);return this.httpClient.get("/Guide/GetStoredSearches",{params:n})}RemoveFromChannelGroup(e){return this.httpClient.post("/Guide/RemoveFromChannelGroup",e)}}return t.\u0275fac=function(e){return new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function TX(t,i){if(1&t){const e=I();l(0,"div",15)(1,"p-dropdown",16),C("ngModelChange",function(s){return v(e),p(2).channelGroup=s})("onChange",function(){return v(e),p(2).refresh()}),m(2,"translate"),c()()}if(2&t){const e=p(2);a(1),x("pTooltip",f(2,3,"dashboard.guide.channel_group")),d("ngModel",e.channelGroup)("options",e.channelGroups)}}function SX(t,i){if(1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t){const e=p(2);a(2),Oc(" ",f(3,4,"dashboard.guide.channel")," ",e.channel.ChanNum," ",e.channel.CallSign," ",e.channel.ChannelName,"")}}function xX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T(" ",f(3,1,"dashboard.guide.people_search")," "))}function DX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T(" ",f(3,1,"dashboard.guide.title_search")," "))}function MX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T(" ",f(3,1,"dashboard.guide.full_search")," "))}function kX(t,i){if(1&t){const e=I();l(0,"div",18)(1,"input",19),C("ngModelChange",function(s){return v(e),p(2).searchValue=s}),c(),l(2,"button",20),C("click",function(){return v(e),p(2).titleSearch()}),m(3,"translate"),c(),l(4,"button",21),C("click",function(){return v(e),p(2).peopleSearch()}),m(5,"translate"),c(),l(6,"button",22),C("click",function(){return v(e),p(2).fullSearch()}),m(7,"translate"),c()()}if(2&t){const e=p(2);a(1),d("ngModel",e.searchValue),a(1),x("pTooltip",f(3,4,"dashboard.guide.title_search")),a(2),x("pTooltip",f(5,6,"dashboard.guide.people_search")),a(2),x("pTooltip",f(7,8,"dashboard.guide.full_search"))}}function IX(t,i){if(1&t){const e=I();l(0,"div",7)(1,"button",23),C("click",function(){return v(e),p(2).onGrid()}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"dashboard.guide.retgrid")))}const EX=function(){return{width:"30px",height:"30px"}};function RX(t,i){1&t&&(l(0,"div"),M(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,EX)))}function LX(t,i){if(1&t){const e=I();l(0,"div")(1,"button",24),C("click",function(){v(e);const s=p(3);return s.refreshing=!0,s.refresh()}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"common.refresh")))}const OX=function(t,i){return[t,i]};function AX(t,i){if(1&t&&_(0,LX,3,3,"div",14),2&t){const e=p(2);d("ngIf",Ge(1,OX,e.CHANNEL,e.GRID).indexOf(e.displayType)>-1)}}function PX(t,i){}function FX(t,i){if(1&t&&(de(0),l(1,"div",34),M(2,"app-guide-timebar",35),c(),pe()),2&t){const e=p(4);a(2),d("guide",e)}}function NX(t,i){if(1&t&&(de(0),M(1,"app-guide-programentry",36),pe()),2&t){const e=p().$implicit,n=p().$implicit,s=p(3);a(1),d("program",e)("guideStartTime",s.m_programGuide.ProgramGuide.StartTime)("guideEndTime",s.m_programGuide.ProgramGuide.EndTime)("guideComponent",s)("channel",n)}}function VX(t,i){if(1&t&&(de(0),_(1,NX,2,5,"ng-container",14),pe()),2&t){const e=i.$implicit,n=p(4);a(1),d("ngIf",!n.timeChange&&n.inDisplayWindow(e.StartTime,e.EndTime))}}function BX(t,i){if(1&t&&(l(0,"div",28),_(1,FX,3,1,"ng-container",14),l(2,"div",29)(3,"div",30),M(4,"app-guide-channelicon",31),c(),l(5,"div",32),_(6,VX,2,1,"ng-container",33),c()()()),2&t){const e=i.$implicit,n=i.rowIndex,s=p(3);a(1),d("ngIf",n%5==0),a(3),d("channel",e)("guideComponent",s),a(2),d("ngForOf",e.Programs)}}const HX=function(){return{width:"100%",height:"90vh"}};function qX(t,i){if(1&t&&(l(0,"div")(1,"p-scrollPanel")(2,"p-dataView",25),_(3,PX,0,0,"ng-template",26),_(4,BX,7,4,"ng-template",27),c()()()),2&t){const e=p(2);a(1),q(A(4,HX)),a(1),d("value",e.m_programGuide.ProgramGuide.Channels)("totalRecords",e.m_programGuide.ProgramGuide.TotalAvailable)}}function GX(t,i){if(1&t&&(l(0,"div"),M(1,"app-programs",37),c()),2&t){const e=p(2);a(1),d("inter",e.inter)("programs",e.listPrograms)}}const Cg=function(t,i,e,n){return[t,i,e,n]};function UX(t,i){if(1&t){const e=I();l(0,"div")(1,"div",5),_(2,TX,3,5,"div",6),l(3,"div",7)(4,"p-calendar",8),C("ngModelChange",function(s){return v(e),p().m_pickerDate=s})("onClose",function(){return v(e),p().onDateChange()})("keyup.enter",function(){return v(e),p().onDateChange()})("onBlur",function(){return v(e),p().onDateChange()}),m(5,"translate"),c()(),_(6,SX,4,6,"div",9),_(7,xX,4,3,"div",9),_(8,DX,4,3,"div",9),_(9,MX,4,3,"div",9),_(10,kX,8,10,"div",10),_(11,IX,3,3,"div",11),l(12,"div",7),_(13,RX,2,3,"div",0),_(14,AX,1,4,"ng-template",null,12,Se),c(),l(16,"div",7)(17,"button",13),C("click",function(){return v(e),p().showLegend=!0}),m(18,"translate"),c()()(),_(19,qX,5,5,"div",14),_(20,GX,2,2,"div",14),c()}if(2&t){const e=F(15),n=p();a(2),d("ngIf",n.displayType==n.GRID),a(2),x("pTooltip",f(5,22,"dashboard.guide.calendar_tip")),d("ngModel",n.m_pickerDate)("showTime",!0)("stepMinute",30)("dateFormat","yy/mm/dd")("selectOtherMonths",!0)("showIcon",!0)("showOnFocus",!0)("showButtonBar",!0)("clearButtonStyleClass","hidden"),a(2),d("ngIf",n.displayType==n.CHANNEL),a(1),d("ngIf",n.displayType==n.PEOPLESEARCH),a(1),d("ngIf",n.displayType==n.TITLESEARCH),a(1),d("ngIf",n.displayType==n.FULLSEARCH),a(1),d("ngIf",Ln(26,Cg,n.GRID,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1),a(1),d("ngIf",Ln(31,Cg,n.CHANNEL,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1),a(2),d("ngIf",n.refreshing)("ngIfElse",e),a(4),x("label",f(18,24,"dashboard.guide.colors")),a(2),d("ngIf",n.displayType==n.GRID),a(1),d("ngIf",Ln(36,Cg,n.CHANNEL,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1)}}function zX(t,i){1&t&&M(0,"p-progressSpinner")}function jX(t,i){if(1&t&&M(0,"app-legend",38),2&t){const e=p();d("programGuide",e.displayType==e.GRID?e.m_programGuide:null)("listPrograms",e.displayType==e.GRID?null:e.listPrograms)}}const $X=function(){return{width:"80vw"}};let CS=(()=>{class t{constructor(e,n){this.guideService=e,this.translate=n,this.m_startDate=new Date,this.m_pickerDate=new Date,this.m_endDate=new Date,this.channelGroups=[],this.m_channelData=[],this.m_channelTotal=10,this.m_rows=10,this.listPrograms=[],this.allGroup={GroupId:0,Name:this.translate.instant("settings.chanedit.all"),Password:""},this.channelGroup=this.allGroup,this.loaded=!1,this.refreshing=!1,this.timeChange=!1,this.inter={summaryComponent:this},this.GRID=1,this.CHANNEL=2,this.TITLESEARCH=3,this.PEOPLESEARCH=4,this.FULLSEARCH=5,this.displayType=this.GRID,this.searchValue="",this.showLegend=!1,this.translate.onLangChange.subscribe(s=>{console.log("Event: language change, new language ("+s.lang+")"),this.switchLanguage(s.lang),this.fetchData()})}ngOnInit(){this.fetchData()}switchLanguage(e){this.translate.use(e)}fetchData(e){0==this.channelGroups.length&&this.guideService.GetChannelGroupList(!1).subscribe(n=>{console.log(n),this.channelGroups=n.ChannelGroupList.ChannelGroups,this.channelGroups.unshift(this.allGroup)}),this.guideService.GetProgramGuide(e,this.channelGroup.GroupId).subscribe(n=>{this.m_programGuide=n,this.m_startDate=new Date(n.ProgramGuide.StartTime),this.m_pickerDate=new Date(this.m_startDate),this.m_endDate=new Date(n.ProgramGuide.EndTime),this.m_channelData=n.ProgramGuide.Channels,this.m_channelTotal=n.ProgramGuide.TotalAvailable,this.loaded=!0,this.refreshing=!1,this.timeChange=!1})}fetchDetails(){let e=this.m_startDate.getTime(),s={Details:!0,StartTime:new Date(e+1e3).toISOString()};switch(this.displayType){case this.CHANNEL:s.ChanId=this.channel.ChanId;break;case this.TITLESEARCH:s.TitleFilter=this.searchValue,s.Count=1e3;break;case this.PEOPLESEARCH:s.PersonFilter=this.searchValue,s.Count=1e3;break;case this.FULLSEARCH:s.KeywordFilter=this.searchValue,s.Count=1e3}this.listPrograms=[],this.guideService.GetProgramList(s).subscribe(o=>{this.listPrograms=o.ProgramList.Programs,this.loaded=!0,this.refreshing=!1})}inDisplayWindow(e,n){let s=new Date(e),o=new Date(n),r=new Date(this.m_startDate),u=new Date(this.m_endDate);return!(o<=r||s>=u)&&s1&&(this.displayType=this.TITLESEARCH,this.refresh())}peopleSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1&&(this.displayType=this.PEOPLESEARCH,this.refresh())}fullSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1&&(this.displayType=this.FULLSEARCH,this.refresh())}}return t.\u0275fac=function(e){return new(e||t)(D(vS),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-guide"]],decls:10,vars:14,consts:[[4,"ngIf","ngIfElse"],[3,"inter"],["loading",""],[3,"header","visible","modal","visibleChange"],["pTemplate",""],[1,"flex"],["class","flex align-items-center pr-5",4,"ngIf"],[1,"flex","align-items-center"],["tooltipPosition","top",3,"ngModel","showTime","stepMinute","dateFormat","selectOtherMonths","showIcon","showOnFocus","showButtonBar","clearButtonStyleClass","pTooltip","ngModelChange","onClose","keyup.enter","onBlur"],["class","flex align-items-center p-5",4,"ngIf"],["class","flex align-items-center pl-5",4,"ngIf"],["class","flex align-items-center",4,"ngIf"],["refreshBn",""],["type","text","pButton","",3,"label","click"],[4,"ngIf"],[1,"flex","align-items-center","pr-5"],["name","channelGroup","optionLabel","Name","tooltipPosition","top",3,"ngModel","options","pTooltip","ngModelChange","onChange"],[1,"flex","align-items-center","p-5"],[1,"flex","align-items-center","pl-5"],["type","text","pInputText","","id","searchValue","name","searchValue","placeholder","Search",1,"text-xl",3,"ngModel","ngModelChange"],["pButton","","pRipple","","icon","pi pi-search","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi pi-user","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi pi-search-plus","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi pi-table","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi pi-refresh","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],[3,"value","totalRecords"],["pTemplate","header","styleClass","timeHeader"],["pTemplate","listItem"],[1,"grid","col-12","p-3"],[1,"grid","flex-grow-1"],[1,"col-1"],[3,"channel","guideComponent"],[1,"col"],[4,"ngFor","ngForOf"],[1,"col-12"],[3,"guide"],[3,"program","guideStartTime","guideEndTime","guideComponent","channel"],[3,"inter","programs"],[3,"programGuide","listPrograms"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,UX,21,41,"div",0),M(4,"app-schedule",1),_(5,zX,1,0,"ng-template",null,2,Se),l(7,"p-dialog",3),C("visibleChange",function(o){return n.showLegend=o}),m(8,"translate"),_(9,jX,1,2,"ng-template",4),c()),2&e){const s=F(6);a(1),T("",f(2,9,"dashboard.programguide")," "),a(2),d("ngIf",n.loaded)("ngIfElse",s),a(1),d("inter",n.inter),a(3),q(A(13,$X)),x("header",f(8,11,"dashboard.guide.colors")),d("visible",n.showLegend)("modal",!0)}},styles:[".channelRow[_ngcontent-%COMP%]{display:block;grid-template-columns:90px auto;width:100%;height:82px;padding-bottom:2px}.programsBox[_ngcontent-%COMP%], .timebarbox[_ngcontent-%COMP%]{grid-template-columns:90px auto;grid-template-rows:28px;width:100%}"]}),t})();function WX(t,i){1&t&&M(0,"img",5),2&t&&x("src",p().channel.IconURL,Wt)}function KX(t,i){1&t&&M(0,"img",6)}let QX=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-guide-channelicon"]],inputs:{channel:"channel",guideComponent:"guideComponent"},decls:8,vars:4,consts:[[1,"flex","flex-column","align-items-center","channelBox","cursor-pointer",3,"click"],[1,"channelIcon"],["height","57",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[1,"channelText"],["height","57",3,"src"],["height","0","width","0"]],template:function(e,n){if(1&e&&(l(0,"div",0),C("click",function(){return n.guideComponent.onChannel(n.channel)}),l(1,"div",1),_(2,WX,1,1,"img",2),_(3,KX,1,0,"ng-template",null,3,Se),c(),l(5,"div",4)(6,"span"),g(7),c()()()),2&e){const s=F(4);a(2),d("ngIf",n.channel.IconURL)("ngIfElse",s),a(5),We("",n.channel.ChanNum," ",n.channel.CallSign,"")}},directives:[Q],styles:[".channelBox[_ngcontent-%COMP%]{border-radius:10px;background:var(--surface-200);height:120px}.channelIcon[_ngcontent-%COMP%]{height:57px;max-width:86px;margin-top:10px;margin-bottom:3px;overflow:hidden;float:right}.channelText[_ngcontent-%COMP%]{clear:both;font-weight:700;text-align:-webkit-center;overflow:hidden;text-overflow:ellipsis;padding:0 3px}"]}),t})();const JX=function(){return["WillRecord","Recording"]};function YX(t,i){if(1&t&&(l(0,"div")(1,"div",5),g(2),c()()),2&t){const e=p();a(1),d("ngClass",A(2,JX).indexOf(e.program.Recording.StatusName)>-1?"bg-green-500":"bg-pink-400"),a(1),T(" ",e.dataService.recStatusText[e.program.Recording.StatusName],"")}}function ZX(t,i){if(1&t&&(l(0,"div")(1,"div",6),g(2),c()()),2&t){const e=p();a(2),S((e.program.Season>0?"S"+e.program.Season+"E"+e.program.Episode:"")+" "+e.program.SubTitle)}}const XX=function(t,i){return[t,i,"guide_type_default"]};let eee=(()=>{class t{constructor(e){this.dataService=e,this.editSchedule=!1,this.typeclass="",this.catclass="",this.regex=/[^a-z0-9]/g}ngOnInit(){this.typeclass="guide_type_"+this.program.CatType,this.catclass="guide_cat_"+this.program.Category.toLowerCase().replace(this.regex,"_")}durationToWidth(){let e=new Date(this.program.StartTime),n=new Date(this.program.EndTime),s=new Date(this.guideStartTime),o=new Date(this.guideEndTime),h=eo?o:n,y=o.getTime()-s.getTime();return(b.getTime()-h.getTime())/y*100}openDialog(){this.guideComponent.inter.sched&&this.guideComponent.inter.sched.open(this.program,this.channel)}}return t.\u0275fac=function(e){return new(e||t)(D(Fl))},t.\u0275cmp=z({type:t,selectors:[["app-guide-programentry"]],inputs:{program:"program",channel:"channel",guideStartTime:"guideStartTime",guideEndTime:"guideEndTime",guideComponent:"guideComponent"},decls:8,vars:11,consts:[["tooltipPosition","top",1,"programBox","cursor-pointer",3,"ngClass","pTooltip","click"],[1,"programTitle"],[1,"programBody"],[1,"programCatType"],[4,"ngIf"],[1,"programCatType",3,"ngClass"],[1,"programSubtitle"]],template:function(e,n){1&e&&(l(0,"div",0),C("click",function(){return n.openDialog()}),l(1,"div",1),g(2),c(),l(3,"div",2)(4,"div",3),g(5),c(),_(6,YX,3,3,"div",4),_(7,ZX,3,1,"div",4),c()()),2&e&&(_i("width",n.durationToWidth(),"%"),x("pTooltip",n.program.Description),d("ngClass",Ge(8,XX,n.typeclass,n.catclass)),a(2),S(n.program.Title),a(3),S(n.program.Category),a(1),d("ngIf",n.program.Recording),a(1),d("ngIf",0!=n.program.SubTitle.length))},directives:[Le,Qt,Q],styles:[".programBox[_ngcontent-%COMP%]{float:left;height:120px;padding:0 0 0 2px;color:var(--primary-color-text);background:var(--surface-200);border-radius:10px;overflow:hidden;text-overflow:ellipsis}.programTitle[_ngcontent-%COMP%]{padding:5px 8px 4px 7px;width:100%;height:28px;color:var(--primary-color-text);background:linear-gradient(to bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200) 99%);border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;z-index:4;position:relative;float:left;font-size:1.1em;white-space:nowrap;font-weight:700;overflow:hidden;text-overflow:ellipsis}.programBody[_ngcontent-%COMP%]{margin:3px 5px 4px;padding:0 0 0 2px;height:45px;z-index:5}.programCatType[_ngcontent-%COMP%]{position:relative;font-weight:700;margin-right:5px;line-height:15px;padding-top:2px;padding-bottom:3px}.programSubtitle[_ngcontent-%COMP%]{position:relative;z-index:1;line-height:15px}"]}),t})(),tee=(()=>{class t{constructor(e){this.guideService=e}ngOnInit(){}segmentToStartTime(e){const n=18e5*e;return(new Date(this.guide.m_startDate.getTime()+n).toLocaleTimeString()+" ").replace(/:.. /," ")}pageLeft(){this.guide.m_pickerDate=new Date(this.guide.m_startDate.getTime()-this.guideService.guide_millisecs),this.guide.onDateChange()}pageRight(){this.guide.m_pickerDate=new Date(this.guide.m_startDate.getTime()+this.guideService.guide_millisecs),this.guide.onDateChange()}}return t.\u0275fac=function(e){return new(e||t)(D(vS))},t.\u0275cmp=z({type:t,selectors:[["app-guide-timebar"]],inputs:{guide:"guide"},decls:25,vars:7,consts:[[1,"grid"],[1,"col-1","datebox"],[1,"col","segmentbox"],[1,"flex"],[1,"flex-none","cursor-pointer",3,"click"],[1,"flex-none"],[1,"flex-grow-1"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1),g(2),c(),l(3,"div",2)(4,"div",3)(5,"div",4),C("click",function(){return n.pageLeft()}),g(6,"<<"),c(),l(7,"div",5),g(8),c()()(),l(9,"div",2),g(10),c(),l(11,"div",2),g(12),c(),l(13,"div",2),g(14),c(),l(15,"div",2),g(16),c(),l(17,"div",2)(18,"div",3)(19,"div",5),g(20),c(),l(21,"div",6),g(22,"\xa0"),c(),l(23,"div",4),C("click",function(){return n.pageRight()}),g(24,">>"),c()()()()),2&e&&(a(2),S(n.guide.m_startDate.toLocaleDateString()),a(6),T("\xa0",n.segmentToStartTime(0),""),a(2),S(n.segmentToStartTime(1)),a(2),S(n.segmentToStartTime(2)),a(2),S(n.segmentToStartTime(3)),a(2),S(n.segmentToStartTime(4)),a(4),S(n.segmentToStartTime(5)))},styles:[".timebarbox[_ngcontent-%COMP%]{grid-template-columns:90px auto;grid-template-rows:28px;width:100%}.datebox[_ngcontent-%COMP%]{padding:5px 8px 4px 7px;color:var(--primary-color-text);background:linear-gradient(to bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200) 99%);border-radius:10px}.segmentsbox[_ngcontent-%COMP%]{display:block;float:left;position:relative;height:100%;width:calc(100% - 91px)}.segmentbox[_ngcontent-%COMP%]{width:25%;padding:5px 8px 4px 7px;color:var(--primary-color-text);background:linear-gradient(to bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200) 99%);height:auto;border-radius:10px}"]}),t})();function yS(t,i=zf){const n=function nee(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-i.now():Math.abs(t);return s=>s.lift(new iee(n,i))}class iee{constructor(i,e){this.delay=i,this.scheduler=e}call(i,e){return e.subscribe(new yg(i,this.delay,this.scheduler))}}class yg extends wt{constructor(i,e,n){super(i),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(i){const e=i.source,n=e.queue,s=i.scheduler,o=i.destination;for(;n.length>0&&n[0].time-s.now()<=0;)n.shift().notification.observe(o);if(n.length>0){const r=Math.max(0,n[0].time-s.now());this.schedule(i,r)}else this.unsubscribe(),e.active=!1}_schedule(i){this.active=!0,this.destination.add(i.schedule(yg.dispatch,this.delay,{source:this,destination:this.destination,scheduler:i}))}scheduleNotification(i){if(!0===this.errored)return;const e=this.scheduler,n=new see(e.now()+this.delay,i);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(i){this.scheduleNotification(Kn.createNext(i))}_error(i){this.errored=!0,this.queue=[],this.destination.error(i),this.unsubscribe()}_complete(){this.scheduleNotification(Kn.createComplete()),this.unsubscribe()}}class see{constructor(i,e){this.time=i,this.notification=e}}const oee=["cetonform"],ree=["top"];function aee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.capture.ceton.title")," ")}function lee(t,i){}function cee(t,i){if(1&t){const e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return v(e),p().work.ipAddress=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"input",16,13),C("ngModelChange",function(s){return v(e),p().work.tuner=s}),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",17),g(22),m(23,"translate"),c(),l(24,"input",18,19),C("ngModelChange",function(s){return v(e),p().card.VideoDevice=s}),c(),l(26,"small",14),g(27),m(28,"translate"),c()(),l(29,"div",10)(30,"label",20),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",21),C("ngModelChange",function(s){return v(e),p().card.SignalTimeout=s}),c(),l(34,"small",14),g(35),m(36,"translate"),c()(),l(37,"div",10)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return v(e),p().card.ChannelTimeout=s}),c(),l(42,"small",14),g(43),m(44,"translate"),c()()()()}if(2&t){const e=p();a(4),S(f(5,23,"settings.capture.ceton.ipaddress_label")),a(2),d("ngModel",e.work.ipAddress),a(3),T(" ",f(10,25,"settings.capture.ceton.ipaddress_desc")," "),a(4),S(f(14,27,"settings.capture.ceton.tuner_label")),a(2),d("ngModel",e.work.tuner),a(3),T(" ",f(19,29,"settings.capture.ceton.tuner_desc")," "),a(4),S(f(23,31,"settings.capture.ceton.deviceid_label")),a(2),d("ngModel",e.card.VideoDevice),a(3),T(" ",f(28,33,"settings.capture.ceton.deviceid_desc")," "),a(4),S(f(32,35,"settings.capture.sigtimeout_label")),a(2),d("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T(" ",f(36,37,"settings.capture.sigtimeout_desc")," "),a(4),S(f(40,39,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T(" ",f(44,41,"settings.capture.tunetimeout_desc")," ")}}function uee(t,i){1&t&&(M(0,"p-message",29),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function dee(t,i){1&t&&(M(0,"p-message",30),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function pee(t,i){if(1&t){const e=I();l(0,"div",24)(1,"div",25),_(2,uee,2,3,"p-message",26),_(3,dee,2,3,"p-message",27),c(),l(4,"p-button",28),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let hee=(()=>{class t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={ipAddress:"",tuner:"",successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){if(this.card.VideoDevice){const e=this.card.VideoDevice.split("-");if(2==e.length){this.work.ipAddress=e[0];const n=e[1].split(".");2==n.length&&(this.work.tuner=n[1])}}}ngAfterViewInit(){this.currentForm.valueChanges.pipe(yS(50)).subscribe(()=>this.card.VideoDevice=this.work.ipAddress+"-RTP."+this.work.tuner),this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save form clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-ceton"]],viewQuery:function(e,n){if(1&e&&(W(oee,5),W(ree,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","cetonform",1,"ml-3","mr-3"],["cetonform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","ip",1,"label","block"],["pInputText","","id","ip","name","ip",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ipAddress","ngModel"],[1,"block"],["for","tuner",1,"label","block"],["pInputText","","id","tuner","name","tuner",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),M(2,"span",null,2),l(4,"p-card",3),_(5,aee,2,3,"ng-template",4),_(6,lee,0,0,"ng-template",5),_(7,cee,45,43,"ng-template",6),_(8,pee,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,we,_e,pt,Q,qe,Ce],pipes:[ce],styles:[""]}),t})();const mee=["dvbform"],fee=["top"];function gee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.capture.dvb.title")," ")}function _ee(t,i){}const bee=function(){return{minWidth:"80%"}};function vee(t,i){if(1&t){const e=I();l(0,"p-dropdown",43,44),C("ngModelChange",function(s){return v(e),p(2).currentDevice=s})("onChange",function(){return v(e),p(2).updateDevice()}),c()}if(2&t){const e=p(2);q(A(6,bee)),d("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function Cee(t,i){if(1&t&&(l(0,"div")(1,"small",45),g(2),c()()),2&t){const e=p(2);a(2),T(" ",e.work.warningMessage," ")}}function yee(t,i){if(1&t){const e=I();l(0,"input",46,47),C("ngModelChange",function(s){return v(e),p(2).currentDevice.FrontendName=s}),c()}2&t&&d("ngModel",p(2).currentDevice.FrontendName)}function wee(t,i){if(1&t){const e=I();l(0,"p-dropdown",48,49),C("ngModelChange",function(s){return v(e),p(2).card.InputName=s}),c()}if(2&t){const e=p(2);d("options",e.currentDevice.InputNames)("ngModel",e.card.InputName)}}function Tee(t,i){if(1&t){const e=I();l(0,"p-button",50),C("onClick",function(){return v(e),p(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function See(t,i){if(1&t){const e=I();l(0,"p-button",51),C("onClick",function(){return v(e),p(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",52),C("onClick",function(){return v(e),p(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const e=p(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),d("disabled",e.selectedDiseqcType.inactive)}}function xee(t,i){if(1&t){const e=I();l(0,"p-button",53),C("onClick",function(){v(e);const s=p(2);return s.setupRootTrees(),s.work.displayConnectDevice=!0}),m(1,"translate"),m(2,"translate"),c()}2&t&&(x("label",f(1,2,"settings.capture.dvb.satellite_connect")),x("pTooltip",f(2,4,"settings.capture.dvb.satellite_connect_tooltip")))}function Dee(t,i){if(1&t){const e=I();l(0,"p-button",51),C("onClick",function(){return v(e),p(2).work.displayConnectDevice=!1}),m(1,"translate"),c(),l(2,"p-button",52),C("onClick",function(){return v(e),p(2).selectDiseqc()}),m(3,"translate"),c()}if(2&t){const e=p(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),d("disabled",!e.work.selectedDiseqcTree)}}function Mee(t,i){if(1&t){const e=I();l(0,"p-button",54),C("onClick",function(){return v(e),p(2).canDeleteDiseqc()}),c()}}function kee(t,i){if(1&t){const e=I();l(0,"p-button",55),C("click",function(){return v(e),p(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",56),C("click",function(){return v(e),p(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function Iee(t,i){if(1&t){const e=I();l(0,"p-button",57),C("onClick",function(){return v(e),p(2).work.displayDisconnect=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.satellite_disconnect"))}function Eee(t,i){if(1&t){const e=I();l(0,"p-button",55),C("click",function(){return v(e),p(2).work.displayDisconnect=!1}),m(1,"translate"),c(),l(2,"p-button",56),C("click",function(){return v(e),p(2).unSelectDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function Ree(t,i){1&t&&(M(0,"p-message",58),m(1,"translate")),2&t&&x("text",f(1,1,"settings.capture.dvb.satellite_disconnect_error"))}function Lee(t,i){if(1&t){const e=I();l(0,"app-lnb",59),C("baseEvent",function(s){return v(e),p(2).setDiseqcObject(s)}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function Oee(t,i){if(1&t){const e=I();l(0,"app-rotor",59),C("baseEvent",function(s){return v(e),p(2).setDiseqcObject(s)}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function Aee(t,i){if(1&t){const e=I();l(0,"app-switch",59),C("baseEvent",function(s){return v(e),p(2).setDiseqcObject(s)}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function Pee(t,i){if(1&t){const e=I();l(0,"app-unicable",59),C("baseEvent",function(s){return v(e),p(2).setDiseqcObject(s)}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}const Md=function(){return{width:"50vw"}};function Fee(t,i){if(1&t){const e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,vee,2,7,"p-dropdown",12),_(7,Cee,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,yee,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",17),g(21),m(22,"translate"),c(),_(23,wee,2,2,"p-dropdown",18),l(24,"small",14),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"label",19),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",20),C("ngModelChange",function(s){return v(e),p().card.SignalTimeout=s}),c(),l(32,"small",14),g(33),m(34,"translate"),c()(),l(35,"div",10)(36,"label",21),g(37),m(38,"translate"),c(),l(39,"p-inputNumber",22),C("ngModelChange",function(s){return v(e),p().card.ChannelTimeout=s}),c(),l(40,"small",14),g(41),m(42,"translate"),c()(),l(43,"div",10)(44,"p-checkbox",23,24),C("ngModelChange",function(s){return v(e),p().card.DVBWaitForSeqStart=s}),m(46,"translate"),c(),l(47,"small",14),g(48),m(49,"translate"),c()(),l(50,"div",10)(51,"p-checkbox",25,26),C("ngModelChange",function(s){return v(e),p().card.DVBOnDemand=s}),m(53,"translate"),c(),l(54,"small",14),g(55),m(56,"translate"),c()(),l(57,"div",10)(58,"p-checkbox",27,28),C("ngModelChange",function(s){return v(e),p().card.DVBEITScan=s}),m(60,"translate"),c(),l(61,"small",14),g(62),m(63,"translate"),c()(),l(64,"div",10)(65,"label",29),g(66),m(67,"translate"),c(),l(68,"p-inputNumber",30),C("ngModelChange",function(s){return v(e),p().card.DVBTuningDelay=s}),c(),l(69,"small",14),g(70),m(71,"translate"),c()()(),l(72,"p-fieldset",31),m(73,"translate"),_(74,Tee,2,3,"p-button",32),l(75,"p-dialog",33),C("visibleChange",function(s){return v(e),p().work.displayNewDiseqc=s}),m(76,"translate"),l(77,"label",34),g(78),m(79,"translate"),c(),l(80,"p-listbox",35),C("ngModelChange",function(s){return v(e),p().selectedDiseqcType=s})("onDblClick",function(){return v(e),p().newDiseqc()}),c(),_(81,See,4,7,"ng-template",7),c(),g(82," \xa0 "),_(83,xee,3,6,"p-button",36),l(84,"p-dialog",33),C("visibleChange",function(s){return v(e),p().work.displayConnectDevice=s}),m(85,"translate"),l(86,"label",37),g(87),m(88,"translate"),c(),l(89,"p-listbox",38),C("ngModelChange",function(s){return v(e),p().work.selectedDiseqcTree=s})("onDblClick",function(){return v(e),p().selectDiseqc()}),c(),_(90,Dee,4,7,"ng-template",7),c(),_(91,Mee,1,0,"p-button",39),l(92,"p-dialog",33),C("visibleChange",function(s){return v(e),p().work.displayDeleteDiseqc=s}),m(93,"translate"),l(94,"h2"),g(95),m(96,"translate"),c(),l(97,"p"),g(98),m(99,"translate"),c(),_(100,kee,4,6,"ng-template",7),c(),g(101," \xa0 "),_(102,Iee,2,3,"p-button",40),l(103,"p-dialog",33),C("visibleChange",function(s){return v(e),p().work.displayDisconnect=s}),m(104,"translate"),l(105,"h2"),g(106),m(107,"translate"),c(),l(108,"p"),g(109),m(110,"translate"),c(),_(111,Eee,4,6,"ng-template",7),c(),_(112,Ree,2,3,"p-message",41),_(113,Lee,1,3,"app-lnb",42),_(114,Oee,1,3,"app-rotor",42),_(115,Aee,1,3,"app-switch",42),_(116,Pee,1,3,"app-unicable",42),c()()}if(2&t){const e=p();a(4),S(f(5,93,"settings.capture.dvb.device_label")),a(2),d("ngIf",e.work.isReady),a(1),d("ngIf",e.work.warningMessage),a(2),T(" ",f(10,95,"settings.capture.device_desc")," "),a(4),S(f(14,97,"settings.capture.dvb.frontend_label")),a(2),d("ngIf",e.work.isReady),a(2),T(" ",f(18,99,"settings.capture.frontend_desc")," "),a(4),S(f(22,101,"settings.capture.dvb.inputname_label")),a(2),d("ngIf",e.work.isReady),a(2),T(" ",f(26,103,"settings.capture.inputname_desc")," "),a(4),S(f(30,105,"settings.capture.sigtimeout_label")),a(2),d("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T(" ",f(34,107,"settings.capture.sigtimeout_desc")," "),a(4),S(f(38,109,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T(" ",f(42,111,"settings.capture.tunetimeout_desc")," "),a(3),x("label",f(46,113,"settings.capture.dvb.wait_label")),d("ngModel",e.card.DVBWaitForSeqStart)("binary",!0),a(4),T(" ",f(49,115,"settings.capture.dvb.wait_desc")," "),a(3),x("label",f(53,117,"settings.capture.dvb.ondemand_label")),d("ngModel",e.card.DVBOnDemand)("binary",!0),a(4),T(" ",f(56,119,"settings.capture.dvb.ondemand_desc")," "),a(3),x("label",f(60,121,"settings.capture.dvb.eitscan_label")),d("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T(" ",f(63,123,"settings.capture.dvb.eitscan_desc")," "),a(4),S(f(67,125,"settings.capture.dvb.tuningdelay_label")),a(2),d("ngModel",e.card.DVBTuningDelay)("showButtons",!0)("min",0)("max",2e3)("step",25),a(2),T(" ",f(71,127,"settings.capture.dvb.tuningdelay_desc")," "),a(2),x("legend",f(73,129,"settings.capture.dvb.satellite_heading")),d("toggleable",!0)("collapsed",!0),a(2),d("ngIf",!e.diseqcTree),a(1),q(A(151,Md)),x("header",f(76,131,"settings.capture.dvb.newsatellite_heading")),d("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(79,133,"settings.capture.dvb.newsatellite_devtype")),a(2),d("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(3),d("ngIf",!e.diseqcTree),a(1),q(A(152,Md)),x("header",f(85,135,"settings.capture.dvb.satellite_connect")),d("visible",e.work.displayConnectDevice)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(88,137,"settings.capture.dvb.satellite_select")),a(2),d("options",e.diseqcRootTrees)("ngModel",e.work.selectedDiseqcTree),a(2),d("ngIf",e.diseqcTree),a(1),q(A(153,Md)),x("header",f(93,139,"settings.capture.dvb.satellite_delete_header")),d("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(96,141,"settings.common.ru_sure")),a(3),S(f(99,143,"settings.capture.dvb.satellite_delete_desc")),a(4),d("ngIf",e.diseqcTree),a(1),q(A(154,Md)),x("header",f(104,145,"settings.capture.dvb.satellite_disconnect")),d("visible",e.work.displayDisconnect)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(107,147,"settings.common.ru_sure")),a(3),S(f(110,149,"settings.capture.dvb.satellite_disconnect_warning")),a(3),d("ngIf",e.work.diseqcError),a(1),d("ngIf",e.diseqcTree&&"lnb"==e.diseqcTree.Type),a(1),d("ngIf",e.diseqcTree&&"rotor"==e.diseqcTree.Type),a(1),d("ngIf",e.diseqcTree&&"switch"==e.diseqcTree.Type),a(1),d("ngIf",e.diseqcTree&&"scr"==e.diseqcTree.Type)}}function Nee(t,i){1&t&&(M(0,"p-message",64),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function Vee(t,i){1&t&&(M(0,"p-message",58),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function Bee(t,i){if(1&t){const e=I();l(0,"div",60)(1,"div",61),_(2,Nee,2,3,"p-message",62),_(3,Vee,2,3,"p-message",41),c(),l(4,"p-button",63),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let wS=(()=>{class t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.work={InputName:"",successCount:0,errorCount:0,inputNames:[""],isReady:!1,warningMessage:"",displayNewDiseqc:!1,displayDeleteDiseqc:!1,displayConnectDevice:!1,displayDisconnect:!1,selectedDiseqcTree:0,diseqcError:!1},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.diseqcRootTrees=[],this.diseqcTree=void 0,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.selectedDiseqcType={description:"",type:"",inactive:!0},this.saveObserver={next:o=>{o.bool?(console.log("saveObserver success",o),this.work.successCount++):!this.card.CardId&&o.int?(console.log("saveObserver success",o),this.work.successCount++,this.card.CardId||(this.card.CardId=o.int,this.cardList.CaptureCardList.CaptureCards.push(this.card),this.captureCardService.UpdateCaptureCard(this.card.CardId,"inputname",this.card.InputName).subscribe(this.saveObserver))):(console.log("saveObserver error",o),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.log("saveObserver error",o),this.work.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(o=>this.messages.devNotExist=o),s.get(this.messages.unknownName).subscribe(o=>this.messages.unknownName=o),s.get(this.messages.devInUse).subscribe(o=>this.messages.devInUse=o),s.get(this.messages.noDevSelected).subscribe(o=>this.messages.noDevSelected=o)}ngOnInit(){null==this.card.DVBWaitForSeqStart&&(this.card.DVBWaitForSeqStart=!0),null==this.card.DVBOnDemand&&(this.card.DVBOnDemand=!0),null==this.card.DVBEITScan&&(this.card.DVBEITScan=!0),null==this.card.CardId&&(this.card.CardId=0),null==this.card.VideoDevice&&(this.card.VideoDevice=""),null==this.card.DiSEqCId&&(this.card.DiSEqCId=0),this.captureCardService.GetCaptureDeviceList("DVB").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}}),this.setupDiseqc()}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDiseqc(){this.diseqcTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.DiSEqCId==this.card.DiSEqCId),this.work.diseqcError=!1}newDiseqc(){this.work.displayNewDiseqc=!1,this.work.diseqcError=!1,this.diseqcTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setupRootTrees(){this.diseqcRootTrees=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.filter(e=>!e.ParentId)}selectDiseqc(){this.work.displayConnectDevice=!1,this.work.diseqcError=!1,this.card.DiSEqCId=this.work.selectedDiseqcTree,this.currentForm.form.markAsDirty(),this.setupDiseqc()}unSelectDiseqc(){this.work.displayDisconnect=!1,this.work.diseqcError=!1,this.card.DiSEqCId=0,this.currentForm.form.markAsDirty(),this.diseqcTree=void 0,this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subscribe()}canDeleteDiseqc(){this.work.diseqcError=!1,this.cardList.CaptureCardList.CaptureCards.filter(n=>n.DiSEqCId==this.card.DiSEqCId).length>1?this.work.diseqcError=!0:this.work.displayDeleteDiseqc=!0}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.work.successCount=0,this.work.errorCount=0,this.diseqcTree&&this.diseqcTree.DiSEqCId&&(this.captureCardService.DeleteDiseqcTree(this.diseqcTree.DiSEqCId).subscribe({next:e=>{e.bool?this.work.successCount++:(this.work.errorCount++,console.log("DeleteDiseqcTree",e)),this.parent.loadDiseqc()},error:e=>{console.log("DeleteDiseqcTree",e),this.work.errorCount++}}),this.card.DiSEqCId=0,this.card.CardId&&(this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"DiSEqCId",String(this.card.DiSEqCId)).subscribe(this.saveObserver)}),this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subscribe())),this.diseqcTree=void 0}setDiseqcObject(e){this.diseqcComponent=e}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.work.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.work.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.work.diseqcError=!1,this.diseqcTree&&this.diseqcComponent?this.diseqcComponent.saveForm(0,{next:e=>{var n;this.card.DiSEqCId&&e.bool&&this.card.DiSEqCId==(null===(n=this.diseqcTree)||void 0===n?void 0:n.DiSEqCId)?(this.work.successCount++,this.saveCard()):e.int&&this.diseqcTree?(this.card.DiSEqCId=e.int,this.diseqcTree.DiSEqCId=e.int,this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.push(this.diseqcTree),this.saveCard()):(console.log("saveForm",e),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:e=>{console.log("saveForm",e),this.work.errorCount++,this.currentForm.form.markAsDirty()},complete:()=>{}}):this.saveCard()}saveCard(){this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_wait_for_seqstart",this.card.DVBWaitForSeqStart?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_on_demand",this.card.DVBOnDemand?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_tuning_delay",String(this.card.DVBTuningDelay)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"inputname",this.card.InputName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"DiSEqCId",String(this.card.DiSEqCId)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-dvb"]],viewQuery:function(e,n){if(1&e&&(W(mee,5),W(fee,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList",diseqcTreeList:"diseqcTreeList",parent:"parent"},decls:9,vars:0,consts:[["name","dvbform",1,"ml-3","mr-3"],["dvbform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2 form-control w-full",3,"ngModel","ngModelChange",4,"ngIf"],["for","InputName",1,"label","block"],["name","InputName",3,"options","ngModel","ngModelChange",4,"ngIf"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBWaitForSeqStart","name","DVBWaitForSeqStart",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBWaitForSeqStart","ngModel"],["inputId","DVBOnDemand","name","DVBOnDemand",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBOnDemand","ngModel"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["for","DVBTuningDelay",1,"label","block"],["name","DVBTuningDelay","id","DVBTuningDelay",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","pTooltip","onClick",4,"ngIf"],["for","diseqcRootTrees",1,"label","block"],["optionLabel","Description","name","diseqcRootTrees","optionValue","DiSEqCId",3,"options","ngModel","ngModelChange","onDblClick"],["styleClass","p-button-warning","label","Delete Satellite Devices","icon","pi pi-trash",3,"onClick",4,"ngIf"],["icon","pi pi-minus-circle","styleClass","p-button-warning",3,"label","onClick",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],["name","InputName",3,"options","ngModel","ngModelChange"],["InputName","ngModel"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","pTooltip","onClick"],["styleClass","p-button-warning","label","Delete Satellite Devices","icon","pi pi-trash",3,"onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-minus-circle","styleClass","p-button-warning",3,"label","onClick"],["severity","error",3,"text"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),M(2,"span",null,2),l(4,"p-card",3),_(5,gee,2,3,"ng-template",4),_(6,_ee,0,0,"ng-template",5),_(7,Fee,117,155,"ng-template",6),_(8,Bee,6,6,"ng-template",7),c()())},styles:[""]}),t})();const Hee=["lnbform"];function qee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.capture.diseqc.lnb.title")," ")}function Gee(t,i){}const TS=function(){return{minWidth:"80%"}};function Uee(t,i){if(1&t){const e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return v(e),p().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-dropdown",14,15),C("ngModelChange",function(s){return v(e),p().currentPreset=s})("onChange",function(){return v(e),p().updatePreset()}),c(),l(17,"small",12),g(18),m(19,"translate"),c()(),l(20,"div",8)(21,"label",16),g(22),m(23,"translate"),c(),l(24,"p-dropdown",17,18),C("ngModelChange",function(s){return v(e),p().currentSubType=s})("onChange",function(){return v(e),p().updateSubType()}),c(),l(26,"small",12),g(27),m(28,"translate"),c()(),l(29,"div",8)(30,"label",19),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",20),C("ngModelChange",function(s){return v(e),p().work.LnbLofSwitch=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",21),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",22),C("ngModelChange",function(s){return v(e),p().work.LnbLofLo=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()(),l(45,"div",8)(46,"label",23),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",24),C("ngModelChange",function(s){return v(e),p().work.LnbLofHi=s}),c(),l(50,"small",12),g(51),m(52,"translate"),c()(),l(53,"div",8)(54,"p-checkbox",25,26),C("ngModelChange",function(s){return v(e),p().diseqcTree.LnbPolInv=s}),m(56,"translate"),c(),l(57,"small",12),g(58),m(59,"translate"),c()()()()}if(2&t){const e=p();a(4),S(f(5,41,"settings.capture.diseqc.description_label")),a(2),d("ngModel",e.diseqcTree.Description),a(3),T(" ",f(10,43,"settings.capture.diseqc.description_desc")," "),a(4),S(f(14,45,"settings.capture.diseqc.lnb.preset_label")),a(2),q(A(69,TS)),d("options",e.lnbPresetList)("ngModel",e.currentPreset)("editable",!1)("maxlength",0)("scrollHeight","400px"),a(3),T(" ",f(19,47,"settings.capture.diseqc.lnb.preset_desc")," "),a(4),S(f(23,49,"settings.capture.diseqc.lnb.type_label")),a(2),q(A(70,TS)),d("options",e.lnbSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0)("disabled","custom"!=e.currentPreset.SubType),a(3),T(" ",f(28,51,"settings.capture.diseqc.lnb.type_desc")," "),a(4),S(f(32,53,"settings.capture.diseqc.lnb.lofswitch_label")),a(2),d("ngModel",e.work.LnbLofSwitch)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType||"voltage_tone"!=e.diseqcTree.SubType),a(2),T(" ",f(36,55,"settings.capture.diseqc.lnb.lofswitch_desc")," "),a(4),S(f(40,57,"settings.capture.diseqc.lnb.loflow_label")),a(2),d("ngModel",e.work.LnbLofLo)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType),a(2),T(" ",f(44,59,"settings.capture.diseqc.lnb.loflow_desc")," "),a(4),S(f(48,61,"settings.capture.diseqc.lnb.lofhigh_label")),a(2),d("ngModel",e.work.LnbLofHi)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType||!("voltage_tone"==e.diseqcTree.SubType||"bandstacked"==e.diseqcTree.SubType)),a(2),T(" ",f(52,63,"settings.capture.diseqc.lnb.lofhigh_desc")," "),a(3),x("label",f(56,65,"settings.capture.diseqc.lnb.reversed_label")),d("ngModel",e.diseqcTree.LnbPolInv)("binary",!0)("disabled","custom"!=e.currentPreset.SubType),a(4),T(" ",f(59,67,"settings.capture.diseqc.lnb.reversed_desc")," ")}}let kd=(()=>{class t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.baseEvent=new H,this.work={LnbLofSwitch:0,LnbLofLo:0,LnbLofHi:0},this.lnbSubTypes=[{Name:"settings.capture.diseqc.subtype_legacy",SubType:"fixed"},{Name:"settings.capture.diseqc.subtype_standard",SubType:"voltage"},{Name:"settings.capture.diseqc.subtype_universal",SubType:"voltage_tone"},{Name:"settings.capture.diseqc.subtype_backstacked",SubType:"bandstacked"}],this.lnbPresetList=[{Name:"settings.capture.diseqc.lnbpreset_universal",SubType:"voltage_tone",LnbLofSwitch:11700,LnbLofLo:9750,LnbLofHi:10600,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_single",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:9750,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_circular",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:11250,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_Linear",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:10750,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_cband",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:5150,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_dishpro",SubType:"bandstacked",LnbLofSwitch:0,LnbLofLo:11250,LnbLofHi:14350,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_custom",SubType:"custom",LnbLofSwitch:0,LnbLofLo:0,LnbLofHi:0,LnbPolInv:!1}],this.setupDone=!1,this.lnbSubTypes.forEach(o=>s.get(o.Name).subscribe(r=>o.Name=r)),this.lnbPresetList.forEach(o=>s.get(o.Name).subscribe(r=>o.Name=r))}ngOnInit(){if(this.diseqcTree.DiSEqCId){let e;this.work.LnbLofSwitch=this.diseqcTree.LnbLofSwitch/1e3,this.work.LnbLofLo=this.diseqcTree.LnbLofLo/1e3,this.work.LnbLofHi=this.diseqcTree.LnbLofHi/1e3,e=this.lnbPresetList.find(n=>n.SubType==this.diseqcTree.SubType&&n.LnbLofSwitch==this.work.LnbLofSwitch&&n.LnbLofLo==this.work.LnbLofLo&&n.LnbLofHi==this.work.LnbLofHi&&n.LnbPolInv==this.diseqcTree.LnbPolInv),this.currentPreset=null==e?this.lnbPresetList[this.lnbPresetList.length-1]:e}else this.currentPreset=this.lnbPresetList[0],this.updatePreset()}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}updatePreset(){if("custom"!=this.currentPreset.SubType){let e=this.lnbSubTypes.find(n=>n.SubType==this.currentPreset.SubType);e&&(this.currentSubType=e,this.updateSubType()),this.work.LnbLofSwitch=this.currentPreset.LnbLofSwitch,this.work.LnbLofLo=this.currentPreset.LnbLofLo,this.work.LnbLofHi=this.currentPreset.LnbLofHi,this.diseqcTree.LnbPolInv=this.currentPreset.LnbPolInv}}updateSubType(){this.diseqcTree.SubType=this.currentSubType.SubType}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.LnbLofSwitch=1e3*this.work.LnbLofSwitch,this.diseqcTree.LnbLofLo=1e3*this.work.LnbLofLo,this.diseqcTree.LnbLofHi=1e3*this.work.LnbLofHi,this.diseqcTree.DiSEqCId?this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s)):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-lnb"]],viewQuery:function(e,n){if(1&e&&W(Hee,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","lnbform",1,"ml-3","mr-3"],["lnbform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","LnbPreset",1,"label","block"],["optionLabel","Name","name","LnbPreset",3,"options","ngModel","editable","maxlength","scrollHeight","ngModelChange","onChange"],["LnbPreset","ngModel"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","disabled","ngModelChange","onChange"],["SubType","ngModel"],["for","LnbLofSwitch",1,"label","block"],["name","LnbLofSwitch","id","LnbLofSwitch","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["for","LnbLofLo",1,"label","block"],["name","LnbLofLo","id","LnbLofLo","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["for","LnbLofHi",1,"label","block"],["name","LnbLofHi","id","LnbLofHi","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["inputId","LnbPolInv","name","LnbPolInv",1,"label","mb-2","w-full",3,"ngModel","binary","label","disabled","ngModelChange"],["LnbPolInv","ngModel"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,qee,2,3,"ng-template",3),_(4,Gee,0,0,"ng-template",4),_(5,Uee,60,71,"ng-template",5),c()())},directives:[ze,Ue,He,Ne,ne,Ye,we,_e,Ot,_n,pt,on],pipes:[ce],styles:[""]}),t})();const zee=["rotorform"];function jee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.capture.diseqc.rotor.title")," ")}function $ee(t,i){}function Wee(t,i){1&t&&(l(0,"tr")(1,"th"),g(2,"Position #"),c(),l(3,"th"),g(4,"Angle (Degrees)"),c()())}function Kee(t,i){if(1&t){const e=I();l(0,"p-inputNumber",43),C("ngModelChange",function(s){return v(e),p().$implicit.Angle=s}),c()}2&t&&d("ngModel",p().$implicit.Angle)("min",-180)("max",180)("maxFractionDigits",5)}function Qee(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const e=p(2).$implicit;a(1),T("",e.Angle," (W)")}}function Jee(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const e=p(2).$implicit;a(1),T(" ",e.Angle," (E)")}}function Yee(t,i){if(1&t&&(_(0,Qee,2,1,"div",44),_(1,Jee,2,1,"div",44)),2&t){const e=p().$implicit;d("ngIf",e.Angle<0),a(1),d("ngIf",null!=e.Angle&&e.Angle>=0)}}function Zee(t,i){if(1&t&&(l(0,"tr")(1,"td"),g(2),c(),l(3,"td",40)(4,"p-cellEditor"),_(5,Kee,1,4,"ng-template",41),_(6,Yee,2,2,"ng-template",42),c()()()),2&t){const e=i.$implicit;a(2),T(" ",e.Num," ")}}const SS=function(){return{width:"25rem"}};function Xee(t,i){if(1&t&&(l(0,"div",8)(1,"label",36),g(2),m(3,"translate"),c(),l(4,"div")(5,"p-table",37),_(6,Wee,5,0,"ng-template",38),_(7,Zee,7,1,"ng-template",39),c()(),l(8,"small",12),g(9),m(10,"translate"),c()()),2&t){const e=p(2);a(2),S(f(3,6,"settings.capture.diseqc.rotor.positions_label")),a(2),q(A(10,SS)),a(1),d("value",e.rotorPositions)("scrollable",!0),a(4),T(" ",f(10,8,"settings.capture.diseqc.rotor.positions_desc")," ")}}function ete(t,i){if(1&t){const e=I();l(0,"p-button",45),C("onClick",function(){return v(e),p(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function tte(t,i){if(1&t){const e=I();l(0,"p-button",46),C("onClick",function(){return v(e),p(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",47),C("onClick",function(){return v(e),p(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const e=p(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),d("disabled",e.selectedDiseqcType.inactive)}}function nte(t,i){if(1&t){const e=I();l(0,"p-button",48),C("onClick",function(){return v(e),p(2).work.displayDeleteDiseqc=!0}),c()}2&t&&d("disabled",!p(2).diseqcSubTree)}function ite(t,i){if(1&t){const e=I();l(0,"p-button",49),C("click",function(){return v(e),p(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",50),C("click",function(){return v(e),p(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function ste(t,i){if(1&t){const e=I();l(0,"app-lnb",51),C("baseEvent",function(s){return v(e),p(2).setDiseqcObject(s)}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function ote(t,i){if(1&t){const e=I();l(0,"app-rotor",51),C("baseEvent",function(s){return v(e),p(2).setDiseqcObject(s)}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function rte(t,i){if(1&t){const e=I();l(0,"app-switch",51),C("baseEvent",function(s){return v(e),p(2).setDiseqcObject(s)}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function ate(t,i){if(1&t){const e=I();l(0,"app-unicable",51),C("baseEvent",function(s){return v(e),p(2).setDiseqcObject(s)}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}const lte=function(){return{minWidth:"80%"}},xS=function(){return{width:"50vw"}};function cte(t,i){if(1&t){const e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return v(e),p().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return v(e),p().diseqcTree.CmdRepeat=s}),c(),l(16,"small",12),M(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-dropdown",17,18),C("ngModelChange",function(s){return v(e),p().currentSubType=s})("onChange",function(){return v(e),p().updateSubType()}),c(),l(25,"small",12),g(26),m(27,"translate"),c()(),_(28,Xee,11,11,"div",19),l(29,"div",8)(30,"label",20),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",21),C("ngModelChange",function(s){return v(e),p().diseqcTree.RotorLoSpeed=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return v(e),p().diseqcTree.RotorHiSpeed=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()(),l(45,"div",8)(46,"label",24),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",25),C("ngModelChange",function(s){return v(e),p().fields.Latitude=s}),c(),l(50,"small",12),g(51),m(52,"translate"),c()(),l(53,"div",8)(54,"label",26),g(55),m(56,"translate"),c(),l(57,"p-inputNumber",27),C("ngModelChange",function(s){return v(e),p().fields.Longitude=s}),c(),l(58,"small",12),g(59),m(60,"translate"),c()(),l(61,"p-fieldset",28),m(62,"translate"),_(63,ete,2,3,"p-button",29),l(64,"p-dialog",30),C("visibleChange",function(s){return v(e),p().work.displayNewDiseqc=s}),m(65,"translate"),l(66,"label",31),g(67),m(68,"translate"),c(),l(69,"p-listbox",32),C("ngModelChange",function(s){return v(e),p().selectedDiseqcType=s})("onDblClick",function(){return v(e),p().newDiseqc()}),c(),_(70,tte,4,7,"ng-template",33),c(),_(71,nte,1,1,"p-button",34),l(72,"p-dialog",30),C("visibleChange",function(s){return v(e),p().work.displayDeleteDiseqc=s}),m(73,"translate"),l(74,"h2"),g(75),m(76,"translate"),c(),l(77,"p"),g(78),m(79,"translate"),c(),_(80,ite,4,6,"ng-template",33),c(),_(81,ste,1,3,"app-lnb",35),_(82,ote,1,3,"app-rotor",35),_(83,rte,1,3,"app-switch",35),_(84,ate,1,3,"app-unicable",35),c()()()}if(2&t){const e=p();a(4),S(f(5,65,"settings.capture.diseqc.description_label")),a(2),d("ngModel",e.diseqcTree.Description),a(3),T(" ",f(10,67,"settings.capture.diseqc.description_desc")," "),a(4),S(f(14,69,"settings.capture.diseqc.cmdrepeat_label")),a(2),d("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),d("innerHTML",f(18,71,"settings.capture.diseqc.cmdrepeat_desc"),Ft),a(2),q(A(105,SS)),a(2),S(f(22,73,"settings.capture.diseqc.rotor.type_label")),a(2),q(A(106,lte)),d("options",e.rotorSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0),a(3),T(" ",f(27,75,"settings.capture.diseqc.rotor.type_desc")," "),a(2),d("ngIf","diseqc_1_2"==e.diseqcTree.SubType),a(3),S(f(32,77,"settings.capture.diseqc.rotor.lospeed_label")),a(2),d("ngModel",e.diseqcTree.RotorLoSpeed)("maxFractionDigits",5),a(2),T(" ",f(36,79,"settings.capture.diseqc.rotor.lospeed_desc")," "),a(4),S(f(40,81,"settings.capture.diseqc.rotor.hispeed_label")),a(2),d("ngModel",e.diseqcTree.RotorHiSpeed)("maxFractionDigits",5),a(2),T(" ",f(44,83,"settings.capture.diseqc.rotor.hispeed_desc")," "),a(4),S(f(48,85,"settings.capture.diseqc.rotor.latitude_label")),a(2),d("ngModel",e.fields.Latitude)("maxFractionDigits",5),a(2),T(" ",f(52,87,"settings.capture.diseqc.rotor.latitude_desc")," "),a(4),S(f(56,89,"settings.capture.diseqc.rotor.longitude_label")),a(2),d("ngModel",e.fields.Longitude)("maxFractionDigits",5),a(2),T(" ",f(60,91,"settings.capture.diseqc.rotor.longitude_desc")," "),a(2),x("legend",f(62,93,"settings.capture.dvb.satellite_heading")),d("toggleable",!0)("collapsed",!0),a(2),d("ngIf",!e.diseqcSubTree),a(1),q(A(107,xS)),x("header",f(65,95,"settings.capture.dvb.newsatellite_heading")),d("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(68,97,"settings.capture.dvb.newsatellite_devtype")),a(2),d("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(2),d("ngIf",e.diseqcSubTree),a(1),q(A(108,xS)),x("header",f(73,99,"settings.capture.dvb.satellite_delete_header")),d("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(76,101,"settings.common.ru_sure")),a(3),S(f(79,103,"settings.capture.dvb.satellite_delete_desc")),a(3),d("ngIf",e.diseqcSubTree&&"lnb"==e.diseqcSubTree.Type),a(1),d("ngIf",e.diseqcSubTree&&"rotor"==e.diseqcSubTree.Type),a(1),d("ngIf",e.diseqcSubTree&&"switch"==e.diseqcSubTree.Type),a(1),d("ngIf",e.diseqcSubTree&&"scr"==e.diseqcSubTree.Type)}}let Nl=(()=>{class t{constructor(e,n,s,o){this.captureCardService=e,this.setupService=n,this.translate=s,this.mythService=o,this.baseEvent=new H,this.rotorSubTypes=[{Name:"settings.capture.diseqc.subtype_diseqc_1_2",SubType:"diseqc_1_2"},{Name:"settings.capture.diseqc.subtype_diseqc_1_3",SubType:"diseqc_1_3"}],this.selectedDiseqcType={description:"",type:"",inactive:!0},this.rotorPositions=[],this.fields={Latitude:null,Longitude:null},this.work={displayNewDiseqc:!1,displayDeleteDiseqc:!1},this.setupDone=!1,this.rotorSubTypes.forEach(r=>s.get(r.Name).subscribe(u=>r.Name=u))}ngOnInit(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"latitude"}).subscribe({next:e=>{e.String.length>0&&(this.fields.Latitude=Number(e.String))},error:()=>this.dvbComponent.work.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"longitude"}).subscribe({next:e=>{e.String.length>0&&(this.fields.Longitude=Number(e.String))},error:()=>this.dvbComponent.work.errorCount++});for(let e=0;e<48;e++)this.rotorPositions.push({Num:e+1,Angle:null});if(this.diseqcTree.DiSEqCId?this.diseqcTree.RotorPositions.split(":").forEach(n=>{let s=n.split("=");if(2==s.length&&s[0].length>0&&s[1].length>0){let o=Number.parseInt(s[1])-1,r=Number.parseFloat(s[0]);o>-1&&o<48&&(this.rotorPositions[o].Angle=r)}}):(this.diseqcTree.RotorHiSpeed=2.5,this.diseqcTree.RotorLoSpeed=1.9,this.diseqcTree.SubType="diseqc_1_3",this.diseqcTree.CmdRepeat=1),this.diseqcTree.SubType){let e=this.rotorSubTypes.find(n=>n.SubType==this.diseqcTree.SubType);e&&(this.currentSubType=e)}this.diseqcSubTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.ParentId==this.diseqcTree.DiSEqCId)}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}updateSubType(){this.diseqcTree.SubType=this.currentSubType.SubType}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setDiseqcObject(e){this.diseqcSubComponent=e}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.dvbComponent.work.errorCount=0,this.diseqcSubTree&&this.diseqcSubTree.DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree.DiSEqCId).subscribe({next:e=>{e.bool||(console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++)},error:e=>{console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree=void 0)}saveForm(e,n){this.diseqcTree.ParentId=e,null!=this.fields.Latitude&&this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"latitude",Value:String(this.fields.Latitude)}).subscribe(this.dvbComponent.saveObserver),null!=this.fields.Longitude&&this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"longitude",Value:String(this.fields.Longitude)}).subscribe(this.dvbComponent.saveObserver),this.diseqcTree.RotorPositions="",this.rotorPositions.forEach(s=>{null!=s.Angle&&(this.diseqcTree.RotorPositions.length>0&&(this.diseqcTree.RotorPositions=this.diseqcTree.RotorPositions+":"),this.diseqcTree.RotorPositions=this.diseqcTree.RotorPositions+s.Angle+"="+s.Num)}),this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{error:s=>{n.error(s)}})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next(s),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{next:o=>{},error:o=>{n.error(o)}})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(Me),D(Oe),D(Bt))},t.\u0275cmp=z({type:t,selectors:[["app-rotor"]],viewQuery:function(e,n){if(1&e&&W(zee,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","rotorform",1,"ml-3","mr-3"],["rotorform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SubType","ngModel"],["class","form-group field",4,"ngIf"],["for","RotorLoSpeed",1,"label","block"],["name","RotorLoSpeed","id","RotorLoSpeed","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","RotorHiSpeed",1,"label","block"],["name","RotorHiSpeed","id","RotorHiSpeed","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","Latitude",1,"label","block"],["name","Latitude","id","Latitude","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","Longitude",1,"label","block"],["name","Longitude","id","Longitude","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","label","Delete Satellite Devices","icon","pi pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["for","RotorPositions",1,"label","block"],["dataKey","Num","responsiveLayout","scroll","name","RotorPositions","styleClass","p-datatable-gridlines","scrollHeight","20rem",3,"value","scrollable"],["pTemplate","header"],["pTemplate","body"],["pEditableColumn",""],["pTemplate","input"],["pTemplate","output"],["name","Angle",3,"ngModel","min","max","maxFractionDigits","ngModelChange"],[4,"ngIf"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["styleClass","p-button-warning","label","Delete Satellite Devices","icon","pi pi-trash",3,"disabled","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,jee,2,3,"ng-template",3),_(4,$ee,0,0,"ng-template",4),_(5,cte,85,109,"ng-template",5),c()())},styles:[""]}),t})();const ute=["unicableform"];function dte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.capture.diseqc.unicable.title")," ")}function pte(t,i){}function hte(t,i){if(1&t){const e=I();l(0,"p-button",30),C("onClick",function(){return v(e),p(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function mte(t,i){if(1&t){const e=I();l(0,"p-button",31),C("onClick",function(){return v(e),p(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",32),C("onClick",function(){return v(e),p(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const e=p(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),d("disabled",e.selectedDiseqcType.inactive)}}function fte(t,i){if(1&t){const e=I();l(0,"p-button",33),C("onClick",function(){return v(e),p(2).work.displayDeleteDiseqc=!0}),c()}2&t&&d("disabled",!p(2).diseqcSubTree)}function gte(t,i){if(1&t){const e=I();l(0,"p-button",34),C("click",function(){return v(e),p(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",35),C("click",function(){return v(e),p(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function _te(t,i){if(1&t){const e=I();l(0,"app-lnb",36),C("baseEvent",function(s){return v(e),p(2).setDiseqcObject(s)}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function bte(t,i){if(1&t){const e=I();l(0,"app-rotor",36),C("baseEvent",function(s){return v(e),p(2).setDiseqcObject(s)}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function vte(t,i){if(1&t){const e=I();l(0,"app-switch",36),C("baseEvent",function(s){return v(e),p(2).setDiseqcObject(s)}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function Cte(t,i){if(1&t){const e=I();l(0,"app-unicable",36),C("baseEvent",function(s){return v(e),p(2).setDiseqcObject(s)}),c()}if(2&t){const e=p(2);d("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}const DS=function(){return{width:"50vw"}};function yte(t,i){if(1&t){const e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return v(e),p().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return v(e),p().diseqcTree.ScrUserband=s}),c(),l(16,"small",12),M(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-inputNumber",17),C("ngModelChange",function(s){return v(e),p().diseqcTree.ScrFrequency=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()(),l(27,"div",8)(28,"label",18),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",19),C("ngModelChange",function(s){return v(e),p().diseqcTree.ScrPin=s}),c(),l(32,"small",12),g(33),m(34,"translate"),c()(),l(35,"div",8)(36,"label",20),g(37),m(38,"translate"),c(),l(39,"p-inputNumber",21),C("ngModelChange",function(s){return v(e),p().diseqcTree.CmdRepeat=s}),c(),l(40,"small",12),M(41,"div",15),m(42,"translate"),c()(),l(43,"p-fieldset",22),m(44,"translate"),_(45,hte,2,3,"p-button",23),l(46,"p-dialog",24),C("visibleChange",function(s){return v(e),p().work.displayNewDiseqc=s}),m(47,"translate"),l(48,"label",25),g(49),m(50,"translate"),c(),l(51,"p-listbox",26),C("ngModelChange",function(s){return v(e),p().selectedDiseqcType=s})("onDblClick",function(){return v(e),p().newDiseqc()}),c(),_(52,mte,4,7,"ng-template",27),c(),_(53,fte,1,1,"p-button",28),l(54,"p-dialog",24),C("visibleChange",function(s){return v(e),p().work.displayDeleteDiseqc=s}),m(55,"translate"),l(56,"h2"),g(57),m(58,"translate"),c(),l(59,"p"),g(60),m(61,"translate"),c(),_(62,gte,4,6,"ng-template",27),c(),_(63,_te,1,3,"app-lnb",29),_(64,bte,1,3,"app-rotor",29),_(65,vte,1,3,"app-switch",29),_(66,Cte,1,3,"app-unicable",29),c()()()}if(2&t){const e=p();a(4),S(f(5,55,"settings.capture.diseqc.description_label")),a(2),d("ngModel",e.diseqcTree.Description),a(3),T(" ",f(10,57,"settings.capture.diseqc.description_desc")," "),a(4),S(f(14,59,"settings.capture.diseqc.unicable.userband_label")),a(2),d("ngModel",e.diseqcTree.ScrUserband)("showButtons",!0)("min",0)("max",7)("step",1),a(2),d("innerHTML",f(18,61,"settings.capture.diseqc.userband_desc"),Ft),a(4),S(f(22,63,"settings.capture.diseqc.unicable.frequency_label")),a(2),d("ngModel",e.diseqcTree.ScrFrequency)("useGrouping",!1),a(2),T(" ",f(26,65,"settings.capture.diseqc.unicable.frequency_desc")," "),a(4),S(f(30,67,"settings.capture.diseqc.unicable.pin_label")),a(2),d("ngModel",e.diseqcTree.ScrPin)("useGrouping",!1)("min",-1)("max",255),a(2),T(" ",f(34,69,"settings.capture.diseqc.unicable.pin_desc")," "),a(4),S(f(38,71,"settings.capture.diseqc.cmdrepeat_label")),a(2),d("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),d("innerHTML",f(42,73,"settings.capture.diseqc.cmdrepeat_desc"),Ft),a(2),x("legend",f(44,75,"settings.capture.dvb.satellite_heading")),d("toggleable",!0)("collapsed",!0),a(2),d("ngIf",!e.diseqcSubTree),a(1),q(A(87,DS)),x("header",f(47,77,"settings.capture.dvb.newsatellite_heading")),d("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(50,79,"settings.capture.dvb.newsatellite_devtype")),a(2),d("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(2),d("ngIf",e.diseqcSubTree),a(1),q(A(88,DS)),x("header",f(55,81,"settings.capture.dvb.satellite_delete_header")),d("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(58,83,"settings.common.ru_sure")),a(3),S(f(61,85,"settings.capture.dvb.satellite_delete_desc")),a(3),d("ngIf",e.diseqcSubTree&&"lnb"==e.diseqcSubTree.Type),a(1),d("ngIf",e.diseqcSubTree&&"rotor"==e.diseqcSubTree.Type),a(1),d("ngIf",e.diseqcSubTree&&"switch"==e.diseqcSubTree.Type),a(1),d("ngIf",e.diseqcSubTree&&"scr"==e.diseqcSubTree.Type)}}let Vl=(()=>{class t{constructor(e){this.captureCardService=e,this.selectedDiseqcType={description:"",type:"",inactive:!0},this.baseEvent=new H,this.work={displayNewDiseqc:!1,displayDeleteDiseqc:!1},this.setupDone=!1}ngOnInit(){this.diseqcTree.DiSEqCId||(this.diseqcTree.ScrUserband=0,this.diseqcTree.ScrFrequency=1210,this.diseqcTree.ScrPin=-1,this.diseqcTree.CmdRepeat=1),this.diseqcSubTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.ParentId==this.diseqcTree.DiSEqCId)}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setDiseqcObject(e){this.diseqcSubComponent=e}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.dvbComponent.work.errorCount=0,this.diseqcSubTree&&this.diseqcSubTree.DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree.DiSEqCId).subscribe({next:e=>{e.bool||(console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++)},error:e=>{console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree=void 0)}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{error:s=>{n.error(s)}})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{next:o=>{},error:o=>{n.error(o)}})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return t.\u0275fac=function(e){return new(e||t)(D(Gt))},t.\u0275cmp=z({type:t,selectors:[["app-unicable"]],viewQuery:function(e,n){if(1&e&&W(ute,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","unicableform",1,"ml-3","mr-3"],["unicableform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","ScrUserband",1,"label","block"],["name","ScrUserband","id","ScrUserband",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","ScrFrequency",1,"label","block"],["name","ScrFrequency","id","ScrFrequency","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","ngModelChange"],["for","ScrPin",1,"label","block"],["name","ScrPin","id","ScrPin","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","min","max","ngModelChange"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","label","Delete Satellite Devices","icon","pi pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["styleClass","p-button-warning","label","Delete Satellite Devices","icon","pi pi-trash",3,"disabled","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,dte,2,3,"ng-template",3),_(4,pte,0,0,"ng-template",4),_(5,yte,67,89,"ng-template",5),c()())},styles:[""]}),t})();const wte=["switchform"];function Tte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.capture.diseqc.switch.title")," ")}function Ste(t,i){}function xte(t,i){1&t&&(l(0,"div")(1,"small",27),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.capture.diseqc.switchports_error")))}function Dte(t,i){if(1&t){const e=I();l(0,"p-button",33),C("onClick",function(){v(e);const s=p(2).index;return p(2).displayDeleteThis[s]=!0}),c()}2&t&&d("disabled",!p(2).$implicit)}function Mte(t,i){if(1&t){const e=I();l(0,"p-button",34),C("click",function(){v(e);const s=p(2).index;return p(2).displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",35),C("click",function(){v(e);const s=p(2).index;return p(2).deleteDiseqc(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function kte(t,i){if(1&t){const e=I();l(0,"app-lnb",36),C("baseEvent",function(s){return v(e),p(4).setDiseqcObject(s)}),c()}if(2&t){const e=p(2).$implicit,n=p(2);d("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function Ite(t,i){if(1&t){const e=I();l(0,"app-rotor",36),C("baseEvent",function(s){return v(e),p(4).setDiseqcObject(s)}),c()}if(2&t){const e=p(2).$implicit,n=p(2);d("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function Ete(t,i){if(1&t){const e=I();l(0,"app-switch",36),C("baseEvent",function(s){return v(e),p(4).setDiseqcObject(s)}),c()}if(2&t){const e=p(2).$implicit,n=p(2);d("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function Rte(t,i){if(1&t){const e=I();l(0,"app-unicable",36),C("baseEvent",function(s){return v(e),p(4).setDiseqcObject(s)}),c()}if(2&t){const e=p(2).$implicit,n=p(2);d("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}const MS=function(){return{width:"50vw"}};function Lte(t,i){if(1&t){const e=I();l(0,"p-fieldset",28),m(1,"translate"),_(2,Dte,1,1,"p-button",29),l(3,"p-dialog",30),C("visibleChange",function(s){v(e);const o=p().index;return p(2).displayDeleteThis[o]=s}),m(4,"translate"),l(5,"h2"),g(6),m(7,"translate"),c(),l(8,"p"),g(9),m(10,"translate"),c(),_(11,Mte,4,6,"ng-template",31),c(),_(12,kte,1,3,"app-lnb",32),_(13,Ite,1,3,"app-rotor",32),_(14,Ete,1,3,"app-switch",32),_(15,Rte,1,3,"app-unicable",32),c()}if(2&t){const e=p(),n=e.$implicit,s=e.index,o=p(2);x("legend",f(1,17,"settings.capture.dvb.satellite_heading")),d("toggleable",!0)("collapsed",!0),a(2),d("ngIf",n),a(1),q(A(25,MS)),x("header",f(4,19,"settings.capture.dvb.satellite_delete_header")),d("visible",o.displayDeleteThis[s])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(7,21,"settings.common.ru_sure")),a(3),S(f(10,23,"settings.capture.dvb.satellite_delete_desc")),a(3),d("ngIf",n&&"lnb"==n.Type),a(1),d("ngIf",n&&"rotor"==n.Type),a(1),d("ngIf",n&&"switch"==n.Type),a(1),d("ngIf",n&&"scr"==n.Type)}}function Ote(t,i){if(1&t&&(l(0,"div"),_(1,Lte,16,26,"p-fieldset",26),c()),2&t){const e=i.$implicit;a(1),d("ngIf",e)}}function Ate(t,i){if(1&t){const e=I();l(0,"p-button",40),C("onClick",function(){return v(e),p(3).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",41),C("onClick",function(){return v(e),p(3).newDiseqc()}),m(3,"translate"),c()}if(2&t){const e=p(3);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),d("disabled",e.selectedDiseqcType.inactive)}}function Pte(t,i){if(1&t){const e=I();l(0,"p-fieldset",28),m(1,"translate"),l(2,"p-button",37),C("onClick",function(){return v(e),p(2).work.displayNewDiseqc=!0}),m(3,"translate"),c(),l(4,"p-dialog",30),C("visibleChange",function(s){return v(e),p(2).work.displayNewDiseqc=s}),m(5,"translate"),l(6,"label",38),g(7),m(8,"translate"),c(),l(9,"p-listbox",39),C("ngModelChange",function(s){return v(e),p(2).selectedDiseqcType=s})("onDblClick",function(){return v(e),p(2).newDiseqc()}),c(),_(10,Ate,4,7,"ng-template",31),c()()}if(2&t){const e=p(2);x("legend",f(1,14,"settings.capture.dvb.satellite_heading")),d("toggleable",!0)("collapsed",!1),a(2),x("label",f(3,16,"settings.capture.dvb.newsatellite_button")),a(2),q(A(22,MS)),x("header",f(5,18,"settings.capture.dvb.newsatellite_heading")),d("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),T(" ",f(8,20,"settings.capture.dvb.newsatellite_devtype")," "),a(2),d("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType)}}const Fte=function(){return{width:"25rem"}},Nte=function(){return{minWidth:"80%"}};function Vte(t,i){if(1&t){const e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return v(e),p().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return v(e),p().diseqcTree.CmdRepeat=s}),c(),l(16,"small",12),M(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-dropdown",17,18),C("ngModelChange",function(s){return v(e),p().currentSubType=s})("onChange",function(){return v(e),p().updateSubType()}),c(),l(25,"small",12),g(26),m(27,"translate"),c()(),l(28,"div",8)(29,"label",19),g(30),m(31,"translate"),c(),l(32,"input",20,21),C("ngModelChange",function(s){return v(e),p().work.addressText=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return v(e),p().diseqcTree.SwitchPorts=s}),c(),l(42,"small",12),M(43,"div",15),m(44,"translate"),c(),_(45,xte,4,3,"div",24),c(),_(46,Ote,2,1,"div",25),_(47,Pte,11,23,"p-fieldset",26),c()()}if(2&t){const e=p();a(4),S(f(5,35,"settings.capture.diseqc.description_label")),a(2),d("ngModel",e.diseqcTree.Description),a(3),T(" ",f(10,37,"settings.capture.diseqc.description_desc")," "),a(4),S(f(14,39,"settings.capture.diseqc.cmdrepeat_label")),a(2),d("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),d("innerHTML",f(18,41,"settings.capture.diseqc.cmdrepeat_desc"),Ft),a(2),q(A(55,Fte)),a(2),S(f(22,43,"settings.capture.diseqc.switch.type_label")),a(2),q(A(56,Nte)),d("options",e.switchSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0),a(3),T(" ",f(27,45,"settings.capture.diseqc.switch.type_desc")," "),a(4),S(f(31,47,"settings.capture.diseqc.address_label")),a(2),d("ngModel",e.work.addressText)("disabled",!e.work.enableAddrAndPorts),a(3),T(" ",f(36,49,"settings.capture.diseqc.address_desc")," "),a(4),T(" ",f(40,51,"settings.capture.diseqc.switchports_label")," "),a(2),d("ngModel",e.diseqcTree.SwitchPorts)("showButtons",!0)("min",0)("max",255)("step",1)("disabled",!e.work.enableAddrAndPorts),a(2),d("innerHTML",f(44,53,"settings.capture.diseqc.switchports_desc"),Ft),a(2),d("ngIf",e.diseqcSubTreeCount>e.diseqcTree.SwitchPorts),a(1),d("ngForOf",e.diseqcSubTree),a(1),d("ngIf",e.diseqcSubTreeCount{class t{constructor(e,n){this.captureCardService=e,this.translate=n,this.diseqcSubComponent=[],this.baseEvent=new H,this.switchSubTypes=[{Name:"settings.capture.diseqc.switch.tone",SubType:"tone"},{Name:"settings.capture.diseqc.switch.voltage",SubType:"voltage"},{Name:"settings.capture.diseqc.switch.mini_diseqc",SubType:"mini_diseqc"},{Name:"settings.capture.diseqc.switch.diseqc",SubType:"diseqc"},{Name:"settings.capture.diseqc.switch.diseqc_uncom",SubType:"diseqc_uncom"},{Name:"settings.capture.diseqc.switch.legacy_sw21",SubType:"legacy_sw21"},{Name:"settings.capture.diseqc.switch.legacy_sw42",SubType:"legacy_sw42"},{Name:"settings.capture.diseqc.switch.legacy_sw64",SubType:"legacy_sw64"}],this.diseqcSubTree=[],this.diseqcSubTreeCount=0,this.work={addressText:"",displayNewDiseqc:!1,enableAddrAndPorts:!1},this.displayDeleteThis=[],this.selectedDiseqcType={description:"",type:"",inactive:!0},this.setupDone=!1,this.switchSubTypes.forEach(s=>n.get(s.Name).subscribe(o=>s.Name=o))}ngOnInit(){if(this.diseqcTree.DiSEqCId?this.work.addressText="0x"+this.diseqcTree.Address.toString(16):(this.diseqcTree.Address=16,this.work.addressText="0x10",this.diseqcTree.SwitchPorts=2,this.diseqcTree.SubType="tone",this.diseqcTree.CmdRepeat=1),this.diseqcTree.SubType){let e=this.switchSubTypes.find(n=>n.SubType==this.diseqcTree.SubType);e&&(this.currentSubType=e)}this.updateSubType(),this.displayDeleteThis=[],this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.forEach(e=>{e.ParentId==this.diseqcTree.DiSEqCId&&(this.diseqcSubTree.push(e),this.displayDeleteThis.push(!1),this.diseqcSubTreeCount++)})}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree.push({Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}),this.displayDeleteThis.push(!1),this.diseqcSubTreeCount++}setDiseqcObject(e){this.diseqcSubComponent.findIndex(s=>s===e)<0&&this.diseqcSubComponent.push(e),console.log("setDiseqcObject",this.diseqcSubComponent.length)}deleteDiseqc(e){this.displayDeleteThis[e]=!1,this.dvbComponent.work.errorCount=0,console.log("Delete",e),null!=this.diseqcSubTree[e]&&(this.diseqcSubTree[e].DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree[e].DiSEqCId).subscribe({next:n=>{n.bool||(console.log("DeleteDiseqcTree",n),this.dvbComponent.work.errorCount++)},error:n=>{console.log("DeleteDiseqcTree",n),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree[e]=null,this.diseqcSubTreeCount--))}updateSubType(){switch(this.diseqcTree.SubType=this.currentSubType.SubType,this.diseqcTree.SubType){case"tone":case"voltage":case"mini_diseqc":case"legacy_sw21":case"legacy_sw42":this.work.addressText="0x10",this.diseqcTree.SwitchPorts=2,this.work.enableAddrAndPorts=!1;break;case"legacy_sw64":this.work.addressText="0x10",this.diseqcTree.SwitchPorts=3,this.work.enableAddrAndPorts=!1;break;case"diseqc_uncom":case"diseqc":this.work.enableAddrAndPorts=!0}}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.Address=Number.parseInt(this.work.addressText),this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent.forEach(s=>{s&&s.saveForm(this.diseqcTree.DiSEqCId,{error:o=>{n.error(o)}})})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s),this.diseqcSubComponent.forEach(o=>{o&&o.saveForm(this.diseqcTree.DiSEqCId,{next:r=>{},error:r=>{n.error(r)}})})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-switch"]],viewQuery:function(e,n){if(1&e&&W(wte,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","switchform",1,"ml-3","mr-3"],["switchform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SubType","ngModel"],["for","Address",1,"label","block"],["pInputText","","id","Address","name","Address",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["Address","ngModel"],["for","SwitchPorts",1,"label","block"],["name","SwitchPorts","id","SwitchPorts",3,"ngModel","showButtons","min","max","step","disabled","ngModelChange"],[4,"ngIf"],[4,"ngFor","ngForOf"],["class","mb-4 w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"p-error","block"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["styleClass","p-button-warning","label","Delete Satellite Devices","icon","pi pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["styleClass","p-button-warning","label","Delete Satellite Devices","icon","pi pi-trash",3,"disabled","onClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,Tte,2,3,"ng-template",3),_(4,Ste,0,0,"ng-template",4),_(5,Vte,48,57,"ng-template",5),c()())},directives:[ze,Ue,He,Ne,ne,Ye,we,_e,pt,Ot,_n,Q,at,Ui,Ce,bn,kd,Nl,t,Vl,zi],pipes:[ce],styles:[""]}),t})();const Bte=["externalform"],Hte=["top"];function qte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.capture.external.title")," ")}function Gte(t,i){}function Ute(t,i){if(1&t){const e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return v(e),p().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",16),C("ngModelChange",function(s){return v(e),p().card.ChannelTimeout=s}),c(),l(16,"small",14),g(17),m(18,"translate"),c()()()()}if(2&t){const e=p();a(4),S(f(5,10,"settings.capture.external.command_label")),a(2),d("ngModel",e.card.VideoDevice),a(3),T(" ",f(10,12,"settings.capture.external.command_desc")," "),a(4),S(f(14,14,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T(" ",f(18,16,"settings.capture.tunetimeout_desc")," ")}}function zte(t,i){1&t&&(M(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function jte(t,i){1&t&&(M(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function $te(t,i){if(1&t){const e=I();l(0,"div",17)(1,"div",18),_(2,zte,2,3,"p-message",19),_(3,jte,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let Wte=(()=>{class t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-external"]],viewQuery:function(e,n){if(1&e&&(W(Bte,5),W(Hte,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","externalform",1,"ml-3","mr-3"],["externalform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),M(2,"span",null,2),l(4,"p-card",3),_(5,qte,2,3,"ng-template",4),_(6,Gte,0,0,"ng-template",5),_(7,Ute,19,18,"ng-template",6),_(8,$te,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,we,_e,pt,Q,qe,Ce],pipes:[ce],styles:[""]}),t})();const Kte=["hdhomerunform"],Qte=["top"];function Jte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.capture.hdhomerun.title")," ")}function Yte(t,i){}function Zte(t,i){if(1&t){const e=I();l(0,"p-listbox",20,21),C("ngModelChange",function(s){return v(e),p(2).selectedDevices=s})("onChange",function(){return v(e),p(2).updateDevices()}),c()}if(2&t){const e=p(2);d("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.selectedDevices)("checkbox",!0)("showToggleAll",!1)("multiple",!0)}}const Xte=function(){return{width:"30rem"}};function ene(t,i){if(1&t){const e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"div"),_(7,Zte,2,5,"p-listbox",12),l(8,"small",13),g(9),m(10,"translate"),c()()(),l(11,"div",10)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",15),C("ngModelChange",function(s){return v(e),p().card.SignalTimeout=s}),c(),l(16,"small",13),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-inputNumber",17),C("ngModelChange",function(s){return v(e),p().card.ChannelTimeout=s}),c(),l(24,"small",13),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"p-checkbox",18,19),C("ngModelChange",function(s){return v(e),p().card.DVBEITScan=s}),m(30,"translate"),c(),l(31,"small",13),g(32),m(33,"translate"),c()()()()}if(2&t){const e=p();a(4),S(f(5,23,"settings.capture.hdhomerun.device_label")),a(2),q(A(39,Xte)),a(1),d("ngIf",e.work.isReady),a(2),T(" ",f(10,25,"settings.capture.hdhomerun.device_desc")," "),a(4),S(f(14,27,"settings.capture.sigtimeout_label")),a(2),d("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T(" ",f(18,29,"settings.capture.sigtimeout_desc")," "),a(4),S(f(22,31,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T(" ",f(26,33,"settings.capture.tunetimeout_desc")," "),a(3),x("label",f(30,35,"settings.capture.hdhomerun.eitscan_label")),d("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T(" ",f(33,37,"settings.capture.dvb.eitscan_ldesc")," ")}}function tne(t,i){1&t&&(M(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function nne(t,i){1&t&&(M(0,"p-message",28),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function ine(t,i){if(1&t){const e=I();l(0,"div",22)(1,"div",23),_(2,tne,2,3,"p-message",24),_(3,nne,2,3,"p-message",25),c(),l(4,"p-button",26),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let sne=(()=>{class t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={isReady:!1,successCount:0,errorCount:0},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.selectedDevices=[],this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){this.captureCardService.GetCaptureDeviceList("HDHOMERUN").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevices()},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevices(){this.card.VideoDevice&&this.card.VideoDevice.split(",").forEach(n=>{const s=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(o=>n==o.VideoDevice.split(" ")[0]);s&&this.selectedDevices.push(s)}),this.work.isReady=!0}updateDevices(){let e="",n=[];this.selectedDevices.forEach(s=>{n.push(s.VideoDevice.split(" ")[0]),this.card.SignalTimeout=s.SignalTimeout,this.card.ChannelTimeout=s.ChannelTimeout}),n.sort(),console.log(n),n.forEach(s=>{e&&(e+=","),e+=s}),this.card.VideoDevice=e}saveForm(){console.log("save form clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-hdhomerun"]],viewQuery:function(e,n){if(1&e&&(W(Kte,5),W(Qte,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","hdhomerunform",1,"ml-3","mr-3"],["hdhomerunform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","checkbox","showToggleAll","multiple","ngModelChange","onChange",4,"ngIf"],[1,"block"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","checkbox","showToggleAll","multiple","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),M(2,"span",null,2),l(4,"p-card",3),_(5,Jte,2,3,"ng-template",4),_(6,Yte,0,0,"ng-template",5),_(7,ene,34,40,"ng-template",6),_(8,ine,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,zi,we,_e,pt,on,qe,Ce],pipes:[ce],styles:[""]}),t})();const one=["iptvform"],rne=["top"];function ane(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.capture.iptv.title")," ")}function lne(t,i){}function cne(t,i){if(1&t){const e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return v(e),p().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",16),C("ngModelChange",function(s){return v(e),p().card.ChannelTimeout=s}),c(),l(16,"small",14),g(17),m(18,"translate"),c()()()()}if(2&t){const e=p();a(4),S(f(5,10,"settings.capture.iptv.url_label")),a(2),d("ngModel",e.card.VideoDevice),a(3),T(" ",f(10,12,"settings.capture.iptv.url_desc")," "),a(4),S(f(14,14,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T(" ",f(18,16,"settings.capture.tunetimeout_desc")," ")}}function une(t,i){1&t&&(M(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function dne(t,i){1&t&&(M(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function pne(t,i){if(1&t){const e=I();l(0,"div",17)(1,"div",18),_(2,une,2,3,"p-message",19),_(3,dne,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let hne=(()=>{class t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),this.card.CardId||new Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.currentForm.form.markAsDirty()})}saveForm(){console.log("save form clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-iptv"]],viewQuery:function(e,n){if(1&e&&(W(one,5),W(rne,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","iptvform",1,"ml-3","mr-3"],["iptvform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),M(2,"span",null,2),l(4,"p-card",3),_(5,ane,2,3,"ng-template",4),_(6,lne,0,0,"ng-template",5),_(7,cne,19,18,"ng-template",6),_(8,pne,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,we,_e,pt,Q,qe,Ce],pipes:[ce],styles:[""]}),t})();const mne=["importform"],fne=["top"];function gne(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.capture.import.title")," ")}function _ne(t,i){}function bne(t,i){if(1&t){const e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return v(e),p().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()()()()}if(2&t){const e=p();a(4),S(f(5,3,"settings.capture.import.file_label")),a(2),d("ngModel",e.card.VideoDevice),a(3),T(" ",f(10,5,"settings.capture.import.file_desc")," ")}}function vne(t,i){1&t&&(M(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function Cne(t,i){1&t&&(M(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function yne(t,i){if(1&t){const e=I();l(0,"div",15)(1,"div",16),_(2,vne,2,3,"p-message",17),_(3,Cne,2,3,"p-message",18),c(),l(4,"p-button",19),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let wne=(()=>{class t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save form clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-import"]],viewQuery:function(e,n){if(1&e&&(W(mne,5),W(fne,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","importform",1,"ml-3","mr-3"],["importform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),M(2,"span",null,2),l(4,"p-card",3),_(5,gne,2,3,"ng-template",4),_(6,_ne,0,0,"ng-template",5),_(7,bne,11,7,"ng-template",6),_(8,yne,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,we,_e,Q,qe,Ce],pipes:[ce],styles:[""]}),t})();const Tne=["demoform"],Sne=["top"];function xne(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.capture.demo.title")," ")}function Dne(t,i){}function Mne(t,i){if(1&t){const e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return v(e),p().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()()()()}if(2&t){const e=p();a(4),S(f(5,3,"settings.capture.import.file_label")),a(2),d("ngModel",e.card.VideoDevice),a(3),T(" ",f(10,5,"settings.capture.demo.file_desc")," ")}}function kne(t,i){1&t&&(M(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function Ine(t,i){1&t&&(M(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function Ene(t,i){if(1&t){const e=I();l(0,"div",15)(1,"div",16),_(2,kne,2,3,"p-message",17),_(3,Ine,2,3,"p-message",18),c(),l(4,"p-button",19),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let Rne=(()=>{class t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save form clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-demo"]],viewQuery:function(e,n){if(1&e&&(W(Tne,5),W(Sne,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","demoform",1,"ml-3","mr-3"],["demoform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),M(2,"span",null,2),l(4,"p-card",3),_(5,xne,2,3,"ng-template",4),_(6,Dne,0,0,"ng-template",5),_(7,Mne,11,7,"ng-template",6),_(8,Ene,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,we,_e,Q,qe,Ce],pipes:[ce],styles:[""]}),t})();const Lne=["connform"];function One(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.iconnection.title")," ")}function Ane(t,i){}function Pne(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",45),C("ngModelChange",function(s){return v(e),p(3).work.switchPort=s}),c(),l(5,"small",16),g(6),m(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.iconnection.switchport_label")),a(2),d("ngModel",e.work.switchPort)("showButtons",!0)("min",1)("max",e.diseqcTree.SwitchPorts)("step",1),a(2),T(" ",f(7,9,"settings.iconnection.switchport_desc")," ")}}function Fne(t,i){if(1&t){const e=I();l(0,"div")(1,"div",12)(2,"label",46),g(3),m(4,"translate"),c(),l(5,"p-inputNumber",47),C("ngModelChange",function(s){return v(e),p(3).work.rotorDegrees=s}),c(),M(6,"br")(7,"br"),l(8,"div",48)(9,"p-radioButton",49),C("ngModelChange",function(s){return v(e),p(3).work.hemisphere=s}),c(),l(10,"label",50),g(11),m(12,"translate"),c()(),l(13,"div",48)(14,"p-radioButton",51),C("ngModelChange",function(s){return v(e),p(3).work.hemisphere=s}),c(),l(15,"label",52),g(16),m(17,"translate"),c()(),l(18,"small",16),g(19),m(20,"translate"),c()()()}if(2&t){const e=p(3);a(3),S(f(4,10,"settings.iconnection.longitude_label")),a(2),d("ngModel",e.work.rotorDegrees)("min",0)("max",180)("maxFractionDigits",4),a(4),d("ngModel",e.work.hemisphere),a(2),S(f(12,12,"settings.iconnection.longitude_east")),a(3),d("ngModel",e.work.hemisphere),a(2),S(f(17,14,"settings.iconnection.longitude_west")),a(3),T(" ",f(20,16,"settings.iconnection.longitude_desc")," ")}}function Nne(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",53),g(2),m(3,"translate"),c(),l(4,"div",48)(5,"p-radioButton",54),C("ngModelChange",function(s){return v(e),p(3).work.scrPort=s}),c(),l(6,"label",55),g(7),m(8,"translate"),c()(),l(9,"div",48)(10,"p-radioButton",56),C("ngModelChange",function(s){return v(e),p(3).work.scrPort=s}),c(),l(11,"label",57),g(12),m(13,"translate"),c()(),l(14,"small",16),g(15),m(16,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,6,"settings.iconnection.unicablepos_label")),a(3),d("ngModel",e.work.scrPort),a(2),S(f(8,8,"settings.iconnection.unicablepos_porta")),a(3),d("ngModel",e.work.scrPort),a(2),S(f(13,10,"settings.iconnection.unicablepos_portb")),a(3),T(" ",f(16,12,"settings.iconnection.unicablepos_desc")," ")}}function Vne(t,i){1&t&&(l(0,"div",41),_(1,Pne,8,11,"div",42),_(2,Fne,21,18,"div",43),_(3,Nne,17,14,"div",42),c()),2&t&&(d("ngSwitch",p(2).diseqcTree.Type),a(1),d("ngSwitchCase","switch"),a(1),d("ngSwitchCase","rotor"),a(1),d("ngSwitchCase","scr"))}function Bne(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",58),g(2),m(3,"translate"),c(),l(4,"input",59,60),C("ngModelChange",function(s){return v(e),p(2).card.InputName=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,3,"settings.iconnection.delivery_label")),a(2),d("ngModel",e.card.InputName),a(3),T(" ",f(8,5,"settings.iconnection.delivery_desc")," ")}}function Hne(t,i){if(1&t){const e=I();l(0,"p-dropdown",63,60),C("ngModelChange",function(s){return v(e),p(3).card.InputName=s}),c()}if(2&t){const e=p(3);d("options",e.currentDevice.InputNames)("ngModel",e.card.InputName)}}function qne(t,i){if(1&t&&(l(0,"div",12)(1,"label",61),g(2),m(3,"translate"),c(),_(4,Hne,2,2,"p-dropdown",62),l(5,"small",16),g(6),m(7,"translate"),c()()),2&t){const e=p(2);a(2),S(f(3,3,"settings.iconnection.input_label")),a(2),d("ngIf",e.work.isReady),a(2),T(" ",f(7,5,"settings.capture.inputname_desc")," ")}}function Gne(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",64),g(2),m(3,"translate"),c(),l(4,"input",65,66),C("ngModelChange",function(s){return v(e),p(2).card.ExternalCommand=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,3,"settings.iconnection.externalcmd_label")),a(2),d("ngModel",e.card.ExternalCommand),a(3),T(" ",f(8,5,"settings.iconnection.externalcmd_desc")," ")}}function Une(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",67),g(2),m(3,"translate"),c(),l(4,"input",68,69),C("ngModelChange",function(s){return v(e),p(2).card.TuneChan=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,3,"settings.iconnection.tunechan_label")),a(2),d("ngModel",e.card.TuneChan),a(3),T(" ",f(8,5,"settings.iconnection.tunechan_desc")," ")}}const Id=function(){return{minWidth:"400px"}};function zne(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",70),g(2),m(3,"translate"),c(),l(4,"p-dropdown",71,72),C("ngModelChange",function(s){return v(e),p(2).card.Quicktune=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.iconnection.quicktune_label")),a(2),q(A(12,Id)),d("options",e.quickTuneValues)("ngModel",e.card.Quicktune)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.iconnection.quicktune_desc")," ")}}function jne(t,i){if(1&t){const e=I();l(0,"div",12)(1,"p-checkbox",73,74),C("ngModelChange",function(s){return v(e),p(2).card.DishnetEIT=s}),m(3,"translate"),c(),l(4,"small",16),g(5),m(6,"translate"),c()()}if(2&t){const e=p(2);a(1),x("label",f(3,4,"settings.iconnection.dishneteit_label")),d("ngModel",e.card.DishnetEIT)("binary",!0),a(4),T(" ",f(6,6,"settings.iconnection.dishneteit_desc")," ")}}function $ne(t,i){if(1&t&&(l(0,"p-fieldset",75),m(1,"translate"),M(2,"app-channelscan",76),c()),2&t){const e=p(2);x("legend",f(1,7,"settings.iconnection.scan_title")),d("collapsed",!0)("toggleable",!0),a(2),d("card",e.card)("cardList",e.cardList)("iconnection",e)("videoSourceLookup",e.videoSourceLookup)}}function Wne(t,i){if(1&t){const e=I();l(0,"p-button",77),C("click",function(){return v(e),p(2).work.fetchChannelsDialog=!1}),m(1,"translate"),c(),l(2,"p-button",78),C("click",function(){return v(e),p(2).fetchChannels()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const Kne=function(t){return{num:t}},Qne=function(){return{width:"50vw"}};function Jne(t,i){if(1&t){const e=I();l(0,"div",8)(1,"div",9),_(2,Vne,4,4,"div",10),_(3,Bne,9,7,"div",11),_(4,qne,8,7,"div",11),l(5,"div",12)(6,"label",13),g(7),m(8,"translate"),c(),l(9,"input",14,15),C("ngModelChange",function(s){return v(e),p().card.DisplayName=s}),c(),l(11,"small",16),g(12),m(13,"translate"),c()(),l(14,"div",12)(15,"label",17),g(16),m(17,"translate"),c(),l(18,"p-dropdown",18,19),C("ngModelChange",function(s){return v(e),p().card.SourceId=s})("onChange",function(){return v(e),p().fillChannelList()}),c(),l(20,"small",16),g(21),m(22,"translate"),c()(),_(23,Gne,9,7,"div",11),_(24,Une,9,7,"div",11),_(25,zne,9,13,"div",11),_(26,jne,7,8,"div",11),_(27,$ne,3,9,"p-fieldset",20),M(28,"br")(29,"br"),l(30,"div",12)(31,"div",8)(32,"div",21)(33,"p-button",22),C("onClick",function(){return v(e),p().work.fetchChannelsDialog=!0}),m(34,"translate"),c()(),l(35,"div",21),g(36),m(37,"translate"),c()(),l(38,"small",16),g(39),m(40,"translate"),c()(),l(41,"p-dialog",23),C("visibleChange",function(s){return v(e),p().work.fetchChannelsDialog=s}),l(42,"p"),g(43),m(44,"translate"),c(),l(45,"p"),g(46),m(47,"translate"),c(),_(48,Wne,4,6,"ng-template",7),c(),l(49,"div",12)(50,"label",24),g(51),m(52,"translate"),c(),l(53,"p-dropdown",25,26),C("ngModelChange",function(s){return v(e),p().card.StartChannel=s}),c(),l(55,"small",16),g(56),m(57,"translate"),c()(),l(58,"p-fieldset",27),m(59,"translate"),l(60,"div",12)(61,"label",28),g(62),m(63,"translate"),c(),l(64,"p-inputNumber",29),C("ngModelChange",function(s){return v(e),p().card.RecLimit=s}),c(),l(65,"small",16),g(66),m(67,"translate"),c()(),l(68,"div",12)(69,"p-checkbox",30,31),C("ngModelChange",function(s){return v(e),p().card.SchedGroup=s}),m(71,"translate"),c(),l(72,"small",16),g(73),m(74,"translate"),c()(),l(75,"div",12)(76,"label",32),g(77),m(78,"translate"),c(),l(79,"p-inputNumber",33),C("ngModelChange",function(s){return v(e),p().card.RecPriority=s}),c(),l(80,"small",16),g(81),m(82,"translate"),c()(),l(83,"div",12)(84,"label",34),g(85),m(86,"translate"),c(),l(87,"p-inputNumber",35),C("ngModelChange",function(s){return v(e),p().card.SchedOrder=s}),c(),l(88,"small",16),g(89),m(90,"translate"),c()(),l(91,"div",12)(92,"label",36),g(93),m(94,"translate"),c(),l(95,"p-inputNumber",37),C("ngModelChange",function(s){return v(e),p().card.LiveTVOrder=s}),c(),l(96,"small",16),g(97),m(98,"translate"),c()(),l(99,"div",12)(100,"label",38),g(101),m(102,"translate"),c(),l(103,"p-dropdown",39,40),C("ngModelChange",function(s){return v(e),p().work.inputGroupName=s}),c(),l(105,"small",16),g(106),m(107,"translate"),c()()()()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.diseqcTree),a(1),d("ngIf","DVB"==e.card.CardType),a(1),d("ngIf","DVB"!=e.card.CardType),a(3),S(f(8,80,"settings.iconnection.displayname_label")),a(2),d("ngModel",e.card.DisplayName),a(3),T(" ",f(13,82,"settings.iconnection.displayname_desc")," "),a(4),S(f(17,84,"settings.iconnection.sourceid_label")),a(2),q(A(129,Id)),d("options",e.videoSourceList.VideoSourceList.VideoSources)("ngModel",e.card.SourceId)("editable",!1)("maxlength",0),a(3),T(" ",f(22,86,"settings.iconnection.sourceid_desc")," "),a(2),d("ngIf",e.work.isEncoder||e.work.isUnscanable),a(1),d("ngIf",e.work.showPresetTuner),a(1),d("ngIf",!e.work.isEncoder&&!e.work.isUnscanable),a(1),d("ngIf","DVB"==e.card.CardType),a(1),d("ngIf",!e.work.isUnscanable),a(6),x("label",f(34,88,"settings.iconnection.fetch.label")),d("disabled",!e.card.SourceId||n.dirty||1==e.work.fetchStatus||e.setupService.schedulingEnabled),a(3),T(" \xa0\xa0",_t(37,90,e.fetchMessages[e.work.fetchStatus],U(130,Kne,e.work.fetchCount))," "),a(3),T(" ",f(40,93,"settings.iconnection.fetch.desc")," "),a(2),q(A(132,Qne)),d("visible",e.work.fetchChannelsDialog)("modal",!0)("draggable",!1)("resizable",!1),a(2),S(f(44,95,"settings.iconnection.fetch.warning")),a(3),S(f(47,97,"settings.common.ru_sure")),a(5),S(f(52,99,"settings.iconnection.startchan_label")),a(2),q(A(133,Id)),d("options",e.sourceChannels)("ngModel",e.card.StartChannel)("editable",!1),a(3),T(" ",f(57,101,"settings.iconnection.startchan_desc")," "),a(2),x("legend",f(59,103,"settings.iconnection.interact_title")),d("toggleable",!0)("collapsed",!0),a(4),S(f(63,105,"settings.iconnection.maxrec_label")),a(2),d("ngModel",e.card.RecLimit)("showButtons",!0)("min",1)("max",10)("step",1),a(2),T(" ",f(67,107,"settings.iconnection.maxrec_desc")," "),a(3),x("label",f(71,109,"settings.iconnection.schedgrp_label")),d("ngModel",e.card.SchedGroup)("binary",!0),a(4),T(" ",f(74,111,"settings.iconnection.schedgrp_desc")," "),a(4),S(f(78,113,"settings.iconnection.recpri_label")),a(2),d("ngModel",e.card.RecPriority)("showButtons",!0)("min",-99)("max",99)("step",1),a(2),T(" ",f(82,115,"settings.iconnection.recpri_desc")," "),a(4),S(f(86,117,"settings.iconnection.schedorder_label")),a(2),d("ngModel",e.card.SchedOrder)("showButtons",!0)("min",0)("max",99)("step",1),a(2),T(" ",f(90,119,"settings.iconnection.schedorder_desc")," "),a(4),S(f(94,121,"settings.iconnection.liveorder_label")),a(2),d("ngModel",e.card.LiveTVOrder)("showButtons",!0)("min",0)("max",99)("step",1),a(2),T(" ",f(98,123,"settings.iconnection.liveorder_desc")," "),a(4),S(f(102,125,"settings.iconnection.inpgroup_label")),a(2),q(A(134,Id)),d("options",e.selectGroups)("ngModel",e.work.inputGroupName)("editable",!0),a(3),T(" ",f(107,127,"settings.iconnection.inpgroup_desc")," ")}}function Yne(t,i){1&t&&(M(0,"p-message",84),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function Zne(t,i){1&t&&(M(0,"p-message",85),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function Xne(t,i){if(1&t){const e=I();l(0,"div",79)(1,"div",80),_(2,Yne,2,3,"p-message",81),_(3,Zne,2,3,"p-message",82),c(),l(4,"p-button",83),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),d("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let kS=(()=>{class t{constructor(e,n,s,o){this.translate=e,this.channelService=n,this.captureCardService=s,this.setupService=o,this.allChannels=[],this.sourceChannels=[],this.inputGroups=[],this.selectGroups=[],this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:["MPEG2TS"]},this.work={successCount:0,errorCount:0,expectedCount:0,recLimitUpd:!1,reloadGroups:!1,isEncoder:!1,isUnscanable:!1,hasTuner:!1,showPresetTuner:!1,inputGroupName:"",orgInputGroupName:"",fetchChannelsDialog:!1,fetchStatus:0,fetchCount:0,switchPort:0,rotorDegrees:0,scrPort:"",hemisphere:1,isReady:!1,startScan:!1},this.deviceFree=new ct,this.orgInputGroupIds=[],this.fetchMessages=["","settings.iconnection.fetch.inprog","settings.iconnection.fetch.complete","settings.iconnection.fetch.failed"],this.messages={devNotExist:"settings.capture.dvb.devNotExist"},this.preEncodedTypes=["DVB","FIREWIRE","HDHOMERUN","FREEBOX","IMPORT","DEMO","ASI","CETON","VBOX","SATIP"],this.unscanableTypes=["FIREWIRE","HDPVR","IMPORT","DEMO","GO7007","MJPEG"],this.hasTunerTypes=["DVB","HDHOMERUN","FREEBOX","CETON","VBOX","SATIP"],this.quickTuneValues=[{prompt:"settings.iconnection.quicktune.never",value:0},{prompt:"settings.iconnection.quicktune.livetv",value:1},{prompt:"settings.iconnection.quicktune.always",value:2}],this.saveObserver={next:r=>{r.bool?(this.work.successCount++,this.work.recLimitUpd&&(this.work.successCount==this.work.expectedCount?this.captureCardService.SetInputMaxRecordings(this.card.CardId,this.card.RecLimit).subscribe(this.saveObserver):this.work.successCount==this.work.expectedCount+1&&(this.parentComponent.loadCards(!1),this.work.recLimitUpd=!1)),this.work.successCount==this.work.expectedCount&&this.work.reloadGroups&&(this.loadInputGroups(),this.work.reloadGroups=!1),this.work.successCount==this.work.expectedCount&&this.work.startScan&&this.scanComponent&&(this.work.startScan=!1,this.currentForm.form.markAsPristine(),this.scanComponent.startScan())):(console.log("saveObserver error",r),this.work.startScan=!1,this.work.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.log("saveObserver error",r),this.work.startScan=!1,this.work.errorCount++,this.currentForm.form.markAsDirty()}},this.quickTuneValues.forEach(r=>e.get(r.prompt).subscribe(u=>r.prompt=u)),this.loadChannels(),this.loadInputGroups()}loadChannels(){this.channelService.GetChannelInfoList({Details:!0}).subscribe(n=>{this.allChannels=n.ChannelInfoList.ChannelInfos,this.fillChannelList()})}fillChannelList(){this.sourceChannels=this.allChannels.filter(e=>e.SourceId==this.card.SourceId),this.sourceChannels.find(e=>e.ChanNum==this.card.StartChannel)||(this.card.StartChannel="")}loadInputGroups(){this.captureCardService.GetInputGroupList().subscribe(e=>{this.inputGroups=e.InputGroupList.InputGroups,this.inputGroups.forEach(n=>{if(Xu("user:")){const s=n.InputGroupName.substring(5);-1==this.selectGroups.findIndex(o=>s==o.InputGroupName)&&this.selectGroups.push({CardInputId:0,InputGroupId:n.InputGroupId,InputGroupName:s}),n.CardInputId==this.card.CardId&&(this.work.inputGroupName||(this.work.inputGroupName=s,this.work.orgInputGroupName=s),this.orgInputGroupIds.push(n.InputGroupId))}})})}ngOnInit(){this.work.isEncoder=this.preEncodedTypes.indexOf(this.card.CardType)<0,this.work.isUnscanable=this.unscanableTypes.indexOf(this.card.CardType)>=0,this.work.hasTuner=this.hasTunerTypes.indexOf(this.card.CardType)>=0,(this.work.isEncoder||this.work.isUnscanable)&&(this.work.hasTuner||"EXTERNAL"==this.card.CardType)&&(this.work.showPresetTuner=!0),"DVB"==this.card.CardType&&this.loadDiseqc(),this.card.DisplayName||(this.card.DisplayName="Input "+this.card.CardId),this.captureCardService.GetCaptureDeviceList(this.card.CardType).subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice(),this.deviceFree.next(!0)},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}})}setupDevice(){if(this.card.VideoDevice){let e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:["MPEG2TS"]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName),this.currentDevice.InputNames.includes("MPEG2TS")||this.currentDevice.InputNames.push("MPEG2TS")),this.work.isReady=!0}loadDiseqc(){this.captureCardService.GetDiseqcTreeList().subscribe({next:e=>{this.diseqcTreeList=e,this.setupDiseqc()},error:e=>{console.log("GetDiseqcTreeList",e),this.work.errorCount++}})}setupDiseqc(){let e=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(n=>n.DiSEqCId==this.card.DiSEqCId);if(e)switch(this.diseqcTree=e,this.diseqcTree.Type){case"switch":case"rotor":case"scr":this.captureCardService.GetDiseqcConfigList().subscribe({next:n=>{let s=n.DiseqcConfigList.DiseqcConfigs.find(o=>o.CardId==this.card.CardId&&o.DiSEqCId==this.card.DiSEqCId);if(this.diseqcConfig=s||{CardId:this.card.CardId,DiSEqCId:this.card.DiSEqCId,Value:""},"switch"==this.diseqcTree.Type)this.work.switchPort=Number.parseInt(this.diseqcConfig.Value)-1,Number.isNaN(this.work.switchPort)&&(this.work.switchPort=0);else if("rotor"==this.diseqcTree.Type)this.work.rotorDegrees=Number.parseFloat(this.diseqcConfig.Value),Number.isNaN(this.work.rotorDegrees)&&(this.work.rotorDegrees=0),this.work.rotorDegrees<0?(this.work.hemisphere=-1,this.work.rotorDegrees=-this.work.rotorDegrees):this.work.hemisphere=1;else if("scr"==this.diseqcTree.Type)switch(this.diseqcConfig.Value){case"0":this.work.scrPort="A";break;case"1":this.work.scrPort="B";break;default:this.work.scrPort=""}},error:n=>{console.log("GetDiseqcTreeList",n),this.work.errorCount++}})}}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.currentForm.form.markAsDirty(),setTimeout(()=>{this.currentForm.form.markAsPristine()},0)}fetchChannels(){this.work.fetchChannelsDialog=!1;let e={SourceId:this.card.SourceId,CardId:this.card.CardId,WaitForFinish:!0};this.work.fetchStatus=1,this.channelService.FetchChannelsFromSource(e).subscribe({next:n=>{this.work.fetchStatus=n.int>0?2:3,this.work.fetchCount=n.int,this.loadChannels()},error:n=>{console.log("fetchChannels",n),this.work.fetchStatus=3,this.work.fetchCount=0}})}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.work.expectedCount=0,this.work.inputGroupName!=this.work.orgInputGroupName?this.work.inputGroupName?this.captureCardService.AddUserInputGroup(this.work.inputGroupName).subscribe({next:n=>{this.saveCard(n.int)},error:n=>{console.log("saveForm error",n),this.work.errorCount++,this.currentForm.form.markAsDirty()}}):this.saveCard(-1):this.saveCard(0)}saveCard(e){0!=e&&(this.work.reloadGroups=!0);let n=0;if(this.work.recLimitUpd=!1,this.cardList.CaptureCardList.CaptureCards.forEach(s=>{(s.CardId==this.card.CardId||s.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(s.CardId,"inputname",s.InputName=this.card.InputName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"displayname",s.DisplayName=this.card.DisplayName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"sourceid",String(s.SourceId=this.card.SourceId)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"quicktune",String(s.Quicktune=this.card.Quicktune)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"dishnet_eit",(s.DishnetEIT=this.card.DishnetEIT)?"1":"0").subscribe(this.saveObserver),this.card.StartChannel&&(this.captureCardService.UpdateCaptureCard(s.CardId,"startchan",s.StartChannel=this.card.StartChannel).subscribe(this.saveObserver),this.work.expectedCount++),this.captureCardService.UpdateCaptureCard(s.CardId,"recpriority",String(s.RecPriority=this.card.RecPriority)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"livetvorder",String(s.LiveTVOrder=this.card.LiveTVOrder)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"reclimit",String(s.RecLimit=this.card.RecLimit)).subscribe(this.saveObserver),this.card.SchedGroup&&this.card.CardId!=s.CardId?(s.SchedGroup=!1,s.SchedOrder=0):(s.SchedGroup=this.card.SchedGroup,s.SchedOrder=this.card.SchedOrder),this.captureCardService.UpdateCaptureCard(s.CardId,"schedgroup",s.SchedGroup?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"schedorder",String(s.SchedOrder)).subscribe(this.saveObserver),this.work.expectedCount+=10,0!=e&&this.orgInputGroupIds.forEach(o=>{this.captureCardService.UnlinkInputGroup(s.CardId,o).subscribe(this.saveObserver),this.work.expectedCount++}),e>0&&(this.captureCardService.LinkInputGroup(s.CardId,e).subscribe(this.saveObserver),this.work.expectedCount++),n++)}),n!=this.card.RecLimit&&(this.work.recLimitUpd=!0),this.diseqcConfig){let s="";if("switch"==this.diseqcTree.Type)s=(this.work.switchPort-1).toString();else if("rotor"==this.diseqcTree.Type)s=(this.work.rotorDegrees*this.work.hemisphere).toString();else if("scr"==this.diseqcTree.Type)switch(this.work.scrPort){case"A":default:s="0";break;case"B":s="1"}s!=this.diseqcConfig.Value&&(this.diseqcConfig.Value=s,this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subscribe(o=>{this.captureCardService.AddDiseqcConfig(this.diseqcConfig).subscribe(this.saveObserver)}))}}}return t.\u0275fac=function(e){return new(e||t)(D(Oe),D(Ao),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-iconnection"]],viewQuery:function(e,n){if(1&e&&W(Lne,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},inputs:{card:"card",cardList:"cardList",videoSourceLookup:"videoSourceLookup",videoSourceList:"videoSourceList",parentComponent:"parentComponent"},decls:9,vars:0,consts:[["name","connform",1,"ml-3","mr-3"],["connform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[3,"ngSwitch",4,"ngIf"],["class","form-group field",4,"ngIf"],[1,"form-group","field"],["for","DisplayName",1,"label","block"],["pInputText","","id","DisplayName","name","DisplayName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["DisplayName","ngModel"],[1,"block"],["for","SourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","SourceId",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SourceId","ngModel"],["class","mb-4 w-full",3,"legend","collapsed","toggleable",4,"ngIf"],[2,"display","flex","align-items","center"],["icon","pi pi-download","iconPos","left",3,"label","disabled","onClick"],["header","Fetch Channels",3,"visible","modal","draggable","resizable","visibleChange"],["for","StartChannel",1,"label","block"],["placeholder","Select Item","optionLabel","ChanNum","optionValue","ChanNum","scrollHeight","400px","name","StartChannel",3,"options","ngModel","editable","ngModelChange"],["StartChannel","ngModel"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","RecLimit",1,"label","block"],["name","RecLimit","id","RecLimit",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","SchedGroup","name","SchedGroup",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBWaitForSeqStart","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","SchedOrder",1,"label","block"],["name","SchedOrder","id","SchedOrder",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","LiveTVOrder",1,"label","block"],["name","LiveTVOrder","id","LiveTVOrder",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","inputGroupName",1,"label","block"],["placeholder","Optional Group Name","optionLabel","InputGroupName","optionValue","InputGroupName","scrollHeight","400px","name","inputGroupName",3,"options","ngModel","editable","ngModelChange"],["inputGroupName","ngModel"],[3,"ngSwitch"],["class","form-group field",4,"ngSwitchCase"],[4,"ngSwitchCase"],["for","Port",1,"label","block"],["name","Port","id","Port",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Degrees",1,"label","block"],["name","Degrees","id","Degrees",3,"ngModel","min","max","maxFractionDigits","ngModelChange"],[1,"field-radiobutton"],["name","hemisphere","value","1","inputId","east",3,"ngModel","ngModelChange"],["for","east",1,"label","block"],["name","hemisphere","value","-1","inputId","west",3,"ngModel","ngModelChange"],["for","west",1,"label","block"],[1,"label","block"],["name","scrPort","value","A","inputId","portA",3,"ngModel","ngModelChange"],["for","portA",1,"label","block"],["name","scrPort","value","B","inputId","portB",3,"ngModel","ngModelChange"],["for","portB",1,"label","block"],["for","Delivery",1,"label","block"],["pInputText","","id","Delivery","name","Delivery","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["InputName","ngModel"],["for","InputName",1,"label","block"],["name","InputName",3,"options","ngModel","ngModelChange",4,"ngIf"],["name","InputName",3,"options","ngModel","ngModelChange"],["for","ExternalCommand",1,"label","block"],["pInputText","","id","ExternalCommand","name","ExternalCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ExternalCommand","ngModel"],["for","TuneChan",1,"label","block"],["pInputText","","id","TuneChan","name","TuneChan",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["TuneChan","ngModel"],["for","Quicktune",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Quicktune",3,"options","ngModel","editable","maxlength","ngModelChange"],["Quicktune","ngModel"],["inputId","DishnetEIT","name","DishnetEIT",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DishnetEIT","ngModel"],[1,"mb-4","w-full",3,"legend","collapsed","toggleable"],[3,"card","cardList","iconnection","videoSourceLookup"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),M(2,"span",null,2),l(4,"p-card",3),_(5,One,2,3,"ng-template",4),_(6,Ane,0,0,"ng-template",5),_(7,Jne,108,135,"ng-template",6),_(8,Xne,6,6,"ng-template",7),c()())},styles:[""]}),t})();function eie(t,i){if(1&t){const e=I();l(0,"p-button",10),C("onClick",function(){return v(e),p().displayNewDialog=!1}),m(1,"translate"),c(),l(2,"p-button",11),C("onClick",function(){return v(e),p().newProfile()}),m(3,"translate"),c()}if(2&t){const e=p();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),d("disabled",e.rejectName())}}function tie(t,i){1&t&&(l(0,"div",12),M(1,"br")(2,"p-message",13),m(3,"translate"),M(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function nie(t,i){1&t&&(l(0,"div",12),M(1,"br")(2,"p-message",14),m(3,"translate"),M(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function iie(t,i){if(1&t&&(l(0,"div",18)(1,"div",19),g(2),l(3,"b"),g(4),c()()()),2&t){const e=p(),n=e.$implicit,s=e.index,o=p();a(2),T(" ",n.Name," "),a(2),T("\xa0",o.dirtyMessages[s],"")}}function sie(t,i){if(1&t){const e=I();l(0,"p-button",22),C("click",function(){v(e);const s=p(2).index;return p().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",23),C("click",function(){v(e);const s=p(2).index;return p().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const IS=function(){return{width:"50vw"}},oie=function(t,i){return{ProfileName:t,GroupName:i}};function rie(t,i){if(1&t){const e=I();l(0,"p-button",20),C("onClick",function(){v(e);const s=p().index;return p().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",2),C("visibleChange",function(s){v(e);const o=p().index;return p().displayDeleteThis[o]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,sie,4,6,"ng-template",5),c(),M(11,"app-recprofile",21)}if(2&t){const e=p(),n=e.index,s=e.$implicit,o=p();x("label",f(1,14,"settings.rprofiles.delete_this")),d("disabled",!o.group.RecProfiles[n].Id||o.setupService.schedulingEnabled),a(2),q(A(23,IS)),x("header",f(3,16,"settings.rprofiles.delete_this")),d("visible",o.displayDeleteThis[n])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,18,"settings.common.ru_sure")),a(3),S(_t(9,20,"settings.rprofiles.delete_details",Ge(24,oie,o.group.RecProfiles[n].Name,o.group.Name))),a(3),d("profile",s)("group",o.group)("parentComponent",o)}}function aie(t,i){if(1&t){const e=I();l(0,"p-accordionTab",15),C("selectedChange",function(s){const r=v(e).index;return p().activeTab[r]=s}),_(1,iie,5,2,"ng-template",16),_(2,rie,12,27,"ng-template",17),c()}if(2&t){const e=i.index,n=p();d("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}let ES=(()=>{class t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.readyCount=0,this.displayNewDialog=!1,this.newProfileName="",this.successCount=0,this.expectedCount=0,this.errorCount=0,this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.delObserver={next:o=>{o.bool?(this.successCount++,this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1)):(this.errorCount++,this.deletedTab=-1)},error:o=>{console.error(o),this.errorCount++}},s.get(this.dirtyText).subscribe(o=>this.dirtyText=o),s.get(this.warningText).subscribe(o=>this.warningText=o),s.get(this.deletedText).subscribe(o=>this.deletedText=o),s.get(this.newText).subscribe(o=>this.newText=o)}ngOnInit(){let e=this.parentComponent.groups.findIndex(n=>n===this.group);this.parentComponent.profileGroups[e]=this}onTabOpen(e){this.showDirty();let n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab]&&this.forms[this.currentTab].dirty?this.dirtyText:this.group.RecProfiles[this.currentTab].Id?"":this.newText)}newProfile(){this.displayNewDialog=!1;for(let n=0;nn.Name==e)}confirm(e){return re(window.confirm(e))}canDeactivate(){let e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}allClean(){let e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)}onWindowClose(e){let n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-profile-group"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(o){return n.onWindowClose(o)},!1,ni)},inputs:{group:"group",parentComponent:"parentComponent"},decls:19,vars:24,consts:[[1,"block","card","w-full"],["icon","pi pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pInputText","","id","Name","name","Name","autofocus","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Name","ngModel"],["pTemplate","footer"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],["styleClass","p-button-warning","icon","pi pi-trash",3,"label","disabled","onClick"],[3,"profile","group","parentComponent"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","click"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"h3"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return n.displayNewDialog=!0}),m(5,"translate"),c(),l(6,"p-dialog",2),C("visibleChange",function(o){return n.displayNewDialog=o}),m(7,"translate"),l(8,"p"),g(9),m(10,"translate"),c(),l(11,"input",3,4),C("ngModelChange",function(o){return n.newProfileName=o}),c(),_(13,eie,4,7,"ng-template",5),c(),l(14,"div",6),_(15,tie,5,3,"div",7),_(16,nie,5,3,"div",7),c(),l(17,"p-accordion",8),C("onClose",function(o){return n.onTabClose(o)})("onOpen",function(o){return n.onTabOpen(o)}),_(18,aie,3,2,"p-accordionTab",9),c()()),2&e&&(a(2),We("",f(3,15,"settings.rprofiles.grouptitle")," ",n.group.Name,""),a(2),x("label",f(5,17,"settings.rprofiles.new_profile")),a(2),q(A(23,IS)),x("header",f(7,19,"settings.rprofiles.new_profile")),d("visible",n.displayNewDialog)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(10,21,"settings.rprofiles.enter_profile_name")),a(2),d("ngModel",n.newProfileName),a(4),d("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),d("ngIf",n.errorCount>0),a(2),d("ngForOf",n.group.RecProfiles))},styles:[""]}),t})();const lie=["recprofform"],cie=["top"];function uie(t,i){if(1&t&&(g(0),m(1,"translate")),2&t){const e=p();We(" ",f(1,2,"settings.rprofiles.proftitle")," ",e.profile.Name," ")}}function die(t,i){}function pie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"p-checkbox",13,14),C("ngModelChange",function(s){v(e);const o=p(2);return o.profile.RecProfParams[o.findIx("autotranscode",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const e=p(2);a(1),x("label",f(3,4,"settings.rprofiles.autotranscode_label")),d("ngModel",e.profile.RecProfParams[e.findIx("autotranscode",!1)].Value)("binary",!0),a(4),T(" ",f(6,6,"settings.rprofiles.autotranscode_desc")," ")}}function hie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",16),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",17),C("ngModelChange",function(s){v(e);const o=p(2);return o.profile.RecProfParams[o.findIx("width","480")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,7,"settings.rprofiles.width_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("width","480")].Value)("showButtons",!0)("min",160)("max",720)("step",16),a(2),T(" ",f(7,9,"settings.rprofiles.width_desc")," ")}}function mie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",18),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",19),C("ngModelChange",function(s){v(e);const o=p(2);return o.profile.RecProfParams[o.findIx("height","480")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,7,"settings.rprofiles.height_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("height","480")].Value)("showButtons",!0)("min",160)("max",480)("step",16),a(2),T(" ",f(7,9,"settings.rprofiles.height_desc")," ")}}const Ms=function(){return{minWidth:"400px"}};function fie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",20),g(2),m(3,"translate"),c(),l(4,"p-dropdown",21,22),C("ngModelChange",function(s){v(e);const o=p(2);return o.profile.RecProfParams[o.findIx("recordingtype","all")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.rprofiles.recordingtype_label")),a(2),q(A(12,Ms)),d("options",e.recordingtypeOptions)("ngModel",e.profile.RecProfParams[e.findIx("recordingtype","all")].Value)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.rprofiles.recordingtype_desc")," ")}}function gie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"p-checkbox",23,24),C("ngModelChange",function(s){v(e);const o=p(2);return o.profile.RecProfParams[o.findIx("recordmpts",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const e=p(2);a(1),x("label",f(3,4,"settings.rprofiles.recordmpts_label")),d("ngModel",e.profile.RecProfParams[e.findIx("recordmpts",!1)].Value)("binary",!0),a(4),T(" ",f(6,6,"settings.rprofiles.recordmpts_desc")," ")}}function _ie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",26),g(2),m(3,"translate"),c(),l(4,"p-dropdown",27,28),C("ngModelChange",function(s){return v(e),p(3).profile.VideoCodec=s}),c(),M(6,"small",15),c()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.videocodec_label")),a(2),q(A(9,Ms)),d("options",e.params.Video)("ngModel",e.profile.VideoCodec)("editable",!1)("maxlength",0)}}function bie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",29),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",30),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("rtjpegquality","170")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.rtjpegquality_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("rtjpegquality","170")].Value)("showButtons",!0)("min",1)("max",255)("step",1),a(2),T(" ",f(7,9,"settings.rprofiles.rtjpegquality_desc")," ")}}function vie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",31),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",32),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("rtjpeglumafilter","0")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.rtjpeglumafilter_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("rtjpeglumafilter","0")].Value)("showButtons",!0)("min",0)("max",31)("step",1),a(2),T(" ",f(7,9,"settings.rprofiles.rtjpegfilter_desc")," ")}}function Cie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",33),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",34),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("rtjpegchromafilter","0")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.rtjpegchromafilter_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("rtjpegchromafilter","0")].Value)("showButtons",!0)("min",0)("max",31)("step",1),a(2),T(" ",f(7,9,"settings.rprofiles.rtjpegfilter_desc")," ")}}function yie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",35),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",36),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("mpeg4bitrate","2200")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4bitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg4bitrate","2200")].Value)("showButtons",!0)("min",100)("max",8e3)("step",100),a(2),T(" ",f(7,9,"settings.rprofiles.mpeg4bitrate_desc")," ")}}function wie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",37),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",38),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("mpeg4maxquality","2")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4maxquality_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg4maxquality","2")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T(" ",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function Tie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",39),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",40),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("mpeg4minquality","15")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4minquality_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg4minquality","15")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T(" ",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function Sie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",42),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("hardwaremjpegquality","100")].Value=s}),c(),M(5,"small",15),c()}if(2&t){const e=p(3);a(2),S(f(3,6,"settings.rprofiles.hardwaremjpegquality_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpegquality","100")].Value)("showButtons",!0)("min",0)("max",100)("step",1)}}const RS=function(){return["1","2","4"]};function xie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",43),g(2),m(3,"translate"),c(),l(4,"p-dropdown",44,45),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("hardwaremjpeghdecimation","2")].Value=s}),c(),M(6,"small",15),c()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.hardwaremjpeghdecimation_label")),a(2),q(A(9,Ms)),d("options",A(10,RS))("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpeghdecimation","2")].Value)("editable",!1)("maxlength",0)}}function Die(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",46),g(2),m(3,"translate"),c(),l(4,"p-dropdown",47,48),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("hardwaremjpegvdecimation","2")].Value=s}),c(),M(6,"small",15),c()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.hardwaremjpegvdecimation_label")),a(2),q(A(9,Ms)),d("options",A(10,RS))("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpegvdecimation","2")].Value)("editable",!1)("maxlength",0)}}function Mie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",49),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",50),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("mpeg4qualdiff","3")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4qualdiff_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg4qualdiff","3")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T(" ",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function kie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",51),g(2),m(3,"translate"),c(),l(4,"p-dropdown",52,53),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("mpeg2streamtype","2")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2streamtype_label")),a(2),q(A(12,Ms)),d("options",e.streamTypeOptions)("ngModel",e.profile.RecProfParams[e.findIx("mpeg2streamtype","2")].Value)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.rprofiles.mpeg2streamtype_desc")," ")}}const Iie=function(){return["Square","4:3","16:9","2.21:1"]};function Eie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",54),g(2),m(3,"translate"),c(),l(4,"p-dropdown",55,56),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("mpeg2aspectratio","Square")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2aspectratio_label")),a(2),q(A(12,Ms)),d("options",A(13,Iie))("ngModel",e.profile.RecProfParams[e.findIx("mpeg2aspectratio","Square")].Value)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.rprofiles.mpeg2aspectratio_desc")," ")}}function Rie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",57),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",58),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("mpeg2bitrate","6000")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.mpeg2bitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg2bitrate","6000")].Value)("showButtons",!0)("min",1e3)("max",16e3)("step",100),a(2),T(" ",f(7,9,"settings.rprofiles.mpeg2bitrate_desc")," ")}}function Lie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",59),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",60),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("mpeg2maxbitrate","4500")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg2maxbitrate","4500")].Value)("showButtons",!0)("min",1e3)("max",16e3)("step",100),a(2),T(" ",f(7,9,"settings.rprofiles.mpeg2maxbitrate_desc")," ")}}function Oie(t,i){if(1&t){const e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",61),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",62),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("low_mpeg4avgbitrate","4500")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",63),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",64),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("low_mpeg4peakbitrate","6000")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const e=p(3);x("legend",f(1,17,"settings.rprofiles.lowres_label")),d("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("low_mpeg4avgbitrate","4500")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T(" ",f(9,21,"settings.rprofiles.mpeg2bitrate_desc")," "),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("low_mpeg4peakbitrate","6000")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T(" ",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc")," ")}}function Aie(t,i){if(1&t){const e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",65),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",66),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("medium_mpeg4avgbitrate","9000")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",67),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",68),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("medium_mpeg4peakbitrate","11000")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const e=p(3);x("legend",f(1,17,"settings.rprofiles.medres_label")),d("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("medium_mpeg4avgbitrate","9000")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T(" ",f(9,21,"settings.rprofiles.mpeg2bitrate_desc")," "),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("medium_mpeg4peakbitrate","11000")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T(" ",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc")," ")}}function Pie(t,i){if(1&t){const e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",69),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",70),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("high_mpeg4avgbitrate","13500")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",71),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",72),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("high_mpeg4peakbitrate","20200")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const e=p(3);x("legend",f(1,17,"settings.rprofiles.highres_label")),d("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("high_mpeg4avgbitrate","13500")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T(" ",f(9,21,"settings.rprofiles.mpeg2bitrate_desc")," "),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("high_mpeg4peakbitrate","20200")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T(" ",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc")," ")}}function Fie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"p-checkbox",73,74),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("scalebitrate",!0)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const e=p(3);a(1),x("label",f(3,4,"settings.rprofiles.scalebitrate_label")),d("ngModel",e.profile.RecProfParams[e.findIx("scalebitrate",!0)].Value)("binary",!0),a(4),T(" ",f(6,6,"settings.rprofiles.scalebitrate_desc")," ")}}function Nie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"p-checkbox",75,76),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("mpeg4optionvhq",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const e=p(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionvhq_label")),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionvhq",!1)].Value)("binary",!0),a(4),T(" ",f(6,6,"settings.rprofiles.mpeg4optionvhq_desc")," ")}}function Vie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"p-checkbox",77,78),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("mpeg4option4mv",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const e=p(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4option4mv_label")),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg4option4mv",!1)].Value)("binary",!0),a(4),T(" ",f(6,6,"settings.rprofiles.mpeg4option4mv_desc")," ")}}function Bie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"p-checkbox",79,80),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("mpeg4optionidct",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const e=p(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionidct_label")),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionidct",!1)].Value)("binary",!0),a(4),T(" ",f(6,6,"settings.rprofiles.mpeg4optionidct_desc")," ")}}function Hie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"p-checkbox",81,82),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("mpeg4optionime",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const e=p(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionime_label")),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionime",!1)].Value)("binary",!0),a(4),T(" ",f(6,6,"settings.rprofiles.mpeg4optionime_desc")," ")}}function qie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",83),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",84),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("encodingthreadcount","1")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.encodingthreadcount_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("encodingthreadcount","1")].Value)("showButtons",!0)("min",1)("max",8)("step",1),a(2),T(" ",f(7,9,"settings.rprofiles.encodingthreadcount_desc")," ")}}function Gie(t,i){if(1&t&&(l(0,"p-fieldset",25),m(1,"translate"),_(2,_ie,7,10,"div",10),_(3,bie,8,11,"div",10),_(4,vie,8,11,"div",10),_(5,Cie,8,11,"div",10),_(6,yie,8,11,"div",10),_(7,wie,8,11,"div",10),_(8,Tie,8,11,"div",10),_(9,Sie,6,8,"div",10),_(10,xie,7,11,"div",10),_(11,Die,7,11,"div",10),_(12,Mie,8,11,"div",10),_(13,kie,9,13,"div",10),_(14,Eie,9,14,"div",10),_(15,Rie,8,11,"div",10),_(16,Lie,8,11,"div",10),_(17,Oie,18,27,"p-fieldset",11),_(18,Aie,18,27,"p-fieldset",11),_(19,Pie,18,27,"p-fieldset",11),_(20,Fie,7,8,"div",10),_(21,Nie,7,8,"div",10),_(22,Vie,7,8,"div",10),_(23,Bie,7,8,"div",10),_(24,Hie,7,8,"div",10),_(25,qie,8,11,"div",10),c()),2&t){const e=p(2);x("legend",f(1,27,"settings.rprofiles.video_label")),d("toggleable",!0)("collapsed",!0),a(2),d("ngIf",e.params.Video.length>0),a(1),d("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),d("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),d("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),d("ngIf","Hardware MJPEG"==e.profile.VideoCodec),a(1),d("ngIf","Hardware MJPEG"==e.profile.VideoCodec),a(1),d("ngIf","Hardware MJPEG"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-2 Hardware Encoder"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-2 Hardware Encoder"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-2"==e.profile.VideoCodec||"MPEG-2 Hardware Encoder"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-2 Hardware Encoder"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4 AVC Hardware Encoder"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4 AVC Hardware Encoder"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4 AVC Hardware Encoder"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec||"MPEG-2"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),d("ngIf","MPEG-4"==e.profile.VideoCodec||"MPEG-2"==e.profile.VideoCodec)}}function Uie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",85),g(2),m(3,"translate"),c(),l(4,"p-dropdown",86,87),C("ngModelChange",function(s){return v(e),p(3).profile.AudioCodec=s}),c(),M(6,"small",15),c()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.audiocodec_label")),a(2),q(A(9,Ms)),d("options",e.params.Audio)("ngModel",e.profile.AudioCodec)("editable",!1)("maxlength",0)}}function zie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",88),g(2),m(3,"translate"),c(),l(4,"p-dropdown",89,90),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("samplerate","32000")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,8,"settings.rprofiles.samplerate_label")),a(2),q(A(12,Ms)),d("options",e.samplerateOptions)("ngModel",e.profile.RecProfParams[e.findIx("samplerate","32000")].Value)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.rprofiles.samplerate_desc")," ")}}function jie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",91),g(2),m(3,"translate"),c(),l(4,"p-dropdown",92,93),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("mpeg2language","32000")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2language_label")),a(2),q(A(12,Ms)),d("options",e.mpeg2languageOptions)("ngModel",e.profile.RecProfParams[e.findIx("mpeg2language","32000")].Value)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.rprofiles.mpeg2language_desc")," ")}}function $ie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",94),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",95),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("mp3quality","1")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.mp3quality_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("mp3quality","1")].Value)("showButtons",!0)("min",1)("max",9)("step",1),a(2),T(" ",f(7,9,"settings.rprofiles.mp3quality_desc")," ")}}function Wie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",96),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",97),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("volume","90")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.volume_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("volume","90")].Value)("showButtons",!0)("min",0)("max",100)("step",1),a(2),T(" ",f(7,9,"settings.rprofiles.volume_desc")," ")}}function Kie(t,i){if(1&t){const e=I();l(0,"div",12)(1,"label",98),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",99),C("ngModelChange",function(s){v(e);const o=p(3);return o.profile.RecProfParams[o.findIx("mpeg2audvolume","90")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const e=p(3);a(2),S(f(3,7,"settings.rprofiles.volume_label")),a(2),d("ngModel",e.profile.RecProfParams[e.findIx("mpeg2audvolume","90")].Value)("showButtons",!0)("min",0)("max",100)("step",1),a(2),T(" ",f(7,9,"settings.rprofiles.mpeg2audvolume_desc")," ")}}function Qie(t,i){if(1&t&&(l(0,"p-fieldset",25),m(1,"translate"),_(2,Uie,7,10,"div",10),_(3,zie,9,13,"div",10),_(4,jie,9,13,"div",10),_(5,$ie,8,11,"div",10),_(6,Wie,8,11,"div",10),_(7,Kie,8,11,"div",10),c()),2&t){const e=p(2);x("legend",f(1,9,"settings.rprofiles.audio_label")),d("toggleable",!0)("collapsed",!0),a(2),d("ngIf",e.params.Audio.length>0),a(1),d("ngIf","MP3"==e.profile.AudioCodec||"MPEG-2 Hardware Encoder"==e.profile.AudioCodec||"Uncompressed"==e.profile.AudioCodec),a(1),d("ngIf","MPEG-2 Hardware Encoder"==e.profile.AudioCodec),a(1),d("ngIf","MP3"==e.profile.AudioCodec),a(1),d("ngIf","MP3"==e.profile.AudioCodec||"Uncompressed"==e.profile.AudioCodec),a(1),d("ngIf","MPEG-2 Hardware Encoder"==e.profile.AudioCodec)}}function Jie(t,i){if(1&t&&(l(0,"div",8)(1,"div",9),_(2,pie,7,8,"div",10),_(3,hie,8,11,"div",10),_(4,mie,8,11,"div",10),_(5,fie,9,13,"div",10),_(6,gie,7,8,"div",10),_(7,Gie,26,29,"p-fieldset",11),_(8,Qie,8,11,"p-fieldset",11),c()()),2&t){const e=p();a(2),d("ngIf",e.params.Param.includes("autotranscode")),a(1),d("ngIf",e.params.Param.includes("width")),a(1),d("ngIf",e.params.Param.includes("height")),a(1),d("ngIf",e.params.Param.includes("recordingtype")),a(1),d("ngIf",e.params.Param.includes("recordmpts")),a(1),d("ngIf",e.params.Video.length>0),a(1),d("ngIf",e.params.Audio.length>0)}}function Yie(t,i){1&t&&(M(0,"p-message",105),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function Zie(t,i){1&t&&(M(0,"p-message",106),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function Xie(t,i){if(1&t){const e=I();l(0,"div",100)(1,"div",101),_(2,Yie,2,3,"p-message",102),_(3,Zie,2,3,"p-message",103),c(),l(4,"p-button",104),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(1),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let ese=(()=>{class t{constructor(e,n,s){this.translate=e,this.captureCardService=n,this.setupService=s,this.successCount=0,this.errorCount=0,this.expectedCount=0,this.paramList=[{CardType:"V4L",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"MPEG",Param:["autotranscode","height","width"],Video:["MPEG-2 Hardware Encoder"],Audio:["MPEG-2 Hardware Encoder"]},{CardType:"MJPEG",Param:["autotranscode","height","width"],Video:["Hardware MJPEG"],Audio:["MP3","Uncompressed"]},{CardType:"HDTV",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"DVB",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"FIREWIRE",Param:["autotranscode"],Video:[],Audio:[]},{CardType:"GO7007",Param:["autotranscode","height","width"],Video:["MPEG-4","MPEG-2"],Audio:["MP3","Uncompressed"]},{CardType:"IMPORT",Param:["autotranscode"],Video:[],Audio:[]},{CardType:"FREEBOX",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"HDHOMERUN",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"CRC_IP",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"HDPVR",Param:["autotranscode"],Video:["MPEG-4 AVC Hardware Encoder"],Audio:["AC3 Hardware Encoder","AAC Hardware Encoder"]},{CardType:"ASI",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"OCUR",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"CETON",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"VBOX",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"SATIP",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"V4L2:uvcvideo",Param:["autotranscode","height","width"],Video:["V4L2:MPEG-2 Video"],Audio:["V4L2:MPEG-1/2 Layer II encoding"]},{CardType:"TRANSCODE",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]}],this.params={CardType:"",Param:[""],Video:[""],Audio:[""]},this.videoParamList=[{Codec:"RTjpeg",Param:["rtjpegquality","rtjpeglumafilter","rtjpegchromafilter"]},{Codec:"MPEG-4",Param:["mpeg4bitrate","mpeg4maxquality","mpeg4minquality","mpeg4qualdiff","scalebitrate","mpeg4optionvhq","mpeg4option4mv","mpeg4optionidct","mpeg4optionime","encodingthreadcount"]},{Codec:"MPEG-2",Param:["mpeg2bitrate","scalebitrate","encodingthreadcount"]},{Codec:"Hardware MJPEG",Param:["hardwaremjpegquality","hardwaremjpeghdecimation","hardwaremjpegvdecimation"]},{Codec:"MPEG-2 Hardware Encoder",Param:["mpeg2streamtype","mpeg2aspectratio","mpeg2bitrate","mpeg2maxbitrate"]},{Codec:"MPEG-4 AVC Hardware Encoder",Param:["low_mpeg4avgbitrate","low_mpeg4peakbitrate","medium_mpeg4avgbitrate","medium_mpeg4peakbitrate","high_mpeg4avgbitrate","high_mpeg4peakbitrate"]},{Codec:"V4L2:MPEG-2 Video",Param:[]}],this.audioParamList=[{Codec:"MP3",Param:["samplerate","mp3quality","volume"]},{Codec:"MPEG-2 Hardware Encoder",Param:["samplerate","mpeg2language","mpeg2audvolume"]},{Codec:"Uncompressed",Param:["samplerate","volume"]}],this.recordingtypeOptions=[{Name:"settings.rprofiles.rectype_normal",Value:"all"},{Name:"settings.rprofiles.rectype_tv",Value:"tv"},{Name:"settings.rprofiles.rectype_audio",Value:"audio"}],this.samplerateOptions=["32000","44100","48000"],this.streamTypeOptions=["MPEG-2 PS","MPEG-2 TS","MPEG-1 VCD","PES AV","PES V","PES A","DVD","DVD-Special 1","DVD-Special 2"],this.mpeg2languageOptions=[{Name:"settings.rprofiles.lang_main",Value:"0"},{Name:"settings.rprofiles.lang_sap",Value:"1"},{Name:"settings.rprofiles.lang_dual",Value:"2"}],this.saveObserver={next:o=>{this.profile.Id&&o.bool?this.successCount++:!this.profile.Id&&o.int?(this.successCount++,this.profile.Id=o.int,this.saveForm(2)):(console.log("saveObserver error",o),this.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.log("saveObserver error",o),this.errorCount++,this.currentForm.form.markAsDirty()}},this.recordingtypeOptions.forEach(o=>{e.get(o.Name).subscribe(r=>o.Name=r)}),this.mpeg2languageOptions.forEach(o=>{e.get(o.Name).subscribe(r=>o.Name=r)})}ngOnInit(){let e=this.paramList.find(n=>n.CardType==this.group.CardType);e&&(this.params=e)}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}findIx(e,n){let s=this.profile.RecProfParams.findIndex(o=>o.Name==e);return-1==s?s=this.profile.RecProfParams.push({Name:e,Value:n})-1:"boolean"==typeof n&&"string"==typeof this.profile.RecProfParams[s].Value&&(this.profile.RecProfParams[s].Value="1"==this.profile.RecProfParams[s].Value),s}saveForm(e){switch(e){case 1:if(this.successCount=0,this.errorCount=0,this.expectedCount=0,this.profile.Id<=0)return this.captureCardService.AddRecProfile(this.group.Id,this.profile.Name,this.profile.VideoCodec,this.profile.AudioCodec).subscribe(this.saveObserver),void this.expectedCount++;this.captureCardService.UpdateRecProfile(this.profile.Id,this.profile.VideoCodec,this.profile.AudioCodec).subscribe(this.saveObserver),this.expectedCount++;case 2:this.saveParams(this.params.Param);let n=this.videoParamList.find(o=>o.Codec==this.profile.VideoCodec);n?this.saveParams(n.Param):(console.log("ERROR videoparams not found"),this.errorCount++,this.currentForm.form.markAsDirty());let s=this.audioParamList.find(o=>o.Codec==this.profile.AudioCodec);s?this.saveParams(s.Param):(console.log("ERROR audioparams not found"),this.errorCount++,this.currentForm.form.markAsDirty())}}saveParams(e){e.forEach(n=>{let s=this.profile.RecProfParams[this.findIx(n,"0")].Value;s="boolean"==typeof s?s?"1":"0":s.toString(),this.captureCardService.UpdateRecProfileParam(this.profile.Id,n,s).subscribe(this.saveObserver),this.expectedCount++})}}return t.\u0275fac=function(e){return new(e||t)(D(Oe),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-recprofile"]],viewQuery:function(e,n){if(1&e&&(W(lie,5),W(cie,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{profile:"profile",group:"group",parentComponent:"parentComponent"},decls:9,vars:0,consts:[["name","recprofform",1,"ml-3","mr-3"],["recprofform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],["class","form-group field",4,"ngIf"],["class","mb-4 w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"form-group","field"],["inputId","autotranscode","name","autotranscode",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["autotranscode","ngModel"],[1,"block"],["for","width",1,"label","block"],["name","width","id","width",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","height",1,"label","block"],["name","height","id","height",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","recordingtype",1,"label","block"],["optionLabel","Name","optionValue","Value","name","recordingtype",3,"options","ngModel","editable","maxlength","ngModelChange"],["recordingtype","ngModel"],["inputId","recordmpts","name","recordmpts",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["recordmpts","ngModel"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","VideoCodec",1,"label","block"],["name","VideoCodec",3,"options","ngModel","editable","maxlength","ngModelChange"],["VideoCodec","ngModel"],["for","rtjpegquality",1,"label","block"],["name","rtjpegquality","id","rtjpegquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","rtjpeglumafilter",1,"label","block"],["name","rtjpeglumafilter","id","rtjpeglumafilter",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","rtjpegchromafilter",1,"label","block"],["name","rtjpegchromafilter","id","rtjpegchromafilter",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4bitrate",1,"label","block"],["name","mpeg4bitrate","id","mpeg4bitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4maxquality",1,"label","block"],["name","mpeg4maxquality","id","mpeg4maxquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4minquality",1,"label","block"],["name","mpeg4minquality","id","mpeg4minquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","hardwaremjpegquality",1,"label","block"],["name","hardwaremjpegquality","id","hardwaremjpegquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","hardwaremjpeghdecimation",1,"label","block"],["name","hardwaremjpeghdecimation",3,"options","ngModel","editable","maxlength","ngModelChange"],["hardwaremjpeghdecimation","ngModel"],["for","hardwaremjpegvdecimation",1,"label","block"],["name","hardwaremjpegvdecimation",3,"options","ngModel","editable","maxlength","ngModelChange"],["hardwaremjpegvdecimation","ngModel"],["for","mpeg4qualdiff",1,"label","block"],["name","mpeg4qualdiff","id","mpeg4qualdiff",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2streamtype",1,"label","block"],["name","mpeg2streamtype",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2streamtype","ngModel"],["for","mpeg2aspectratio",1,"label","block"],["name","mpeg2aspectratio",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2aspectratio","ngModel"],["for","mpeg2bitrate",1,"label","block"],["name","mpeg2bitrate","id","mpeg2bitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2maxbitrate",1,"label","block"],["name","mpeg2maxbitrate","id","mpeg2maxbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","low_mpeg4avgbitrate",1,"label","block"],["name","low_mpeg4avgbitrate","id","low_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","low_mpeg4peakbitrate",1,"label","block"],["name","low_mpeg4peakbitrate","id","low_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","medium_mpeg4avgbitrate",1,"label","block"],["name","medium_mpeg4avgbitrate","id","medium_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","medium_mpeg4peakbitrate",1,"label","block"],["name","medium_mpeg4peakbitrate","id","medium_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","high_mpeg4avgbitrate",1,"label","block"],["name","high_mpeg4avgbitrate","id","high_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","high_mpeg4peakbitrate",1,"label","block"],["name","high_mpeg4peakbitrate","id","high_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","scalebitrate","name","scalebitrate",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["scalebitrate","ngModel"],["inputId","mpeg4optionvhq","name","mpeg4optionvhq",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionvhq","ngModel"],["inputId","mpeg4option4mv","name","mpeg4option4mv",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4option4mv","ngModel"],["inputId","mpeg4optionidct","name","mpeg4optionidct",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionidct","ngModel"],["inputId","mpeg4optionime","name","mpeg4optionime",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionime","ngModel"],["for","encodingthreadcount",1,"label","block"],["name","encodingthreadcount","id","encodingthreadcount",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","AudioCodec",1,"label","block"],["name","AudioCodec",3,"options","ngModel","editable","maxlength","ngModelChange"],["AudioCodec","ngModel"],["for","samplerate",1,"label","block"],["name","samplerate",3,"options","ngModel","editable","maxlength","ngModelChange"],["samplerate","ngModel"],["for","mpeg2language",1,"label","block"],["optionLabel","Name","optionValue","Value","name","mpeg2language",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2language","ngModel"],["for","mp3quality",1,"label","block"],["name","mp3quality","id","mp3quality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","volume",1,"label","block"],["name","volume","id","volume",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2audvolume",1,"label","block"],["name","mpeg2audvolume","id","mpeg2audvolume",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),M(2,"span",null,2),l(4,"p-card",3),_(5,uie,2,4,"ng-template",4),_(6,die,0,0,"ng-template",5),_(7,Jie,9,7,"ng-template",6),_(8,Xie,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,on,we,_e,pt,Ot,_n,Ui,qe,Ce],pipes:[ce],styles:[""]}),t})();const tse=["v4l2form"],nse=["top"];function ise(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.capture.v4l2.title")," ")}function sse(t,i){}const ose=function(){return{minWidth:"80%"}};function rse(t,i){if(1&t){const e=I();l(0,"p-dropdown",17,18),C("ngModelChange",function(s){return v(e),p(2).currentDevice=s})("onChange",function(){return v(e),p(2).updateDevice()}),c()}if(2&t){const e=p(2);q(A(6,ose)),d("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function ase(t,i){if(1&t&&(l(0,"div")(1,"small",19),g(2),c()()),2&t){const e=p(2);a(2),T(" ",e.warningMessage," ")}}function lse(t,i){if(1&t){const e=I();l(0,"input",20,21),C("ngModelChange",function(s){return v(e),p(2).currentDevice.FrontendName=s}),c()}2&t&&d("ngModel",p(2).currentDevice.FrontendName)}function cse(t,i){if(1&t&&(l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,rse,2,7,"p-dropdown",12),_(7,ase,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,lse,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()()()()),2&t){const e=p();a(4),S(f(5,7,"settings.capture.v4l2.device_label")),a(2),d("ngIf",e.isReady),a(1),d("ngIf",e.warningMessage),a(2),T(" ",f(10,9,"settings.capture.device_desc")," "),a(4),S(f(14,11,"settings.capture.v4l2.frontend_label")),a(2),d("ngIf",e.isReady),a(2),T(" ",f(18,13,"settings.capture.frontend_desc")," ")}}function use(t,i){1&t&&(M(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function dse(t,i){1&t&&(M(0,"p-message",28),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function pse(t,i){if(1&t){const e=I();l(0,"div",22)(1,"div",23),_(2,use,2,3,"p-message",24),_(3,dse,2,3,"p-message",25),c(),l(4,"p-button",26),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let hse=(()=>{class t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:o=>{this.card.CardId&&o.bool?this.successCount++:!this.card.CardId&&o.int?(this.successCount++,this.card.CardId=o.int):(this.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.error(o),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(o=>this.messages.devNotExist=o),s.get(this.messages.unknownName).subscribe(o=>this.messages.unknownName=o),s.get(this.messages.devInUse).subscribe(o=>this.messages.devInUse=o),s.get(this.messages.noDevSelected).subscribe(o=>this.messages.noDevSelected=o)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("V4L2ENC").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-v4l2"]],viewQuery:function(e,n){if(1&e&&(W(tse,5),W(nse,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","v4l2form",1,"ml-3","mr-3"],["v4l2form","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2 form-control w-full",3,"ngModel","ngModelChange",4,"ngIf"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),M(2,"span",null,2),l(4,"p-card",3),_(5,ise,2,3,"ng-template",4),_(6,sse,0,0,"ng-template",5),_(7,cse,19,15,"ng-template",6),_(8,pse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,we,_e,_n,Ye,qe,Ce],pipes:[ce],styles:[""]}),t})();const mse=["hdpvrform"],fse=["top"];function gse(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.capture.hdpvr.title")," ")}function _se(t,i){}const LS=function(){return{minWidth:"80%"}};function bse(t,i){if(1&t){const e=I();l(0,"p-dropdown",21,22),C("ngModelChange",function(s){return v(e),p(2).currentDevice=s})("onChange",function(){return v(e),p(2).updateDevice()}),c()}if(2&t){const e=p(2);q(A(6,LS)),d("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function vse(t,i){if(1&t&&(l(0,"div")(1,"small",23),g(2),c()()),2&t){const e=p(2);a(2),T(" ",e.warningMessage," ")}}function Cse(t,i){if(1&t){const e=I();l(0,"input",24,25),C("ngModelChange",function(s){return v(e),p(2).currentDevice.FrontendName=s}),c()}2&t&&d("ngModel",p(2).currentDevice.FrontendName)}function yse(t,i){if(1&t){const e=I();l(0,"p-dropdown",26,27),C("ngModelChange",function(s){return v(e),p(2).card.AudioDevice=s}),c()}if(2&t){const e=p(2);q(A(6,LS)),d("options",e.currentDevice.AudioDevices)("ngModel",e.card.AudioDevice)("editable",!1)("maxlength",0)}}function wse(t,i){if(1&t){const e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,bse,2,7,"p-dropdown",12),_(7,vse,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,Cse,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",17),g(21),m(22,"translate"),c(),_(23,yse,2,7,"p-dropdown",18),l(24,"small",14),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"label",19),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",20),C("ngModelChange",function(s){return v(e),p().card.ChannelTimeout=s}),c(),l(32,"small",14),g(33),m(34,"translate"),c()()()()}if(2&t){const e=p();a(4),S(f(5,17,"settings.capture.v4l2.device_label")),a(2),d("ngIf",e.isReady),a(1),d("ngIf",e.warningMessage),a(2),T(" ",f(10,19,"settings.capture.device_desc")," "),a(4),S(f(14,21,"settings.capture.v4l2.frontend_label")),a(2),d("ngIf",e.isReady),a(2),T(" ",f(18,23,"settings.capture.frontend_desc")," "),a(4),S(f(22,25,"settings.capture.hdpvr.audiodevice_label")),a(2),d("ngIf",e.isReady),a(2),T(" ",f(26,27,"settings.capture.hdpvr.audiodevice_desc")," "),a(4),S(f(30,29,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T(" ",f(34,31,"settings.capture.tunetimeout_desc")," ")}}function Tse(t,i){1&t&&(M(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function Sse(t,i){1&t&&(M(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function xse(t,i){if(1&t){const e=I();l(0,"div",28)(1,"div",29),_(2,Tse,2,3,"p-message",30),_(3,Sse,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let Dse=(()=>{class t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:o=>{this.card.CardId&&o.bool?this.successCount++:!this.card.CardId&&o.int?(this.successCount++,this.card.CardId=o.int):(this.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.error(o),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(o=>this.messages.devNotExist=o),s.get(this.messages.unknownName).subscribe(o=>this.messages.unknownName=o),s.get(this.messages.devInUse).subscribe(o=>this.messages.devInUse=o),s.get(this.messages.noDevSelected).subscribe(o=>this.messages.noDevSelected=o)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("HDPVR").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.AudioDevice="",this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"audiodevice",String(this.card.AudioDevice)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-hdpvr"]],viewQuery:function(e,n){if(1&e&&(W(mse,5),W(fse,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","hdpvrform",1,"ml-3","mr-3"],["dvbform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2 form-control w-full",3,"ngModel","ngModelChange",4,"ngIf"],["for","AudioDevice",1,"label","block"],["name","AudioDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange",4,"ngIf"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],["name","AudioDevice",3,"options","ngModel","editable","maxlength","ngModelChange"],["AudioDevice","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),M(2,"span",null,2),l(4,"p-card",3),_(5,gse,2,3,"ng-template",4),_(6,_se,0,0,"ng-template",5),_(7,wse,35,33,"ng-template",6),_(8,xse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,we,_e,_n,Ye,pt,qe,Ce],pipes:[ce],styles:[""]}),t})();const Mse=["satipform"],kse=["top"];function Ise(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.capture.satip.title")," ")}function Ese(t,i){}const Rse=function(){return{minWidth:"83%"}};function Lse(t,i){if(1&t){const e=I();l(0,"p-dropdown",25,26),C("ngModelChange",function(s){return v(e),p(2).currentDevice=s})("onChange",function(){return v(e),p(2).updateDevice()}),c()}if(2&t){const e=p(2);q(A(6,Rse)),d("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function Ose(t,i){if(1&t&&(l(0,"div")(1,"small",27),g(2),c()()),2&t){const e=p(2);a(2),T(" ",e.warningMessage," ")}}function Ase(t,i){if(1&t){const e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Lse,2,7,"p-dropdown",12),_(7,Ose,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"div",16),g(16),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",15),g(22),m(23,"translate"),c(),l(24,"div",16),g(25),c(),l(26,"small",14),g(27),m(28,"translate"),c()(),l(29,"div",10)(30,"label",15),g(31),m(32,"translate"),c(),l(33,"div",16),g(34),c(),l(35,"small",14),g(36),m(37,"translate"),c()(),l(38,"div",10)(39,"label",15),g(40),m(41,"translate"),c(),l(42,"div",16),g(43),c(),l(44,"small",14),g(45),m(46,"translate"),c()(),l(47,"div",10)(48,"label",17),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",18),C("ngModelChange",function(s){return v(e),p().card.SignalTimeout=s}),c(),l(52,"small",14),g(53),m(54,"translate"),c()(),l(55,"div",10)(56,"label",19),g(57),m(58,"translate"),c(),l(59,"p-inputNumber",20),C("ngModelChange",function(s){return v(e),p().card.ChannelTimeout=s}),c(),l(60,"small",14),g(61),m(62,"translate"),c()(),l(63,"div",10)(64,"p-checkbox",21,22),C("ngModelChange",function(s){return v(e),p().card.DVBEITScan=s}),m(66,"translate"),c(),l(67,"small",14),g(68),m(69,"translate"),c()(),l(70,"div",10)(71,"label",23),g(72),m(73,"translate"),c(),l(74,"p-inputNumber",24),C("ngModelChange",function(s){return v(e),p().card.DVBDiSEqCType=s}),c(),l(75,"small",14),g(76),m(77,"translate"),c()()()()}if(2&t){const e=p();a(4),S(f(5,41,"settings.capture.satip.device_label")),a(2),d("ngIf",e.isReady),a(1),d("ngIf",e.warningMessage),a(2),T(" ",f(10,43,"settings.capture.satip.device_desc")," "),a(4),S(f(14,45,"settings.capture.satip.friendly_label")),a(3),T(" ",e.currentDevice.Description," \xa0 "),a(2),T(" ",f(19,47,"settings.capture.satip.friendly_desc")," "),a(4),S(f(23,49,"settings.capture.satip.tunertype_label")),a(3),T(" ",e.currentDevice.TunerType," \xa0 "),a(2),T(" ",f(28,51,"settings.capture.tunertype_desc")," "),a(4),S(f(32,53,"settings.capture.satip.tunerindex_label")),a(3),T(" ",e.currentDevice.TunerNumber," \xa0 "),a(2),T(" ",f(37,55,"settings.capture.tunerindex_desc")," "),a(4),S(f(41,57,"settings.capture.satip.deviceid_label")),a(3),T(" ",e.card.VideoDevice," \xa0 "),a(2),T(" ",f(46,59,"settings.capture.deviceid_desc")," "),a(4),S(f(50,61,"settings.capture.sigtimeout_label")),a(2),d("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T(" ",f(54,63,"settings.capture.sigtimeout_desc")," "),a(4),S(f(58,65,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T(" ",f(62,67,"settings.capture.tunetimeout_desc")," "),a(3),x("label",f(66,69,"settings.capture.dvb.eitscan_label")),d("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T(" ",f(69,71,"settings.capture.dvb.eitscan_desc")," "),a(4),S(f(73,73,"settings.capture.satip.diseqcpos_label")),a(2),d("ngModel",e.card.DVBDiSEqCType)("showButtons",!0)("min",1)("max",255)("step",1),a(2),T(" ",f(77,75,"settings.capture.satip.diseqcpos_desc")," ")}}function Pse(t,i){1&t&&(M(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function Fse(t,i){1&t&&(M(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function Nse(t,i){if(1&t){const e=I();l(0,"div",28)(1,"div",29),_(2,Pse,2,3,"p-message",30),_(3,Fse,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let Vse=(()=>{class t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:o=>{this.card.CardId&&o.bool?this.successCount++:!this.card.CardId&&o.int?(this.successCount++,this.card.CardId=o.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.error(o),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(o=>this.messages.devNotExist=o),s.get(this.messages.unknownName).subscribe(o=>this.messages.unknownName=o),s.get(this.messages.devInUse).subscribe(o=>this.messages.devInUse=o),s.get(this.messages.noDevSelected).subscribe(o=>this.messages.noDevSelected=o)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("SATIP").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",VideoDevicePrompt:this.messages.noDevSelected}),this.card.VideoDevice){let e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,Description:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_diseqc_type",String(this.card.DVBDiSEqCType)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-satip"]],viewQuery:function(e,n){if(1&e&&(W(Mse,5),W(kse,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","satipform",1,"ml-3","mr-3"],["satipform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevicePrompt","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["for","DVBDiSEqCType",1,"label","block"],["name","DVBDiSEqCType","id","DVBDiSEqCType",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevicePrompt","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),M(2,"span",null,2),l(4,"p-card",3),_(5,Ise,2,3,"ng-template",4),_(6,Ese,0,0,"ng-template",5),_(7,Ase,78,77,"ng-template",6),_(8,Nse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,we,_e,_n,pt,on,qe,Ce],pipes:[ce],styles:[""]}),t})();const Bse=["vboxform"],Hse=["top"];function qse(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.capture.vbox.title")," ")}function Gse(t,i){}const Use=function(){return{minWidth:"83%"}};function zse(t,i){if(1&t){const e=I();l(0,"p-dropdown",26,27),C("ngModelChange",function(s){return v(e),p(2).currentDevice=s})("onChange",function(){return v(e),p(2).updateDevice()}),c()}if(2&t){const e=p(2);q(A(6,Use)),d("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function jse(t,i){if(1&t&&(l(0,"div")(1,"small",28),g(2),c()()),2&t){const e=p(2);a(2),T(" ",e.warningMessage," ")}}function $se(t,i){if(1&t){const e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,zse,2,7,"p-dropdown",12),_(7,jse,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"div",16),g(16),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",15),g(22),m(23,"translate"),c(),l(24,"div",16),g(25),c(),M(26,"small",14),c(),l(27,"div",10)(28,"label",17),g(29),m(30,"translate"),c(),l(31,"input",18,19),C("ngModelChange",function(s){return v(e),p().currentDevice.IPAddress=s}),c(),l(33,"small",14),g(34),m(35,"translate"),c()(),l(36,"div",10)(37,"label",20),g(38),m(39,"translate"),c(),l(40,"input",21,19),C("ngModelChange",function(s){return v(e),p().currentDevice.TunerNumber=s}),c(),l(42,"small",14),g(43),m(44,"translate"),c()(),l(45,"div",10)(46,"label",22),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",23),C("ngModelChange",function(s){return v(e),p().card.SignalTimeout=s}),c(),l(50,"small",14),g(51),m(52,"translate"),c()(),l(53,"div",10)(54,"label",24),g(55),m(56,"translate"),c(),l(57,"p-inputNumber",25),C("ngModelChange",function(s){return v(e),p().card.ChannelTimeout=s}),c(),l(58,"small",14),g(59),m(60,"translate"),c()()()()}if(2&t){const e=p();a(4),S(f(5,31,"settings.capture.satip.device_label")),a(2),d("ngIf",e.isReady),a(1),d("ngIf",e.warningMessage),a(2),T(" ",f(10,33,"settings.capture.vbox.device_desc")," "),a(4),S(f(14,35,"settings.capture.vbox.deviceid_label")),a(3),T(" ",e.card.VideoDevice," \xa0 "),a(2),T(" ",f(19,37,"settings.capture.vbox.deviceid_desc")," "),a(4),S(f(23,39,"settings.capture.vbox.description_label")),a(3),T(" ",e.currentDevice.Description," \xa0 "),a(4),S(f(30,41,"settings.capture.ceton.ipaddress_label")),a(2),d("ngModel",e.currentDevice.IPAddress)("disabled",e.currentDevice!==e.manualDevice),a(3),T(" ",f(35,43,"settings.capture.vbox.ipaddress_desc")," "),a(4),S(f(39,45,"settings.capture.ceton.tuner_label")),a(2),d("ngModel",e.currentDevice.TunerNumber)("disabled",e.currentDevice!==e.manualDevice),a(3),T(" ",f(44,47,"settings.capture.vbox.tuner_desc")," "),a(4),S(f(48,49,"settings.capture.sigtimeout_label")),a(2),d("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T(" ",f(52,51,"settings.capture.sigtimeout_desc")," "),a(4),S(f(56,53,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T(" ",f(60,55,"settings.capture.tunetimeout_desc")," ")}}function Wse(t,i){1&t&&(M(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function Kse(t,i){1&t&&(M(0,"p-message",35),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function Qse(t,i){if(1&t){const e=I();l(0,"div",29)(1,"div",30),_(2,Wse,2,3,"p-message",31),_(3,Kse,2,3,"p-message",32),c(),l(4,"p-button",33),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let Jse=(()=>{class t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected",manuallyEnter:"settings.capture.vbox.manuallyenter"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:o=>{this.card.CardId&&o.bool?this.successCount++:!this.card.CardId&&o.int?(this.successCount++,this.card.CardId=o.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.error(o),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(o=>this.messages.devNotExist=o),s.get(this.messages.unknownName).subscribe(o=>this.messages.unknownName=o),s.get(this.messages.devInUse).subscribe(o=>this.messages.devInUse=o),s.get(this.messages.noDevSelected).subscribe(o=>this.messages.noDevSelected=o),s.get(this.messages.manuallyEnter).subscribe(o=>this.messages.manuallyEnter=o)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("VBOX").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.manualDevice={VideoDevicePrompt:this.messages.manuallyEnter,VideoDevice:"",Description:"",IPAddress:"",TunerNumber:0,SignalTimeout:7e3,ChannelTimeout:1e4},this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift(this.manualDevice),this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected}),this.card.VideoDevice){let e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.currentDevice===this.manualDevice?this.subscription=this.currentForm.valueChanges.pipe(yS(50)).subscribe(()=>this.card.VideoDevice=this.manualDevice.IPAddress+"-"+this.manualDevice.TunerNumber):this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0),this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-vbox"]],viewQuery:function(e,n){if(1&e&&(W(Bse,5),W(Hse,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","vboxform",1,"ml-3","mr-3"],["vboxform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],["u","",1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevicePrompt",1,"label","block"],["optionLabel","VideoDevicePrompt","name","VideoDevicePrompt",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","ip",1,"label","block"],["pInputText","","id","ip","name","ip",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["ipAddress","ngModel"],["for","tuner",1,"label","block"],["pInputText","","id","tuner","name","tuner",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevicePrompt","name","VideoDevicePrompt",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevicePrompt","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),M(2,"span",null,2),l(4,"p-card",3),_(5,qse,2,3,"ng-template",4),_(6,Gse,0,0,"ng-template",5),_(7,$se,61,57,"ng-template",6),_(8,Qse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,we,_e,_n,Ye,pt,qe,Ce],pipes:[ce],styles:[""]}),t})();const Yse=["firewireform"],Zse=["top"];function Xse(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"settings.capture.firewire.title")," ")}function eoe(t,i){}const Ed=function(){return{minWidth:"83%"}};function toe(t,i){if(1&t){const e=I();l(0,"p-dropdown",30,31),C("ngModelChange",function(s){return v(e),p(2).currentDevice=s})("onChange",function(){return v(e),p(2).updateDevice()}),c()}if(2&t){const e=p(2);q(A(6,Ed)),d("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function noe(t,i){if(1&t&&(l(0,"div")(1,"small",32),g(2),c()()),2&t){const e=p(2);a(2),T(" ",e.warningMessage," ")}}function ioe(t,i){if(1&t){const e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,toe,2,7,"p-dropdown",12),_(7,noe,3,1,"div",13),M(8,"small",14),c(),l(9,"div",10)(10,"label",15),g(11),m(12,"translate"),c(),l(13,"div",16),g(14),c(),M(15,"small",14),c(),l(16,"div",10)(17,"label",17),g(18),m(19,"translate"),c(),l(20,"p-dropdown",18,19),C("ngModelChange",function(s){return v(e),p().card.FirewireModel=s}),c(),l(22,"small",14),g(23),m(24,"translate"),c()(),l(25,"div",10)(26,"label",20),g(27),m(28,"translate"),c(),l(29,"p-dropdown",21,22),C("ngModelChange",function(s){return v(e),p().card.FirewireConnection=s}),c(),M(31,"small",14),c(),l(32,"div",10)(33,"label",23),g(34),m(35,"translate"),c(),l(36,"p-dropdown",24,25),C("ngModelChange",function(s){return v(e),p().card.FirewireSpeed=s}),c(),M(38,"small",14),c(),l(39,"div",10)(40,"label",26),g(41),m(42,"translate"),c(),l(43,"p-inputNumber",27),C("ngModelChange",function(s){return v(e),p().card.SignalTimeout=s}),c(),l(44,"small",14),g(45),m(46,"translate"),c()(),l(47,"div",10)(48,"label",28),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",29),C("ngModelChange",function(s){return v(e),p().card.ChannelTimeout=s}),c(),l(52,"small",14),g(53),m(54,"translate"),c()()()()}if(2&t){const e=p();a(4),S(f(5,41,"settings.capture.firewire.device_label")),a(2),d("ngIf",e.isReady),a(1),d("ngIf",e.warningMessage),a(4),S(f(12,43,"settings.capture.vbox.description_label")),a(3),T(" ",e.currentDevice.Description," \xa0 "),a(4),S(f(19,45,"settings.capture.firewire.model_label")),a(2),q(A(61,Ed)),d("options",e.models)("ngModel",e.card.FirewireModel)("editable",!1)("maxlength",0),a(3),T(" ",f(24,47,"settings.capture.firewire.model_desc")," "),a(4),S(f(28,49,"settings.capture.firewire.connection_label")),a(2),q(A(62,Ed)),d("options",e.connectionTypes)("ngModel",e.card.FirewireConnection)("editable",!1)("maxlength",0),a(5),S(f(35,51,"settings.capture.firewire.speed_label")),a(2),q(A(63,Ed)),d("options",e.speeds)("ngModel",e.card.FirewireSpeed)("editable",!1)("maxlength",0),a(5),S(f(42,53,"settings.capture.sigtimeout_label")),a(2),d("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T(" ",f(46,55,"settings.capture.sigtimeout_desc")," "),a(4),S(f(50,57,"settings.capture.tunetimeout_label")),a(2),d("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T(" ",f(54,59,"settings.capture.tunetimeout_desc")," ")}}function soe(t,i){1&t&&(M(0,"p-message",38),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function ooe(t,i){1&t&&(M(0,"p-message",39),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function roe(t,i){if(1&t){const e=I();l(0,"div",33)(1,"div",34),_(2,soe,2,3,"p-message",35),_(3,ooe,2,3,"p-message",36),c(),l(4,"p-button",37),C("onClick",function(){v(e);const s=p(),o=F(1);return s.saveForm(),o.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const e=p(),n=F(1);a(2),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),d("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let aoe=(()=>{class t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected",manuallyEnter:"settings.capture.vbox.manuallyenter"},this.models=[{name:"settings.capture.firewire.motogeneric",value:"MOTO GENERIC"},{name:"settings.capture.firewire.sageneric",value:"SA GENERIC"},{name:"DCH-3200",value:"DCH-3200"},{name:"DCX-3200",value:"DCX-3200"},{name:"DCT-3412",value:"DCT-3412"},{name:"DCT-3416",value:"DCT-3416"},{name:"DCT-6200",value:"DCT-6200"},{name:"DCT-6212",value:"DCT-6212"},{name:"DCT-6216",value:"DCT-6216"},{name:"QIP-6200",value:"QIP-6200"},{name:"QIP-7100",value:"QIP-7100"},{name:"PACE-550",value:"PACE-550"},{name:"PACE-779",value:"PACE-779"},{name:"SA3250HD",value:"SA3250HD"},{name:"SA4200HD",value:"SA4200HD"},{name:"SA4250HDC",value:"SA4250HDC"},{name:"SA8300HD",value:"SA8300HD"}],this.connectionTypes=[{name:"settings.capture.firewire.pointtopoint",value:0},{name:"settings.capture.firewire.broadcast",value:1}],this.speeds=[{name:"100Mbps",value:0},{name:"200Mbps",value:1},{name:"400Mbps",value:2},{name:"800Mbps",value:3}],this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:o=>{this.card.CardId&&o.bool?this.successCount++:!this.card.CardId&&o.int?(this.successCount++,this.card.CardId=o.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.error(o),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(o=>this.messages.devNotExist=o),s.get(this.messages.unknownName).subscribe(o=>this.messages.unknownName=o),s.get(this.messages.devInUse).subscribe(o=>this.messages.devInUse=o),s.get(this.messages.noDevSelected).subscribe(o=>this.messages.noDevSelected=o),s.get(this.messages.manuallyEnter).subscribe(o=>this.messages.manuallyEnter=o),s.get(this.models[0].name).subscribe(o=>this.models[0].name=o),s.get(this.models[1].name).subscribe(o=>this.models[1].name=o),s.get(this.connectionTypes[0].name).subscribe(o=>this.connectionTypes[0].name=o),s.get(this.connectionTypes[1].name).subscribe(o=>this.connectionTypes[1].name=o)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("FIREWIRE").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected}),this.card.VideoDevice){let e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.FirewireModel=this.currentDevice.FirewireModel,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_model",this.card.FirewireModel).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_connection",String(this.card.FirewireConnection)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_speed",String(this.card.FirewireSpeed)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-firewire"]],viewQuery:function(e,n){if(1&e&&(W(Yse,5),W(Zse,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","firewireform",1,"ml-3","mr-3"],["firewireform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","FirewireModel",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireModel",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireModel","ngModel"],["for","FirewireConnection",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireConnection",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireConnection","ngModel"],["for","FirewireSpeed",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireSpeed",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireSpeed","ngModel"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),M(2,"span",null,2),l(4,"p-card",3),_(5,Xse,2,3,"ng-template",4),_(6,eoe,0,0,"ng-template",5),_(7,ioe,55,64,"ng-template",6),_(8,roe,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,we,_e,_n,pt,qe,Ce],pipes:[ce],styles:[""]}),t})();const loe=["scroll"],ht=function(){return{minWidth:"400px"}};function coe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",38),g(2),m(3,"translate"),c(),l(4,"p-dropdown",39,40),C("ngModelChange",function(s){return v(e),p(2).scanRequest.FreqTable=s})("onChange",function(){return v(e),p(2).onFreqTableChange(!1)}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.freqtable_label")),a(2),q(A(12,ht)),d("options",e.freqTableSelect)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.freqtable_desc")," ")}}function uoe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-dropdown",42,43),C("ngModelChange",function(s){return v(e),p(2).scanRequest.FreqTable=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.country_label")),a(2),q(A(12,ht)),d("options",e.countryTable)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.scantype_dvbt_desc")," ")}}function doe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-dropdown",42,43),C("ngModelChange",function(s){return v(e),p(2).scanRequest.FreqTable=s}),c(),M(6,"small",4),c()}if(2&t){const e=p(2);a(2),S(f(3,7,"settings.channelscan.country_label")),a(2),q(A(9,ht)),d("options",e.networkTable)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0)}}function poe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"p-dropdown",45,46),C("ngModelChange",function(s){return v(e),p(2).scanRequest.Modulation=s})("onChange",function(){return v(e),p(2).onFreqTableChange(!0)}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),d("options",e.atscModulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.atscmodulation_desc")," ")}}function hoe(t,i){1&t&&(l(0,"div")(1,"small",51),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.channelscan.invalid_range")))}function moe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",47),g(2),m(3,"translate"),c(),l(4,"p-dropdown",48,49),C("ngModelChange",function(s){return v(e),p(2).scanRequest.FirstChan=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c(),_(9,hoe,4,3,"div",50),c()}if(2&t){const e=p(2);a(2),S(f(3,9,"settings.channelscan.firstchan_label")),a(2),q(A(13,ht)),d("options",e.channels)("ngModel",e.scanRequest.FirstChan)("editable",!1)("maxlength",0),a(3),T(" ",f(8,11,"settings.channelscan.firstchan_desc")," "),a(2),d("ngIf",e.channelCount<1)}}function foe(t,i){1&t&&(l(0,"div")(1,"small",51),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.channelscan.invalid_range")))}function goe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",52),g(2),m(3,"translate"),c(),l(4,"p-dropdown",53,54),C("ngModelChange",function(s){return v(e),p(2).scanRequest.LastChan=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c(),_(9,foe,4,3,"div",50),c()}if(2&t){const e=p(2);a(2),S(f(3,9,"settings.channelscan.lastchan_label")),a(2),q(A(13,ht)),d("options",e.channels)("ngModel",e.scanRequest.LastChan)("editable",!1)("maxlength",0),a(3),T(" ",f(8,11,"settings.channelscan.lastchan_desc")," "),a(2),d("ngIf",e.channelCount<1)}}function _oe(t,i){if(1&t&&(l(0,"div",0)(1,"label",30),g(2),m(3,"translate"),c(),l(4,"div",29),g(5),c(),l(6,"small",4),g(7),m(8,"translate"),c()()),2&t){const e=p(2);a(2),S(f(3,3,"settings.channelscan.chancount_label")),a(3),T(" ",e.calcCount()," \xa0 "),a(2),T(" ",f(8,5,"settings.channelscan.chancount_desc")," ")}}const Xs=function(){return["DVBT","DVBT2"]};function boe(t,i){if(1&t&&(l(0,"p-fieldset",37),m(1,"translate"),_(2,coe,9,13,"div",33),_(3,uoe,9,13,"div",33),_(4,doe,7,10,"div",33),_(5,poe,9,13,"div",33),_(6,moe,10,14,"div",33),_(7,goe,10,14,"div",33),_(8,_oe,9,7,"div",33),c()),2&t){const e=p();x("legend",f(1,10,"settings.channelscan.type.full")),d("toggleable",!1)("collapsed",!1),a(2),d("ngIf","ATSC"==e.scanSubType),a(1),d("ngIf",A(12,Xs).includes(e.scanSubType)),a(1),d("ngIf","DVBC"==e.scanSubType),a(1),d("ngIf","ATSC"==e.scanSubType),a(1),d("ngIf","ATSC"==e.scanSubType),a(1),d("ngIf","ATSC"==e.scanSubType),a(1),d("ngIf","ATSC"==e.scanSubType)}}function voe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",61),g(2),m(3,"translate"),c(),l(4,"p-dropdown",62,63),C("ngModelChange",function(s){return v(e),p(2).satTuning=s})("onChange",function(){return v(e),p(2).onSatTuningChange()}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.sattuning_label")),a(2),q(A(12,ht)),d("options",e.satTuningTable)("ngModel",e.satTuning)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.sattuning_desc")," ")}}function Coe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",64),g(2),m(3,"translate"),c(),l(4,"p-dropdown",65,66),C("ngModelChange",function(s){return v(e),p(2).scanRequest.Bandwidth=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.bandwidth_label")),a(2),q(A(12,ht)),d("options",e.bandwidthTable)("ngModel",e.scanRequest.Bandwidth)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.bandwidth_desc")," ")}}function yoe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",67),g(2),m(3,"translate"),c(),l(4,"p-dropdown",68,69),C("ngModelChange",function(s){return v(e),p(2).scanRequest.Polarity=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.polarity_label")),a(2),q(A(12,ht)),d("options",e.polarityTable)("ngModel",e.scanRequest.Polarity)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.polarity_desc")," ")}}function woe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",70),g(2),m(3,"translate"),c(),l(4,"p-dropdown",71,72),C("ngModelChange",function(s){return v(e),p(2).scanRequest.SymbolRate=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.symbolrate_label")),a(2),q(A(12,ht)),d("options",e.dvbcSymbolRateTable)("ngModel",e.scanRequest.SymbolRate)("editable",!0)("maxlength",8),a(3),T(" ",f(8,10,"settings.channelscan.dvbcsymbolrate_desc")," ")}}function Toe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",73),g(2),m(3,"translate"),c(),l(4,"p-dropdown",74,75),C("ngModelChange",function(s){return v(e),p(2).scanRequest.SymbolRate=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.symbolrate_label")),a(2),q(A(12,ht)),d("options",e.dvbsSymbolRateTable)("ngModel",e.scanRequest.SymbolRate)("editable",!0)("maxlength",8),a(3),T(" ",f(8,10,"settings.channelscan.dvbssymbolrate_desc")," ")}}function Soe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",76),g(2),m(3,"translate"),c(),l(4,"p-dropdown",77,78),C("ngModelChange",function(s){return v(e),p(2).scanRequest.Constellation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.constellation_label")),a(2),q(A(12,ht)),d("options",e.modulationTable)("ngModel",e.scanRequest.Constellation)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.constellation_desc")," ")}}function xoe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",79),g(2),m(3,"translate"),c(),l(4,"p-dropdown",80,81),C("ngModelChange",function(s){return v(e),p(2).scanRequest.Modulation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),d("options",e.modulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.Modulation_desc")," ")}}function Doe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",82),g(2),m(3,"translate"),c(),l(4,"p-dropdown",83,84),C("ngModelChange",function(s){return v(e),p(2).scanRequest.Modulation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),d("options",e.dvbsModulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.dvbsmodulation_desc")," ")}}function Moe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",85),g(2),m(3,"translate"),c(),l(4,"p-dropdown",86,87),C("ngModelChange",function(s){return v(e),p(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),d("options",e.dvbtModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.dvbtmodsys_desc")," ")}}function koe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",88),g(2),m(3,"translate"),c(),l(4,"p-dropdown",89,90),C("ngModelChange",function(s){return v(e),p(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),d("options",e.dvbcModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.dvbcmodsys_desc")," ")}}function Ioe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",91),g(2),m(3,"translate"),c(),l(4,"p-dropdown",92,93),C("ngModelChange",function(s){return v(e),p(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),d("options",e.dvbsModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.dvbsmodsys_desc")," ")}}function Eoe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",94),g(2),m(3,"translate"),c(),l(4,"p-dropdown",95,96),C("ngModelChange",function(s){return v(e),p(2).scanRequest.CodeRateLP=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.coderatelp_label")),a(2),q(A(12,ht)),d("options",e.fecTable)("ngModel",e.scanRequest.CodeRateLP)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.coderatelp_desc")," ")}}function Roe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",97),g(2),m(3,"translate"),c(),l(4,"p-dropdown",98,99),C("ngModelChange",function(s){return v(e),p(2).scanRequest.CodeRateHP=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.coderatehp_label")),a(2),q(A(12,ht)),d("options",e.fecTable)("ngModel",e.scanRequest.CodeRateHP)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.coderatehp_desc")," ")}}function Loe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",100),g(2),m(3,"translate"),c(),l(4,"p-dropdown",101,102),C("ngModelChange",function(s){return v(e),p(2).scanRequest.FEC=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.FEC_label")),a(2),q(A(12,ht)),d("options",e.fecTable)("ngModel",e.scanRequest.FEC)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.FEC_desc")," ")}}function Ooe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",103),g(2),m(3,"translate"),c(),l(4,"p-dropdown",104,105),C("ngModelChange",function(s){return v(e),p(2).scanRequest.TransmissionMode=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.transmissionmode_label")),a(2),q(A(12,ht)),d("options",e.transmissionModeTable)("ngModel",e.scanRequest.TransmissionMode)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.transmissionmode_desc")," ")}}function Aoe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",106),g(2),m(3,"translate"),c(),l(4,"p-dropdown",107,108),C("ngModelChange",function(s){return v(e),p(2).scanRequest.GuardInterval=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.guardinterval_label")),a(2),q(A(12,ht)),d("options",e.guardIntervalTable)("ngModel",e.scanRequest.GuardInterval)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.guardinterval_desc")," ")}}function Poe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",109),g(2),m(3,"translate"),c(),l(4,"p-dropdown",110,111),C("ngModelChange",function(s){return v(e),p(2).scanRequest.Hierarchy=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.hierarchy_label")),a(2),q(A(12,ht)),d("options",e.hierarchyTable)("ngModel",e.scanRequest.Hierarchy)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.hierarchy_desc")," ")}}function Foe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",112),g(2),m(3,"translate"),c(),l(4,"p-dropdown",113,114),C("ngModelChange",function(s){return v(e),p(2).scanRequest.RollOff=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const e=p(2);a(2),S(f(3,8,"settings.channelscan.rolloff_label")),a(2),q(A(12,ht)),d("options",e.rollOffTable)("ngModel",e.scanRequest.RollOff)("editable",!1)("maxlength",0),a(3),T(" ",f(8,10,"settings.channelscan.rolloff_desc")," ")}}const Tg=function(){return["DVBS","DVBS2"]},Noe=function(t){return{unit:t}},Voe=function(){return["DVBC","DVBS","DVBS2"]};function Boe(t,i){if(1&t){const e=I();l(0,"p-fieldset",37),m(1,"translate"),_(2,voe,9,13,"div",33),l(3,"div",0)(4,"label",55),g(5),m(6,"translate"),c(),l(7,"p-inputNumber",56),C("ngModelChange",function(s){return v(e),p().scanRequest.Frequency=s}),c(),l(8,"small",4),M(9,"div",57),c()(),_(10,Coe,9,13,"div",33),_(11,yoe,9,13,"div",33),_(12,woe,9,13,"div",33),_(13,Toe,9,13,"div",33),l(14,"div",0)(15,"label",58),g(16),m(17,"translate"),c(),l(18,"p-dropdown",59,60),C("ngModelChange",function(s){return v(e),p().scanRequest.Inversion=s}),c(),l(20,"small",4),g(21),m(22,"translate"),c()(),_(23,Soe,9,13,"div",33),_(24,xoe,9,13,"div",33),_(25,Doe,9,13,"div",33),_(26,Moe,9,13,"div",33),_(27,koe,9,13,"div",33),_(28,Ioe,9,13,"div",33),_(29,Eoe,9,13,"div",33),_(30,Roe,9,13,"div",33),_(31,Loe,9,13,"div",33),_(32,Ooe,9,13,"div",33),_(33,Aoe,9,13,"div",33),_(34,Poe,9,13,"div",33),_(35,Foe,9,13,"div",33),c()}if(2&t){const e=p();x("legend",f(1,35,"settings.channelscan.type.fulltuned")),d("toggleable",!1)("collapsed",!1),a(2),d("ngIf","DVBS2"==e.scanSubType),a(3),S(f(6,37,"settings.channelscan.frequency_label")),a(2),d("ngModel",e.scanRequest.Frequency)("min",0)("max",999999999),a(2),d("translate","settings.channelscan.frequency_desc")("translateParams",U(44,Noe,A(43,Tg).includes(e.scanSubType)?"kHZ":"Hz")),a(1),d("ngIf",A(46,Xs).includes(e.scanSubType)),a(1),d("ngIf",A(47,Tg).includes(e.scanSubType)),a(1),d("ngIf","DVBC"==e.scanSubType),a(1),d("ngIf",A(48,Tg).includes(e.scanSubType)),a(3),S(f(17,39,"settings.channelscan.inversion_label")),a(2),q(A(49,ht)),d("options",e.inversionTable)("ngModel",e.scanRequest.Inversion)("editable",!1)("maxlength",0),a(3),T(" ",f(22,41,"settings.channelscan.inversion_desc")," "),a(2),d("ngIf",A(50,Xs).includes(e.scanSubType)),a(1),d("ngIf","DVBC"==e.scanSubType),a(1),d("ngIf","DVBS2"==e.scanSubType),a(1),d("ngIf","DVBT2"==e.scanSubType),a(1),d("ngIf","DVBC"==e.scanSubType),a(1),d("ngIf","DVBS2"==e.scanSubType),a(1),d("ngIf",A(51,Xs).includes(e.scanSubType)),a(1),d("ngIf",A(52,Xs).includes(e.scanSubType)),a(1),d("ngIf",A(53,Voe).includes(e.scanSubType)),a(1),d("ngIf",A(54,Xs).includes(e.scanSubType)),a(1),d("ngIf",A(55,Xs).includes(e.scanSubType)),a(1),d("ngIf",A(56,Xs).includes(e.scanSubType)),a(1),d("ngIf","DVBS2"==e.scanSubType)}}function Hoe(t,i){if(1&t){const e=I();l(0,"p-fieldset",37),m(1,"translate"),l(2,"div",0)(3,"label",115),g(4),m(5,"translate"),c(),l(6,"p-dropdown",116,117),C("ngModelChange",function(s){return v(e),p().scanRequest.ScanId=s}),c(),M(8,"small",4),c()()}if(2&t){const e=p();x("legend",f(1,10,"settings.channelscan.type.import")),d("toggleable",!1)("collapsed",!1),a(4),S(f(5,12,"settings.channelscan.scanimport_label")),a(2),q(A(14,ht)),d("options",e.scans)("ngModel",e.scanRequest.ScanId)("editable",!1)("maxlength",0)}}function qoe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",122),g(2),m(3,"translate"),c(),l(4,"p-dropdown",123,124),C("ngModelChange",function(s){return v(e),p(2).scanRequest.MplexId=s}),c(),M(6,"small",4),c()}if(2&t){const e=p(2);a(2),S(f(3,7,"settings.channelscan.transport_label")),a(2),q(A(9,ht)),d("options",e.multiplex)("ngModel",e.scanRequest.MplexId)("editable",!1)("maxlength",0)}}function Goe(t,i){if(1&t){const e=I();l(0,"p-fieldset",37),m(1,"translate"),_(2,qoe,7,10,"div",33),l(3,"div",0)(4,"p-checkbox",118,119),C("ngModelChange",function(s){return v(e),p().scanRequest.IgnoreSignalTimeout=s}),m(6,"translate"),c(),l(7,"small",4),g(8),m(9,"translate"),c()(),l(10,"div",0)(11,"p-checkbox",120,121),C("ngModelChange",function(s){return v(e),p().scanRequest.FollowNITSetting=s}),m(13,"translate"),c(),l(14,"small",4),g(15),m(16,"translate"),c()()()}if(2&t){const e=p();x("legend",f(1,12,"settings.channelscan.type.transports")),d("toggleable",!1)("collapsed",!1),a(2),d("ngIf","ONETRANSPORT"==e.scanRequest.ScanType),a(2),x("label",f(6,14,"settings.channelscan.ignoresignaltimeout_label")),d("ngModel",e.scanRequest.IgnoreSignalTimeout)("binary",!0),a(4),T(" ",f(9,16,"settings.channelscan.ignoresignaltimeout_desc")," "),a(3),x("label",f(13,18,"settings.channelscan.follownitsetting_label")),d("ngModel",e.scanRequest.FollowNITSetting)("binary",!0),a(4),T(" ",f(16,20,"settings.channelscan.follownitsetting_desc")," ")}}function Uoe(t,i){1&t&&(l(0,"small",4),g(1),m(2,"translate"),c()),2&t&&(a(1),T(" ",f(2,1,"settings.channelscan.scan_desc")," "))}function zoe(t,i){if(1&t&&(l(0,"div",0)(1,"div",125)(2,"b"),g(3),c(),g(4," \xa0 "),c(),M(5,"br"),c()),2&t){const e=p();a(3),S(e.scanStatus.DialogMsg)}}function joe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"input",126,127),C("ngModelChange",function(s){return v(e),p().dialogResponse.DialogString=s}),c()()}if(2&t){const e=p();a(1),d("ngModel",e.dialogResponse.DialogString)}}function $oe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"label",128),g(2),m(3,"translate"),c(),l(4,"p-dropdown",129,3),C("ngModelChange",function(s){return v(e),p().buttonText=s}),c()()}if(2&t){const e=p();a(2),S(f(3,7,"settings.channelscan.scanimport_option")),a(2),q(A(9,ht)),d("options",e.scanStatus.DialogButtons)("ngModel",e.buttonText)("editable",!1)("maxlength",0)}}function Woe(t,i){if(1&t){const e=I();l(0,"div",0)(1,"p-button",130),C("onClick",function(){return v(e),p().respondDialog()}),m(2,"translate"),c()()}2&t&&(a(1),x("label",f(2,1,"common.submit")))}const Sg=function(){return{height:"20px"}},Koe=function(){return{width:"100%",height:"400px"}};class j{constructor(i,e){this.label=i,this.value=e}}class Po{constructor(i,e,n,s,o,r,u){this.label=i,this.Frequency=e,this.Polarity=n,this.SymbolRate=s,this.Modulation=o,this.ModSys=r,this.FEC=u}}let Qoe=(()=>{class t{constructor(e,n,s,o){this.translate=e,this.channelService=n,this.captureCardService=s,this.setupService=o,this.serviceValues=[new j("settings.channelscan.tv","tv"),new j("settings.channelscan.tvradio","audio"),new j("settings.channelscan.all","all")],this.scanSubType="",this.scanTypes=[],this.freqTableSelect=[new j("settings.channelscan.freq.usa.broadcast","us"),new j("settings.channelscan.freq.usa.cablehi","uscablehigh"),new j("settings.channelscan.freq.usa.cablehrchi","ushrchigh"),new j("settings.channelscan.freq.usa.cableirchi","usirchigh"),new j("settings.channelscan.freq.usa.cable","uscable"),new j("settings.channelscan.freq.usa.cablehrc","ushrc"),new j("settings.channelscan.freq.usa.cableirc","usirc")],this.countryTable=[new j("settings.channelscan.country.au","au"),new j("settings.channelscan.country.cl","cl"),new j("settings.channelscan.country.cz","cz"),new j("settings.channelscan.country.dk","dk"),new j("settings.channelscan.country.fi","fi"),new j("settings.channelscan.country.fr","fr"),new j("settings.channelscan.country.de","de"),new j("settings.channelscan.country.gr","gr"),new j("settings.channelscan.country.il","il"),new j("settings.channelscan.country.it","it"),new j("settings.channelscan.country.nl","nl"),new j("settings.channelscan.country.nz","nz"),new j("settings.channelscan.country.es","es"),new j("settings.channelscan.country.se","se"),new j("settings.channelscan.country.gb","gb")],this.networkTable=[new j("settings.channelscan.country.de","de"),new j("settings.channelscan.country.nl","nl"),new j("settings.channelscan.country.gb","gb")],this.satTuningTable=[new Po("(Select Satellite)",0,"h","27500000","qpsk","DVB-S2","auto"),new Po("Thor 5/6/7 0.8W",10872e3,"h","25000000","8psk","DVB-S2","3/4"),new Po("Eutelsat 7.0E",10721e3,"h","22000000","qpsk","DVB-S","3/4"),new Po("Hotbird 13.0E",12015e3,"h","27500000","8psk","DVB-S2","3/4"),new Po("Astra-1 19.2E",11229e3,"v","22000000","8psk","DVB-S2","2/3"),new Po("Astra-3 23.5E",12031500,"h","27500000","qpsk","DVB-S2","auto"),new Po("Astra-2 28.2E",10714e3,"h","22000000","qpsk","DVB-S","5/6")],this.atscModulationTable=[new j("settings.channelscan.modulation.atsc.vsb8","vsb8"),new j("settings.channelscan.modulation.atsc.qam256","qam256"),new j("settings.channelscan.modulation.atsc.qam128","qam128"),new j("settings.channelscan.modulation.atsc.qam64","qam64")],this.bandwidthTable=[new j("settings.channelscan.auto","a"),new j("6 MHz","6"),new j("7 MHz","7"),new j("8 MHz","8")],this.inversionTable=[new j("settings.channelscan.auto","a"),new j("settings.channelscan.on","1"),new j("settings.channelscan.off","0")],this.modulationTable=[new j("settings.channelscan.auto","auto"),new j("QPSK","qpsk"),new j("QAM-16","qam_16"),new j("QAM-32","qam_32"),new j("QAM-64","qam_64"),new j("QAM-128","qam_128"),new j("QAM-256","qam_256")],this.dvbsModulationTable=[new j("QPSK","qpsk"),new j("8PSK","8psk"),new j("QAM-16","qam_16"),new j("16PSK","16psk"),new j("32PSK","32psk")],this.dvbtModSysTable=[new j("DVB-T","DVB-T"),new j("DVB-T2","DVB-T2")],this.dvbcModSysTable=[new j("DVB-C/A","DVB-C/A"),new j("DVB-C/B","DVB-C/B"),new j("DVB-C/C","DVB-C/C")],this.dvbsModSysTable=[new j("DVB-S","DVB-S"),new j("DVB-S2","DVB-S2")],this.polarityTable=[new j("settings.channelscan.polarity.horizontal","h"),new j("settings.channelscan.polarity.vertical","v"),new j("settings.channelscan.polarity.right","r"),new j("settings.channelscan.polarity.left","l")],this.fecTable=[new j("settings.channelscan.auto","auto"),new j("settings.channelscan.none","none"),new j("1/2","1/2"),new j("2/3","2/3"),new j("3/4","3/4"),new j("4/5","4/5"),new j("5/6","5/6"),new j("6/2","6/2"),new j("7/8","7/8"),new j("8/9","8/9"),new j("3/5","3/5"),new j("9/10","9/10")],this.transmissionModeTable=[new j("settings.channelscan.auto","a"),new j("2K","2"),new j("8K","8")],this.guardIntervalTable=[new j("settings.channelscan.auto","auto"),new j("1/4","1/4"),new j("1/8","1/8"),new j("1/16","1/16"),new j("1/32","1/32")],this.hierarchyTable=[new j("settings.channelscan.auto","a"),new j("settings.channelscan.none","n"),new j("1","1"),new j("2","2"),new j("4","4")],this.dvbcSymbolRateTable=[new j("3450000","3450000"),new j("5000000","5000000"),new j("5900000","5900000"),new j("6875000","6875000"),new j("6900000","6900000"),new j("6950000","6950000")],this.dvbsSymbolRateTable=[new j("3333000","3333000"),new j("22000000","22000000"),new j("22500000","22500000"),new j("23000000","23000000"),new j("27500000","27500000"),new j("28000000","28000000"),new j("28500000","28500000"),new j("29500000","29500000"),new j("29700000","29700000"),new j("29900000","29900000")],this.rollOffTable=[new j("0.35","0.35"),new j("0.20","0.20"),new j("0.25","0.25"),new j("Auto","auto")],this.lockDesc="settings.channelscan.lock_value",this.nolockDesc="settings.channelscan.nolock_value",this.procDesc="processed",this.unprocDesc="unprocessed",this.satTuning=this.satTuningTable[0],this.scanRequest={CardId:0,DesiredServices:"tv",FreeToAirOnly:!0,ChannelNumbersOnly:!1,CompleteChannelsOnly:!0,FullChannelSearch:!0,RemoveDuplicates:!0,AddFullTS:!1,TestDecryptable:!1,ScanType:"",FreqTable:"",Modulation:"",FirstChan:"",LastChan:"",ScanId:0,IgnoreSignalTimeout:!1,FollowNITSetting:!1,MplexId:0,Frequency:0,Bandwidth:"",Polarity:"",SymbolRate:"",Inversion:"",Constellation:"",ModSys:"",CodeRateLP:"",CodeRateHP:"",FEC:"",TransmissionMode:"",GuardInterval:"",Hierarchy:"",RollOff:""},this.emptyScanStatus={CardId:0,Status:"",SignalLock:!1,Progress:0,SignalNoise:0,SignalStrength:0,StatusLog:"",StatusText:"",StatusTitle:"",DialogMsg:"",DialogInputReq:!1,DialogButtons:[]},this.dialogResponse={CardId:0,DialogString:"",DialogButton:0},this.buttonText="",this.scanStatus=Object.assign({},this.emptyScanStatus),this.channels=[],this.channelCount=1,this.refreshCount=0,this.helpText="",this.scans=[],this.multiplex=[],this.tableTranslate(this.serviceValues),this.tableTranslate(this.freqTableSelect),this.tableTranslate(this.countryTable),this.tableTranslate(this.networkTable),this.tableTranslate(this.atscModulationTable),this.tableTranslate(this.bandwidthTable),this.tableTranslate(this.inversionTable),this.tableTranslate(this.modulationTable),this.tableTranslate(this.fecTable),this.tableTranslate(this.transmissionModeTable),this.tableTranslate(this.guardIntervalTable),this.tableTranslate(this.hierarchyTable),this.tableTranslate(this.polarityTable),e.get(this.lockDesc).subscribe(r=>this.lockDesc=r),e.get(this.nolockDesc).subscribe(r=>this.nolockDesc=r)}tableTranslate(e){e.forEach(n=>{n.label.startsWith("settings.")&&this.translate.get(n.label).subscribe(s=>n.label=s)})}ngAfterViewInit(){this.refreshStatus(!1),this.getScanList(),this.getmultiplexList(),this.iconnection.scanComponent=this}ngOnInit(){this.iconnection.deviceFree.subscribe(e=>{this.captureCardService.GetCardSubType(this.card.CardId).subscribe(n=>{this.cardSubType=n.CardSubType,this.buildScanTypeList(),this.onFreqTableChange(!1),"DVBT2"==this.cardSubType.InputType&&(this.scanRequest.ModSys="DVB-T2"),"DVBS2"==this.cardSubType.InputType&&(this.scanRequest.ModSys="DVB-S2"),"DVBC"==this.cardSubType.InputType&&(this.scanRequest.SymbolRate="6900000"),["DVBS","DVBS2"].includes(this.cardSubType.InputType)&&(this.scanRequest.SymbolRate="27500000")})}),this.iconnection.captureDeviceList.CaptureDeviceList.CaptureDevices.length>0&&!this.cardSubType&&this.iconnection.deviceFree.next(!0)}buildScanTypeList(){let e=!1;switch(this.helpText="",this.scanSubType=this.cardSubType.InputType,this.cardSubType.InputType){case"V4L":case"MPEG":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"});break;case"DVBT":case"DVBT2":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),this.helpText="settings.channelscan.scantype_dvbt_desc",e=!0;break;case"DVBC":this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"DVBS":case"DVBS2":this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"ATSC":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"HDHOMERUN":this.cardSubType.HDHRdoesDVBC?(this.scanSubType="DVBC",this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"})):this.cardSubType.HDHRdoesDVB?(this.scanSubType="DVBT",this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.helpText="settings.channelscan.scantype_dvbt_desc"):(this.scanSubType="ATSC",this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"})),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),this.scanTypes.push({label:"settings.channelscan.type.hdhrimport",value:"HDHRIMPORT"}),e=!0;break;case"VBOX":this.scanTypes.push({label:"settings.channelscan.type.vboximport",value:"VBOXIMPORT"});break;case"FREEBOX":this.scanTypes.push({label:"settings.channelscan.type.m3umpts",value:"MPTSIMPORT"}),this.scanTypes.push({label:"settings.channelscan.type.m3u",value:"M3UIMPORT"});break;case"ASI":this.scanTypes.push({label:"settings.channelscan.type.asi",value:"ASI"});break;case"EXTERNAL":this.scanTypes.push({label:"settings.channelscan.type.mpts",value:"MPTS"}),this.scanTypes.push({label:"settings.channelscan.type.externimport",value:"EXTIMPORT"});break;case"ERROR_PROBE":this.scanTypes.push({label:"settings.channelscan.type.errorprobe",value:"ERROR"});break;default:this.scanTypes.push({label:"settings.channelscan.type.erroropen",value:"ERROR"})}e&&(this.scanTypes.push({label:"settings.channelscan.type.alltransport",value:"ALLTRANSPORT"}),this.scanTypes.push({label:"settings.channelscan.type.onetransport",value:"ONETRANSPORT"})),this.scanTypes.forEach(n=>this.translate.get(n.label).subscribe(s=>n.label=s)),this.helpText&&this.translate.get(this.helpText).subscribe(n=>this.helpText=n)}onScanTypeChange(){this.scanRequest.Frequency="FULLTUNED"==this.scanRequest.ScanType?this.videoSourceLookup[this.card.SourceId].ScanFrequency:0,setTimeout(()=>this.onFreqTableChange(!1),100)}onFreqTableChange(e){this.channels=[];let n="";if(this.scanRequest.FreqTable.startsWith("us")){if(e||("us"==this.scanRequest.FreqTable?this.scanRequest.Modulation="vsb8":"vsb8"==this.scanRequest.Modulation&&(this.scanRequest.Modulation="qam256")),"vsb8"==this.scanRequest.Modulation?n="ATSC Channel ":"qam256"==this.scanRequest.Modulation?n="QAM-256 Channel ":"qam128"==this.scanRequest.Modulation?n="QAM-128 Channel ":"qam64"==this.scanRequest.Modulation&&(n="QAM-64 Channel "),"us"==this.scanRequest.FreqTable){if("vsb8"==this.scanRequest.Modulation)for(let s=2;s<=36;s++)this.channels.push(n+s)}else if(this.scanRequest.FreqTable.match(/us.*high/))for(let s=78;s<=158;s++)this.channels.push(n+s);else if(this.scanRequest.FreqTable.match(/^us/)){this.channels.push(n+"T-13"),this.channels.push(n+"T-14");for(let s=2;s<=158;s++)this.channels.push(n+s)}this.channels.length>0?setTimeout(()=>{this.scanRequest.FirstChan=this.channels[0],this.scanRequest.LastChan=this.channels[this.channels.length-1]},100):(this.scanRequest.FirstChan="",this.scanRequest.LastChan="")}}onSatTuningChange(){Object.assign(this.scanRequest,this.satTuning)}calcCount(){return this.channelCount=this.channels.findIndex(e=>e==this.scanRequest.LastChan)-this.channels.findIndex(e=>e==this.scanRequest.FirstChan)+1}getScanList(){this.channelService.GetScanList(this.card.SourceId).subscribe(e=>{this.scans=e.ScanList.Scans,this.scans.forEach(n=>{var s=new Date(n.ScanDate);n.label=s.toLocaleDateString()+" "+s.toLocaleTimeString()+" "+(n.Processed?this.procDesc:this.unprocDesc)})})}getmultiplexList(){this.channelService.GetVideoMultiplexList({SourceID:this.card.SourceId}).subscribe(e=>{this.multiplex=e.VideoMultiplexList.VideoMultiplexes})}startScan(){if(this.iconnection.currentForm&&this.iconnection.currentForm.form.dirty)return this.iconnection.work.startScan=!0,void this.iconnection.saveForm();this.scanRequest.CardId=this.card.CardId,this.channelService.StartScan(this.scanRequest).subscribe(e=>{setTimeout(()=>this.refreshStatus(!0),500)})}stopScan(){this.channelService.StopScan(this.card.CardId).subscribe()}respondDialog(){this.dialogResponse.CardId=this.card.CardId,this.dialogResponse.DialogButton=this.scanStatus.DialogButtons.indexOf(this.buttonText),this.channelService.SendScanDialogResponse(this.dialogResponse).subscribe(e=>this.iconnection.loadChannels())}refreshStatus(e){this.channelService.GetScanStatus().subscribe(n=>{this.scanStatus=n.ScanStatus,this.scrollpanel.scrollTop(1e5),"RUNNING"==this.scanStatus.Status?this.refreshCount=5:this.refreshCount--,this.refreshCount>0?setTimeout(()=>this.refreshStatus(!0),500):e&&this.iconnection.loadChannels()})}}return t.\u0275fac=function(e){return new(e||t)(D(Oe),D(Ao),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-channelscan"]],viewQuery:function(e,n){if(1&e&&W(loe,5),2&e){let s;V(s=B())&&(n.scrollpanel=s.first)}},inputs:{card:"card",cardList:"cardList",iconnection:"iconnection",videoSourceLookup:"videoSourceLookup"},decls:131,vars:137,consts:[[1,"form-group","field"],["for","DesiredServices",1,"label","block"],["optionLabel","label","optionValue","value","name","DesiredServices",3,"options","ngModel","editable","maxlength","ngModelChange"],["DesiredServices","ngModel"],[1,"block"],["inputId","FreeToAirOnly","name","FreeToAirOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FreeToAirOnly","ngModel"],["inputId","ChannelNumbersOnly","name","ChannelNumbersOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["ChannelNumbersOnly","ngModel"],["inputId","CompleteChannelsOnly","name","CompleteChannelsOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["CompleteChannelsOnly","ngModel"],["inputId","FullChannelSearch","name","FullChannelSearch",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FullChannelSearch","ngModel"],["inputId","RemoveDuplicates","name","RemoveDuplicates",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["RemoveDuplicates","ngModel"],["inputId","AddFullTS","name","AddFullTS",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AddFullTS","ngModel"],["inputId","TestDecryptable","name","TestDecryptable",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["TestDecryptable","ngModel"],["for","ScanType",1,"label","block"],["optionLabel","label","optionValue","value","name","ScanType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["ScanType","ngModel"],["class","mb-4 w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"grid"],[2,"display","flex","align-items","center"],["icon","pi pi-play","iconPos","left",3,"label","disabled","onClick"],["class","block",4,"ngIf"],[1,"mb-4","w-full",3,"legend","collapsed","toggleable"],[1,"col-6"],[1,"col-10","bg-blue-100","text-gray-900"],[1,"label","block"],[1,"col-10"],[3,"value"],["class","form-group field",4,"ngIf"],["icon","pi pi-times-circle","iconPos","left","styleClass","p-button-danger",3,"label","disabled","onClick"],[1,"col-6",2,"white-space","pre-line"],["scroll",""],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","FreqTable",1,"label","block"],["optionLabel","label","optionValue","value","name","FreqTable",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["FreqTable","ngModel"],["for","Country",1,"label","block"],["optionLabel","label","optionValue","value","name","Country",3,"options","ngModel","editable","maxlength","ngModelChange"],["Country","ngModel"],["for","atscModulation",1,"label","block"],["optionLabel","label","optionValue","value","name","atscModulation",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["atscModulation","ngModel"],["for","FirstChan",1,"label","block"],["name","FirstChan",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirstChan","ngModel"],[4,"ngIf"],[1,"p-error","block"],["for","LastChan",1,"label","block"],["name","LastChan",3,"options","ngModel","editable","maxlength","ngModelChange"],["LastChan","ngModel"],["for","Frequency",1,"label","block"],["name","Frequency","id","Frequency",3,"ngModel","min","max","ngModelChange"],[3,"translate","translateParams"],["for","Inversion",1,"label","block"],["name","Inversion","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Inversion","ngModel"],["for","SatTuning",1,"label","block"],["name","SatTuning","optionLabel","label",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SatTuning","ngModel"],["for","Bandwidth",1,"label","block"],["name","Bandwidth","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Bandwidth","ngModel"],["for","Polarity",1,"label","block"],["name","Polarity","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Polarity","ngModel"],["for","dvbcSymbolRate",1,"label","block"],["name","dvbcSymbolRate","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["dvbcSymbolRate","ngModel"],["for","dvbsSymbolRate",1,"label","block"],["name","dvbsSymbolRate","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["dvbsSymbolRate","ngModel"],["for","Constellation",1,"label","block"],["name","Constellation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Constellation","ngModel"],["for","Modulation",1,"label","block"],["name","Modulation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Modulation","ngModel"],["for","DVBSModulation",1,"label","block"],["name","DVBSModulation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBSModulation","ngModel"],["for","DVBTModSys",1,"label","block"],["name","DVBTModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBTModSys","ngModel"],["for","DVBCModSys",1,"label","block"],["name","DVBCModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBCModSys","ngModel"],["for","DVBSModSys",1,"label","block"],["name","DVBSModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBSModSys","ngModel"],["for","CodeRateLP",1,"label","block"],["name","CodeRateLP","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["CodeRateLP","ngModel"],["for","CodeRateHP",1,"label","block"],["name","CodeRateHP","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["CodeRateHP","ngModel"],["for","FEC",1,"label","block"],["name","FEC","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["FEC","ngModel"],["for","TransmissionMode",1,"label","block"],["name","TransmissionMode","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["TransmissionMode","ngModel"],["for","GuardInterval",1,"label","block"],["name","GuardInterval","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["GuardInterval","ngModel"],["for","Hierarchy",1,"label","block"],["name","Hierarchy","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Hierarchy","ngModel"],["for","RollOff",1,"label","block"],["name","RollOff","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["RollOff","ngModel"],["for","ScanId",1,"label","block"],["optionLabel","label","optionValue","ScanId","name","ScanId",3,"options","ngModel","editable","maxlength","ngModelChange"],["ScanId","ngModel"],["inputId","IgnoreSignalTimeout","name","IgnoreSignalTimeout",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["IgnoreSignalTimeout","ngModel"],["inputId","FollowNITSetting","name","FollowNITSetting",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FollowNITSetting","ngModel"],["for","MplexId",1,"label","block"],["optionLabel","Description","optionValue","MplexId","name","MplexId",3,"options","ngModel","editable","maxlength","ngModelChange"],["MplexId","ngModel"],[1,"col-10",2,"color","black","background-color","pink"],["pInputText","","id","DialogString","name","DialogString",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["InputName","ngModel"],["for","DialogButtons",1,"label","block"],["name","DialogButtons",3,"options","ngModel","editable","maxlength","ngModelChange"],["styleClass","p-button-info",1,"gap-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"label",1),g(2),m(3,"translate"),c(),l(4,"p-dropdown",2,3),C("ngModelChange",function(o){return n.scanRequest.DesiredServices=o}),c(),l(6,"small",4),g(7),m(8,"translate"),c()(),l(9,"div",0)(10,"p-checkbox",5,6),C("ngModelChange",function(o){return n.scanRequest.FreeToAirOnly=o}),m(12,"translate"),c(),l(13,"small",4),g(14),m(15,"translate"),c()(),l(16,"div",0)(17,"p-checkbox",7,8),C("ngModelChange",function(o){return n.scanRequest.ChannelNumbersOnly=o}),m(19,"translate"),c(),l(20,"small",4),g(21),m(22,"translate"),c()(),l(23,"div",0)(24,"p-checkbox",9,10),C("ngModelChange",function(o){return n.scanRequest.CompleteChannelsOnly=o}),m(26,"translate"),c(),l(27,"small",4),g(28),m(29,"translate"),c()(),l(30,"div",0)(31,"p-checkbox",11,12),C("ngModelChange",function(o){return n.scanRequest.FullChannelSearch=o}),m(33,"translate"),c(),l(34,"small",4),g(35),m(36,"translate"),c()(),l(37,"div",0)(38,"p-checkbox",13,14),C("ngModelChange",function(o){return n.scanRequest.RemoveDuplicates=o}),m(40,"translate"),c(),l(41,"small",4),g(42),m(43,"translate"),c()(),l(44,"div",0)(45,"p-checkbox",15,16),C("ngModelChange",function(o){return n.scanRequest.AddFullTS=o}),m(47,"translate"),c(),l(48,"small",4),g(49),m(50,"translate"),c()(),l(51,"div",0)(52,"p-checkbox",17,18),C("ngModelChange",function(o){return n.scanRequest.TestDecryptable=o}),m(54,"translate"),c(),l(55,"small",4),g(56),m(57,"translate"),c()(),l(58,"div",0)(59,"label",19),g(60),m(61,"translate"),c(),l(62,"p-dropdown",20,21),C("ngModelChange",function(o){return n.scanRequest.ScanType=o})("onChange",function(){return n.onScanTypeChange()}),c(),l(64,"small",4),g(65),c()(),_(66,boe,9,13,"p-fieldset",22),_(67,Boe,36,57,"p-fieldset",22),_(68,Hoe,9,15,"p-fieldset",22),_(69,Goe,17,22,"p-fieldset",22),M(70,"br")(71,"br"),l(72,"div",0)(73,"div",23)(74,"div",24)(75,"p-button",25),C("onClick",function(){return n.startScan()}),m(76,"translate"),c()()(),_(77,Uoe,3,3,"small",26),c(),l(78,"p-fieldset",27),m(79,"translate"),l(80,"div",23)(81,"div",28)(82,"div",0)(83,"div",29)(84,"b"),g(85),c()()(),l(86,"div",0)(87,"label",30),g(88),m(89,"translate"),c(),l(90,"div",29),g(91),c()(),l(92,"div",0)(93,"label",30),g(94),m(95,"translate"),c(),l(96,"div",29),g(97),c()(),l(98,"div",0)(99,"label",30),g(100),m(101,"translate"),c(),l(102,"div",31),M(103,"p-progressBar",32),c()(),l(104,"div",0)(105,"label",30),g(106),m(107,"translate"),c(),l(108,"div",31),M(109,"p-progressBar",32),c()(),l(110,"div",0)(111,"label",30),g(112),m(113,"translate"),c(),l(114,"div",31),M(115,"p-progressBar",32),c()(),M(116,"br"),_(117,zoe,6,1,"div",33),_(118,joe,3,1,"div",33),_(119,$oe,6,10,"div",33),_(120,Woe,3,3,"div",33),M(121,"br"),l(122,"div",0)(123,"div",24)(124,"p-button",34),C("onClick",function(){return n.stopScan()}),m(125,"translate"),c()(),M(126,"small",4),c()(),l(127,"div",35)(128,"p-scrollPanel",null,36),g(130),c()()()()),2&e&&(a(2),S(f(3,81,"settings.channelscan.services_label")),a(2),q(A(131,ht)),d("options",n.serviceValues)("ngModel",n.scanRequest.DesiredServices)("editable",!1)("maxlength",0),a(3),T(" ",f(8,83,"settings.channelscan.services_desc")," "),a(3),x("label",f(12,85,"settings.channelscan.ftaonly_label")),d("ngModel",n.scanRequest.FreeToAirOnly)("binary",!0),a(4),T(" ",f(15,87,"settings.channelscan.ftaonly_desc")," "),a(3),x("label",f(19,89,"settings.channelscan.channelnumbersonly_label")),d("ngModel",n.scanRequest.ChannelNumbersOnly)("binary",!0),a(4),T(" ",f(22,91,"settings.channelscan.channelnumbersonly_desc")," "),a(3),x("label",f(26,93,"settings.channelscan.completeonly_label")),d("ngModel",n.scanRequest.CompleteChannelsOnly)("binary",!0),a(4),T(" ",f(29,95,"settings.channelscan.completeonly_desc")," "),a(3),x("label",f(33,97,"settings.channelscan.fullsearch_label")),d("ngModel",n.scanRequest.FullChannelSearch)("binary",!0),a(4),T(" ",f(36,99,"settings.channelscan.fullsearch_desc")," "),a(3),x("label",f(40,101,"settings.channelscan.removeduplicates_label")),d("ngModel",n.scanRequest.RemoveDuplicates)("binary",!0),a(4),T(" ",f(43,103,"settings.channelscan.removeduplicates_desc")," "),a(3),x("label",f(47,105,"settings.channelscan.addfullts_label")),d("ngModel",n.scanRequest.AddFullTS)("binary",!0),a(4),T(" ",f(50,107,"settings.channelscan.addfullts_desc")," "),a(3),x("label",f(54,109,"settings.channelscan.testdecryptable_label")),d("ngModel",n.scanRequest.TestDecryptable)("binary",!0),a(4),T(" ",f(57,111,"settings.channelscan.testdecryptable_desc")," "),a(4),S(f(61,113,"settings.channelscan.scantype_label")),a(2),q(A(132,ht)),d("options",n.scanTypes)("ngModel",n.scanRequest.ScanType)("editable",!1)("maxlength",0),a(3),T(" ",n.helpText," "),a(1),d("ngIf","FULL"==n.scanRequest.ScanType),a(1),d("ngIf","FULLTUNED"==n.scanRequest.ScanType),a(1),d("ngIf","IMPORT"==n.scanRequest.ScanType),a(1),d("ngIf","ALLTRANSPORT"==n.scanRequest.ScanType||"ONETRANSPORT"==n.scanRequest.ScanType),a(6),x("label",f(76,115,"settings.channelscan.scan_label")),d("disabled",n.setupService.schedulingEnabled||"RUNNING"==n.scanStatus.Status||!n.card.SourceId),a(2),d("ngIf",n.iconnection.currentForm&&n.iconnection.currentForm.form.dirty||!n.card.SourceId),a(1),x("legend",f(79,117,"settings.channelscan.status_title")),d("collapsed",!0)("toggleable",!1)("collapsed",!1),a(7),T("",n.scanStatus.StatusTitle," \xa0"),a(3),S(f(89,119,"settings.channelscan.status_label")),a(3),T(" ",n.scanStatus.StatusText," \xa0 "),a(3),S(f(95,121,"settings.channelscan.lock_label")),a(3),T(" ",n.scanStatus.SignalLock?n.lockDesc:n.nolockDesc," \xa0 "),a(3),S(f(101,123,"settings.channelscan.progress_label")),a(3),q(A(133,Sg)),d("value",n.scanStatus.Progress),a(3),S(f(107,125,"settings.channelscan.noise_label")),a(3),q(A(134,Sg)),d("value",n.scanStatus.SignalNoise),a(3),S(f(113,127,"settings.channelscan.strength_label")),a(3),q(A(135,Sg)),d("value",n.scanStatus.SignalStrength),a(2),d("ngIf",n.scanStatus.DialogMsg),a(1),d("ngIf",n.scanStatus.DialogInputReq),a(1),d("ngIf",n.scanStatus.DialogButtons.length>0),a(1),d("ngIf",n.scanStatus.DialogButtons.length>0||n.scanStatus.DialogInputReq),a(4),x("label",f(125,129,"settings.channelscan.stop_label")),d("disabled","RUNNING"!=n.scanStatus.Status||n.scanStatus.DialogButtons.length>0),a(4),q(A(136,Koe)),a(2),T(" ",n.scanStatus.StatusLog," "))},directives:[Ot,we,_e,_n,on,Q,Ui,pt,_u,Ce,tz,Ye,K2],pipes:[ce],styles:[""]}),t})(),Joe=(()=>{class t{constructor(e){this.httpClient=e}GetBackendStatus(){return this.httpClient.get("/Status/GetBackendStatus")}}return t.\u0275fac=function(e){return new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var ci=(()=>(function(t){t[t.kState_Error=-1]="kState_Error",t[t.kState_None=0]="kState_None",t[t.kState_WatchingLiveTV=1]="kState_WatchingLiveTV",t[t.kState_WatchingPreRecorded=2]="kState_WatchingPreRecorded",t[t.kState_WatchingVideo=3]="kState_WatchingVideo",t[t.kState_WatchingDVD=4]="kState_WatchingDVD",t[t.kState_WatchingBD=5]="kState_WatchingBD",t[t.kState_WatchingRecording=6]="kState_WatchingRecording",t[t.kState_RecordingOnly=7]="kState_RecordingOnly",t[t.kState_ChangingState=8]="kState_ChangingState"}(ci||(ci={})),ci))();let cs=(()=>{class t{constructor(e){this.translate=e,this.allSlashes=new RegExp(/\//g),this.deSpacer=new RegExp(/ /g),this.recTypeTrans={"Single Record":"","Record All":"","Record One":"","Record Daily":"","Record Weekly":"","Override Recording":"","Do not Record":"","Recording Template":"","Not Recording":""},this.dayFormatter=new Intl.DateTimeFormat(void 0,{weekday:"short"});for(const[n,s]of Object.entries(this.recTypeTrans)){const o="recrule."+n.replace(this.deSpacer,"");this.translate.get(o).subscribe(r=>{Object.defineProperty(this.recTypeTrans,n,{value:r})})}}formatDate(e,n,s){if(!e)return"";10==e.length&&(e+=" 00:00");const o=new Date(e);let r="";return s&&(r=this.dayFormatter.format(o)+" "),r+=o.toLocaleDateString(),n?r.replace(this.allSlashes,"/"):r}formatTime(e){return e?(new Date(e).toLocaleTimeString()+" ").replace(/:.. /,""):""}formatDateTime(e,n){return this.formatDate(e,n)+" "+this.formatTime(e)}}return t.\u0275fac=function(e){return new(e||t)(K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Yoe=function(t){return{EndTime:t}};function Zoe(t,i){if(1&t&&(de(0),g(1),m(2,"translate"),pe()),2&t){const e=p().$implicit,n=p(2);a(1),yr(" '",e.Recording.Title,"' on ",e.Recording.Channel.CallSign,". ",_t(2,3,"dashboard.status.endtime_text",U(6,Yoe,n.utility.formatTime(e.Recording.EndTime)))," ")}}const Xoe=function(t,i,e,n){return{CardId:t,Id:i,InputName:e,DisplayName:n}};function ere(t,i){if(1&t&&(l(0,"div")(1,"ul")(2,"li"),g(3),m(4,"translate"),c()()()),2&t){const e=i.$implicit;a(3),T("",_t(4,1,"dashboard.status.card_text",Ln(4,Xoe,e.CardId,e.Id,e.InputName,e.DisplayName))," ")}}const tre=function(t,i,e){return{Id:t,HostName:i,State:e}};function nre(t,i){if(1&t&&(l(0,"div")(1,"ul")(2,"li"),g(3),m(4,"translate"),_(5,Zoe,3,8,"ng-container",4),c(),_(6,ere,5,9,"div",3),c()()),2&t){const e=i.$implicit,n=p(2);a(3),T(" ",_t(4,3,"dashboard.status.encoder_text",Jt(6,tre,e.Id,e.HostName,n.EncoderStatusText(e.State)))," "),a(2),d("ngIf",7==e.State),a(1),d("ngForOf",e.Inputs)}}function ire(t,i){if(1&t&&(l(0,"div"),_(1,nre,7,10,"div",3),c()),2&t){const e=p();a(1),d("ngForOf",e.encoders)}}function sre(t,i){1&t&&(l(0,"div"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.no_encoders")))}let ore=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}EncoderStatusText(e){switch(e){case ci.kState_Error:return"Error";case ci.kState_None:return"Idle";case ci.kState_WatchingLiveTV:return"Watching Live TV";case ci.kState_WatchingPreRecorded:return"Watching Pre Recorded";case ci.kState_WatchingVideo:return"Watching Video";case ci.kState_WatchingDVD:return"Watching DVD";case ci.kState_WatchingBD:return"Watching BD";case ci.kState_WatchingRecording:return"Watching Recording";case ci.kState_RecordingOnly:return"Recording";case ci.kState_ChangingState:return"Changing State";default:return"unknown"}}}return t.\u0275fac=function(e){return new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-encoders"]],inputs:{encoders:"encoders"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noEncoders",""],[4,"ngFor","ngForOf"],[4,"ngIf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,ire,2,1,"div",1),c(),_(5,sre,3,3,"ng-template",null,2,Se)),2&e){const s=F(6);a(2),S(f(3,3,"dashboard.status.encoder_title")),a(2),d("ngIf",0!=(null==n.encoders?null:n.encoders.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px 0 0 8px;margin:20px}"]}),t})();function rre(t,i){if(1&t&&(l(0,"li",4)(1,"div",5),g(2),c()()),2&t){const e=i.$implicit,n=p(2);a(1),x("pTooltip",e.Description),a(1),Ih(" ",n.utility.formatDate(e.StartTime)," ",n.utility.formatTime(e.StartTime)," - ",e.Recording.EncoderId," - ",e.Channel.CallSign," - ",e.Title," ")}}const are=function(t){return{length:t}};function lre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul"),_(5,rre,3,6,"li",3),c()()),2&t){const e=p();a(2),S(_t(3,2,"dashboard.status.schedule_text",U(5,are,null==e.scheduled?null:e.scheduled.length))),a(3),d("ngForOf",e.scheduled)}}function cre(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.schedule_none")))}let ure=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-scheduled"]],inputs:{scheduled:"scheduled"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noSchedule",""],["class","flex",4,"ngFor","ngForOf"],[1,"flex"],["tooltipPosition","bottom",3,"pTooltip"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,lre,6,7,"div",1),c(),_(5,cre,3,3,"ng-template",null,2,Se)),2&e){const s=F(6);a(2),S(f(3,3,"dashboard.status.schedule_title")),a(2),d("ngIf",0!=(null==n.scheduled?null:n.scheduled.length))("ngIfElse",s)}},directives:[Q,at,Qt],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px 0 0 8px;margin:20px}"]}),t})();function dre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c()()),2&t){const e=i.$implicit,n=p(2);a(2),Eh("",n.utility.formatDate(e.StatusTime)," ",n.utility.formatTime(e.StatusTime)," - ",e.Program.Title," - ",e.LocalizedJobName," - ",f(3,6,"dashboard.status.jobs_status"),": ",e.LocalizedStatus," ")}}function pre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul"),_(5,dre,4,8,"div",3),c()()),2&t){const e=p();a(2),T("",f(3,2,"dashboard.status.jobs_text"),":"),a(3),d("ngForOf",e.jobqueue)}}function hre(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.jobs_none")))}let mre=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-jobqueue"]],inputs:{jobqueue:"jobqueue"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noJobs",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,pre,6,4,"div",1),c(),_(5,hre,3,3,"ng-template",null,2,Se)),2&e){const s=F(6);a(2),S(f(3,3,"dashboard.status.jobs_title")),a(2),d("ngIf",0!=(null==n.jobqueue?null:n.jobqueue.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px 0 0 8px;margin:20px}"]}),t})();function fre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul")(5,"li"),g(6),m(7,"translate"),c(),l(8,"ul")(9,"li"),g(10),m(11,"translate"),c(),l(12,"li"),g(13),m(14,"translate"),c(),l(15,"li"),g(16),m(17,"translate"),c(),l(18,"li"),g(19),m(20,"translate"),c(),l(21,"ul")(22,"li"),g(23),m(24,"translate"),c(),l(25,"li"),g(26),m(27,"translate"),c(),l(28,"li"),g(29),m(30,"translate"),c()()()()()),2&t){const e=i.ngIf;a(2),T("",f(3,16,"dashboard.status.mach.disk_summ"),":"),a(4),T("",f(7,18,"dashboard.status.mach.disk_total"),":"),a(4),We("",f(11,20,"dashboard.status.mach.total_space"),": ",e.Total.toLocaleString()," MiB"),a(3),We("",f(14,22,"dashboard.status.mach.space_used"),": ",e.Used.toLocaleString()," MiB"),a(3),We("",f(17,24,"dashboard.status.mach.space_free"),": ",e.Free.toLocaleString()," MiB"),a(3),We("",f(20,26,"dashboard.status.mach.space_after_expire"),": ",(e.Free+e.Expirable).toLocaleString(),""),a(4),We("",f(24,28,"dashboard.status.mach.space_livetv"),": ",e.LiveTV.toLocaleString()," MiB"),a(3),We("",f(27,30,"dashboard.status.mach.space_deleted"),": ",e.Deleted.toLocaleString()," MiB"),a(3),We("",f(30,32,"dashboard.status.mach.space_expirable"),": ",e.Expirable.toLocaleString()," MiB")}}function gre(t,i){1&t&&Y(0)}function _re(t,i){if(1&t&&(l(0,"div"),_(1,gre,1,0,"ng-container",6),c()),2&t){const e=i.$implicit;p(2);const n=F(10);a(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",e)}}const bre=function(t,i,e){return{GuideStart:t,GuideEnd:i,GuideStatus:e}},vre=function(t){return{GuideNext:t}},Cre=function(t,i){return{GuideThru:t,GuideDays:i}};function yre(t,i){if(1&t&&(l(0,"div")(1,"div")(2,"p"),g(3),m(4,"translate"),c(),l(5,"ul")(6,"li"),g(7),m(8,"translate"),c(),l(9,"li"),g(10),m(11,"translate"),c(),l(12,"li"),g(13),m(14,"translate"),c()()(),_(15,fre,31,34,"div",1),l(16,"div")(17,"p"),g(18),m(19,"translate"),c(),_(20,_re,2,2,"div",5),c(),l(21,"div")(22,"p"),g(23),m(24,"translate"),M(25,"br"),g(26),m(27,"translate"),M(28,"br"),g(29),m(30,"translate"),c()()()),2&t){const e=p(),n=F(8);a(3),S(f(4,14,"dashboard.status.mach.load")),a(4),We("1 ",f(8,16,"dashboard.status.mach.minute"),": ",e.machineinfo.LoadAvg1.toLocaleString(),""),a(3),We("5 ",f(11,18,"dashboard.status.mach.minutes"),": ",e.machineinfo.LoadAvg2.toLocaleString(),""),a(3),We("15 ",f(14,20,"dashboard.status.mach.minutes"),": ",e.machineinfo.LoadAvg3.toLocaleString(),""),a(2),d("ngIf",e.getStorageGroupTotal(e.machineinfo.StorageGroups))("ngIfElse",n),a(3),T("",f(19,22,"dashboard.status.mach.disk_details"),":"),a(2),d("ngForOf",e.getStorageGroupDetails(e.machineinfo.StorageGroups)),a(3),S(_t(24,24,"dashboard.status.mach.mythfill_last",Jt(33,bre,e.utility.formatDateTime(e.machineinfo.GuideStart),e.utility.formatDateTime(e.machineinfo.GuideEnd),e.machineinfo.GuideStatus))),a(3),T(" ",_t(27,27,"dashboard.status.mach.mythfill_next",U(37,vre,e.utility.formatDateTime(e.machineinfo.GuideNext))),""),a(3),T(" ",_t(30,30,"dashboard.status.mach.mythfill_until",Ge(39,Cre,e.utility.formatDateTime(e.machineinfo.GuideThru),e.machineinfo.GuideDays))," ")}}function wre(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.mach.none")))}function Tre(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.mach.disk_none")))}function Sre(t,i){if(1&t&&(l(0,"ul")(1,"li"),g(2),m(3,"translate"),c(),l(4,"ul")(5,"li"),g(6),m(7,"translate"),c(),l(8,"li"),g(9),m(10,"translate"),c(),l(11,"li"),g(12),m(13,"translate"),c(),l(14,"li"),g(15),m(16,"translate"),c()()()),2&t){const e=i.Id,n=i.Directory,s=i.Total,o=i.Used,r=i.Free;a(2),We("",f(3,10,"dashboard.status.mach.myth_drive")," #",e,""),a(4),We("",f(7,12,"dashboard.status.mach.disk_dirs"),": ",n,""),a(3),We("",f(10,14,"dashboard.status.mach.total_space"),": ",s.toLocaleString()," MiB"),a(3),We("",f(13,16,"dashboard.status.mach.space_used"),": ",o.toLocaleString()," MiB"),a(3),We("",f(16,18,"dashboard.status.mach.space_free"),": ",r.toLocaleString()," MiB")}}let xre=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}getStorageGroupTotal(e){return e.filter(n=>"total"==n.Id)[0]}getStorageGroupDetails(e){return e.filter(n=>"total"!=n.Id)}}return t.\u0275fac=function(e){return new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-machineinfo"]],inputs:{machineinfo:"machineinfo"},decls:11,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noMachineInfo",""],["noDiskInfo",""],["printStorageGroup",""],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,yre,31,42,"div",1),c(),_(5,wre,3,3,"ng-template",null,2,Se),_(7,Tre,3,3,"ng-template",null,3,Se),_(9,Sre,17,20,"ng-template",null,4,Se)),2&e){const s=F(6);a(2),S(f(3,3,"dashboard.status.mach.title")),a(2),d("ngIf",n.machineinfo)("ngIfElse",s)}},directives:[Q,at,Rt],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px 0 0 8px;margin:20px}"]}),t})();const Dre=function(t,i,e){return{Name:t,Type:i,IP:e}};function Mre(t,i){if(1&t&&(l(0,"div")(1,"li"),g(2),m(3,"translate"),c()()),2&t){const e=i.$implicit;a(2),T("",_t(3,1,"dashboard.status.backends_detail",Jt(4,Dre,e.Name,e.Type,e.IP))," ")}}function kre(t,i){if(1&t&&(l(0,"div")(1,"ul"),_(2,Mre,4,8,"div",3),c()()),2&t){const e=p();a(2),d("ngForOf",e.backends)}}function Ire(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.backends_none")))}let Ere=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-status-backends"]],inputs:{backends:"backends"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noBackends",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,kre,3,1,"div",1),c(),_(5,Ire,3,3,"ng-template",null,2,Se)),2&e){const s=F(6);a(2),S(f(3,3,"dashboard.status.backends_title")),a(2),d("ngIf",0!=(null==n.backends?null:n.backends.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px 0 0 8px;margin:20px}"]}),t})();const Rre=function(t,i,e,n){return{Name:t,IP:i,Port:e,OnLine:n}};function Lre(t,i){if(1&t&&(l(0,"div")(1,"li"),g(2),m(3,"translate"),c()()),2&t){const e=i.$implicit;a(2),T("",_t(3,1,"dashboard.status.frontends_detail",Ln(4,Rre,e.Name,e.IP,e.Port,e.OnLine))," ")}}function Ore(t,i){if(1&t&&(l(0,"div")(1,"ul"),_(2,Lre,4,9,"div",3),c()()),2&t){const e=p();a(2),d("ngForOf",e.frontends)}}function Are(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.frontends_none")))}let Pre=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-status-frontends"]],inputs:{frontends:"frontends"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noFrontends",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,Ore,3,1,"div",1),c(),_(5,Are,3,3,"ng-template",null,2,Se)),2&e){const s=F(6);a(2),S(f(3,3,"dashboard.status.frontends_title")),a(2),d("ngIf",0!=(null==n.frontends?null:n.frontends.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px 0 0 8px;margin:20px}"]}),t})();function Fre(t,i){if(1&t&&(l(0,"div",9)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"div"),g(5),c()()),2&t){const e=p().ngIf;a(2),S(f(3,2,"dashboard.status.misc_title")),a(3),T(" ",e.Miscellaneous," ")}}function Nre(t,i){if(1&t&&(l(0,"div"),M(1,"app-status-encoders",2)(2,"app-status-scheduled",3)(3,"app-status-jobqueue",4)(4,"app-status-machineinfo",5)(5,"app-status-backends",6)(6,"app-status-frontends",7),_(7,Fre,6,4,"div",8),c()),2&t){const e=i.ngIf;a(1),d("encoders",e.Encoders),a(1),d("scheduled",e.Scheduled),a(1),d("jobqueue",e.JobQueue),a(1),d("machineinfo",e.MachineInfo),a(1),d("backends",e.Backends),a(1),d("frontends",e.Frontends),a(1),d("ngIf",e.Miscellaneous)}}function Vre(t,i){1&t&&(l(0,"div"),g(1,"Loading..."),c())}let Bre=(()=>{class t{constructor(e){this.statusService=e}ngOnInit(){this.m_status$=this.statusService.GetBackendStatus()}}return t.\u0275fac=function(e){return new(e||t)(D(Joe))},t.\u0275cmp=z({type:t,selectors:[["app-status"]],decls:7,vars:7,consts:[[4,"ngIf","ngIfElse"],["loading",""],[3,"encoders"],[3,"scheduled"],[3,"jobqueue"],[3,"machineinfo"],[3,"backends"],[3,"frontends"],["class","statusBox",4,"ngIf"],[1,"statusBox"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,Nre,8,7,"div",0),m(4,"async"),_(5,Vre,2,0,"ng-template",null,1,Se)),2&e){const s=F(6);let o;a(1),T("",f(2,3,"dashboard.backendStatus")," "),a(2),d("ngIf",null==(o=f(4,5,n.m_status$))?null:o.BackendStatus)("ngIfElse",s)}},directives:[Q,ore,ure,mre,xre,Ere,Pre],pipes:[ce,xy],styles:["div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px 0 0 8px;margin:20px}"]}),t})();const Hre=["recsform"],qre=["menu"];function Gre(t,i){}function Ure(t,i){1&t&&g(0),2&t&&T(" ",i.$implicit," ")}function zre(t,i){if(1&t){const e=I();l(0,"p-dropdown",67),C("onChange",function(s){return v(e).filterCallback(s.value)}),m(1,"translate"),_(2,Ure,1,1,"ng-template",68),c()}if(2&t){const e=i.$implicit,n=p(2);x("placeholder",f(1,4,"settings.chanedit.all")),d("ngModel",e)("options",n.recGroups)("showClear",!0)}}function jre(t,i){if(1&t){const e=I();l(0,"tr")(1,"th",43)(2,"button",44),C("click",function(s){return v(e),p().showContextMenu(null,s)}),m(3,"translate"),c(),g(4),m(5,"translate"),m(6,"translate"),M(7,"p-columnFilter",45),g(8),m(9,"translate"),l(10,"p-columnFilter",46),_(11,zre,3,6,"ng-template",47),c(),l(12,"button",48),C("click",function(){v(e);const s=p();return s.refreshing=!0,s.refresh()}),m(13,"translate"),c(),g(14),c()(),l(15,"tr")(16,"th",49),g(17),m(18,"translate"),M(19,"p-sortIcon",50),c(),M(20,"th",51),l(21,"th",52),g(22),m(23,"translate"),c(),l(24,"th",53),g(25),m(26,"translate"),c(),l(27,"th",54),g(28),m(29,"translate"),M(30,"p-sortIcon",55),c(),l(31,"th",56),g(32),m(33,"translate"),M(34,"p-sortIcon",57),c(),l(35,"th",58),g(36),m(37,"translate"),c(),l(38,"th",59),g(39),m(40,"translate"),M(41,"p-sortIcon",60),c(),l(42,"th",61),g(43),m(44,"translate"),c(),l(45,"th",62),g(46),m(47,"translate"),c(),l(48,"th",63)(49,"a",64),M(50,"i",65),c(),M(51,"button",66),c()()}if(2&t){const e=p();a(2),x("pTooltip",f(3,18,"common.selected_menu")),a(2),We(" \xa0\xa0\xa0\xa0\xa0 ",f(5,20,"dashboard.recordings.filter"),": \xa0\xa0 ",f(6,22,"dashboard.recordings.title"),": \xa0 "),a(3),d("matchModeOptions",e.matchModeTitle),a(1),T(" ",f(9,24,"dashboard.recordings.recgrp"),": \xa0 "),a(2),d("showMenu",!1),a(2),x("pTooltip",f(13,26,"common.refresh")),a(2),T(" \xa0\xa0\xa0",e.programs.length," Rows "),a(3),T(" ",f(18,28,"dashboard.recordings.title")," "),a(5),S(f(23,30,"dashboard.recordings.subtitle")),a(3),S(f(26,32,"dashboard.recordings.seas_ep")),a(3),T(" ",f(29,34,"dashboard.recordings.orig_airdate")," "),a(4),T(" ",f(33,36,"dashboard.recordings.airdate")," "),a(4),S(f(37,38,"dashboard.recordings.channel")),a(3),T(" ",f(40,40,"dashboard.recordings.recgrp")," "),a(4),T(" ",f(44,42,"dashboard.recordings.duration")," "),a(3),S(f(47,44,"dashboard.recordings.file_size")),a(5),d("disabled",!0)}}function $re(t,i){1&t&&(M(0,"i",80),m(1,"translate")),2&t&&x("pTooltip",f(1,1,"dashboard.recordings.damaged"))}function Wre(t,i){1&t&&(M(0,"i",81),m(1,"translate")),2&t&&x("pTooltip",f(1,1,"dashboard.recordings.watched"))}function Kre(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const e=p().$implicit;a(1),We(" ",e.Season,"x",e.Episode," ")}}const Qre=function(t){return{"line-through":t}};function Jre(t,i){if(1&t){const e=I();l(0,"tr",69),C("contextmenu",function(s){const r=v(e).$implicit;return p().onContextMenu(r,s)}),l(1,"td",70),_(2,$re,2,3,"i",71),g(3),c(),l(4,"td",51),_(5,Wre,2,3,"i",72),c(),l(6,"td",73),g(7),c(),l(8,"td",53),_(9,Kre,2,2,"div",74),c(),l(10,"td",62),M(11,"div",75),c(),l(12,"td",62),M(13,"div",75),c(),l(14,"td",58),g(15),c(),l(16,"td",76),g(17),c(),l(18,"td",61),g(19),m(20,"number"),c(),l(21,"td",62),g(22),m(23,"number"),c(),l(24,"td",63)(25,"a",77),m(26,"translate"),M(27,"i",78),c(),l(28,"button",79),C("click",function(s){const r=v(e).$implicit;return p().showContextMenu(r,s)}),c()()()}if(2&t){const e=i.$implicit,n=i.rowIndex,s=p();d("ngClass",U(27,Qre,"Deleted"==e.Recording.RecGroup))("pSelectableRow",e)("pSelectableRowIndex",n),a(2),d("ngIf",e.VideoPropNames.indexOf("DAMAGED")>-1),a(1),T(" ",e.Title," "),a(2),d("ngIf",e.ProgramFlagNames.indexOf("WATCHED")>-1),a(1),x("pTooltip",e.Description),a(1),T(" ",e.SubTitle,""),a(2),d("ngIf",e.Season>0||e.Episode>0),a(2),d("innerHTML",s.utility.formatDate(e.Airdate,!0),Ft),a(2),d("innerHTML",s.utility.formatDate(e.StartTime,!0),Ft),a(2),We(" ",e.Channel.ChanNum," ",e.Channel.CallSign,""),a(2),S(e.Recording.RecGroup),a(2),T("",_t(20,19,s.getDuration(e),"1.0-0")," min"),a(3),T(" ",_t(23,22,e.Recording.FileSize/1e6,"1.0-0")," MB"),a(3),x("href",s.URLencode("/Content/GetRecording?RecordedId="+e.Recording.RecordedId),Wt),x("pTooltip",f(26,25,"dashboard.recordings.download")),a(2),d("id","download_"+n)}}function Yre(t,i){1&t&&(M(0,"p-message",87),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function Zre(t,i){1&t&&(M(0,"p-message",88),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function Xre(t,i){if(1&t){const e=I();l(0,"div",82),_(1,Yre,2,3,"p-message",83),_(2,Zre,2,3,"p-message",84),c(),l(3,"p-button",85),C("onClick",function(){return v(e),p().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",86),C("onClick",function(){return v(e),p().saveProgram()}),m(6,"translate"),c()}if(2&t){const e=p(),n=F(1);a(1),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),d("disabled",!n.dirty||""==e.program.Title.trim())}}function eae(t,i){if(1&t){const e=I();l(0,"p-button",89),C("onClick",function(){return v(e),p().displayRecGrpDlg=!1}),m(1,"translate"),c(),l(2,"p-button",90),C("onClick",function(){return v(e),p().updaterecgrp()}),m(3,"translate"),c()}if(2&t){const e=p();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),d("disabled",!e.newRecGroup.trim())}}function tae(t,i){if(1&t){const e=I();l(0,"p-button",91),C("onClick",function(){return v(e),p().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",92),C("onClick",function(){return v(e),p().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const nae=function(){return{height:"75vw",width:"50vw"}},iae=function(){return{minWidth:"400px"}};let sae=(()=>{class t{constructor(e,n,s,o,r){this.dvrService=e,this.messageService=n,this.translate=s,this.setupService=o,this.utility=r,this.programs=[],this.selection=[],this.actionList=[],this.recGroups=[],this.newRecGroup="",this.program={Title:"",Recording:{}},this.displayMetadataDlg=!1,this.displayRecGrpDlg=!1,this.displayRunJobs=!1,this.displayUnsaved=!1,this.successCount=0,this.errorCount=0,this.refreshing=!1,this.priorRequest={},this.msg={Success:"common.success",Failed:"common.failed",NetFail:"common.networkfail",CanUndo:"dashboard.recordings.canundel",AlreadyDel:"dashboard.recordings.alreadydel",NonReRec:"dashboard.recordings.nonrerec",ActionsSelected:"dashboard.recordings.actionsselected",JobsSelected:"dashboard.recordings.jobsselected",UndefSelection:"dashboard.undefselection"},this.jobsoffset=3,this.jobs=[{id:"Transcode",label:"dashboard.recordings.job_Transcode",command:h=>this.runjob(h)},{id:"Commflag",label:"dashboard.recordings.job_Commflag",command:h=>this.runjob(h)},{id:"Metadata",label:"dashboard.recordings.job_Metadata",command:h=>this.runjob(h)},{id:"UserJob1",visible:!1,command:h=>this.runjob(h)},{id:"UserJob2",visible:!1,command:h=>this.runjob(h)},{id:"UserJob3",visible:!1,command:h=>this.runjob(h)},{id:"UserJob4",visible:!1,command:h=>this.runjob(h)}],this.mnu_delete={label:"dashboard.recordings.mnu_delete",command:h=>this.delete(h,!1)},this.mnu_delete_rerec={label:"dashboard.recordings.mnu_delete_rerec",command:h=>this.delete(h,!0)},this.mnu_undelete={label:"dashboard.recordings.mnu_undelete",command:h=>this.undelete(h)},this.mnu_rerec={label:"dashboard.recordings.mnu_rerec",command:h=>this.rerec(h)},this.mnu_markwatched={label:"dashboard.recordings.mnu_markwatched",command:h=>this.markwatched(h,!0)},this.mnu_markunwatched={label:"dashboard.recordings.mnu_markunwatched",command:h=>this.markwatched(h,!1)},this.mnu_markdamaged={label:"dashboard.recordings.mnu_markdamaged",command:h=>this.markdamaged(h,!0)},this.mnu_markundamaged={label:"dashboard.recordings.mnu_markundamaged",command:h=>this.markdamaged(h,!1)},this.mnu_updaterecgrp={label:"dashboard.recordings.mnu_updaterecgrp",command:h=>this.promptrecgrp(h)},this.mnu_updatemeta={label:"dashboard.recordings.mnu_updatemeta",command:h=>this.updatemeta(h)},this.mnu_updaterecrule={label:"dashboard.recordings.mnu_updaterecrule",command:h=>this.updaterecrule(h)},this.mnu_stoprec={label:"dashboard.recordings.mnu_stoprec",command:h=>this.stoprec(h)},this.mnu_runjobs={label:"dashboard.recordings.mnu_runjobs",items:this.jobs},this.menuToShow=[],this.matchModeRecGrp=[{value:bt.EQUALS,label:"common.filter.equals"}],this.matchModeTitle=[{value:bt.STARTS_WITH,label:"common.filter.startswith"},{value:bt.CONTAINS,label:"common.filter.contains"},{value:bt.EQUALS,label:"common.filter.equals"}],this.saveObserver={next:h=>{h.bool?(this.successCount++,this.currentForm.form.markAsPristine(),this.editingProgram&&Object.assign(this.editingProgram,this.program)):(console.log("saveObserver error",h),this.errorCount++)},error:h=>{console.log("saveObserver error",h),this.errorCount++}},this.JobQCmds=this.setupService.getJobQCommands(),this.dvrService.GetRecGroupList().subscribe(h=>{this.recGroups=h.RecGroupList,this.recGroups.push("Deleted")});for(const[h,b]of Object.entries(this.msg))this.translate.get(b).subscribe(y=>{Object.defineProperty(this.msg,h,{value:y})});[this.mnu_delete,this.mnu_delete_rerec,this.mnu_undelete,this.mnu_rerec,this.mnu_markwatched,this.mnu_markunwatched,this.mnu_markdamaged,this.mnu_markundamaged,this.mnu_updatemeta,this.mnu_updaterecrule,this.mnu_stoprec,this.mnu_updaterecgrp,this.mnu_runjobs,this.jobs[0],this.jobs[1],this.jobs[2],...this.matchModeRecGrp,...this.matchModeTitle].forEach(h=>{h.label&&this.translate.get(h.label).subscribe(b=>h.label=b)})}ngOnInit(){}loadLazy(e){this.lazyLoadEvent=e;let n={StartIndex:0,Count:1};e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows,n.Count<100&&(n.Count=100)),e.sortField||(e.sortField="Title"),n.Sort=e.sortField,n.Sort="Airdate"==e.sortField?"originalairdate":"Recording.RecGroup"==e.sortField?"recgroup":e.sortField;let s=" asc";if(e.sortOrder&&e.sortOrder<0&&(s=" desc"),n.Sort=n.Sort+s,n.Sort+=`,title${s},originalairdate${s},season${s},episode${s}`,e.filters){if(e.filters.Title.value)switch(e.filters.Title.matchMode){case bt.STARTS_WITH:n.TitleRegEx="^"+e.filters.Title.value;break;case bt.CONTAINS:n.TitleRegEx=e.filters.Title.value;break;case bt.EQUALS:n.TitleRegEx="^"+e.filters.Title.value+"$"}e.filters["Recording.RecGroup"].value&&e.filters["Recording.RecGroup"].matchMode==bt.EQUALS&&(n.RecGroup=e.filters["Recording.RecGroup"].value)}(n.TitleRegEx!=this.priorRequest.TitleRegEx||n.RecGroup!=this.priorRequest.RecGroup)&&(this.programs=[],this.selection=[],this.menu.hide(),this.priorRequest=n),this.dvrService.GetRecordedList(n).subscribe(o=>{let r=o.ProgramList;this.programs.length=o.ProgramList.TotalAvailable,this.programs.splice(r.StartIndex,r.Programs.length,...r.Programs),this.programs=[...this.programs],this.refreshing=!1})}refresh(){this.selection=[],this.menu.hide(),this.loadLazy(this.lazyLoadEvent)}URLencode(e){return encodeURI(e)}getDuration(e){const n=new Date(e.Recording.StartTs).getTime();return(new Date(e.Recording.EndTs).getTime()-n)/6e4}onContextMenu(e,n){return!(!(0==this.selection.length||n.target&&n.target.id&&n.target.id.startsWith("download_"))&&(this.selection.some(s=>!s)?(this.sendMessage("error",null,"",this.msg.UndefSelection),1):this.selection.some(s=>s.Recording.RecordedId==e.Recording.RecordedId)&&(this.showContextMenu(null,n),1)))}onSelectChange(){this.menu.hide()}showContextMenu(e,n){if(this.actionList.length=0,e&&e.Title?this.actionList.push(e):this.actionList.push(...this.selection),0==this.actionList.length)return;if(this.actionList.some(o=>!o))return void this.sendMessage("error",null,"",this.msg.UndefSelection);this.menuToShow.length=0;let s=[];if(this.actionList.some(o=>"Deleted"==o.Recording.RecGroup)&&s.push(this.mnu_undelete),this.actionList.some(o=>"Deleted"!=o.Recording.RecGroup)&&(s.push(this.mnu_delete),s.push(this.mnu_delete_rerec)),s.push(this.mnu_rerec),this.actionList.some(o=>o.ProgramFlagNames.indexOf("WATCHED")>-1)&&s.push(this.mnu_markunwatched),this.actionList.some(o=>o.ProgramFlagNames.indexOf("WATCHED")<0)&&s.push(this.mnu_markwatched),this.actionList.some(o=>o.VideoPropNames.indexOf("DAMAGED")>-1)&&s.push(this.mnu_markundamaged),this.actionList.some(o=>o.VideoPropNames.indexOf("DAMAGED")<0)&&s.push(this.mnu_markdamaged),s.push(this.mnu_updaterecgrp),1==this.actionList.length?(s.push(this.mnu_updatemeta),this.menuToShow.push({label:this.actionList[0].Title+" - "+this.actionList[0].SubTitle,items:s})):this.menuToShow.push({label:this.msg.ActionsSelected.replace(/{{ *num *}}/,this.actionList.length.toString()),items:s}),this.actionList.every(o=>"Deleted"!=o.Recording.RecGroup)){this.menuToShow.push(1==this.actionList.length?this.mnu_runjobs:{label:this.msg.JobsSelected.replace(/{{ *num *}}/,this.actionList.length.toString()),items:this.jobs});for(let o=0;o<4;o++)this.JobQCmds.UserJob[o]?(this.jobs[o+this.jobsoffset].visible=!0,this.jobs[o+this.jobsoffset].label=this.JobQCmds.UserJobDesc[o]):this.jobs[o+this.jobsoffset].visible=!1}this.menu.toggle(n)}delete(e,n){let s=this.actionList.shift();s&&this.dvrService.GetRecorded({RecordedId:s.Recording.RecordedId}).subscribe({next:o=>{"Deleted"==o.Program.Recording.RecGroup?(this.sendMessage("error",s,e.item.label,this.msg.AlreadyDel),s.Recording.RecGroup="Deleted"):this.dvrService.DeleteRecording({RecordedId:s.Recording.RecordedId,AllowRerecord:n}).subscribe({next:r=>{r.bool?(this.sendMessage("success",s,e.item.label,this.msg.Success,this.msg.CanUndo),s.Recording.RecGroup="Deleted"):this.sendMessage("error",s,e.item.label,this.msg.Failed)},error:r=>this.networkError(s,r)}),this.delete(e,n)},error:o=>{this.networkError(s,o),this.delete(e,n)}})}undelete(e){let n=this.actionList.shift();n&&this.dvrService.UnDeleteRecording({RecordedId:n.Recording.RecordedId}).subscribe({next:s=>{s.bool?(n.Recording.RecGroup="Default",this.sendMessage("success",n,e.item.label,this.msg.Success)):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.undelete(e)},error:s=>{this.networkError(n,s),this.undelete(e)}})}networkError(e,n){console.log("network error",n),this.sendMessage("error",e,"",this.msg.NetFail)}sendMessage(e,n,s,o,r){r=r?"\n"+r:"";let u=s;null!=n&&(u=s+" "+n.Title+" "+n.SubTitle+r),this.messageService.add({severity:e,summary:o,detail:u,life:5e3,sticky:"error"==e})}rerec(e){let n=this.actionList.shift();n&&this.dvrService.AllowReRecord(n.Recording.RecordedId).subscribe({next:s=>{s.bool?this.sendMessage("success",n,e.item.label,this.msg.Success):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.rerec(e)},error:s=>{this.networkError(n,s),this.rerec(e)}})}markwatched(e,n){let s=this.actionList.shift();s&&this.dvrService.UpdateRecordedMetadata({RecordedId:s.Recording.RecordedId,Watched:n}).subscribe({next:o=>{o.bool?(this.sendMessage("success",s,e.item.label,this.msg.Success),s.ProgramFlagNames=n?s.ProgramFlagNames+"|WATCHED|":s.ProgramFlagNames.replace(/WATCHED/g,"")):this.sendMessage("error",s,e.item.label,this.msg.Failed),this.markwatched(e,n)},error:o=>{this.networkError(s,o),this.markwatched(e,n)}})}markdamaged(e,n){let s=this.actionList.shift();s&&this.dvrService.UpdateRecordedMetadata({RecordedId:s.Recording.RecordedId,Damaged:n}).subscribe({next:o=>{o.bool?n?(this.sendMessage("success",s,e.item.label,this.msg.Success,this.msg.NonReRec),s.VideoPropNames=s.VideoPropNames+"|DAMAGED|"):(this.sendMessage("success",s,e.item.label,this.msg.Success),s.VideoPropNames=s.VideoPropNames.replace(/DAMAGED/g,"")):this.sendMessage("error",s,e.item.label,this.msg.Failed),this.markdamaged(e,n)},error:o=>{this.networkError(s,o),this.markdamaged(e,n)}})}promptrecgrp(e){this.newRecGroup=1==this.actionList.length?this.actionList[0].Recording.RecGroup:"",this.displayRecGrpDlg=!0}updaterecgrp(){this.displayRecGrpDlg=!1,this.newRecGroup=this.newRecGroup.trim();let e=this.actionList.shift();e&&this.newRecGroup&&this.dvrService.UpdateRecordedMetadata({RecordedId:e.Recording.RecordedId,RecGroup:this.newRecGroup}).subscribe({next:n=>{n.bool?(this.sendMessage("success",e,this.mnu_updaterecgrp.label,this.msg.Success),e.Recording.RecGroup=this.newRecGroup):this.sendMessage("error",e,this.mnu_updaterecgrp.label,this.msg.Failed),this.updaterecgrp()},error:n=>{this.networkError(e,n),this.updaterecgrp()}})}updaterecrule(e){}stoprec(e){}runjob(e){let n=this.actionList.shift();n&&this.dvrService.ManageJobQueue({Action:"Add",JobName:e.item.id,RecordedId:n.Recording.RecordedId}).subscribe({next:s=>{s.int>0?this.sendMessage("success",n,e.item.label,this.msg.Success):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.runjob(e)},error:s=>{this.networkError(n,s),this.runjob(e)}})}updatemeta(e){this.program=this.actionList.shift(),this.program&&(this.editingProgram=this.program,this.program=Object.assign({},this.program),this.program.Airdate=this.program.Airdate?new Date(this.program.Airdate+" 00:00"):null,this.displayMetadataDlg=!0,this.currentForm.form.markAsPristine())}saveProgram(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.dvrService.UpdateRecordedMetadata({RecordedId:this.program.Recording.RecordedId,Description:this.program.Description,Episode:this.program.Episode,Inetref:this.program.Inetref,OriginalAirDate:this.program.Airdate,Season:this.program.Season,SubTitle:this.program.SubTitle,Title:this.program.Title,RecGroup:this.program.Recording.RecGroup}).subscribe(this.saveObserver)}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayMetadataDlg=!1,this.editingProgram=void 0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.editingProgram=void 0)}}return t.\u0275fac=function(e){return new(e||t)(D(jr),D(Gi),D(Oe),D(Me),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-recordings"]],viewQuery:function(e,n){if(1&e&&(W(Hre,5),W(qre,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.menu=s.first)}},features:[Pe([Gi])],decls:85,vars:96,consts:[["name","recsform"],["recsform","ngForm"],[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full",2,"height","90vh"],[1,"font-bold",3,"popup","model"],["menu",""],["scrollHeight","flex","styleClass","p-datatable-striped","selectionMode","multiple","dataKey","Recording.RecordedId","sortField","Title",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","selection","metaKeySelection","onLazyLoad","selectionChange","onRowSelect","onRowUnselect"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","Title",1,"label","block"],["pInputText","","id","Title","name","Title",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Title","ngModel"],["for","SubTitle",1,"label","block"],["pInputText","","id","SubTitle","name","SubTitle",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["SubTitle","ngModel"],["for","Inetref",1,"label","block"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],["for","Description",1,"label","block"],["pInputTextarea","","id","Description","name","Description",1,"mb-2","form-control","w-full",3,"rows","cols","ngModel","ngModelChange"],["Description","ngModel"],["for","Season",1,"label","block"],["name","Season","id","Season",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Episode",1,"label","block"],["name","Episode","id","Episode",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Airdate",1,"label","block"],["dateFormat","yy-mm-dd","name","Airdate","id","Airdate",3,"ngModel","ngModelChange"],["for","RecGroup",1,"label","block"],["name","RecGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecGroup","ngModel"],["for","FileName",1,"label","block"],["pTemplate","footer"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","newrecgroup",1,"label","block"],["pInputText","","id","newrecgroup","name","newrecgroup",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["newrecgroup","ngModel"],["name","recgrplist",3,"options","ngModel","ngModelChange"],["recgrplist","ngModel"],[3,"header","visible","modal","visibleChange"],[1,"pl-1"],["pButton","","pRipple","","icon","pi pi-bars","tooltipPosition","top",1,"p-button-text",".p-button-success",3,"pTooltip","click"],["type","text","field","Title",3,"matchModeOptions"],["field","Recording.RecGroup","matchMode","equals",3,"showMenu"],["pTemplate","filter"],["pButton","","pRipple","","icon","pi pi-refresh","tooltipPosition","top",1,"p-button-text",".p-button-success",3,"pTooltip","click"],["pSortableColumn","Title",1,"p-1",2,"flex-basis","12%"],["field","Title"],[1,"p-1",2,"flex-basis","2%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],["pSortableColumn","Airdate",1,"justify-content-end","p-1",2,"flex-basis","8%"],["field","Airdate"],["pSortableColumn","StartTime",1,"justify-content-end","p-1",2,"flex-basis","8%"],["field","StartTime"],[1,"p-1",2,"flex-basis","10%"],["pSortableColumn","Recording.RecGroup",1,"p-1",2,"flex-basis","8%"],["field","Recording.RecGroup"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"p-1",2,"background","var(--surface-card)"],["target","_blank"],[1,"pi","pi-download"],["pButton","","pRipple","","icon","pi pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"disabled"],["name","filter",3,"ngModel","options","placeholder","showClear","onChange"],["pTemplate","item"],[3,"ngClass","pSelectableRow","pSelectableRowIndex","contextmenu"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["class","pi pi-exclamation-triangle p-1","tooltipPosition","top",3,"pTooltip",4,"ngIf"],["class","pi pi-eye","tooltipPosition","top",3,"pTooltip",4,"ngIf"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],[3,"innerHTML"],[1,"p-1",2,"flex-basis","8%"],["target","_blank","tooltipPosition","left",3,"href","pTooltip"],[1,"pi","pi-download","text-primary",3,"id"],["pButton","","pRipple","","icon","pi pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"click"],["tooltipPosition","top",1,"pi","pi-exclamation-triangle","p-1",3,"pTooltip"],["tooltipPosition","top",1,"pi","pi-eye",3,"pTooltip"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"div",2),M(3,"p-toast",3),c(),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"div",4),M(8,"p-tieredMenu",5,6),l(10,"p-table",7),C("onLazyLoad",function(o){return n.loadLazy(o)})("selectionChange",function(o){return n.selection=o})("onRowSelect",function(){return n.onSelectChange()})("onRowUnselect",function(){return n.onSelectChange()}),_(11,Gre,0,0,"ng-template",8),_(12,jre,52,46,"ng-template",9),_(13,Jre,29,29,"ng-template",10),c(),l(14,"p-dialog",11),C("visibleChange",function(o){return n.displayMetadataDlg=o}),m(15,"translate"),l(16,"div",12)(17,"label",13),g(18),m(19,"translate"),c(),l(20,"input",14,15),C("ngModelChange",function(o){return n.program.Title=o}),c()(),l(22,"div",12)(23,"label",16),g(24),m(25,"translate"),c(),l(26,"input",17,18),C("ngModelChange",function(o){return n.program.SubTitle=o}),c()(),l(28,"div",12)(29,"label",19),g(30),m(31,"translate"),c(),l(32,"input",20,21),C("ngModelChange",function(o){return n.program.Inetref=o}),c()(),l(34,"div",12)(35,"label",22),g(36),m(37,"translate"),c(),l(38,"textarea",23,24),C("ngModelChange",function(o){return n.program.Description=o}),c()(),l(40,"div",12)(41,"label",25),g(42),m(43,"translate"),c(),l(44,"p-inputNumber",26),C("ngModelChange",function(o){return n.program.Season=o}),c()(),l(45,"div",12)(46,"label",27),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",28),C("ngModelChange",function(o){return n.program.Episode=o}),c()(),l(50,"div",12)(51,"label",29),g(52),m(53,"translate"),c(),l(54,"p-calendar",30),C("ngModelChange",function(o){return n.program.Airdate=o}),c()(),l(55,"div",12)(56,"label",31),g(57),m(58,"translate"),c(),l(59,"p-dropdown",32,33),C("ngModelChange",function(o){return n.program.Recording.RecGroup=o}),c()(),l(61,"div",12)(62,"label",34),g(63),m(64,"translate"),c(),l(65,"pre"),g(66),c()(),_(67,Xre,7,9,"ng-template",35),c(),l(68,"p-dialog",36),C("visibleChange",function(o){return n.displayRecGrpDlg=o}),m(69,"translate"),l(70,"div",12)(71,"label",37),g(72),m(73,"translate"),c(),l(74,"input",38,39),C("ngModelChange",function(o){return n.newRecGroup=o}),c()(),l(76,"p-listbox",40,41),C("ngModelChange",function(o){return n.newRecGroup=o}),c(),_(78,eae,4,7,"ng-template",35),c(),l(79,"p-dialog",42),C("visibleChange",function(o){return n.displayUnsaved=o}),m(80,"translate"),l(81,"p"),g(82),m(83,"translate"),c(),_(84,tae,4,6,"ng-template",35),c()()()),2&e&&(a(5),S(f(6,64,"dashboard.recordings.heading")),a(3),d("popup",!0)("model",n.menuToShow),a(2),d("value",n.programs)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0)("selection",n.selection)("metaKeySelection",!0),a(4),q(A(94,nae)),x("header",f(15,66,"dashboard.recordings.edit_metadata")),d("visible",n.displayMetadataDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(f(19,68,"dashboard.recordings.title")),a(2),d("ngModel",n.program.Title),a(4),S(f(25,70,"dashboard.recordings.subtitle")),a(2),d("ngModel",n.program.SubTitle),a(4),S(f(31,72,"dashboard.recordings.inetref")),a(2),d("ngModel",n.program.Inetref),a(4),S(f(37,74,"dashboard.recordings.description")),a(2),d("rows",5)("cols",30)("ngModel",n.program.Description),a(4),S(f(43,76,"dashboard.recordings.season")),a(2),d("ngModel",n.program.Season)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(48,78,"dashboard.recordings.episode")),a(2),d("ngModel",n.program.Episode)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(53,80,"dashboard.recordings.orig_airdate")),a(2),d("ngModel",n.program.Airdate),a(3),S(f(58,82,"dashboard.sched.recgroup_label")),a(2),q(A(95,iae)),d("options",n.recGroups)("ngModel",n.program.Recording.RecGroup)("editable",!0)("maxlength",64),a(4),S(f(64,84,"dashboard.recordings.filename_label")),a(3),S(n.program.FileName),a(2),x("header",f(69,86,"dashboard.recordings.selrecgroup")),d("visible",n.displayRecGrpDlg)("modal",!0)("draggable",!1)("resizable",!1),a(4),S(f(73,88,"dashboard.sched.recgroup_label")),a(2),d("ngModel",n.newRecGroup),a(2),d("options",n.recGroups)("ngModel",n.newRecGroup),a(3),x("header",f(80,90,"common.unsaved_heading")),d("visible",n.displayUnsaved)("modal",!0),a(3),S(f(83,92,"common.unsaved_message")))},directives:[ze,Ue,He,Sd,D$,Dn,ne,An,vt,Qt,vg,Ot,we,_e,Ll,Ol,Le,j2,Q,bn,Ye,tS,pt,Do,_n,qe,Ce,zi],pipes:[ce,iu],styles:["[_nghost-%COMP%] .p-tieredmenu{border:2px solid}[_nghost-%COMP%] .p-tieredmenu .p-submenu-list{border:2px solid}"]}),t})();const oae=["schedform"],Di=function(){return{minWidth:"400px"}};function rae(t,i){if(1&t){const e=I();l(0,"div",5)(1,"label",63),g(2),m(3,"translate"),c(),l(4,"p-dropdown",64,65),C("ngModelChange",function(s){return v(e),p(2).templateId=s})("onClick",function(){v(e);const s=p(2);return s.templateChange(s.recRule)})("onChange",function(){v(e);const s=p(2);return s.templateChange(s.recRule)}),c()()}if(2&t){const e=p(2);a(2),S(f(3,7,"dashboard.sched.template_label")),a(2),q(A(9,Di)),d("options",e.templates)("ngModel",e.templateId)("editable",!1)("maxlength",0)}}function aae(t,i){1&t&&(l(0,"label",68),g(1),m(2,"translate"),c()),2&t&&(a(1),T(" ",f(2,1,"dashboard.sched.subtitle_label"),""))}function lae(t,i){1&t&&(l(0,"label",68),g(1),m(2,"translate"),c()),2&t&&(a(1),T(" ",f(2,1,"dashboard.sched.add_tables_label"),""))}function cae(t,i){if(1&t){const e=I();l(0,"textarea",69),C("ngModelChange",function(s){return v(e),p(3).recRule.SubTitle=s}),g(1," "),c()}if(2&t){const e=p(3);d("ngModel",e.recRule.SubTitle)("disabled","Power Search"!=e.recRule.SearchType)("rows",e.subTitleRows)}}const uae=function(){return["None","Power Search"]};function dae(t,i){if(1&t&&(l(0,"div",5),_(1,aae,3,3,"label",66),_(2,lae,3,3,"label",66),_(3,cae,2,3,"textarea",67),c()),2&t){const e=p(2);a(1),d("ngIf","None"==e.recRule.SearchType),a(1),d("ngIf","Power Search"==e.recRule.SearchType),a(1),d("ngIf",A(3,uae).indexOf(e.recRule.SearchType)>-1)}}function pae(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const e=p(2);a(1),We("S",e.recRule.Season," E",e.recRule.Episode,"")}}function hae(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T(" ",f(2,1,"dashboard.sched.description_label"),""))}function mae(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T(" ",f(2,1,"dashboard.sched.sqlwhere_label"),""))}function fae(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T(" ",f(2,1,"dashboard.sched.description_label"),""))}function gae(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T(" ",f(2,1,"dashboard.sched.srchValue_label"),""))}const _ae=function(){return["None","Manual Search"]};function bae(t,i){if(1&t){const e=I();l(0,"div",5)(1,"div",70),_(2,hae,3,3,"label",71),_(3,mae,3,3,"label",71),_(4,fae,3,3,"label",71),_(5,gae,3,3,"label",72),c(),l(6,"textarea",73),C("ngModelChange",function(s){return v(e),p(2).recRule.Description=s})("focusout",function(){return v(e),p(2).onDescriptionBlur()}),g(7," "),c()()}if(2&t){const e=p(2);a(1),d("ngSwitch",e.recRule.SearchType),a(1),d("ngSwitchCase","None"),a(1),d("ngSwitchCase","Power Search"),a(1),d("ngSwitchCase","Manual Search"),a(2),d("ngModel",e.recRule.Description)("disabled",A(7,_ae).indexOf(e.recRule.SearchType)>-1)("rows",e.descriptionRows)}}function vae(t,i){1&t&&(l(0,"div"),g(1," Examples of SQL Additional Tables and Where Conditions are in the MythTV wiki at"),M(2,"br"),l(3,"a",75),g(4,"Power Search"),c()())}function Cae(t,i){if(1&t){const e=I();l(0,"div"),M(1,"p-divider"),l(2,"div",5)(3,"label",76),g(4),m(5,"translate"),c(),l(6,"p-dropdown",77),C("ngModelChange",function(s){return v(e),p(2).channel=s})("onChange",function(){return v(e),p(2).onChannelChange()}),c()(),l(7,"div",5)(8,"label",78),g(9),m(10,"translate"),c(),l(11,"p-calendar",79),C("ngModelChange",function(s){return v(e),p(2).reqDate=s})("onClose",function(){return v(e),p(2).onDateChange()})("keyup.enter",function(){return v(e),p(2).onDateChange()})("onBlur",function(){return v(e),p(2).onDateChange()}),c()(),l(12,"div",5)(13,"label",80),g(14),m(15,"translate"),c(),l(16,"p-inputNumber",81),C("ngModelChange",function(s){return v(e),p(2).reqDuration=s})("ngModelChange",function(){return v(e),p(2).onDurationChange()}),c()()()}if(2&t){const e=p(2);a(4),S(f(5,23,"dashboard.sched.channel_label")),a(2),q(A(29,Di)),d("options",e.allChannels)("ngModel",e.channel)("editable",!1)("maxlength",0),a(3),S(f(10,25,"dashboard.sched.starttime_label")),a(2),d("ngModel",e.reqDate)("showTime",!0)("stepMinute",5)("dateFormat","yy/mm/dd")("selectOtherMonths",!0)("showIcon",!0)("showOnFocus",!1)("showButtonBar",!0)("clearButtonStyleClass","hidden"),a(3),S(f(15,27,"dashboard.sched.duration_label")),a(2),d("ngModel",e.reqDuration)("showButtons",!0)("min",5)("max",360)("step",5)}}function yae(t,i){if(1&t){const e=I();l(0,"div",5)(1,"label",82),g(2),m(3,"translate"),c(),l(4,"div",83)(5,"div",84)(6,"p-radioButton",85),C("ngModelChange",function(s){return v(e),p(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=p(2);return s.iCheckbox(s.recRule)}),c(),l(7,"label",86),M(8,"img",87),c()(),l(9,"div",88)(10,"a",89),g(11),m(12,"translate"),c(),M(13,"br"),c(),l(14,"div",90)(15,"p-radioButton",91),C("ngModelChange",function(s){return v(e),p(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=p(2);return s.iCheckbox(s.recRule)}),c(),l(16,"label",92),M(17,"img",93),c()(),l(18,"div",94)(19,"a",89),g(20),m(21,"translate"),c(),M(22,"br"),c(),l(23,"div",84)(24,"p-radioButton",95),C("ngModelChange",function(s){return v(e),p(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=p(2);return s.iCheckbox(s.recRule)}),c(),l(25,"label",96),M(26,"img",97),c()(),l(27,"div",88)(28,"a",89),g(29),m(30,"translate"),c(),M(31,"br"),c()(),g(32),l(33,"input",98,99),C("ngModelChange",function(s){return v(e),p(2).recRule.Inetref=s})("ngModelChange",function(){v(e);const s=p(2);return s.iText(s.recRule)}),c(),l(35,"small",55),g(36),m(37,"translate"),M(38,"br"),c()()}if(2&t){const e=p(2);a(2),S(f(3,13,"dashboard.sched.inetref_label")),a(4),d("ngModel",e.metaPrefix),a(4),x("href",e.URLencode("https://thetvdb.com/search?query="+e.recRule.Title),Wt),a(1),T(" ",f(12,15,"dashboard.sched.isearch")," thetvdb.com"),a(4),d("ngModel",e.metaPrefix),a(4),x("href",e.URLencode("https://www.tvmaze.com/search?q="+e.recRule.Title),Wt),a(1),T(" ",f(21,17,"dashboard.sched.isearch")," tvmaze.com"),a(4),d("ngModel",e.metaPrefix),a(4),x("href",e.URLencode("https://www.themoviedb.org/search?query="+e.recRule.Title),Wt),a(1),T(" ",f(30,19,"dashboard.sched.isearch")," themoviedb.org"),a(3),T(" ",e.metaPrefix," \xa0 "),a(1),d("ngModel",e.recRule.Inetref),a(3),T(" ",f(37,21,"dashboard.sched.inetref_desc"),"")}}function wae(t,i){1&t&&(M(0,"p-message",105),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function Tae(t,i){if(1&t&&(M(0,"p-message",106),m(1,"translate")),2&t){const e=p(3);Oa("text","",f(1,2,"common.backenderror"),": ",e.errortext,"")}}function Sae(t,i){if(1&t){const e=I();l(0,"div",100),_(1,wae,2,3,"p-message",101),_(2,Tae,2,4,"p-message",102),c(),l(3,"p-button",103),C("onClick",function(){return v(e),p(2).close()}),m(4,"translate"),c(),l(5,"p-button",104),C("onClick",function(){return v(e),p(2).save()}),m(6,"translate"),c()}if(2&t){const e=p(2),n=F(1);a(1),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),d("disabled",!n.dirty||0==e.recRule.Id&&"Not Recording"==e.recRule.Type||!e.recRule.Title)}}function xae(t,i){if(1&t){const e=I();l(0,"p-button",107),C("onClick",function(){return v(e),p(2).close()}),m(1,"translate"),c(),l(2,"p-button",108),C("onClick",function(){return v(e),p(2).displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const Dae=function(){return{height:"90vw",width:"700px"}},Mae=function(){return["Power Search","Manual Search"]},OS=function(){return{minWidth:"400px",maxHeight:"400px",maxWidth:"640px"}};function kae(t,i){if(1&t){const e=I();l(0,"div")(1,"p-dialog",3),C("visibleChange",function(s){return v(e),p().displayDlg=s}),m(2,"translate"),l(3,"p"),g(4),c(),l(5,"p"),g(6),c(),_(7,rae,6,10,"div",4),l(8,"div",5)(9,"label",6),g(10),m(11,"translate"),c(),l(12,"p-dropdown",7,8),C("ngModelChange",function(s){return v(e),p().recRule.SearchType=s})("onChange",function(){return v(e),p().onSearchTypeChange()}),c()(),l(14,"div",5)(15,"label",9),g(16),m(17,"translate"),c(),l(18,"textarea",10),C("ngModelChange",function(s){return v(e),p().recRule.Title=s})("focusout",function(){return v(e),p().onTitleBlur()}),g(19," "),c()(),_(20,dae,4,4,"div",4),l(21,"p"),_(22,pae,2,2,"span",2),c(),_(23,bae,8,8,"div",4),_(24,vae,5,0,"div",2),_(25,Cae,17,30,"div",2),M(26,"p-divider"),l(27,"div",5)(28,"label",11),g(29),m(30,"translate"),c(),l(31,"p-dropdown",12,13),C("ngModelChange",function(s){return v(e),p().recRule.Type=s}),c()(),l(33,"div",5)(34,"label",14),g(35),m(36,"translate"),c(),l(37,"p-dropdown",15,16),C("ngModelChange",function(s){return v(e),p().recRule.RecGroup=s}),c()(),l(39,"div",5)(40,"p-checkbox",17,18),C("ngModelChange",function(s){return v(e),p().recRule.Inactive=s}),m(42,"translate"),c()(),l(43,"div",5)(44,"label",19),g(45),m(46,"translate"),c(),l(47,"p-dropdown",20,21),C("ngModelChange",function(s){return v(e),p().recRule.PlayGroup=s}),c()(),l(49,"div",5)(50,"label",22),g(51),m(52,"translate"),c(),l(53,"p-inputNumber",23),C("ngModelChange",function(s){return v(e),p().recRule.StartOffset=s}),c()(),l(54,"div",5)(55,"label",24),g(56),m(57,"translate"),c(),l(58,"p-inputNumber",25),C("ngModelChange",function(s){return v(e),p().recRule.EndOffset=s}),c()(),l(59,"div",5)(60,"p-checkbox",26,27),C("ngModelChange",function(s){return v(e),p().recRule.NewEpisOnly=s}),m(62,"translate"),c()(),l(63,"div",5)(64,"label",28),g(65),m(66,"translate"),c(),l(67,"p-inputNumber",29),C("ngModelChange",function(s){return v(e),p().recRule.RecPriority=s}),c()(),l(68,"div",5)(69,"label",30),g(70),m(71,"translate"),c(),l(72,"p-dropdown",31,32),C("ngModelChange",function(s){return v(e),p().recRule.PreferredInput=s}),c()(),l(74,"div",5)(75,"label",33),g(76),m(77,"translate"),c(),l(78,"p-dropdown",34,35),C("ngModelChange",function(s){return v(e),p().recRule.DupMethod=s}),c()(),l(80,"div",5)(81,"label",36),g(82),m(83,"translate"),c(),l(84,"p-dropdown",37,38),C("ngModelChange",function(s){return v(e),p().recRule.DupIn=s}),c()(),l(86,"div",5)(87,"label",39),g(88),m(89,"translate"),c(),l(90,"p-dropdown",40,41),C("ngModelChange",function(s){return v(e),p().recRule.AutoExtend=s}),c()(),l(92,"div",5)(93,"label",42),g(94),m(95,"translate"),c(),l(96,"p-multiSelect",43,44),C("ngModelChange",function(s){return v(e),p().selectedFilters=s})("onChange",function(){v(e);const s=p();return s.filterToRec(s.recRule)}),c()(),l(98,"div",5)(99,"label",45),g(100),m(101,"translate"),c(),l(102,"p-dropdown",46,47),C("ngModelChange",function(s){return v(e),p().recRule.RecProfile=s}),c()(),l(104,"div",5)(105,"label",48),g(106),m(107,"translate"),c(),l(108,"p-dropdown",49,50),C("ngModelChange",function(s){return v(e),p().recRule.StorageGroup=s}),c()(),l(110,"div",5)(111,"label",51),g(112),m(113,"translate"),c(),l(114,"p-inputNumber",52),C("ngModelChange",function(s){return v(e),p().recRule.MaxEpisodes=s}),c()(),l(115,"div",5)(116,"p-checkbox",53,54),C("ngModelChange",function(s){return v(e),p().recRule.MaxNewest=s}),m(118,"translate"),c(),l(119,"small",55),g(120),m(121,"translate"),c()(),l(122,"div",5)(123,"p-checkbox",56,57),C("ngModelChange",function(s){return v(e),p().recRule.AutoExpire=s}),m(125,"translate"),c()(),l(126,"div",5)(127,"label",58),g(128),m(129,"translate"),c(),l(130,"p-multiSelect",59,60),C("ngModelChange",function(s){return v(e),p().selectedPostProc=s})("onChange",function(){v(e);const s=p();return s.postProcToRec(s.recRule)}),c()(),_(132,yae,39,23,"div",4),M(133,"br")(134,"br")(135,"br")(136,"br")(137,"br")(138,"br")(139,"br")(140,"br")(141,"br")(142,"br")(143,"br")(144,"br")(145,"br")(146,"br"),_(147,Sae,7,9,"ng-template",61),c(),l(148,"p-dialog",62),C("visibleChange",function(s){return v(e),p().displayUnsaved=s}),m(149,"translate"),l(150,"p"),g(151),m(152,"translate"),c(),_(153,xae,4,6,"ng-template",61),c()()}if(2&t){const e=p();a(1),q(A(198,Dae)),x("header",f(2,148,"dashboard.sched.heading")),d("visible",e.displayDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),T(" ",e.recRule.CallSign,""),a(2),yr(" ",e.utility.formatDate(e.recRule.StartTime)," ",e.utility.formatTime(e.recRule.StartTime)," - ",e.utility.formatTime(e.recRule.EndTime)," "),a(1),d("ngIf","Recording Template"!=e.recRule.Type),a(3),S(f(11,150,"dashboard.sched.srchtype_label")),a(2),q(A(199,Di)),d("options",e.srchTypeList)("ngModel",e.recRule.SearchType)("editable",!1)("maxlength",0)("disabled",e.srchTypeDisabled),a(4),S(f(17,152,"dashboard.sched.title_label")),a(2),d("ngModel",e.recRule.Title)("disabled",-1==A(200,Mae).indexOf(e.recRule.SearchType)&&"Recording Template"!=e.recRule.Type||e.recRule.Id==(null==e.defaultTemplate?null:e.defaultTemplate.Id))("rows",e.titleRows),a(2),d("ngIf","Recording Template"!=e.recRule.Type),a(2),d("ngIf",e.recRule.Season&&e.recRule.Episode),a(1),d("ngIf","Recording Template"!=e.recRule.Type),a(1),d("ngIf","Power Search"==e.recRule.SearchType),a(1),d("ngIf","Manual Search"==e.recRule.SearchType),a(4),S(f(30,154,"dashboard.sched.type_label")),a(2),q(A(201,Di)),d("options",e.typeList)("ngModel",e.recRule.Type)("editable",!1)("maxlength",0),a(4),S(f(36,156,"dashboard.sched.recgroup_label")),a(2),q(A(202,Di)),d("options",e.recGroups)("ngModel",e.recRule.RecGroup)("editable",!0)("maxlength",64),a(3),x("label",f(42,158,"dashboard.sched.active_label")),d("ngModel",e.recRule.Inactive)("binary",!0)("trueValue",!1)("falseValue",!0)("disabled",e.override),a(5),S(f(46,160,"dashboard.sched.playgroup_label")),a(2),q(A(203,Di)),d("options",e.playGroups)("ngModel",e.recRule.PlayGroup)("editable",!1)("maxlength",0),a(4),S(f(52,162,"dashboard.sched.startoffset_label")),a(2),d("ngModel",e.recRule.StartOffset)("showButtons",!0)("min",-480)("max",480)("step",1),a(3),S(f(57,164,"dashboard.sched.endoffset_label")),a(2),d("ngModel",e.recRule.EndOffset)("showButtons",!0)("min",-480)("max",480)("step",1),a(2),x("label",f(62,166,"dashboard.sched.newepis_label")),d("ngModel",e.recRule.NewEpisOnly)("binary",!0),a(5),S(f(66,168,"dashboard.sched.priority_label")),a(2),d("ngModel",e.recRule.RecPriority)("showButtons",!0)("min",-100)("max",100)("step",1),a(3),S(f(71,170,"dashboard.sched.prefinput_label")),a(2),q(A(204,Di)),d("options",e.inputList.Inputs)("ngModel",e.recRule.PreferredInput)("editable",!1)("maxlength",0),a(4),S(f(77,172,"dashboard.sched.dupmethod_label")),a(2),q(A(205,Di)),d("options",e.dupMethodList)("ngModel",e.recRule.DupMethod)("editable",!1)("maxlength",0),a(4),S(f(83,174,"dashboard.sched.dupin_label")),a(2),q(A(206,Di)),d("options",e.dupInList)("ngModel",e.recRule.DupIn)("editable",!1)("maxlength",0),a(4),S(f(89,176,"dashboard.sched.autoextend_label")),a(2),q(A(207,Di)),d("options",e.autoExtendList)("ngModel",e.recRule.AutoExtend)("editable",!1)("maxlength",0),a(4),S(f(95,178,"dashboard.sched.filters_label")),a(2),q(A(208,OS)),d("options",e.recRuleFilters)("ngModel",e.selectedFilters),a(4),S(f(101,180,"dashboard.sched.recprofile_label")),a(2),q(A(209,Di)),d("options",e.recProfileList)("ngModel",e.recRule.RecProfile)("editable",!1)("maxlength",0),a(4),S(f(107,182,"dashboard.sched.sgroup_label")),a(2),q(A(210,Di)),d("options",e.recStorageGroups)("ngModel",e.recRule.StorageGroup)("editable",!1)("maxlength",0),a(4),S(f(113,184,"dashboard.sched.maxeps_label")),a(2),d("ngModel",e.recRule.MaxEpisodes)("showButtons",!0)("min",0)("max",100)("step",1),a(2),x("label",f(118,186,"dashboard.sched.maxnewest_label")),d("ngModel",e.recRule.MaxNewest)("binary",!0),a(4),T(" ",f(121,188,"dashboard.sched.maxnewest_desc")," "),a(3),x("label",f(125,190,"dashboard.sched.autoexpire_label")),d("ngModel",e.recRule.AutoExpire)("binary",!0),a(5),S(f(129,192,"dashboard.sched.postproc_label")),a(2),q(A(211,OS)),d("options",e.postProcList)("ngModel",e.selectedPostProc)("filter",!0),a(2),d("ngIf","Recording Template"!=e.recRule.Type),a(16),x("header",f(149,194,"common.unsaved_heading")),d("visible",e.displayUnsaved)("modal",!0),a(3),S(f(152,196,"common.unsaved_message"))}}let Rd=(()=>{class t{constructor(e,n,s,o,r){this.dvrService=e,this.translate=n,this.mythService=s,this.utility=o,this.channelService=r,this.displayDlg=!1,this.displayUnsaved=!1,this.loadCount=0,this.successCount=0,this.errorCount=0,this.errortext="",this.htmlRegex=new RegExp("|"),this.srchTypeDisabled=!0,this.titleRows=1,this.subTitleRows=1,this.descriptionRows=5,this.override=!1,this.reqDate=new Date,this.reqDuration=60,this.recRules=[],this.playGroups=[],this.recGroups=[],this.recStorageGroups=[],this.inputList={Inputs:[]},this.recRuleFilters=[],this.selectedFilters=[],this.templates=[],this.typeList=[],this.allChannels=[],this.srchTypeList=[{prompt:this.translate.instant("recrule.srch_None"),value:"None"},{prompt:this.translate.instant("recrule.srch_PowerSearch"),value:"Power Search"},{prompt:this.translate.instant("recrule.srch_TitleSearch"),value:"Title Search"},{prompt:this.translate.instant("recrule.srch_KeywordSearch"),value:"Keyword Search"},{prompt:this.translate.instant("recrule.srch_PeopleSearch"),value:"People Search"},{prompt:this.translate.instant("recrule.srch_ManualSearch"),value:"Manual Search"}],this.dupMethodList=[{prompt:this.translate.instant("dashboard.sched.dupmethod.none"),value:"None"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s_and_d"),value:"Subtitle and Description"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s_then_d"),value:"Subtitle then Description"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s"),value:"Subtitle"},{prompt:this.translate.instant("dashboard.sched.dupmethod.d"),value:"Description"}],this.dupInList=[{prompt:this.translate.instant("dashboard.sched.dupin.both"),value:"All Recordings"},{prompt:this.translate.instant("dashboard.sched.dupin.curr"),value:"Current Recordings"},{prompt:this.translate.instant("dashboard.sched.dupin.prev"),value:"Previous Recordings"}],this.autoExtendList=[{prompt:this.translate.instant("dashboard.sched.extend_none"),value:"None"},{prompt:"ESPN",value:"ESPN"},{prompt:"MLB",value:"MLB"}],this.recProfileList=[{prompt:this.translate.instant("dashboard.sched.recprof.default"),value:"Default"},{prompt:this.translate.instant("dashboard.sched.recprof.livetv"),value:"Live TV"},{prompt:this.translate.instant("dashboard.sched.recprof.highq"),value:"High Quality"},{prompt:this.translate.instant("dashboard.sched.recprof.lowq"),value:"Low Quality"}],this.postProcList=[{prompt:this.translate.instant("dashboard.sched.postproc.autocommflag"),value:"AutoCommflag"},{prompt:this.translate.instant("dashboard.sched.postproc.autometalookup"),value:"AutoMetaLookup"},{prompt:this.translate.instant("dashboard.sched.postproc.autotranscode"),value:"AutoTranscode"},{prompt:"1",value:"AutoUserJob1"},{prompt:"2",value:"AutoUserJob2"},{prompt:"3",value:"AutoUserJob3"},{prompt:"4",value:"AutoUserJob4"}],this.selectedPostProc=[],this.metaPrefix="",this.templateId=0,this.saveObserver={next:u=>{this.recRule?this.recRule.Id&&u.bool?(this.successCount++,this.currentForm.form.markAsPristine(),setTimeout(()=>this.inter.summaryComponent.refresh(),3e3),"Not Recording"==this.recRule.Type&&(this.recRule.Id=0)):!this.recRule.Id&&u.uint?(this.successCount++,this.currentForm.form.markAsPristine(),setTimeout(()=>this.inter.summaryComponent.refresh(),3e3),this.recRule.Id=u.uint):(this.errorCount++,this.currentForm.form.markAsDirty()):(console.log("ERROR: recRule is undefined"),this.errorCount++)},error:u=>{if(console.error(u),400==u.status){let h=u.error.split(this.htmlRegex);h.length>1&&(this.errortext=h[1])}this.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){this.inter.sched=this}loadLists(){let e;this.recRules=[],this.playGroups=[],this.recGroups=[],this.recStorageGroups=[],this.inputList.Inputs=[],this.recRuleFilters=[],this.loadCount=0,this.errorCount=0,this.dvrService.GetRecordScheduleList({}).subscribe({next:n=>{this.recRules=n.RecRuleList.RecRules,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetPlayGroupList().subscribe({next:n=>{this.playGroups=n.PlayGroupList,this.playGroups.unshift("Default"),this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecGroupList().subscribe({next:n=>{this.recGroups=n.RecGroupList,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecStorageGroupList().subscribe({next:n=>{this.recStorageGroups=n.RecStorageGroupList,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetInputList().subscribe({next:n=>{this.inputList=n.InputList,this.inputList.Inputs.unshift({Id:0,CardId:0,SourceId:0,InputName:"",DisplayName:this.translate.instant("dashboard.sched.input_any"),QuickTune:!1,RecPriority:0,ScheduleOrder:0,LiveTVOrder:0}),this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecRuleFilterList().subscribe({next:n=>{this.recRuleFilters=n.RecRuleFilterList.RecRuleFilters,this.loadSuccess()},error:n=>this.loadFail()});for(let n=1;n<5;n++)e=this.translate.instant("settings.services.job_default",{num:n}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+n,Default:e}).subscribe({next:s=>{this.postProcList[n+2].prompt=s.String,this.loadSuccess()},error:()=>this.loadFail()});this.channelService.GetChannelInfoList({Details:!0}).subscribe(n=>{this.allChannels=n.ChannelInfoList.ChannelInfos,this.allChannels.forEach(s=>s.Description=s.ChanNum+" "+s.ChannelName+" ("+s.CallSign+")"),this.loadSuccess()})}loadSuccess(){this.loadCount++,11==this.loadCount&&(this.loadCount=0,this.setupData(),this.displayDlg=!0,this.currentForm.form.markAsPristine())}loadFail(){this.errorCount++}open(e,n,s){this.templateId=0,this.reqProgram=e,this.reqChannel=n,this.reqRecRule=s,this.titleRows=1,e||s?(this.srchTypeDisabled=!0,this.srchTypeList[0].inactive=!1):(this.srchTypeDisabled=!1,this.srchTypeList[0].inactive=!0),this.loadLists()}setupData(){let e=!1;this.program=this.reqProgram;let n="";this.reqRecRule&&(n=this.reqRecRule.Type),this.reqRecRule?["Override Recording","Do not Record"].indexOf(n)>-1&&!this.reqRecRule.Id?(e=!0,this.recRule=void 0):this.recRule=Object.assign({},this.reqRecRule):this.recRule=void 0,this.reqChannel?this.channel=this.reqChannel:this.reqRecRule&&(this.channel=this.allChannels.find(o=>{var r;return o.ChanId==(null===(r=this.reqRecRule)||void 0===r?void 0:r.ChanId)})),this.program&&!this.channel&&this.program.Channel&&(this.channel=this.program.Channel);var s=0;if(this.typeList=[],this.templates=[{Id:0,Title:""}],this.defaultTemplate=void 0,this.program&&this.program.Recording&&!e&&(s=this.program.Recording.RecordId),this.recRules.forEach((o,r)=>{o.Id==s&&(this.recRule=o,n=this.recRule.Type),"Recording Template"==o.Type&&(this.templates.push(o),"Default"==o.Category&&(this.defaultTemplate=o))}),this.recRule||(this.recRule={Id:0}),this.recRule.Title||(this.recRule.Title="",this.recRule.SubTitle="",this.recRule.Description="",this.defaultTemplate&&this.mergeTemplate(this.recRule,this.defaultTemplate)),this.recRule.SearchType||(this.recRule.SearchType="None"),this.program&&this.channel&&"None"==this.recRule.SearchType&&this.mergeProgram(this.recRule,this.program,this.channel),e&&(this.recRule.ParentId=this.program.Recording.RecordId),n||(n="Not Recording"),!this.recRule.StartTime){let o=new Date;this.recRule.StartTime=o.toISOString(),this.recRule.FindDay=(o.getDay()+1)%7,this.recRule.FindTime=o.toTimeString().slice(0,8)}this.filterFromRec(this.recRule),this.postProcFromRec(this.recRule),this.recRule.Type=n,this.setupTypeList(this.recRule),this.srchTypeDisabled||this.onSearchTypeChange(),this.override&&(this.recRule.Inactive=!1),setTimeout(()=>{this.recRule&&(this.recRule.Type=n),this.currentForm.form.markAsPristine()},10)}setupTypeList(e){let n=e.Type;if(this.typeList.length=0,this.override=!1,"Recording Template"==n)this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.mod_template"),value:"Recording Template"}),"Default"!=e.Category&&e.Id>0&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.del_template"),value:"Not Recording"});else if(["Override Recording","Do not Record"].indexOf(n)>-1)this.override=!0,this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.del_override"),value:"Not Recording"},{prompt:this.translate.instant("dashboard.sched.type.rec_override"),value:"Override Recording"},{prompt:this.translate.instant("dashboard.sched.type.dont_rec_override"),value:"Do not Record"});else{const s="Manual Search"==e.SearchType,o="None"!=e.SearchType;this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.not"),value:"Not Recording"}),(e.CallSign&&!o||s)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.this"),value:"Single Record"}),s||this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.one"),value:"Record One"}),(!e.CallSign||o)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.weekly"),value:"Record Weekly"},{prompt:this.translate.instant("dashboard.sched.type.daily"),value:"Record Daily"}),s||this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.all"),value:"Record All"})}-1==this.typeList.findIndex(s=>s.value==e.Type)&&(e.Type=this.typeList[0].value)}mergeProgram(e,n,s){e.Title=n.Title,e.SubTitle=n.SubTitle,e.Description=n.Description,e.Category=n.Category,e.StartTime=n.StartTime,e.EndTime=n.EndTime,e.SeriesId=n.SeriesId,e.ProgramId=n.ProgramId,e.ChanId=s.ChanId,e.CallSign=s.CallSign,e.Season=n.Season,e.Episode=n.Episode;let o=new Date(e.StartTime);e.FindDay=(o.getDay()+1)%7,e.FindTime=o.toTimeString().slice(0,8)}filterFromRec(e){this.selectedFilters=[],this.recRuleFilters.forEach(n=>{0!=(e.Filter&1<{e.Filter|=1<{n[s.value]&&this.selectedPostProc.push(s.value)})}postProcToRec(e){let n=e;this.postProcList.forEach(s=>n[s.value]=!1),this.selectedPostProc.forEach(s=>n[s]=!0)}iCheckbox(e){e.Inetref||(e.Inetref=""),e.Inetref=e.Inetref.includes(".py_")?e.Inetref.replace(/^.*\.py_/,this.metaPrefix):this.metaPrefix+e.Inetref}iText(e){this.metaPrefix=e.Inetref.replace(/_.*/,"_"),this.metaPrefix.endsWith(".py_")||(this.metaPrefix="")}templateChange(e){if(this.templateId){const n=this.templates.find(s=>s.Id==this.templateId);n&&this.mergeTemplate(e,n)}}onSearchTypeChange(){this.recRule&&(this.recRule.Title="",this.reqDate=new Date,this.reqDate.setMinutes(0),this.reqDate.setSeconds(0,0),this.reqDuration=60,this.onDateChange(),"Manual Search"==this.recRule.SearchType&&(this.recRule.Description="",setTimeout(()=>this.onChannelChange(),100)),this.subTitleRows="Power Search"==this.recRule.SearchType?5:1,this.descriptionRows=["None","Power Search"].indexOf(this.recRule.SearchType)>-1?5:1,this.recRule.SubTitle="",this.recRule.Description="",this.setupTypeList(this.recRule)),this.onTitleBlur(),this.onDescriptionBlur()}onTitleBlur(){if(this.recRule){if(this.recRule.Title=this.recRule.Title.trim(),this.recRule.Title.length>0){let e;["Manual Search","Power Search"].indexOf(this.recRule.SearchType)>-1&&this.recRule.Title.length>0&&(e="("+this.trSearch(this.recRule.SearchType)+")"),"Recording Template"==this.recRule.Type&&this.recRule.Title.length>0&&(e="("+this.translate.instant("recrule.template")+")"),e&&-1==this.recRule.Title.indexOf(e)&&(this.recRule.Title=this.recRule.Title+" "+e)}"Manual Search"==this.recRule.SearchType&&(this.recRule.Description=this.recRule.Title)}}onDescriptionBlur(){this.recRule&&(this.recRule.Description=this.recRule.Description.trim(),["Title Search","Keyword Search","People Search"].indexOf(this.recRule.SearchType)>-1&&(this.recRule.Title=this.recRule.Description.length>0?this.recRule.Description+" ("+this.trSearch(this.recRule.SearchType)+")":""))}onChannelChange(){this.recRule&&this.channel&&(this.recRule.ChanId=this.channel.ChanId,this.recRule.CallSign=this.channel.CallSign)}onDateChange(){this.recRule&&(this.recRule.StartTime=this.reqDate.toISOString(),this.recRule.FindDay=(this.reqDate.getDay()+1)%7,this.recRule.FindTime=this.reqDate.toTimeString().slice(0,8),this.onDurationChange())}onDurationChange(){if(this.recRule){let e=new Date(this.recRule.StartTime),n=new Date(e.getTime()+6e4*this.reqDuration);this.recRule.EndTime=n.toISOString()}}trSearch(e){return this.translate.instant("recrule.srch_"+e.replace(" ",""))}mergeTemplate(e,n){e.Inactive=n.Inactive,e.RecPriority=n.RecPriority,e.PreferredInput=n.PreferredInput,e.StartOffset=n.StartOffset,e.EndOffset=n.EndOffset,e.DupMethod=n.DupMethod,e.DupIn=n.DupIn,e.NewEpisOnly=n.NewEpisOnly,e.Filter=n.Filter,e.RecProfile=n.RecProfile,e.RecGroup=n.RecGroup,e.StorageGroup=n.StorageGroup,e.PlayGroup=n.PlayGroup,e.AutoExpire=n.AutoExpire,e.MaxEpisodes=n.MaxEpisodes,e.MaxNewest=n.MaxNewest,e.AutoCommflag=n.AutoCommflag,e.AutoMetaLookup=n.AutoMetaLookup,e.AutoTranscode=n.AutoTranscode,e.AutoUserJob1=n.AutoUserJob1,e.AutoUserJob2=n.AutoUserJob2,e.AutoUserJob3=n.AutoUserJob3,e.AutoUserJob4=n.AutoUserJob4,e.Transcoder=n.Transcoder,this.postProcFromRec(e),this.filterFromRec(e)}close(){!this.recRule||0==this.recRule.Id&&"Not Recording"==this.recRule.Type?this.displayDlg=!1:this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayDlg=!1,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayDlg=!1,this.displayUnsaved=!1)}save(){if(this.errortext="",this.recRule&&(0!=this.recRule.Id||"Not Recording"!=this.recRule.Type))if(this.errorCount=0,this.successCount=0,this.recRule.Id>0&&"Not Recording"==this.recRule.Type)this.dvrService.RemoveRecordSchedule(this.recRule.Id).subscribe(this.saveObserver);else if(this.recRule.Id>0){const e=this.createRequest(this.recRule);e.RecordId=this.recRule.Id,this.dvrService.UpdateRecordSchedule(e).subscribe(this.saveObserver)}else{const e=this.createRequest(this.recRule);this.dvrService.AddRecordSchedule(e).subscribe(this.saveObserver)}}createRequest(e){return{Title:e.Title,Subtitle:e.SubTitle,Description:e.Description,Category:e.Category,StartTime:e.StartTime,EndTime:e.EndTime,SeriesId:e.SeriesId,ProgramId:e.ProgramId,ChanId:e.ChanId,Station:e.CallSign,FindDay:e.FindDay,FindTime:e.FindTime,ParentId:e.ParentId,Inactive:e.Inactive,Season:e.Season,Episode:e.Episode,Inetref:e.Inetref,Type:e.Type,SearchType:e.SearchType,RecPriority:e.RecPriority,PreferredInput:e.PreferredInput,StartOffset:e.StartOffset,EndOffset:e.EndOffset,LastRecorded:e.LastRecorded,DupMethod:e.DupMethod,DupIn:e.DupIn,NewEpisOnly:e.NewEpisOnly,Filter:e.Filter,RecProfile:e.RecProfile,RecGroup:e.RecGroup,StorageGroup:e.StorageGroup,PlayGroup:e.PlayGroup,AutoExpire:e.AutoExpire,MaxEpisodes:e.MaxEpisodes,MaxNewest:e.MaxNewest,AutoCommflag:e.AutoCommflag,AutoTranscode:e.AutoTranscode,AutoMetaLookup:e.AutoMetaLookup,AutoUserJob1:e.AutoUserJob1,AutoUserJob2:e.AutoUserJob2,AutoUserJob3:e.AutoUserJob3,AutoUserJob4:e.AutoUserJob4,Transcoder:e.Transcoder,AutoExtend:e.AutoExtend}}URLencode(e){return encodeURI(e)}confirm(e){return re(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.translate.instant("settings.common.warning"))}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return t.\u0275fac=function(e){return new(e||t)(D(jr),D(Oe),D(Bt),D(cs),D(Ao))},t.\u0275cmp=z({type:t,selectors:[["app-schedule"]],viewQuery:function(e,n){if(1&e&&W(oae,5),2&e){let s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(o){return n.onWindowClose(o)},!1,ni)},inputs:{inter:"inter"},decls:3,vars:1,consts:[["name","schedform",1,"ml-3","mr-3"],["schedform","ngForm"],[4,"ngIf"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],["class","form-group field",4,"ngIf"],[1,"form-group","field"],["for","SearchType",1,"label","block"],["optionLabel","prompt","optionValue","value","name","SearchType","optionDisabled","inactive",3,"options","ngModel","editable","maxlength","disabled","ngModelChange","onChange"],["SearchType","ngModel"],["for","Title",1,"label","block"],["pInputTextArea","","id","Title","name","Title",1,"text-lg","mb-2","form-control","w-full",3,"ngModel","disabled","rows","ngModelChange","focusout"],["for","Type",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Type",3,"options","ngModel","editable","maxlength","ngModelChange"],["Type","ngModel"],["for","RecGroup",1,"label","block"],["name","RecGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecGroup","ngModel"],["inputId","Active","name","Active",1,"label","mb-2","w-full",3,"ngModel","binary","label","trueValue","falseValue","disabled","ngModelChange"],["Active","ngModel"],["for","PlayGroup",1,"label","block"],["PlayGroup","Type","name","PlayGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["PlayGroup","ngModel"],["for","StartOffset",1,"label","block"],["name","StartOffset","id","StartOffset",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","EndOffset",1,"label","block"],["name","EndOffset","id","EndOffset",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","NewEpisOnly","name","NewEpisOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","PreferredInput",1,"label","block"],["optionLabel","DisplayName","optionValue","Id","name","PreferredInput",3,"options","ngModel","editable","maxlength","ngModelChange"],["PreferredInput","ngModel"],["for","DupMethod",1,"label","block"],["optionLabel","prompt","optionValue","value","name","DupMethod",3,"options","ngModel","editable","maxlength","ngModelChange"],["DupMethod","ngModel"],["for","DupIn",1,"label","block"],["optionLabel","prompt","optionValue","value","name","DupIn",3,"options","ngModel","editable","maxlength","ngModelChange"],["DupIn","ngModel"],["for","AutoExtend",1,"label","block"],["optionLabel","prompt","optionValue","value","name","AutoExtend",3,"options","ngModel","editable","maxlength","ngModelChange"],["AutoExtend","ngModel"],["for","Filters",1,"label","block"],["optionLabel","Description","optionValue","Id","name","Filters",3,"options","ngModel","ngModelChange","onChange"],["Filters","ngModel"],["for","RecProfile",1,"label","block"],["optionLabel","prompt","optionValue","value","name","RecProfile",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecProfile","ngModel"],["for","StorageGroup",1,"label","block"],["name","StorageGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["StorageGroup","ngModel"],["for","MaxEpisodes",1,"label","block"],["name","MaxEpisodes","id","MaxEpisodes",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","MaxNewest","name","MaxNewest",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["MaxNewest","ngModel"],[1,"block"],["inputId","AutoExpire","name","AutoExpire",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AutoExpire","ngModel"],["for","PostProc",1,"label","block"],["optionLabel","prompt","optionValue","value","name","PostProc",3,"options","ngModel","filter","ngModelChange","onChange"],["PostProc","ngModel"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],["for","Template",1,"label","block"],["optionLabel","Title","optionValue","Id","name","Template",1,"pr-2",3,"options","ngModel","editable","maxlength","ngModelChange","onClick","onChange"],["Template","ngModel"],["for","SubTitle","class","label block",4,"ngIf"],["pInputTextArea","","id","SubTitle","name","SubTitle","class","text-lg mb-2 form-control w-full",3,"ngModel","disabled","rows","ngModelChange",4,"ngIf"],["for","SubTitle",1,"label","block"],["pInputTextArea","","id","SubTitle","name","SubTitle",1,"text-lg","mb-2","form-control","w-full",3,"ngModel","disabled","rows","ngModelChange"],[3,"ngSwitch"],["for","Description","class","label block mb-2",4,"ngSwitchCase"],["for","Description","class","label block mb-2",4,"ngSwitchDefault"],["pInputTextArea","","id","Description","name","Description",1,"text-lg","mb-2","form-control","w-full",3,"ngModel","disabled","rows","ngModelChange","focusout"],["for","Description",1,"label","block","mb-2"],["href","https://www.mythtv.org/wiki/Power_Search","target","_blank"],["for","ChanId",1,"label","block"],["optionLabel","Description","name","Channel",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["for","StartTime",1,"label","block"],["name","StartTime",3,"ngModel","showTime","stepMinute","dateFormat","selectOtherMonths","showIcon","showOnFocus","showButtonBar","clearButtonStyleClass","ngModelChange","onClose","keyup.enter","onBlur"],["for","Duration",1,"label","block"],["name","Duration","id","Duration",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Inetref",1,"label","block"],[1,"grid","p-0"],[1,"col-3","flex","align-items-center"],["name","prefix","value","ttvdb4.py_","inputId","ttvdb",3,"ngModel","ngModelChange"],["for","ttvdb"],["src","images/metadata/thetvdb.png","alt","thtvdb","height","40",1,"pl-1"],[1,"col-9","flex","align-items-center"],["target","_blank",3,"href"],[1,"col-5","flex","align-items-center"],["name","prefix","value","tvmaze.py_","inputId","tvmaze",3,"ngModel","ngModelChange"],["for","tvmaze"],["src","images/metadata/tvmaze.png","alt","tvmaze","height","40",1,"pl-1"],[1,"col-7","flex","align-items-center"],["name","prefix","value","tmdb3.py_","inputId","tmdb",3,"ngModel","ngModelChange"],["for","tmdb"],["src","images/metadata/themoviedb.svg","alt","themoviedb","height","40",1,"pl-1"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1),_(2,kae,154,212,"div",2),c()),2&e&&(a(2),d("ngIf",n.recRule))},directives:[ze,Ue,He,Q,bn,Ot,we,_e,_n,Ye,_o,Ya,km,x7,Do,pt,on,X2,Al,ne,qe,Ce],pipes:[ce],styles:[""]}),t})();function Iae(t,i){if(1&t){const e=I();l(0,"p-checkbox",31,32),C("onChange",function(s){return v(e).filterCallback(s.checked)}),m(2,"translate"),c()}if(2&t){const e=i.$implicit;Hn("label","",f(2,3,"dashboard.upcoming.showall")," "),d("ngModel",e)("binary",!0)}}function Eae(t,i){if(1&t){const e=I();l(0,"p-dropdown",33),C("onChange",function(s){return v(e).filterCallback(s.value)}),m(1,"translate"),c()}if(2&t){const e=i.$implicit,n=p(2);x("placeholder",f(1,4,"settings.chanedit.all")),d("ngModel",e)("options",n.recRules)("showClear",!0)}}const Rae=function(){return{width:"2rem",height:"2rem"}};function Lae(t,i){1&t&&(l(0,"div"),M(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,Rae)))}function Oae(t,i){if(1&t){const e=I();l(0,"button",34),C("click",function(){return v(e),p(2).refresh()}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"common.refresh"))}function Aae(t,i){if(1&t&&(l(0,"tr")(1,"th")(2,"p-columnFilter",10),_(3,Iae,3,5,"ng-template",11),c(),g(4),m(5,"translate"),l(6,"p-columnFilter",12),_(7,Eae,2,6,"ng-template",11),c(),_(8,Lae,2,3,"div",13),_(9,Oae,2,3,"ng-template",null,14,Se),g(11),c()(),l(12,"tr")(13,"th",15),g(14),m(15,"translate"),M(16,"p-sortIcon",16),c(),l(17,"th",17),g(18),m(19,"translate"),c(),M(20,"th",18),l(21,"th",19),g(22),m(23,"translate"),c(),l(24,"th",20),g(25),m(26,"translate"),M(27,"p-sortIcon",21),c(),l(28,"th",22),g(29),m(30,"translate"),c(),l(31,"th",23),g(32),m(33,"translate"),c(),l(34,"th",24),g(35),m(36,"translate"),c(),l(37,"th",25),g(38),m(39,"translate"),M(40,"p-sortIcon",26),c(),l(41,"th",19),g(42),m(43,"translate"),c(),l(44,"th",27),g(45),m(46,"translate"),c(),l(47,"th",28),M(48,"button",29),c(),l(49,"th",28),M(50,"button",30),c()()),2&t){const e=F(10),n=p();a(2),d("showMenu",!1)("showClearButton",!1),a(2),T(" \xa0\xa0\xa0\xa0\xa0 ",f(5,20,"dashboard.upcoming.recrule"),": \xa0 "),a(2),d("showMenu",!1)("showClearButton",!1),a(2),d("ngIf",n.refreshing)("ngIfElse",e),a(3),T(" \xa0\xa0\xa0",n.programs.length," Rows "),a(3),T(" ",f(15,22,"dashboard.upcoming.date"),""),a(4),T(" ",f(19,24,"dashboard.upcoming.time")," "),a(4),T("",f(23,26,"dashboard.upcoming.encoder")," "),a(3),T(" ",f(26,28,"dashboard.recordings.title"),""),a(4),S(f(30,30,"dashboard.recordings.subtitle")),a(3),S(f(33,32,"dashboard.recordings.seas_ep")),a(3),T(" ",f(36,34,"dashboard.recordings.orig_airdate")," "),a(3),T("",f(39,36,"dashboard.recordings.channel")," "),a(4),T(" ",f(43,38,"dashboard.recordings.recgrp")," "),a(3),T(" ",f(46,40,"dashboard.upcoming.status")," "),a(3),d("disabled",!0),a(2),d("disabled",!0)}}function Pae(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const e=p().$implicit;a(1),We(" ",e.Season,"x",e.Episode," ")}}const Fae=function(){return["WillRecord","Recording","Recorded"]};function Nae(t,i){if(1&t&&(l(0,"div",47),g(1),c()),2&t){const e=p().$implicit,n=p();d("ngClass",A(2,Fae).indexOf(e.Recording.StatusName)>-1?"text-green-500":"text-pink-500"),a(1),T(" ",n.dataService.recStatusText[e.Recording.StatusName]," ")}}function Vae(t,i){if(1&t){const e=I();l(0,"button",48),C("click",function(){v(e);const s=p().$implicit;return p().stopRequest(s)}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"dashboard.recordings.stop_recording"))}function Bae(t,i){if(1&t){const e=I();l(0,"button",49),C("click",function(){v(e);const s=p().$implicit;return p().override(s)}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"dashboard.recordings.override_rule"))}const Hae=function(){return["Recording","Failing"]};function qae(t,i){if(1&t){const e=I();l(0,"tr")(1,"td",35),M(2,"div",36),c(),l(3,"td",37),g(4),c(),l(5,"td",38),g(6),m(7,"number"),c(),l(8,"td",19),g(9),c(),l(10,"td",39),g(11),c(),l(12,"td",40),g(13),c(),l(14,"td",23),_(15,Pae,2,2,"div",41),c(),l(16,"td",24),M(17,"div",36),c(),l(18,"td",42),g(19),c(),l(20,"td",19),g(21),c(),l(22,"td",27),_(23,Nae,2,3,"div",43),c(),l(24,"td",28),_(25,Vae,2,3,"button",44),_(26,Bae,2,3,"ng-template",null,45,Se),c(),l(28,"td",28)(29,"button",46),C("click",function(){const o=v(e).$implicit;return p().updateRecRule(o)}),m(30,"translate"),c()()()}if(2&t){const e=i.$implicit,n=i.rowIndex,s=F(27),o=p();a(2),d("innerHTML",o.formatStartDate(e,n),Ft),a(2),T(" ",o.formatStartTime(e)," "),a(2),T(" ",_t(7,17,o.getDuration(e),"1.0-0")," min"),a(3),T("",e.Recording.EncoderName," "),a(2),T(" ",e.Title,""),a(1),x("pTooltip",e.Description),a(1),T(" ",e.SubTitle.slice(0,50),""),a(2),d("ngIf",e.Season>0||e.Episode>0),a(2),d("innerHTML",o.formatAirDate(e),Ft),a(2),We(" ",e.Channel.ChanNum," ",e.Channel.CallSign,""),a(2),S(e.Recording.RecGroup),a(2),d("ngIf",e.Recording),a(2),d("ngIf",A(22,Hae).indexOf(e.Recording.StatusName)>-1)("ngIfElse",s),a(4),x("pTooltip",f(30,20,"dashboard.recordings.edit_rule")),d("disabled",e.Recording&&7==e.Recording.RecType)}}function Gae(t,i){1&t&&(M(0,"p-message",54),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function Uae(t,i){if(1&t){const e=I();l(0,"div",50),_(1,Gae,2,3,"p-message",51),c(),l(2,"p-button",52),C("onClick",function(){return v(e),p().displayStop=!1}),m(3,"translate"),c(),l(4,"p-button",53),C("onClick",function(){v(e);const s=p();return s.stopRecording(s.program)}),m(5,"translate"),c()}if(2&t){const e=p();a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"dashboard.recordings.stop_recording"))}}let zae=(()=>{class t{constructor(e,n,s,o,r){this.dvrService=e,this.messageService=n,this.translate=s,this.dataService=o,this.utility=r,this.programs=[],this.recRules=[],this.allRecRules=[],this.activeRecRules=[],this.defaultRecRule={Id:0,Title:"settings.chanedit.all"},this.displayUpdateDlg=!1,this.showAllStatuses=!1,this.refreshing=!1,this.loaded=!1,this.inter={summaryComponent:this},this.displayStop=!1,this.errorCount=0,this.translate.get(this.defaultRecRule.Title).subscribe(u=>this.defaultRecRule.Title=u),this.loadRecRules()}ngOnInit(){}refresh(){this.refreshing=!0,this.loadRecRules(),this.loadLazy(this.lazyLoadEvent)}loadRecRules(){this.dvrService.GetRecordScheduleList({}).subscribe({next:e=>{this.allRecRules.length=0,this.allRecRules.push(this.defaultRecRule),this.activeRecRules.length=0,this.activeRecRules.push(this.defaultRecRule),e.RecRuleList.RecRules.forEach(n=>{if("Recording Template"!=n.Type){let s={Id:n.Id,Title:n.Title.substring(0,30)+" ["+this.utility.recTypeTrans[n.Type]+"]"};this.allRecRules.push(s),n.NextRecording&&this.activeRecRules.push(s)}})}})}loadLazy(e){this.lazyLoadEvent=e;let n={StartIndex:0,Count:1};e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows,n.Count<100&&(n.Count=100)),e.sortField||(e.sortField="StartTime"),n.Sort="Channel.ChanNum"==e.sortField?"ChanNum":e.sortField;let s="";e.sortOrder&&e.sortOrder<0&&(s=" desc"),n.Sort=n.Sort+s,e.filters&&(e.filters.ShowAll.value&&(n.ShowAll=!0),e.filters.RecordId.value&&(n.RecordId=e.filters.RecordId.value)),this.recRules.length=0,n.ShowAll?this.recRules.push(...this.allRecRules):this.recRules.push(...this.activeRecRules),this.dvrService.GetUpcomingList(n).subscribe(o=>{let r=o.ProgramList;this.programs.length=o.ProgramList.TotalAvailable,this.programs.splice(r.StartIndex,r.Count,...r.Programs),this.programs=[...this.programs],this.refreshing=!1})}formatStartDate(e,n){let s="";n>0&&this.programs[n-1].Recording.StartTs&&(s=this.utility.formatDate(this.programs[n-1].Recording.StartTs,!0,!0));let o=this.utility.formatDate(e.Recording.StartTs,!0,!0);return s==o?" ":o}formatAirDate(e){return e.Airdate?this.utility.formatDate(e.Airdate+" 00:00",!0):" "}formatStartTime(e){return(new Date(e.Recording.StartTs).toLocaleTimeString()+" ").replace(/:.. /," ")}getDuration(e){let n=new Date(e.Recording.StartTs).getTime();return(new Date(e.Recording.EndTs).getTime()-n)/6e4}updateRecRule(e){this.inter.sched&&this.inter.sched.open(e)}override(e){this.inter.sched&&(7==e.Recording.RecType?this.inter.sched.open(e):this.inter.sched.open(e,void 0,{Type:"Override Recording"}))}stopRequest(e){e.Recording.RecordId&&(this.program=e,this.displayStop=!0)}stopRecording(e){this.errorCount=0,this.dvrService.StopRecording(e.Recording.RecordedId).subscribe({next:n=>{n.bool?(this.displayStop=!1,setTimeout(()=>this.inter.summaryComponent.refresh(),3e3)):this.errorCount++},error:n=>{this.errorCount++}})}}return t.\u0275fac=function(e){return new(e||t)(D(jr),D(Gi),D(Oe),D(Fl),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-upcoming"]],features:[Pe([Gi])],decls:24,vars:25,consts:[[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full"],[2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-gridlines","sortField","StartTime",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","onLazyLoad"],["pTemplate","header"],["pTemplate","body"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],["field","ShowAll","matchMode","equals",3,"showMenu","showClearButton"],["pTemplate","filter"],["field","RecordId","matchMode","equals",3,"showMenu","showClearButton"],[4,"ngIf","ngIfElse"],["refreshBn",""],["pSortableColumn","StartTime",1,"p-1",2,"flex-basis","10%"],["field","StartTime"],[1,"justify-content-end","p-1",2,"flex-basis","7%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","8%"],["pSortableColumn","Title",1,"p-1",2,"flex-basis","12%"],["field","Title"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],[1,"justify-content-end","p-1",2,"flex-basis","8%"],["pSortableColumn","Channel.ChanNum",1,"p-1",2,"flex-basis","10%"],["field","Channel.ChanNum"],[1,"p-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","2%"],["pButton","","pRipple","","icon","pi pi-paperclip",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],["inputId","showAllStatuses","name","showAllStatuses",3,"ngModel","binary","label","onChange"],["showAll","ngModel"],["name","rulefilter","optionLabel","Title","optionValue","Id",3,"ngModel","options","placeholder","showClear","onChange"],["pButton","","pRipple","","icon","pi pi-refresh",1,"p-button-text",".p-button-success",3,"pTooltip","click"],[1,"p-1","overflow-hidden",2,"flex-basis","10%"],[3,"innerHTML"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","7%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1","overflow-hidden",2,"flex-basis","7%"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],[1,"p-1",2,"flex-basis","10%"],[3,"ngClass",4,"ngIf"],["pButton","","pRipple","","icon","pi pi-stop-circle","class","p-button-text p-button-danger","tooltipPosition","left",3,"pTooltip","click",4,"ngIf","ngIfElse"],["overrideBn",""],["pButton","","pRipple","","icon","pi pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","disabled","click"],[3,"ngClass"],["pButton","","pRipple","","icon","pi pi-stop-circle","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi pi-paperclip","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div")(1,"div",0),M(2,"p-toast",1),c(),l(3,"h2"),g(4),m(5,"translate"),c(),l(6,"div",2)(7,"div",3)(8,"p-table",4),C("onLazyLoad",function(o){return n.loadLazy(o)}),_(9,Aae,51,42,"ng-template",5),_(10,qae,31,23,"ng-template",6),c(),l(11,"p-dialog",7),C("visibleChange",function(o){return n.displayStop=o}),m(12,"translate"),l(13,"h2"),g(14),m(15,"translate"),c(),l(16,"p"),g(17),m(18,"translate"),M(19,"br"),l(20,"b"),g(21),c()(),_(22,Uae,6,7,"ng-template",8),c(),M(23,"app-schedule",9),c()()()),2&e&&(a(4),S(f(5,17,"dashboard.upcoming.heading")),a(4),d("value",n.programs)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0),a(3),x("header",f(12,19,"dashboard.recordings.stop_recording")),d("visible",n.displayStop)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(15,21,"settings.common.ru_sure")),a(3),T("",f(18,23,"dashboard.recordings.stop_details")," "),a(4),We(" ",null==n.program?null:n.program.Title,": ",null==n.program?null:n.program.SubTitle,""),a(2),d("inter",n.inter))},directives:[Sd,Dn,ne,vg,on,we,_e,Ot,Q,Gr,An,vt,Qt,Ll,Ol,Le,bn,qe,Ce,Rd],pipes:[ce,iu],styles:[""]}),t})();function jae(t,i){if(1&t){const e=I();l(0,"button",10),C("click",function(){return v(e),p(2).newRecRule()}),m(1,"translate"),c(),l(2,"button",11),C("click",function(){return v(e),p(2).newTemplate()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"dashboard.recrules.new_recrule")),a(2),x("label",f(3,4,"dashboard.recrules.new_teplate")))}function $ae(t,i){1&t&&(l(0,"tr")(1,"th",12),g(2),m(3,"translate"),M(4,"p-sortIcon",13),c(),l(5,"th",14),g(6),m(7,"translate"),c(),l(8,"th",15),g(9),m(10,"translate"),c(),l(11,"th",15),g(12),m(13,"translate"),c(),l(14,"th",15),g(15),m(16,"translate"),c(),l(17,"th",16),g(18),m(19,"translate"),M(20,"p-sortIcon",17),c(),l(21,"th",18),g(22),m(23,"translate"),M(24,"p-sortIcon",19),c(),l(25,"th",20),g(26,"Active"),c(),l(27,"th",21),M(28,"button",22)(29,"button",23),c()()),2&t&&(a(2),T(" ",f(3,9,"dashboard.recordings.title")," "),a(4),S(f(7,11,"dashboard.recrule.type")),a(3),S(f(10,13,"common.priority")),a(3),T(" ",f(13,15,"dashboard.recordings.recgrp")," "),a(3),T(" ",f(16,17,"dashboard.recrules.storgrp")," "),a(3),T(" ",f(19,19,"dashboard.recrules.lastrec"),""),a(4),T(" ",f(23,21,"dashboard.recrules.nextrec"),""),a(6),d("disabled",!0),a(1),d("disabled",!0))}function Wae(t,i){1&t&&M(0,"i",31)}function Kae(t,i){1&t&&M(0,"i",32)}function Qae(t,i){if(1&t){const e=I();l(0,"tr")(1,"td",24),g(2),c(),l(3,"td",14),g(4),c(),l(5,"td",15),g(6),c(),l(7,"td",15),g(8),c(),l(9,"td",15),g(10),c(),l(11,"td",25),g(12),c(),l(13,"td",26),g(14),c(),l(15,"td",20),_(16,Wae,1,0,"i",27),_(17,Kae,1,0,"ng-template",null,28,Se),c(),l(19,"td",21)(20,"button",29),C("click",function(){const o=v(e).$implicit;return p(2).updateRecRule(o)}),m(21,"translate"),c(),l(22,"button",30),C("click",function(){const o=v(e).$implicit;return p(2).deleteRequest(o)}),m(23,"translate"),c()()()}if(2&t){const e=i.$implicit,n=F(18),s=p(2);a(2),T(" ",e.Title,""),a(2),T(" ",s.utility.recTypeTrans[e.Type],""),a(2),S(e.RecPriority),a(2),S(e.RecGroup),a(2),S(e.StorageGroup),a(2),T(" ",s.utility.formatDate(e.LastRecorded),""),a(2),We(" ",s.utility.formatDate(e.NextRecording)," ",s.utility.formatTime(e.NextRecording),""),a(2),d("ngIf",e.Inactive)("ngIfElse",n),a(4),x("pTooltip",f(21,13,"dashboard.recordings.edit_rule")),a(2),x("pTooltip",f(23,15,"dashboard.recordings.delete_rule")),d("disabled","Recording Template"==e.Type&&"Default"==e.Category)}}function Jae(t,i){if(1&t&&(l(0,"div",5)(1,"p-table",6),_(2,jae,4,6,"ng-template",7),_(3,$ae,30,23,"ng-template",8),_(4,Qae,24,17,"ng-template",9),c()()),2&t){const e=p();a(1),d("value",e.recRules)("scrollable",!0)("rowHover",!0)}}function Yae(t,i){1&t&&(M(0,"p-message",37),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function Zae(t,i){if(1&t){const e=I();l(0,"div",33),_(1,Yae,2,3,"p-message",34),c(),l(2,"p-button",35),C("onClick",function(){return v(e),p().displayDelete=!1}),m(3,"translate"),c(),l(4,"p-button",36),C("onClick",function(){v(e);const s=p();return s.deleteRule(s.recRule)}),m(5,"translate"),c()}if(2&t){const e=p();a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"common.delete"))}}function Xae(t,i){1&t&&M(0,"p-progressSpinner")}let ele=(()=>{class t{constructor(e,n){this.dvrService=e,this.utility=n,this.recRules=[],this.inter={summaryComponent:this},this.deSpacer=new RegExp(/ /g),this.rulesLoaded=!1,this.errorCount=0,this.successCount=0,this.displayDelete=!1,this.saveObserver={next:s=>{this.recRule?this.recRule.Id&&s.bool?(this.successCount++,this.displayDelete=!1,setTimeout(()=>this.refresh(),1e3)):!this.recRule.Id&&s.uint?(this.successCount++,setTimeout(()=>this.inter.summaryComponent.refresh(),1e3),this.recRule.Id=s.uint):this.errorCount++:(console.log("ERROR: recRule is undefined"),this.errorCount++)},error:s=>{console.error(s),this.errorCount++}}}refresh(){this.loadLists()}ngOnInit(){this.loadLists()}loadLists(){this.recRules=[],this.errorCount=0,this.dvrService.GetRecordScheduleList({}).subscribe({next:e=>{this.recRules=e.RecRuleList.RecRules,this.rulesLoaded=!0},error:e=>{this.errorCount++}})}newRecRule(){this.updateRecRule()}updateRecRule(e){this.inter.sched&&this.inter.sched.open(void 0,void 0,e)}newTemplate(){this.updateRecRule({Type:"Recording Template"})}deleteRequest(e){this.recRule=e,this.displayDelete=!0}deleteRule(e){this.dvrService.RemoveRecordSchedule(e.Id).subscribe(this.saveObserver)}}return t.\u0275fac=function(e){return new(e||t)(D(jr),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-recrules"]],decls:19,vars:21,consts:[["class","block card w-full","style","height: 90vh",4,"ngIf","ngIfElse"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],["loading",""],[1,"block","card","w-full",2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll","sortField","Title",3,"value","scrollable","rowHover"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi pi-plus",1,"p-button-success","mr-2",3,"label","click"],["pButton","","pRipple","","icon","pi pi-plus",1,"p-button-success","p-button-outlined","mr-2",3,"label","click"],["pSortableColumn","Title",1,"p-1",2,"flex-basis","20%"],["field","Title"],[1,"p-1",2,"flex-basis","20%"],[1,"p-1",2,"flex-basis","10%"],["pSortableColumn","LastRecorded",1,"justify-content-end","pr-5",2,"flex-basis","10%"],["field","LastRecorded"],["pSortableColumn","NextRecording",1,"justify-content-end","pr-5",2,"flex-basis","15%"],["field","NextRecording"],[1,"p-1",2,"flex-basis","5%"],[1,"p-1",2,"flex-basis","6%"],["pButton","","pRipple","","icon","pi pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi pi-trash",1,"p-button-text","p-button-danger",3,"disabled"],[1,"p-1","overflow-hidden",2,"flex-basis","20%"],[1,"justify-content-end","p-1","pr-5",2,"flex-basis","10%"],[1,"justify-content-end","p-1","pr-5",2,"flex-basis","15%"],["class","pi pi-times text-pink-500",4,"ngIf","ngIfElse"],["checkmark",""],["pButton","","pRipple","","icon","pi pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],[1,"pi","pi-times","text-pink-500"],[1,"pi","pi-check","text-green-500"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,Jae,5,3,"div",0),l(4,"p-dialog",1),C("visibleChange",function(o){return n.displayDelete=o}),m(5,"translate"),l(6,"h2"),g(7),m(8,"translate"),c(),l(9,"p"),g(10),m(11,"translate"),M(12,"br"),l(13,"b"),g(14),c()(),_(15,Zae,6,7,"ng-template",2),c(),M(16,"app-schedule",3),_(17,Xae,1,0,"ng-template",null,4,Se)),2&e){const s=F(18);a(1),S(f(2,13,"dashboard.recrules.heading")),a(2),d("ngIf",n.rulesLoaded)("ngIfElse",s),a(1),x("header",f(5,15,"dashboard.recordings.delete_rule")),d("visible",n.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(8,17,"settings.common.ru_sure")),a(3),T("",f(11,19,"dashboard.recordings.delete_details")," "),a(4),We(" ",null==n.recRule?null:n.recRule.Title,": ",null==n.recRule?null:n.recRule.Type,""),a(2),d("inter",n.inter)}},directives:[Q,Dn,ne,An,vt,Ll,Ol,Qt,bn,qe,Ce,Rd,Gr],pipes:[ce],styles:[""]}),t})(),tle=(()=>{class t{constructor(e){this.httpClient=e}GetVideoList(e){let n=new ve;for(const[s,o]of Object.entries(e))n=n.set(s,o);return this.httpClient.get("/Video/GetVideoList",{params:n})}UpdateVideoWatchedStatus(e,n){return this.httpClient.post("/Video/UpdateVideoWatchedStatus",{Id:e,Watched:n})}UpdateVideoMetadata(e){return this.httpClient.post("/Video/UpdateVideoMetadata",e)}}return t.\u0275fac=function(e){return new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const nle=["vidsform"],ile=["menu"],sle=["table"];function ole(t,i){}function rle(t,i){if(1&t){const e=I();l(0,"div")(1,"p-button",35),C("onClick",function(){const o=v(e).index;return p(2).breadCrumb(o+1)}),c()()}if(2&t){const e=i.$implicit;a(1),x("label",e)}}const ale=function(){return{width:"30px",height:"30px"}};function lle(t,i){1&t&&(l(0,"div"),M(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,ale)))}function cle(t,i){if(1&t){const e=I();l(0,"button",52),C("click",function(){v(e);const s=p(2);return s.refreshing=!0,s.reLoadVideos()}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"common.refresh"))}function ule(t,i){if(1&t){const e=I();l(0,"tr")(1,"th")(2,"p-button",35),C("onClick",function(){return v(e),p().breadCrumb(0)}),m(3,"translate"),c(),_(4,rle,2,1,"div",36),g(5," \xa0\xa0\xa0 "),l(6,"p-checkbox",37,38),C("ngModelChange",function(s){return v(e),p().showAllVideos=s})("onChange",function(){return v(e),p().showAllChange()}),m(8,"translate"),c(),_(9,lle,2,3,"div",39),_(10,cle,2,3,"ng-template",null,40,Se),g(12),c()(),l(13,"tr")(14,"th",41),g(15),m(16,"translate"),M(17,"p-sortIcon",42),c(),M(18,"th",43),l(19,"th",44),g(20),m(21,"translate"),c(),l(22,"th",45),g(23),m(24,"translate"),c(),l(25,"th",46),g(26),m(27,"translate"),M(28,"p-sortIcon",47),c(),l(29,"th",48),g(30),m(31,"translate"),c(),l(32,"th",45)(33,"a",49),M(34,"i",50),c(),M(35,"button",51),c()()}if(2&t){const e=F(11),n=p();a(2),x("label",f(3,14,"dashboard.videos.heading")),a(2),d("ngForOf",n.directory),a(2),Hn("label","",f(8,16,"dashboard.videos.showall")," "),d("ngModel",n.showAllVideos)("binary",!0),a(3),d("ngIf",n.refreshing)("ngIfElse",e),a(3),T(" \xa0\xa0\xa0",n.videos.length," Rows "),a(3),T(" ",f(16,18,"dashboard.recordings.title")," "),a(5),S(f(21,20,"dashboard.recordings.subtitle")),a(3),S(f(24,22,"dashboard.recordings.seas_ep")),a(3),T(" ",f(27,24,"dashboard.videos.releasedate")," "),a(4),T(" ",f(31,26,"dashboard.recordings.duration")," "),a(5),d("disabled",!0)}}function dle(t,i){if(1&t){const e=I();l(0,"div")(1,"button",60),C("click",function(){v(e);const s=p().$implicit;return p().onDirectory(s.Title)}),c()()}if(2&t){const e=p().$implicit;a(1),x("label",e.Title)}}function ple(t,i){1&t&&g(0),2&t&&T(" ",p().$implicit.Title," ")}function hle(t,i){1&t&&M(0,"i",61)}function mle(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const e=p().$implicit;a(1),We(" ",e.Season,"x",e.Episode," ")}}function fle(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const e=p().$implicit;a(1),T(" ",e.Length," min ")}}function gle(t,i){if(1&t){const e=I();l(0,"div")(1,"a",62),m(2,"translate"),M(3,"i",63),c(),l(4,"button",64),C("click",function(s){v(e);const o=p().$implicit;return p().showMenu(o,s)}),c()()}if(2&t){const e=p().$implicit,n=p();a(1),x("href",n.URLencode("/Content/GetVideo?Id="+e.Id),Wt),x("pTooltip",f(2,2,"dashboard.videos.download"))}}function _le(t,i){if(1&t&&(l(0,"tr")(1,"td",53),_(2,dle,2,1,"div",39),_(3,ple,1,1,"ng-template",null,54,Se),c(),l(5,"td",43),_(6,hle,1,0,"i",55),c(),l(7,"td",56),g(8),c(),l(9,"td",45),_(10,mle,2,2,"div",57),c(),l(11,"td",58),M(12,"div",59),c(),l(13,"td",48),_(14,fle,2,1,"div",57),c(),l(15,"td",45),_(16,gle,5,4,"div",57),c()()),2&t){const e=i.$implicit,n=F(4),s=p();a(2),d("ngIf","DIRECTORY"==e.ContentType)("ngIfElse",n),a(4),d("ngIf",e.Watched),a(1),x("pTooltip",e.Description),a(1),T(" ",e.SubTitle,""),a(2),d("ngIf",e.Season>0||e.Episode>0),a(2),d("innerHTML",s.utility.formatDate(e.ReleaseDate,!0),Ft),a(2),d("ngIf",e.Length>0),a(2),d("ngIf","DIRECTORY"!=e.ContentType)}}function ble(t,i){1&t&&(M(0,"p-message",70),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function vle(t,i){1&t&&(M(0,"p-message",71),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function Cle(t,i){if(1&t){const e=I();l(0,"div",65),_(1,ble,2,3,"p-message",66),_(2,vle,2,3,"p-message",67),c(),l(3,"p-button",68),C("onClick",function(){return v(e),p().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",69),C("onClick",function(){return v(e),p().saveVideo()}),m(6,"translate"),c()}if(2&t){const e=p(),n=F(15);a(1),d("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),d("disabled",!n.dirty||""==e.video.Title.trim())}}function yle(t,i){if(1&t){const e=I();l(0,"p-button",72),C("onClick",function(){return v(e),p().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",73),C("onClick",function(){return v(e),p().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const wle=function(){return{height:"75vw",width:"50vw"}};let Tle=(()=>{class t{constructor(e,n,s,o){this.videoService=e,this.translate=n,this.messageService=s,this.utility=o,this.videos=[],this.refreshing=!1,this.successCount=0,this.errorCount=0,this.directory=[],this.video={Title:""},this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.showAllVideos=!1,this.mnu_markwatched={label:"dashboard.recordings.mnu_markwatched",command:u=>this.markwatched(u,!0)},this.mnu_markunwatched={label:"dashboard.recordings.mnu_markunwatched",command:u=>this.markwatched(u,!1)},this.mnu_updatemeta={label:"dashboard.recordings.mnu_updatemeta",command:u=>this.updatemeta(u)},this.menuToShow=[],this.msg={Success:"common.success",Failed:"common.failed",NetFail:"common.networkfail"},this.saveObserver={next:u=>{u.bool?(console.log("saveObserver success",u),this.successCount++,this.successCount++,this.currentForm.form.markAsPristine(),this.editingVideo&&Object.assign(this.editingVideo,this.video)):(console.log("saveObserver error",u),this.errorCount++)},error:u=>{console.log("saveObserver error",u),this.errorCount++}};for(const[u,h]of Object.entries(this.msg))this.translate.get(h).subscribe(b=>{Object.defineProperty(this.msg,u,{value:b})});[this.mnu_markwatched,this.mnu_markunwatched,this.mnu_updatemeta].forEach(u=>{u.label&&this.translate.get(u.label).subscribe(h=>u.label=h)})}ngOnInit(){}loadLazy(e){this.lazyLoadEvent=e;let n={Sort:"title",Folder:this.directory.join("/"),CollapseSubDirs:!this.showAllVideos,StartIndex:0,Count:1};e.sortField&&(n.Sort=e.sortField,e.sortOrder&&(n.Descending=e.sortOrder<0)),n.Sort+=",title,releasedate,season,episode",e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows,n.Count<100&&(n.Count=100)),this.videoService.GetVideoList(n).subscribe(s=>{let o=s.VideoMetadataInfoList;this.videos.length=s.VideoMetadataInfoList.TotalAvailable,this.videos.splice(o.StartIndex,o.VideoMetadataInfos.length,...o.VideoMetadataInfos),this.videos=[...this.videos],this.refreshing=!1})}reLoadVideos(){this.table.resetScrollTop(),this.videos.length=0,this.lazyLoadEvent.first=0,this.lazyLoadEvent.rows=100,this.loadLazy(this.lazyLoadEvent)}showAllChange(){this.refreshing=!0,setTimeout(()=>this.reLoadVideos(),100)}URLencode(e){return encodeURI(e)}onDirectory(e){this.directory.push(e),this.reLoadVideos()}breadCrumb(e){this.directory.length=e,this.reLoadVideos()}showMenu(e,n){this.video=e,this.menuToShow.length=0,this.menuToShow.push(e.Watched?this.mnu_markunwatched:this.mnu_markwatched),this.menuToShow.push(this.mnu_updatemeta),this.menu.toggle(n)}markwatched(e,n){this.videoService.UpdateVideoWatchedStatus(this.video.Id,n).subscribe({next:s=>{s.bool?(this.sendMessage("success",e.item.label,this.msg.Success),this.video.Watched=n):this.sendMessage("error",e.item.label,this.msg.Failed)},error:s=>this.networkError(s)})}updatemeta(e){this.editingVideo=this.video,this.video=Object.assign({},this.video),this.video.ReleaseDate=this.video.ReleaseDate?new Date(this.video.ReleaseDate):null,this.displayMetadataDlg=!0}sendMessage(e,n,s,o){this.messageService.add({severity:e,summary:s,detail:n+" "+this.video.Title+" "+this.video.SubTitle+(o=o?"\n"+o:""),life:3e3})}saveVideo(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.videoService.UpdateVideoMetadata({Id:this.video.Id,Episode:this.video.Episode,Inetref:this.video.Inetref,Plot:this.video.Description,ReleaseDate:this.video.ReleaseDate,Season:this.video.Season,SubTitle:this.video.SubTitle,Title:this.video.Title}).subscribe(this.saveObserver)}networkError(e){console.log("network error",e),this.sendMessage("error","",this.msg.NetFail)}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayMetadataDlg=!1,this.editingVideo=void 0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.editingVideo=void 0)}}return t.\u0275fac=function(e){return new(e||t)(D(tle),D(Oe),D(Gi),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-videos"]],viewQuery:function(e,n){if(1&e&&(W(nle,5),W(ile,5),W(sle,5)),2&e){let s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.menu=s.first),V(s=B())&&(n.table=s.first)}},features:[Pe([Gi])],decls:70,vars:71,consts:[[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full",2,"height","90vh"],[3,"popup","model"],["menu",""],["name","table","scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll","sortField","Title",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","onLazyLoad"],["table",""],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["name","vidsform",1,"ml-3","mr-3"],["vidsform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","Title",1,"label","block"],["pInputText","","id","Title","name","Title",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Title","ngModel"],["for","SubTitle",1,"label","block"],["pInputText","","id","SubTitle","name","SubTitle",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["SubTitle","ngModel"],["for","Inetref",1,"label","block"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],["for","Description",1,"label","block"],["pInputTextarea","","id","Description","name","Description",1,"mb-2","form-control","w-full",3,"rows","cols","ngModel","ngModelChange"],["Description","ngModel"],["for","Season",1,"label","block"],["name","Season","id","Season",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Episode",1,"label","block"],["name","Episode","id","Episode",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ReleaseDate",1,"label","block"],["dateFormat","yy-mm-dd","name","ReleaseDate","id","ReleaseDate",3,"ngModel","ngModelChange"],["for","FileName",1,"label","block"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],["styleClass","p-button-primary",1,"p-1",3,"label","onClick"],[4,"ngFor","ngForOf"],["inputId","showAllVideos","name","showAllVideos",3,"ngModel","binary","label","ngModelChange","onChange"],["showAll","ngModel"],[4,"ngIf","ngIfElse"],["refreshBn",""],["pSortableColumn","Title",1,"p-1",2,"flex-basis","30%"],["field","Title"],[1,"p-1",2,"flex-basis","3%"],[1,"p-1",2,"flex-basis","30%"],[1,"p-1",2,"flex-basis","6%"],["pSortableColumn","ReleaseDate",1,"justify-content-end","p-1",2,"flex-basis","12%"],["field","ReleaseDate"],[1,"justify-content-end","p-1",2,"flex-basis","10%"],["target","_blank"],[1,"pi","pi-download"],["pButton","","pRipple","","icon","pi pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi pi-refresh",1,"p-button-text",".p-button-success",3,"pTooltip","click"],[1,"p-1","overflow-hidden",2,"flex-basis","30%"],["title",""],["class","pi pi-eye",4,"ngIf"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","30%",3,"pTooltip"],[4,"ngIf"],[1,"justify-content-end","p-1",2,"flex-basis","12%"],[3,"innerHTML"],["pButton","","pRipple","","icon","pi pi-folder",1,"p-button-text","p-button-primary",3,"label","click"],[1,"pi","pi-eye"],["target","_blank","tooltipPosition","left",3,"href","pTooltip"],[1,"pi","pi-download","text-primary"],["pButton","","pRipple","","icon","pi pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"click"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"div")(1,"div",0),M(2,"p-toast",1),c(),l(3,"h2"),g(4),m(5,"translate"),c(),l(6,"div",2),M(7,"p-menu",3,4),l(9,"p-table",5,6),C("onLazyLoad",function(o){return n.loadLazy(o)}),_(11,ole,0,0,"ng-template",7),_(12,ule,36,28,"ng-template",8),_(13,_le,17,9,"ng-template",9),c()(),l(14,"form",10,11)(16,"p-dialog",12),C("visibleChange",function(o){return n.displayMetadataDlg=o}),m(17,"translate"),l(18,"div",13)(19,"label",14),g(20),m(21,"translate"),c(),l(22,"input",15,16),C("ngModelChange",function(o){return n.video.Title=o}),c()(),l(24,"div",13)(25,"label",17),g(26),m(27,"translate"),c(),l(28,"input",18,19),C("ngModelChange",function(o){return n.video.SubTitle=o}),c()(),l(30,"div",13)(31,"label",20),g(32),m(33,"translate"),c(),l(34,"input",21,22),C("ngModelChange",function(o){return n.video.Inetref=o}),c()(),l(36,"div",13)(37,"label",23),g(38),m(39,"translate"),c(),l(40,"textarea",24,25),C("ngModelChange",function(o){return n.video.Description=o}),c()(),l(42,"div",13)(43,"label",26),g(44),m(45,"translate"),c(),l(46,"p-inputNumber",27),C("ngModelChange",function(o){return n.video.Season=o}),c()(),l(47,"div",13)(48,"label",28),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",29),C("ngModelChange",function(o){return n.video.Episode=o}),c()(),l(52,"div",13)(53,"label",30),g(54),m(55,"translate"),c(),l(56,"p-calendar",31),C("ngModelChange",function(o){return n.video.ReleaseDate=o}),c()(),l(57,"div",13)(58,"label",32),g(59),m(60,"translate"),c(),l(61,"pre"),g(62),c()(),_(63,Cle,7,9,"ng-template",33),c(),l(64,"p-dialog",34),C("visibleChange",function(o){return n.displayUnsaved=o}),m(65,"translate"),l(66,"p"),g(67),m(68,"translate"),c(),_(69,yle,4,6,"ng-template",33),c()()()),2&e&&(a(4),S(f(5,46,"dashboard.videos.heading")),a(3),d("popup",!0)("model",n.menuToShow),a(2),d("value",n.videos)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0),a(7),q(A(70,wle)),x("header",f(17,48,"dashboard.recordings.edit_metadata")),d("visible",n.displayMetadataDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(f(21,50,"dashboard.recordings.title")),a(2),d("ngModel",n.video.Title),a(4),S(f(27,52,"dashboard.recordings.subtitle")),a(2),d("ngModel",n.video.SubTitle),a(4),S(f(33,54,"dashboard.recordings.inetref")),a(2),d("ngModel",n.video.Inetref),a(4),S(f(39,56,"dashboard.recordings.description")),a(2),d("rows",5)("cols",30)("ngModel",n.video.Description),a(4),S(f(45,58,"dashboard.recordings.season")),a(2),d("ngModel",n.video.Season)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(50,60,"dashboard.recordings.episode")),a(2),d("ngModel",n.video.Episode)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(55,62,"dashboard.videos.releasedate")),a(2),d("ngModel",n.video.ReleaseDate),a(3),S(f(60,64,"dashboard.recordings.filename_label")),a(3),S(n.video.FileName),a(2),x("header",f(65,66,"common.unsaved_heading")),d("visible",n.displayUnsaved)("modal",!0),a(3),S(f(68,68,"common.unsaved_message")))},directives:[Sd,sS,Dn,ne,Ce,at,on,we,_e,Q,Gr,An,vt,Qt,Ll,Ol,ze,Ue,He,bn,Ye,tS,pt,Do,qe],pipes:[ce],styles:[""]}),t})(),Sle=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[vn.forChild([{path:"dashboard",component:rS,children:[{path:"status",component:Bre},{path:"channel-editor",component:bS},{path:"program-guide",component:CS},{path:"recordings",component:sae},{path:"upcoming",component:zae},{path:"recrules",component:ele},{path:"videos",component:Tle}]}])],vn]}),t})();function xle(t,i){1&t&&(l(0,"tr")(1,"th",7),g(2),m(3,"translate"),c(),l(4,"th",8),g(5),m(6,"translate"),c(),M(7,"th",9),l(8,"th",10),g(9),m(10,"translate"),c(),l(11,"th",11),g(12),m(13,"translate"),c(),l(14,"th",12),g(15),m(16,"translate"),c(),l(17,"th",7),g(18),m(19,"translate"),c(),l(20,"th",13),g(21),m(22,"translate"),c(),l(23,"th",14),g(24),m(25,"translate"),c(),l(26,"th",15),M(27,"button",16),c()()),2&t&&(a(2),T(" ",f(3,9,"dashboard.upcoming.date")," "),a(3),T(" ",f(6,11,"dashboard.upcoming.time")," "),a(4),T(" ",f(10,13,"dashboard.recordings.title"),""),a(3),S(f(13,15,"dashboard.recordings.subtitle")),a(3),S(f(16,17,"dashboard.recordings.seas_ep")),a(3),T(" ",f(19,19,"dashboard.recordings.orig_airdate")," "),a(3),S(f(22,21,"dashboard.recordings.channel")),a(3),T(" ",f(25,23,"dashboard.upcoming.status")," "),a(3),d("disabled",!0))}function Dle(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const e=p().$implicit;a(1),We(" ",e.Season,"x",e.Episode,"")}}const Mle=function(){return["WillRecord","Recording","Recorded"]};function kle(t,i){if(1&t&&(l(0,"div",28)(1,"b"),g(2),c()()),2&t){const e=p().$implicit,n=p();d("ngClass",A(2,Mle).indexOf(e.Recording.StatusName)>-1?"bg-green-500":"bg-pink-500"),a(2),S(n.dataService.recStatusText[e.Recording.StatusName])}}function Ile(t,i){if(1&t){const e=I();l(0,"tr",17)(1,"td",18),M(2,"div",19),c(),l(3,"td",20),g(4),c(),l(5,"td",21),g(6),m(7,"number"),c(),l(8,"td",22),g(9),c(),l(10,"td",23),g(11),c(),l(12,"td",12),_(13,Dle,2,2,"div",24),c(),l(14,"td",7),M(15,"div",19),c(),l(16,"td",13),g(17),c(),l(18,"td",14),_(19,kle,3,3,"div",25),c(),l(20,"td",26)(21,"button",27),C("click",function(){const o=v(e).$implicit;return p().updateRecRule(o)}),m(22,"translate"),c()()()}if(2&t){const e=i.$implicit,n=p();d("ngClass",n.getClasses(e)),a(2),d("innerHTML",n.formatStartDate(e),Ft),a(2),T(" ",n.formatStartTime(e),""),a(2),T(" ",_t(7,14,n.getDuration(e),"1.0-0")," min"),a(3),T(" ",e.Title,""),a(1),x("pTooltip",e.Description),a(1),T(" ",e.SubTitle.slice(0,50),""),a(2),d("ngIf",e.Season>0||e.Episode>0),a(2),d("innerHTML",n.formatAirDate(e),Ft),a(2),We(" ",e.Channel.ChanNum," ",e.Channel.CallSign,""),a(2),d("ngIf",e.Recording),a(2),x("pTooltip",f(22,17,"dashboard.recordings.edit_rule")),d("disabled",e.Recording&&7==e.Recording.RecType)}}function Ele(t,i){1&t&&(M(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function Rle(t,i){if(1&t){const e=I();l(0,"div",29),_(1,Ele,2,3,"p-message",30),c(),l(2,"p-button",31),C("onClick",function(){return v(e),p().displayStop=!1}),m(3,"translate"),c(),l(4,"p-button",32),C("onClick",function(){v(e);const s=p();return s.stopRecording(s.program)}),m(5,"translate"),c()}if(2&t){const e=p();a(1),d("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"dashboard.recordings.stop_recording"))}}let Lle=(()=>{class t{constructor(e,n,s){this.dataService=e,this.dvrService=n,this.utility=s,this.programs=[],this.displayStop=!1,this.successCount=0,this.errorCount=0,this.regex=/[^a-z0-9]/g}ngOnInit(){}formatStartDate(e){return this.utility.formatDate(e.StartTime,!0)}formatAirDate(e){return e.Airdate?this.utility.formatDate(e.Airdate+" 00:00",!0):""}formatStartTime(e){let n=new Date(e.StartTime).getTime();return(new Date(n).toLocaleTimeString()+" ").replace(/:.. /," ")}getClasses(e){return["guide_type_"+e.CatType,"guide_cat_"+e.Category.toLowerCase().replace(this.regex,"_"),"guide_type_default"]}getDuration(e){let n=new Date(e.StartTime).getTime();return(new Date(e.EndTime).getTime()-n)/6e4}updateRecRule(e){this.inter.sched&&this.inter.sched.open(e)}override(e){this.inter.sched&&(7==e.Recording.RecType?this.inter.sched.open(e):this.inter.sched.open(e,void 0,{Type:"Override Recording"}))}stopRequest(e){e.Recording.RecordId&&(this.program=e,this.displayStop=!0)}stopRecording(e){this.errorCount=0,this.dvrService.StopRecording(e.Recording.RecordedId).subscribe({next:n=>{n.bool?(this.displayStop=!1,setTimeout(()=>this.inter.summaryComponent.refresh(),3e3)):this.errorCount++},error:n=>{this.errorCount++}})}}return t.\u0275fac=function(e){return new(e||t)(D(Fl),D(jr),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-programs"]],inputs:{programs:"programs",inter:"inter"},decls:17,vars:19,consts:[[2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","header"],["pTemplate","body"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","12%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],[1,"p-1",2,"flex-basis","10%"],[1,"p-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","2%"],["pButton","","pRipple","","icon","pi pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],[3,"ngClass"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","8%"],[3,"innerHTML"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1","overflow-hidden",2,"flex-basis","7%"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],["class","text-white",3,"ngClass",4,"ngIf"],[1,"p-1",2,"flex-basis","2%","background","var(--surface-card)"],["pButton","","pRipple","","icon","pi pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","disabled","click"],[1,"text-white",3,"ngClass"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"p-table",1),_(2,xle,28,25,"ng-template",2),_(3,Ile,23,19,"ng-template",3),c(),l(4,"p-dialog",4),C("visibleChange",function(o){return n.displayStop=o}),m(5,"translate"),l(6,"h2"),g(7),m(8,"translate"),c(),l(9,"p"),g(10),m(11,"translate"),M(12,"br"),l(13,"b"),g(14),c()(),_(15,Rle,6,7,"ng-template",5),c(),M(16,"app-schedule",6),c()),2&e&&(a(1),d("value",n.programs)("scrollable",!0)("rowHover",!0),a(3),x("header",f(5,13,"dashboard.recordings.stop_recording")),d("visible",n.displayStop)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(8,15,"settings.common.ru_sure")),a(3),T("",f(11,17,"dashboard.recordings.stop_details")," "),a(4),We(" ",null==n.program?null:n.program.Title,": ",null==n.program?null:n.program.SubTitle,""),a(2),d("inter",n.inter))},directives:[Dn,ne,An,vt,Le,Qt,Q,bn,qe,Ce,Rd],pipes:[ce,iu],styles:[".type_series[_ngcontent-%COMP%]{background-color:#00008b;color:#fff}.type_tvshow[_ngcontent-%COMP%]{background-color:#2f4f4f;color:#fff}.type_movie[_ngcontent-%COMP%]{background-color:#8a2be2;color:#fff}.type_sports[_ngcontent-%COMP%]{background-color:#8b0000;color:#fff}"]}),t})();function Ole(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"dashboard.guide.typecolors")," ")}const Ale=function(t){return[t,"guide_type_default"]};function Ple(t,i){if(1&t&&(l(0,"div",4)(1,"div",5),g(2),c()()),2&t){const e=i.$implicit;a(1),d("ngClass",U(2,Ale,"guide_type_"+e)),a(1),T(" \xa0",e,"")}}function Fle(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T(" ",f(1,1,"dashboard.guide.catcolors")," ")}const Nle=function(t){return[t,"px-1"]};function Vle(t,i){if(1&t&&(l(0,"div",4)(1,"div",5),g(2),c()()),2&t){const e=i.$implicit,n=p();a(1),d("ngClass",U(2,Nle,"guide_cat_"+e.toLowerCase().replace(n.regex,"_"))),a(1),T(" ",e,"")}}let Ble=(()=>{class t{constructor(){this.catTypes=[],this.categories=[],this.regex=/[^a-z0-9]/g}ngOnInit(){let e=new Set,n=new Set;null!=this.programGuide?this.programGuide.ProgramGuide.Channels.forEach(o=>{o.Programs.forEach(r=>{r.CatType&&e.add(r.CatType),r.Category&&n.add(r.Category)})}):null!=this.listPrograms&&this.listPrograms.forEach(o=>{o.CatType&&e.add(o.CatType),o.Category&&n.add(o.Category)}),this.catTypes=[];let s=e.values();for(;;){let o=s.next();if(o.done)break;this.catTypes.push(o.value)}for(this.categories=[],s=n.values();;){let o=s.next();if(o.done)break;this.categories.push(o.value)}this.catTypes.sort(),this.catTypes.push("default"),this.categories.sort()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-legend"]],inputs:{programGuide:"programGuide",listPrograms:"listPrograms"},decls:20,vars:11,consts:[[1,"flex"],["layout","grid",3,"value"],["pTemplate","header"],["pTemplate","gridItem"],[1,"md:col-2","px-3","py-1"],[3,"ngClass"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div")(2,"p-dataView",1),_(3,Ole,2,3,"ng-template",2),_(4,Ple,3,4,"ng-template",3),c(),l(5,"p-dataView",1),_(6,Fle,2,3,"ng-template",2),_(7,Vle,3,4,"ng-template",3),c(),l(8,"p"),g(9),m(10,"translate"),M(11,"br"),g(12),m(13,"translate"),M(14,"br"),g(15),m(16,"translate"),l(17,"code"),g(18,"/usr/share/mythtv/html/assets/guidecolors.css"),c(),g(19,"\xa0."),c()()()),2&e&&(a(2),d("value",n.catTypes),a(3),d("value",n.categories),a(4),S(f(10,5,"dashboard.guide.color_includes")),a(3),T(" ",f(13,7,"dashboard.guide.color_expl"),""),a(3),T(" ",f(16,9,"dashboard.guide.color_customize"),""))},directives:[LT,ne,Le],pipes:[ce],styles:[""]}),t})();function Hle(t){return new WO(t)}let qle=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t,bootstrap:[VW]}),t.\u0275inj=ue({providers:[],imports:[[qy,IO,TW,UF,Eu,UA,sW,$O.forRoot({defaultLanguage:"en_US",loader:{provide:il,useFactory:Hle,deps:[Bi]}}),k$,wX,Sle]]}),t})();Ki(CS,[Q,Ot,we,_e,Qt,Do,Ye,An,vt,Gr,K2,LT,ne,tee,QX,at,eee,Lle,Rd,bn,Ble],[ce]),Ki(hS,[Ne,Ce,bn,zi,we,_e,ne,Q,qe,Ss,at,Ts,_o,Ya,hee,wS,Wte,sne,hne,wne,Rne,hse,Dse,Vse,Jse,aoe,km],[ce]),Ki(wS,[ze,Ue,He,Ne,ne,Q,Ot,we,_e,_n,Ye,pt,on,Ui,Ce,bn,zi,Qt,qe,kd,Nl,wg,Vl],[ce]),Ki(Nl,[ze,Ue,He,Ne,ne,Ye,we,_e,pt,Ot,_n,Q,Dn,$2,DU,Ui,Ce,bn,zi,kd,Nl,wg,Vl],[ce]),Ki(Vl,[ze,Ue,He,Ne,ne,Ye,we,_e,pt,Ui,Q,Ce,bn,zi,kd,Nl,wg,Vl],[ce]),Ki(_S,[Ne,Ss,at,Ts,ne,Q,kS,Ce],[ce]),Ki(kS,[ze,Ue,He,Ne,ne,Q,_o,Ya,pt,we,_e,Al,Ye,Ot,_n,on,Ui,Qoe,Ce,bn,qe],[ce]),Ki(mS,[Ne,Ss,at,Ts,ne,Q,ES,Ce],[ce]),Ki(ES,[Ce,bn,Ye,we,_e,ne,Q,qe,Ss,at,Ts,ese],[ce]),function QR(){if(ZC)throw new Error("Cannot enable prod mode after platform setup.");YC=!1}(),nO().bootstrapModule(qle).catch(t=>console.error(t))}},Is=>{Is(Is.s=452)}]);
\ No newline at end of file
+"use strict";(self.webpackChunkbackend=self.webpackChunkbackend||[]).push([[179],{452:()=>{function Is(t){return"function"==typeof t}let Jr=!1;const di={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const i=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+i.stack)}else Jr&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Jr=t},get useDeprecatedSynchronousErrorHandling(){return Jr}};function Es(t){setTimeout(()=>{throw t},0)}const Bl={closed:!0,next(t){},error(t){if(di.useDeprecatedSynchronousErrorHandling)throw t;Es(t)},complete(){}},Vo=Array.isArray||(t=>t&&"number"==typeof t.length);function Ld(t){return null!==t&&"object"==typeof t}const Hl=(()=>{function t(i){return Error.call(this),this.message=i?`${i.length} errors occurred during unsubscription:\n${i.map((e,n)=>`${n+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=i,this}return t.prototype=Object.create(Error.prototype),t})();class Et{constructor(i){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,i&&(this._ctorUnsubscribe=!0,this._unsubscribe=i)}unsubscribe(){let i;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:s,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof Et)e.remove(this);else if(null!==e)for(let r=0;ri.concat(e instanceof Hl?e.errors:e),[])}Et.EMPTY=((t=new Et).closed=!0,t);const ql="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class wt extends Et{constructor(i,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Bl;break;case 1:if(!i){this.destination=Bl;break}if("object"==typeof i){i instanceof wt?(this.syncErrorThrowable=i.syncErrorThrowable,this.destination=i,i.add(this)):(this.syncErrorThrowable=!0,this.destination=new Mg(this,i));break}default:this.syncErrorThrowable=!0,this.destination=new Mg(this,i,e,n)}}[ql](){return this}static create(i,e,n){const s=new wt(i,e,n);return s.syncErrorThrowable=!1,s}next(i){this.isStopped||this._next(i)}error(i){this.isStopped||(this.isStopped=!0,this._error(i))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(i){this.destination.next(i)}_error(i){this.destination.error(i),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:i}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=i,this}}class Mg extends wt{constructor(i,e,n,s){super(),this._parentSubscriber=i;let o,r=this;Is(e)?o=e:e&&(o=e.next,n=e.error,s=e.complete,e!==Bl&&(r=Object.create(e),Is(r.unsubscribe)&&this.add(r.unsubscribe.bind(r)),r.unsubscribe=this.unsubscribe.bind(this))),this._context=r,this._next=o,this._error=n,this._complete=s}next(i){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;di.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,i)&&this.unsubscribe():this.__tryOrUnsub(this._next,i)}}error(i){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=di;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,i),this.unsubscribe()):(this.__tryOrUnsub(this._error,i),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=i,e.syncErrorThrown=!0):Es(i),this.unsubscribe();else{if(this.unsubscribe(),n)throw i;Es(i)}}}complete(){if(!this.isStopped){const{_parentSubscriber:i}=this;if(this._complete){const e=()=>this._complete.call(this._context);di.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?(this.__tryOrSetError(i,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(i,e){try{i.call(this._context,e)}catch(n){if(this.unsubscribe(),di.useDeprecatedSynchronousErrorHandling)throw n;Es(n)}}__tryOrSetError(i,e,n){if(!di.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(s){return di.useDeprecatedSynchronousErrorHandling?(i.syncErrorValue=s,i.syncErrorThrown=!0,!0):(Es(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:i}=this;this._context=null,this._parentSubscriber=null,i.unsubscribe()}}const Yr="function"==typeof Symbol&&Symbol.observable||"@@observable";function Gl(t){return t}let Je=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,s){const{operator:o}=this,r=function FS(t,i,e){if(t){if(t instanceof wt)return t;if(t[ql])return t[ql]()}return t||i||e?new wt(t,i,e):new wt(Bl)}(e,n,s);if(r.add(o?o.call(r,this.source):this.source||di.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),di.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(n){di.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=n),function PS(t){for(;t;){const{closed:i,destination:e,isStopped:n}=t;if(i||n)return!1;t=e&&e instanceof wt?e:null}return!0}(e)?e.error(n):console.warn(n)}}forEach(e,n){return new(n=Ig(n))((s,o)=>{let r;r=this.subscribe(u=>{try{e(u)}catch(h){o(h),r&&r.unsubscribe()}},o,s)})}_subscribe(e){const{source:n}=this;return n&&n.subscribe(e)}[Yr](){return this}pipe(...e){return 0===e.length?this:function kg(t){return 0===t.length?Gl:1===t.length?t[0]:function(e){return t.reduce((n,s)=>s(n),e)}}(e)(this)}toPromise(e){return new(e=Ig(e))((n,s)=>{let o;this.subscribe(r=>o=r,r=>s(r),()=>n(o))})}}return t.create=i=>new t(i),t})();function Ig(t){if(t||(t=di.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const no=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class Eg extends Et{constructor(i,e){super(),this.subject=i,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const i=this.subject,e=i.observers;if(this.subject=null,!e||0===e.length||i.isStopped||i.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class Rg extends wt{constructor(i){super(i),this.destination=i}}let ct=(()=>{class t extends Je{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ql](){return new Rg(this)}lift(e){const n=new Lg(this,this);return n.operator=e,n}next(e){if(this.closed)throw new no;if(!this.isStopped){const{observers:n}=this,s=n.length,o=n.slice();for(let r=0;rnew Lg(i,e),t})();class Lg extends ct{constructor(i,e){super(),this.destination=i,this.source=e}next(i){const{destination:e}=this;e&&e.next&&e.next(i)}error(i){const{destination:e}=this;e&&e.error&&this.destination.error(i)}complete(){const{destination:i}=this;i&&i.complete&&this.destination.complete()}_subscribe(i){const{source:e}=this;return e?this.source.subscribe(i):Et.EMPTY}}function Bo(t){return t&&"function"==typeof t.schedule}function et(t,i){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new NS(t,i))}}class NS{constructor(i,e){this.project=i,this.thisArg=e}call(i,e){return e.subscribe(new VS(i,this.project,this.thisArg))}}class VS extends wt{constructor(i,e,n){super(i),this.project=e,this.count=0,this.thisArg=n||this}_next(i){let e;try{e=this.project.call(this.thisArg,i,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const Og=t=>i=>{for(let e=0,n=t.length;et&&"number"==typeof t.length&&"function"!=typeof t;function Pg(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const Od=t=>{if(t&&"function"==typeof t[Yr])return(t=>i=>{const e=t[Yr]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(i)})(t);if(Ag(t))return Og(t);if(Pg(t))return(t=>i=>(t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Es),i))(t);if(t&&"function"==typeof t[Ul])return(t=>i=>{const e=t[Ul]();for(;;){let n;try{n=e.next()}catch(s){return i.error(s),i}if(n.done){i.complete();break}if(i.next(n.value),i.closed)break}return"function"==typeof e.return&&i.add(()=>{e.return&&e.return()}),i})(t);{const e=`You provided ${Ld(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Ad(t,i){return new Je(e=>{const n=new Et;let s=0;return n.add(i.schedule(function(){s!==t.length?(e.next(t[s++]),e.closed||n.add(this.schedule())):e.complete()})),n})}function Mn(t,i){return i?function KS(t,i){if(null!=t){if(function $S(t){return t&&"function"==typeof t[Yr]}(t))return function US(t,i){return new Je(e=>{const n=new Et;return n.add(i.schedule(()=>{const s=t[Yr]();n.add(s.subscribe({next(o){n.add(i.schedule(()=>e.next(o)))},error(o){n.add(i.schedule(()=>e.error(o)))},complete(){n.add(i.schedule(()=>e.complete()))}}))})),n})}(t,i);if(Pg(t))return function zS(t,i){return new Je(e=>{const n=new Et;return n.add(i.schedule(()=>t.then(s=>{n.add(i.schedule(()=>{e.next(s),n.add(i.schedule(()=>e.complete()))}))},s=>{n.add(i.schedule(()=>e.error(s)))}))),n})}(t,i);if(Ag(t))return Ad(t,i);if(function WS(t){return t&&"function"==typeof t[Ul]}(t)||"string"==typeof t)return function jS(t,i){if(!t)throw new Error("Iterable cannot be null");return new Je(e=>{const n=new Et;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(i.schedule(()=>{s=t[Ul](),n.add(i.schedule(function(){if(e.closed)return;let o,r;try{const u=s.next();o=u.value,r=u.done}catch(u){return void e.error(u)}r?e.complete():(e.next(o),this.schedule())}))})),n})}(t,i)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,i):t instanceof Je?t:new Je(Od(t))}class Zr extends wt{constructor(i){super(),this.parent=i}_next(i){this.parent.notifyNext(i)}_error(i){this.parent.notifyError(i),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Xr extends wt{notifyNext(i){this.destination.next(i)}notifyError(i){this.destination.error(i)}notifyComplete(){this.destination.complete()}}function ea(t,i){if(i.closed)return;if(t instanceof Je)return t.subscribe(i);let e;try{e=Od(t)(i)}catch(n){i.error(n)}return e}function yn(t,i,e=Number.POSITIVE_INFINITY){return"function"==typeof i?n=>n.pipe(yn((s,o)=>Mn(t(s,o)).pipe(et((r,u)=>i(s,r,o,u))),e)):("number"==typeof i&&(e=i),n=>n.lift(new QS(t,e)))}class QS{constructor(i,e=Number.POSITIVE_INFINITY){this.project=i,this.concurrent=e}call(i,e){return e.subscribe(new JS(i,this.project,this.concurrent))}}class JS extends Xr{constructor(i,e,n=Number.POSITIVE_INFINITY){super(i),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(i){this.active0?this._next(i.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function ta(t=Number.POSITIVE_INFINITY){return yn(Gl,t)}function Pd(t,i){return i?Ad(t,i):new Je(Og(t))}function Fd(){return function(i){return i.lift(new ZS(i))}}class ZS{constructor(i){this.connectable=i}call(i,e){const{connectable:n}=this;n._refCount++;const s=new XS(i,n),o=e.subscribe(s);return s.closed||(s.connection=n.connect()),o}}class XS extends wt{constructor(i,e){super(i),this.connectable=e}_unsubscribe(){const{connectable:i}=this;if(!i)return void(this.connection=null);this.connectable=null;const e=i._refCount;if(e<=0)return void(this.connection=null);if(i._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,s=i._connection;this.connection=null,s&&(!n||s===n)&&s.unsubscribe()}}class Fg extends Je{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let i=this._connection;return i||(this._isComplete=!1,i=this._connection=new Et,i.add(this.source.subscribe(new tx(this.getSubject(),this))),i.closed&&(this._connection=null,i=Et.EMPTY)),i}refCount(){return Fd()(this)}}const ex=(()=>{const t=Fg.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class tx extends Rg{constructor(i,e){super(i),this.connectable=e}_error(i){this._unsubscribe(),super._error(i)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const i=this.connectable;if(i){this.connectable=null;const e=i._connection;i._refCount=0,i._subject=null,i._connection=null,e&&e.unsubscribe()}}}class sx{constructor(i,e){this.subjectFactory=i,this.selector=e}call(i,e){const{selector:n}=this,s=this.subjectFactory(),o=n(s).subscribe(i);return o.add(e.subscribe(s)),o}}function ox(){return new ct}function Tt(t){for(let i in t)if(t[i]===Tt)return i;throw Error("Could not find renamed property on target object.")}function Nd(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function ft(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(ft).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function Vd(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const ax=Tt({__forward_ref__:Tt});function je(t){return t.__forward_ref__=je,t.toString=function(){return ft(this())},t}function Ve(t){return Ng(t)?t():t}function Ng(t){return"function"==typeof t&&t.hasOwnProperty(ax)&&t.__forward_ref__===je}class oe extends Error{constructor(i,e){super(function Bd(t,i){return`NG0${Math.abs(t)}${i?": "+i:""}`}(i,e)),this.code=i}}function Ie(t){return"string"==typeof t?t:null==t?"":String(t)}function wn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ie(t)}function zl(t,i){const e=i?` in ${i}`:"";throw new oe(-201,`No provider for ${wn(t)} found${e}`)}function Jn(t,i){null==t&&function gt(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function X(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ue(t){return{providers:t.providers||[],imports:t.imports||[]}}function Hd(t){return Vg(t,jl)||Vg(t,Hg)}function Vg(t,i){return t.hasOwnProperty(i)?t[i]:null}function Bg(t){return t&&(t.hasOwnProperty(qd)||t.hasOwnProperty(mx))?t[qd]:null}const jl=Tt({\u0275prov:Tt}),qd=Tt({\u0275inj:Tt}),Hg=Tt({ngInjectableDef:Tt}),mx=Tt({ngInjectorDef:Tt});var xe=(()=>((xe=xe||{})[xe.Default=0]="Default",xe[xe.Host=1]="Host",xe[xe.Self=2]="Self",xe[xe.SkipSelf=4]="SkipSelf",xe[xe.Optional=8]="Optional",xe))();let Gd;function Rs(t){const i=Gd;return Gd=t,i}function qg(t,i,e){const n=Hd(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&xe.Optional?null:void 0!==i?i:void zl(ft(t),"Injector")}function Ls(t){return{toString:t}.toString()}var Mi=(()=>((Mi=Mi||{})[Mi.OnPush=0]="OnPush",Mi[Mi.Default=1]="Default",Mi))(),ki=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(ki||(ki={})),ki))();const gx="undefined"!=typeof globalThis&&globalThis,_x="undefined"!=typeof window&&window,bx="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ct=gx||"undefined"!=typeof global&&global||_x||bx,Ho={},St=[],$l=Tt({\u0275cmp:Tt}),Ud=Tt({\u0275dir:Tt}),zd=Tt({\u0275pipe:Tt}),Gg=Tt({\u0275mod:Tt}),ps=Tt({\u0275fac:Tt}),na=Tt({__NG_ELEMENT_ID__:Tt});let vx=0;function z(t){return Ls(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Mi.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||St,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ki.Emulated,id:"c",styles:t.styles||St,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,o=t.features,r=t.pipes;return n.id+=vx++,n.inputs=$g(t.inputs,e),n.outputs=$g(t.outputs),o&&o.forEach(u=>u(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(Ug):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(zg):null,n})}function Ki(t,i,e){const n=t.\u0275cmp;n.directiveDefs=()=>i.map(Ug),n.pipeDefs=()=>e.map(zg)}function Ug(t){return Tn(t)||function Os(t){return t[Ud]||null}(t)}function zg(t){return function io(t){return t[zd]||null}(t)}const jg={};function he(t){return Ls(()=>{const i={type:t.type,bootstrap:t.bootstrap||St,declarations:t.declarations||St,imports:t.imports||St,exports:t.exports||St,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(jg[t.id]=t.type),i})}function $g(t,i){if(null==t)return Ho;const e={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),e[s]=n,i&&(i[s]=o)}return e}const le=z;function Pn(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Tn(t){return t[$l]||null}function pi(t,i){const e=t[Gg]||null;if(!e&&!0===i)throw new Error(`Type ${ft(t)} does not have '\u0275mod' property.`);return e}function Qi(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ei(t){return Array.isArray(t)&&!0===t[1]}function Wd(t){return 0!=(8&t.flags)}function Jl(t){return 2==(2&t.flags)}function Yl(t){return 1==(1&t.flags)}function Ri(t){return null!==t.template}function Sx(t){return 0!=(512&t[2])}function ao(t,i){return t.hasOwnProperty(ps)?t[ps]:null}class Mx{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function fn(){return Kg}function Kg(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ix),kx}function kx(){const t=Jg(this),i=null==t?void 0:t.current;if(i){const e=t.previous;if(e===Ho)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Ix(t,i,e,n){const s=Jg(t)||function Ex(t,i){return t[Qg]=i}(t,{previous:Ho,current:null}),o=s.current||(s.current={}),r=s.previous,u=this.declaredInputs[e],h=r[u];o[u]=new Mx(h&&h.currentValue,i,r===Ho),t[n]=i}fn.ngInherit=!0;const Qg="__ngSimpleChanges__";function Jg(t){return t[Qg]||null}let Zd;function Xd(){return void 0!==Zd?Zd:"undefined"!=typeof document?document:void 0}function $t(t){return!!t.listen}const Yg={createRenderer:(t,i)=>Xd()};function Zt(t){for(;Array.isArray(t);)t=t[0];return t}function Zl(t,i){return Zt(i[t])}function Zn(t,i){return Zt(i[t.index])}function ep(t,i){return t.data[i]}function jo(t,i){return t[i]}function Xn(t,i){const e=i[t];return Qi(e)?e:e[0]}function Zg(t){return 4==(4&t[2])}function tp(t){return 128==(128&t[2])}function As(t,i){return null==i?null:t[i]}function Xg(t){t[18]=0}function np(t,i){t[5]+=i;let e=t,n=t[3];for(;null!==n&&(1===i&&1===e[5]||-1===i&&0===e[5]);)n[5]+=i,e=n,n=n[3]}const Ee={lFrame:l_(null),bindingsEnabled:!0};function t_(){return Ee.bindingsEnabled}function $(){return Ee.lFrame.lView}function tt(){return Ee.lFrame.tView}function v(t){return Ee.lFrame.contextLView=t,t[8]}function rn(){let t=n_();for(;null!==t&&64===t.type;)t=t.parent;return t}function n_(){return Ee.lFrame.currentTNode}function Ji(t,i){const e=Ee.lFrame;e.currentTNode=t,e.isParent=i}function ip(){return Ee.lFrame.isParent}function sp(){Ee.lFrame.isParent=!1}function Nn(){const t=Ee.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function hs(){return Ee.lFrame.bindingIndex}function $o(){return Ee.lFrame.bindingIndex++}function ms(t){const i=Ee.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function Wx(t,i){const e=Ee.lFrame;e.bindingIndex=e.bindingRootIndex=t,op(i)}function op(t){Ee.lFrame.currentDirectiveIndex=t}function o_(){return Ee.lFrame.currentQueryIndex}function ap(t){Ee.lFrame.currentQueryIndex=t}function Qx(t){const i=t[1];return 2===i.type?i.declTNode:1===i.type?t[6]:null}function r_(t,i,e){if(e&xe.SkipSelf){let s=i,o=t;for(;!(s=s.parent,null!==s||e&xe.Host||(s=Qx(o),null===s||(o=o[15],10&s.type))););if(null===s)return!1;i=s,t=o}const n=Ee.lFrame=a_();return n.currentTNode=i,n.lView=t,!0}function ec(t){const i=a_(),e=t[1];Ee.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function a_(){const t=Ee.lFrame,i=null===t?null:t.child;return null===i?l_(t):i}function l_(t){const i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=i),i}function c_(){const t=Ee.lFrame;return Ee.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const u_=c_;function tc(){const t=c_();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Vn(){return Ee.lFrame.selectedIndex}function Ps(t){Ee.lFrame.selectedIndex=t}function Ht(){const t=Ee.lFrame;return ep(t.tView,t.selectedIndex)}function nc(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[h]<0&&(t[18]+=65536),(u>11>16&&(3&t[2])===i){t[2]+=2048;try{o.call(u)}finally{}}}else try{o.call(u)}finally{}}class aa{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function oc(t,i,e){const n=$t(t);let s=0;for(;si){r=o-1;break}}}for(;o>16}(t),n=i;for(;e>0;)n=n[15],e--;return n}let dp=!0;function ac(t){const i=dp;return dp=t,i}let cD=0;function ca(t,i){const e=hp(t,i);if(-1!==e)return e;const n=i[1];n.firstCreatePass&&(t.injectorIndex=i.length,pp(n.data,t),pp(i,null),pp(n.blueprint,null));const s=lc(t,i),o=t.injectorIndex;if(f_(s)){const r=Wo(s),u=Ko(s,i),h=u[1].data;for(let b=0;b<8;b++)i[o+b]=u[r+b]|h[r+b]}return i[o+8]=s,o}function pp(t,i){t.push(0,0,0,0,0,0,0,0,i)}function hp(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function lc(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,s=i;for(;null!==s;){const o=s[1],r=o.type;if(n=2===r?o.declTNode:1===r?s[6]:null,null===n)return-1;if(e++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return-1}function cc(t,i,e){!function uD(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(na)&&(n=e[na]),null==n&&(n=e[na]=cD++);const s=255&n;i.data[t+(s>>5)]|=1<=0?255&i:pD:i}(e);if("function"==typeof o){if(!r_(i,t,n))return n&xe.Host?b_(s,e,n):v_(i,e,n,s);try{const r=o(n);if(null!=r||n&xe.Optional)return r;zl(e)}finally{u_()}}else if("number"==typeof o){let r=null,u=hp(t,i),h=-1,b=n&xe.Host?i[16][6]:null;for((-1===u||n&xe.SkipSelf)&&(h=-1===u?lc(t,i):i[u+8],-1!==h&&T_(n,!1)?(r=i[1],u=Wo(h),i=Ko(h,i)):u=-1);-1!==u;){const y=i[1];if(w_(o,u,y.data)){const w=hD(u,i,e,r,n,b);if(w!==y_)return w}h=i[u+8],-1!==h&&T_(n,i[1].data[u+8]===b)&&w_(o,u,i)?(r=y,u=Wo(h),i=Ko(h,i)):u=-1}}}return v_(i,e,n,s)}const y_={};function pD(){return new Qo(rn(),$())}function hD(t,i,e,n,s,o){const r=i[1],u=r.data[t+8],y=uc(u,r,e,null==n?Jl(u)&&dp:n!=r&&0!=(3&u.type),s&xe.Host&&o===u);return null!==y?ua(i,r,y,u):y_}function uc(t,i,e,n,s){const o=t.providerIndexes,r=i.data,u=1048575&o,h=t.directiveStart,y=o>>20,k=s?u+y:t.directiveEnd;for(let E=n?u:u+y;E=h&&L.type===e)return E}if(s){const E=r[h];if(E&&Ri(E)&&E.type===e)return h}return null}function ua(t,i,e,n){let s=t[e];const o=i.data;if(function sD(t){return t instanceof aa}(s)){const r=s;r.resolving&&function lx(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new oe(-200,`Circular dependency in DI detected for ${t}${e}`)}(wn(o[e]));const u=ac(r.canSeeViewProviders);r.resolving=!0;const h=r.injectImpl?Rs(r.injectImpl):null;r_(t,n,xe.Default);try{s=t[e]=r.factory(void 0,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&function nD(t,i,e){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:o}=i.type.prototype;if(n){const r=Kg(i);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,s),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],i)}finally{null!==h&&Rs(h),ac(u),r.resolving=!1,u_()}}return s}function w_(t,i,e){return!!(e[i+(t>>5)]&1<{const i=t.prototype.constructor,e=i[ps]||mp(i),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const o=s[ps]||mp(s);if(o&&o!==e)return o;s=Object.getPrototypeOf(s)}return o=>new o})}function mp(t){return Ng(t)?()=>{const i=mp(Ve(t));return i&&i()}:ao(t)}function da(t){return function dD(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const e=t.attrs;if(e){const n=e.length;let s=0;for(;s{const n=function fp(t){return function(...e){if(t){const n=t(...e);for(const s in n)this[s]=n[s]}}}(i);function s(...o){if(this instanceof s)return n.apply(this,o),this;const r=new s(...o);return u.annotation=r,u;function u(h,b,y){const w=h.hasOwnProperty(Yo)?h[Yo]:Object.defineProperty(h,Yo,{value:[]})[Yo];for(;w.length<=y;)w.push(null);return(w[y]=w[y]||[]).push(r),h}}return e&&(s.prototype=Object.create(e.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class be{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=X({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const gD=new be("AnalyzeForEntryComponents");function fi(t,i){void 0===i&&(i=t);for(let e=0;eArray.isArray(e)?Yi(e,i):i(e))}function x_(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function dc(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function ma(t,i){const e=[];for(let n=0;n=0?t[1|n]=e:(n=~n,function vD(t,i,e,n){let s=t.length;if(s==i)t.push(e,n);else if(1===s)t.push(n,t[0]),t[0]=e;else{for(s--,t.push(t[s-1],t[s]);s>i;)t[s]=t[s-2],s--;t[i]=e,t[i+1]=n}}(t,n,i,e)),n}function _p(t,i){const e=er(t,i);if(e>=0)return t[1|e]}function er(t,i){return function k_(t,i,e){let n=0,s=t.length>>e;for(;s!==n;){const o=n+(s-n>>1),r=t[o<i?s=o:n=o+1}return~(s<({token:t})),-1),Ns=_a(Xo("Optional"),8),ba=_a(Xo("SkipSelf"),4);var ti=(()=>((ti=ti||{})[ti.Important=1]="Important",ti[ti.DashCase=2]="DashCase",ti))();const H_="__ngContext__";function In(t,i){t[H_]=i}function Tp(t){const i=function Ca(t){return t[H_]||null}(t);return i?Array.isArray(i)?i:i.lView:null}function xp(t,i){return undefined(t,i)}function ya(t){const i=t[3];return Ei(i)?i[3]:i}function Dp(t){return W_(t[13])}function Mp(t){return W_(t[4])}function W_(t){for(;null!==t&&!Ei(t);)t=t[4];return t}function nr(t,i,e,n,s){if(null!=n){let o,r=!1;Ei(n)?o=n:Qi(n)&&(r=!0,n=n[0]);const u=Zt(n);0===t&&null!==e?null==s?X_(i,e,u):lo(i,e,u,s||null,!0):1===t&&null!==e?lo(i,e,u,s||null,!0):2===t?function Ap(t,i,e){const n=gc(t,i);n&&function aM(t,i,e,n){$t(t)?t.removeChild(i,e,n):i.removeChild(e)}(t,n,i,e)}(i,u,r):3===t&&i.destroyNode(u),null!=o&&function uM(t,i,e,n,s){const o=e[7];o!==Zt(e)&&nr(i,t,n,o,s);for(let u=10;u0&&(t[e-1][4]=n[4]);const o=dc(t,10+i);!function XD(t,i){wa(t,i,i[11],2,null,null),i[0]=null,i[6]=null}(n[1],n);const r=o[19];null!==r&&r.detachView(o[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}function J_(t,i){if(!(256&i[2])){const e=i[11];$t(e)&&e.destroyNode&&wa(t,i,e,3,null,null),function nM(t){let i=t[13];if(!i)return Rp(t[1],t);for(;i;){let e=null;if(Qi(i))e=i[13];else{const n=i[10];n&&(e=n)}if(!e){for(;i&&!i[4]&&i!==t;)Qi(i)&&Rp(i[1],i),i=i[3];null===i&&(i=t),Qi(i)&&Rp(i[1],i),e=i&&i[4]}i=e}}(i)}}function Rp(t,i){if(!(256&i[2])){i[2]&=-129,i[2]|=256,function rM(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n=0?n[s=b]():n[s=-b].unsubscribe(),o+=2}else{const r=n[s=e[o+1]];e[o].call(r)}if(null!==n){for(let o=s+1;ot,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return vc}())||void 0===i?void 0:i.createHTML(t))||t}function lb(t){var i;return(null===(i=function Vp(){if(void 0===Cc&&(Cc=null,Ct.trustedTypes))try{Cc=Ct.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Cc}())||void 0===i?void 0:i.createHTML(t))||t}class db{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function Vs(t){return t instanceof db?t.changingThisBreaksApplicationSecurity:t}function Ta(t,i){const e=function CM(t){return t instanceof db&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===i}class yM{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const e=(new window.DOMParser).parseFromString(co(i),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class wM{constructor(i){if(this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const n=this.inertDocument.createElement("body");e.appendChild(n)}}getInertBodyElement(i){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=co(i),e;const n=this.inertDocument.createElement("body");return n.innerHTML=co(i),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(i){const e=i.attributes;for(let s=e.length-1;0yc(i.trim())).join(", ")}function Zi(t){const i={};for(const e of t.split(","))i[e]=!0;return i}function Sa(...t){const i={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const mb=Zi("area,br,col,hr,img,wbr"),fb=Zi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),gb=Zi("rp,rt"),Bp=Sa(mb,Sa(fb,Zi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Sa(gb,Zi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Sa(gb,fb)),Hp=Zi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qp=Zi("srcset"),_b=Sa(Hp,qp,Zi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Zi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),DM=Zi("script,style,template");class MM{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!Bp.hasOwnProperty(e))return this.sanitizedSomething=!0,!DM.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=i.attributes;for(let s=0;s"),!0}endElement(i){const e=i.nodeName.toLowerCase();Bp.hasOwnProperty(e)&&!mb.hasOwnProperty(e)&&(this.buf.push(""),this.buf.push(e),this.buf.push(">"))}chars(i){this.buf.push(bb(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return e}}const kM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,IM=/([^\#-~ |!])/g;function bb(t){return t.replace(/&/g,"&").replace(kM,function(i){return""+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(IM,function(i){return""+i.charCodeAt(0)+";"}).replace(//g,">")}let wc;function Gp(t){return"content"in t&&function RM(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Xt=(()=>((Xt=Xt||{})[Xt.NONE=0]="NONE",Xt[Xt.HTML=1]="HTML",Xt[Xt.STYLE=2]="STYLE",Xt[Xt.SCRIPT=3]="SCRIPT",Xt[Xt.URL=4]="URL",Xt[Xt.RESOURCE_URL=5]="RESOURCE_URL",Xt))();function Ft(t){const i=xa();return i?lb(i.sanitize(Xt.HTML,t)||""):Ta(t,"HTML")?lb(Vs(t)):function EM(t,i){let e=null;try{wc=wc||function pb(t){const i=new wM(t);return function TM(){try{return!!(new window.DOMParser).parseFromString(co(""),"text/html")}catch(t){return!1}}()?new yM(i):i}(t);let n=i?String(i):"";e=wc.getInertBodyElement(n);let s=5,o=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=o,o=e.innerHTML,e=wc.getInertBodyElement(n)}while(n!==o);return co((new MM).sanitizeChildren(Gp(e)||e))}finally{if(e){const n=Gp(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}(Xd(),Ie(t))}function Wt(t){const i=xa();return i?i.sanitize(Xt.URL,t)||"":Ta(t,"URL")?Vs(t):yc(Ie(t))}function xa(){const t=$();return t&&t[12]}function zp(t){return t.ngOriginalError}function qM(t,...i){t.error(...i)}class Da{constructor(){this._console=console}handleError(i){const e=this._findOriginalError(i),n=function HM(t){return t&&t.ngErrorLogger||qM}(i);n(this._console,"ERROR",i),e&&n(this._console,"ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&zp(i);for(;e&&zp(e);)e=zp(e);return e||null}}const KM=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ct))();function ni(t){return t.ownerDocument.defaultView}function Xi(t){return t instanceof Function?t():t}function yb(t,i,e){let n=t.length;for(;;){const s=t.indexOf(i,e);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const o=i.length;if(s+o===n||t.charCodeAt(s+o)<=32)return s}e=s+1}}const wb="ng-template";function YM(t,i,e){let n=0;for(;no?"":s[w+1].toLowerCase();const E=8&n?k:null;if(E&&-1!==yb(E,b,0)||2&n&&b!==k){if(Li(n))return!1;r=!0}}}}else{if(!r&&!Li(n)&&!Li(h))return!1;if(r&&Li(h))continue;r=!1,n=h|1&n}}return Li(n)||r}function Li(t){return 0==(1&t)}function ek(t,i,e,n){if(null===i)return-1;let s=0;if(n||!e){let o=!1;for(;s-1)for(e++;e0?'="'+u+'"':"")+"]"}else 8&n?s+="."+r:4&n&&(s+=" "+r);else""!==s&&!Li(r)&&(i+=xb(o,s),s=""),n=r,o=o||!Li(n);e++}return""!==s&&(i+=xb(o,s)),i}const Re={};function a(t){Db(tt(),$(),Vn()+t,!1)}function Db(t,i,e,n){if(!n)if(3==(3&i[2])){const o=t.preOrderCheckHooks;null!==o&&ic(i,o,e)}else{const o=t.preOrderHooks;null!==o&&sc(i,o,0,e)}Ps(e)}function Tc(t,i){return t<<17|i<<2}function Oi(t){return t>>17&32767}function jp(t){return 2|t}function fs(t){return(131068&t)>>2}function $p(t,i){return-131069&t|i<<2}function Wp(t){return 1|t}function Nb(t,i){const e=t.contentQueries;if(null!==e)for(let n=0;n20&&Db(t,i,20,!1),e(n,s)}finally{Ps(o)}}function Bb(t,i,e){if(Wd(i)){const s=i.directiveEnd;for(let o=i.directiveStart;o0;){const e=t[--i];if("number"==typeof e&&e<0)return e}return 0})(u)!=h&&u.push(h),u.push(n,s,r)}}function Wb(t,i){null!==t.hostBindings&&t.hostBindings(1,i)}function Kb(t,i){i.flags|=2,(t.components||(t.components=[])).push(i.index)}function Ak(t,i,e){if(e){if(i.exportAs)for(let n=0;n0&&ah(e)}}function ah(t){for(let n=Dp(t);null!==n;n=Mp(n))for(let s=10;s0&&ah(o)}const e=t[1].components;if(null!==e)for(let n=0;n0&&ah(s)}}function qk(t,i){const e=Xn(i,t),n=e[1];(function Gk(t,i){for(let e=i.length;ePromise.resolve(null))();function Xb(t){return t[7]||(t[7]=[])}function ev(t){return t.cleanup||(t.cleanup=[])}function nv(t,i){const e=t[9],n=e?e.get(Da,null):null;n&&n.handleError(i)}function iv(t,i,e,n,s){for(let o=0;othis.processProvider(u,i,e)),Yi([i],u=>this.processInjectorType(u,[],o)),this.records.set(ph,ar(void 0,this));const r=this.records.get(hh);this.scope=null!=r?r.value:null,this.source=s||("object"==typeof i?null:ft(i))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(i=>i.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(i,e=fa,n=xe.Default){this.assertNotDestroyed();const s=R_(this),o=Rs(void 0);try{if(!(n&xe.SkipSelf)){let u=this.records.get(i);if(void 0===u){const h=function nI(t){return"function"==typeof t||"object"==typeof t&&t instanceof be}(i)&&Hd(i);u=h&&this.injectableDefInScope(h)?ar(fh(i),Ia):null,this.records.set(i,u)}if(null!=u)return this.hydrate(i,u)}return(n&xe.Self?ov():this.parent).get(i,e=n&xe.Optional&&e===fa?null:e)}catch(r){if("NullInjectorError"===r.name){if((r[hc]=r[hc]||[]).unshift(ft(i)),s)throw r;return function RD(t,i,e,n){const s=t[hc];throw i[E_]&&s.unshift(i[E_]),t.message=function LD(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=ft(i);if(Array.isArray(i))s=i.map(ft).join(" -> ");else if("object"==typeof i){let o=[];for(let r in i)if(i.hasOwnProperty(r)){let u=i[r];o.push(r+":"+("string"==typeof u?JSON.stringify(u):ft(u)))}s=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${s}]: ${t.replace(DD,"\n ")}`}("\n"+t.message,s,e,n),t.ngTokenPath=s,t[hc]=null,t}(r,i,"R3InjectorError",this.source)}throw r}finally{Rs(o),R_(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(i=>this.get(i))}toString(){const i=[];return this.records.forEach((n,s)=>i.push(ft(s))),`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new oe(205,!1)}processInjectorType(i,e,n){if(!(i=Ve(i)))return!1;let s=Bg(i);const o=null==s&&i.ngModule||void 0,r=void 0===o?i:o,u=-1!==n.indexOf(r);if(void 0!==o&&(s=Bg(o)),null==s)return!1;if(null!=s.imports&&!u){let y;n.push(r);try{Yi(s.imports,w=>{this.processInjectorType(w,e,n)&&(void 0===y&&(y=[]),y.push(w))})}finally{}if(void 0!==y)for(let w=0;wthis.processProvider(L,k,E||St))}}this.injectorDefTypes.add(r);const h=ao(r)||(()=>new r);this.records.set(r,ar(h,Ia));const b=s.providers;if(null!=b&&!u){const y=i;Yi(b,w=>this.processProvider(w,y,b))}return void 0!==o&&void 0!==i.providers}processProvider(i,e,n){let s=lr(i=Ve(i))?i:Ve(i&&i.provide);const o=function Jk(t,i,e){return cv(t)?ar(void 0,t.useValue):ar(lv(t),Ia)}(i);if(lr(i)||!0!==i.multi)this.records.get(s);else{let r=this.records.get(s);r||(r=ar(void 0,Ia,!0),r.factory=()=>Cp(r.multi),this.records.set(s,r)),s=i,r.multi.push(i)}this.records.set(s,o)}hydrate(i,e){return e.value===Ia&&(e.value=Wk,e.value=e.factory()),"object"==typeof e.value&&e.value&&function tI(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const e=Ve(i.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function fh(t){const i=Hd(t),e=null!==i?i.factory:ao(t);if(null!==e)return e;if(t instanceof be)throw new oe(204,!1);if(t instanceof Function)return function Qk(t){const i=t.length;if(i>0)throw ma(i,"?"),new oe(204,!1);const e=function px(t){const i=t&&(t[jl]||t[Hg]);if(i){const e=function hx(t){if(t.hasOwnProperty("name"))return t.name;const i=(""+t).match(/^function\s*([^\s(]+)/);return null===i?"":i[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),i}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new oe(204,!1)}function lv(t,i,e){let n;if(lr(t)){const s=Ve(t);return ao(s)||fh(s)}if(cv(t))n=()=>Ve(t.useValue);else if(function Zk(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...Cp(t.deps||[]));else if(function Yk(t){return!(!t||!t.useExisting)}(t))n=()=>K(Ve(t.useExisting));else{const s=Ve(t&&(t.useClass||t.provide));if(!function eI(t){return!!t.deps}(t))return ao(s)||fh(s);n=()=>new s(...Cp(t.deps))}return n}function ar(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function cv(t){return null!==t&&"object"==typeof t&&kD in t}function lr(t){return"function"==typeof t}let En=(()=>{class t{static create(e,n){var s;if(Array.isArray(e))return rv({name:""},n,e,"");{const o=null!==(s=e.name)&&void 0!==s?s:"";return rv({name:o},e.parent,e.providers,o)}}}return t.THROW_IF_NOT_FOUND=fa,t.NULL=new sv,t.\u0275prov=X({token:t,providedIn:"any",factory:()=>K(ph)}),t.__NG_ELEMENT_ID__=-1,t})();function uI(t,i){nc(Tp(t)[1],rn())}function ut(t){let i=function yv(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const n=[t];for(;i;){let s;if(Ri(t))s=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new oe(903,"");s=i.\u0275dir}if(s){if(e){n.push(s);const r=t;r.inputs=bh(t.inputs),r.declaredInputs=bh(t.declaredInputs),r.outputs=bh(t.outputs);const u=s.hostBindings;u&&mI(t,u);const h=s.viewQuery,b=s.contentQueries;if(h&&pI(t,h),b&&hI(t,b),Nd(t.inputs,s.inputs),Nd(t.declaredInputs,s.declaredInputs),Nd(t.outputs,s.outputs),Ri(s)&&s.data.animation){const y=t.data;y.animation=(y.animation||[]).concat(s.data.animation)}}const o=s.features;if(o)for(let r=0;r=0;n--){const s=t[n];s.hostVars=i+=s.hostVars,s.hostAttrs=rc(s.hostAttrs,e=rc(e,s.hostAttrs))}}(n)}function bh(t){return t===Ho?{}:t===St?[]:t}function pI(t,i){const e=t.viewQuery;t.viewQuery=e?(n,s)=>{i(n,s),e(n,s)}:i}function hI(t,i){const e=t.contentQueries;t.contentQueries=e?(n,s,o)=>{i(n,s,o),e(n,s,o)}:i}function mI(t,i){const e=t.hostBindings;t.hostBindings=e?(n,s)=>{i(n,s),e(n,s)}:i}let Ic=null;function cr(){if(!Ic){const t=Ct.Symbol;if(t&&t.iterator)Ic=t.iterator;else{const i=Object.getOwnPropertyNames(Map.prototype);for(let e=0;eu(Zt(se[n.index])):n.index;if($t(e)){let se=null;if(!u&&h&&(se=function zI(t,i,e,n){const s=t.cleanup;if(null!=s)for(let o=0;oh?u[h]:null}"string"==typeof r&&(o+=2)}return null}(t,i,s,n.index)),null!==se)(se.__ngLastListenerFn__||se).__ngNextListenerFn__=o,se.__ngLastListenerFn__=o,E=!1;else{o=Mh(n,i,w,o,!1);const ke=e.listen(G,s,o);k.push(o,ke),y&&y.push(s,J,P,P+1)}}else o=Mh(n,i,w,o,!0),G.addEventListener(s,o,r),k.push(o),y&&y.push(s,J,P,r)}else o=Mh(n,i,w,o,!1);const L=n.outputs;let O;if(E&&null!==L&&(O=L[s])){const N=O.length;if(N)for(let G=0;G0;)i=i[15],t--;return i}(t,Ee.lFrame.contextLView))[8]}(t)}function jI(t,i){let e=null;const n=function tk(t){const i=t.attrs;if(null!=i){const e=i.indexOf(5);if(0==(1&e))return i[e+1]}return null}(t);for(let s=0;s=0}const cn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Xv(t){return t.substring(cn.key,cn.keyEnd)}function QI(t){return t.substring(cn.value,cn.valueEnd)}function e1(t,i){const e=cn.textEnd;return e===i?-1:(i=cn.keyEnd=function ZI(t,i,e){for(;i32;)i++;return i}(t,cn.key=i,e),Cr(t,i,e))}function t1(t,i){const e=cn.textEnd;let n=cn.key=Cr(t,i,e);return e===n?-1:(n=cn.keyEnd=function XI(t,i,e){let n;for(;i=65&&(-33&n)<=90||n>=48&&n<=57);)i++;return i}(t,n,e),n=s1(t,n,e),n=cn.value=Cr(t,n,e),n=cn.valueEnd=function e3(t,i,e){let n=-1,s=-1,o=-1,r=i,u=r;for(;r32&&(u=r),o=s,s=n,n=-33&h}return u}(t,n,e),s1(t,n,e))}function n1(t){cn.key=0,cn.keyEnd=0,cn.value=0,cn.valueEnd=0,cn.textEnd=t.length}function Cr(t,i,e){for(;i=0;e=t1(i,e))l1(t,Xv(i),QI(i))}function me(t){Fi(ei,ns,t,!0)}function ns(t,i){for(let e=function JI(t){return n1(t),e1(t,Cr(t,0,cn.textEnd))}(i);e>=0;e=e1(i,e))ei(t,Xv(i),!0)}function Pi(t,i,e,n){const s=$(),o=tt(),r=ms(2);o.firstUpdatePass&&a1(o,t,r,n),i!==Re&&Rn(s,r,i)&&c1(o,o.data[Vn()],s,s[11],t,s[r+1]=function c3(t,i){return null==t||("string"==typeof i?t+=i:"object"==typeof t&&(t=ft(Vs(t)))),t}(i,e),n,r)}function Fi(t,i,e,n){const s=tt(),o=ms(2);s.firstUpdatePass&&a1(s,null,o,n);const r=$();if(e!==Re&&Rn(r,o,e)){const u=s.data[Vn()];if(d1(u,n)&&!r1(s,o)){let h=n?u.classesWithoutHost:u.stylesWithoutHost;null!==h&&(e=Vd(h,e||"")),xh(s,u,r,e,n)}else!function l3(t,i,e,n,s,o,r,u){s===Re&&(s=St);let h=0,b=0,y=0=t.expandoStartIndex}function a1(t,i,e,n){const s=t.data;if(null===s[e+1]){const o=s[Vn()],r=r1(t,e);d1(o,n)&&null===i&&!r&&(i=!1),i=function n3(t,i,e,n){const s=function rp(t){const i=Ee.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let o=n?i.residualClasses:i.residualStyles;if(null===s)0===(n?i.classBindings:i.styleBindings)&&(e=Aa(e=kh(null,t,i,e,n),i.attrs,n),o=null);else{const r=i.directiveStylingLast;if(-1===r||t[r]!==s)if(e=kh(s,t,i,e,n),null===o){let h=function s3(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==fs(n))return t[Oi(n)]}(t,i,n);void 0!==h&&Array.isArray(h)&&(h=kh(null,t,i,h[1],n),h=Aa(h,i.attrs,n),function o3(t,i,e,n){t[Oi(e?i.classBindings:i.styleBindings)]=n}(t,i,n,h))}else o=function r3(t,i,e){let n;const s=i.directiveEnd;for(let o=1+i.directiveStylingLast;o0)&&(b=!0)}else y=e;if(s)if(0!==h){const k=Oi(t[u+1]);t[n+1]=Tc(k,u),0!==k&&(t[k+1]=$p(t[k+1],n)),t[u+1]=function lk(t,i){return 131071&t|i<<17}(t[u+1],n)}else t[n+1]=Tc(u,0),0!==u&&(t[u+1]=$p(t[u+1],n)),u=n;else t[n+1]=Tc(h,0),0===u?u=n:t[h+1]=$p(t[h+1],n),h=n;b&&(t[n+1]=jp(t[n+1])),Zv(t,y,n,!0),Zv(t,y,n,!1),function WI(t,i,e,n,s){const o=s?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof i&&er(o,i)>=0&&(e[n+1]=Wp(e[n+1]))}(i,y,t,n,o),r=Tc(u,h),o?i.classBindings=r:i.styleBindings=r}(s,o,i,e,r,n)}}function kh(t,i,e,n,s){let o=null;const r=e.directiveEnd;let u=e.directiveStylingLast;for(-1===u?u=e.directiveStart:u++;u0;){const h=t[s],b=Array.isArray(h),y=b?h[1]:h,w=null===y;let k=e[s+1];k===Re&&(k=w?St:void 0);let E=w?_p(k,n):y===n?k:void 0;if(b&&!Lc(E)&&(E=_p(h,n)),Lc(E)&&(u=E,r))return u;const L=t[s+1];s=r?Oi(L):fs(L)}if(null!==i){let h=o?i.residualClasses:i.residualStyles;null!=h&&(u=_p(h,n))}return u}function Lc(t){return void 0!==t}function d1(t,i){return 0!=(t.flags&(i?16:32))}function g(t,i=""){const e=$(),n=tt(),s=t+20,o=n.firstCreatePass?sr(n,s,1,i,null):n.data[s],r=e[s]=function kp(t,i){return $t(t)?t.createText(i):t.createTextNode(i)}(e[11],i);_c(n,e,r,o),Ji(o,!1)}function S(t){return T("",t,""),S}function T(t,i,e){const n=$(),s=dr(n,t,i,e);return s!==Re&&gs(n,Vn(),s),T}function We(t,i,e,n,s){const o=$(),r=pr(o,t,i,e,n,s);return r!==Re&&gs(o,Vn(),r),We}function yr(t,i,e,n,s,o,r){const u=$(),h=function hr(t,i,e,n,s,o,r,u){const b=Ec(t,hs(),e,s,r);return ms(3),b?i+Ie(e)+n+Ie(s)+o+Ie(r)+u:Re}(u,t,i,e,n,s,o,r);return h!==Re&&gs(u,Vn(),h),yr}function Oc(t,i,e,n,s,o,r,u,h){const b=$(),y=function mr(t,i,e,n,s,o,r,u,h,b){const w=gi(t,hs(),e,s,r,h);return ms(4),w?i+Ie(e)+n+Ie(s)+o+Ie(r)+u+Ie(h)+b:Re}(b,t,i,e,n,s,o,r,u,h);return y!==Re&&gs(b,Vn(),y),Oc}function Ih(t,i,e,n,s,o,r,u,h,b,y){const w=$(),k=function fr(t,i,e,n,s,o,r,u,h,b,y,w){const k=hs();let E=gi(t,k,e,s,r,h);return E=Rn(t,k+4,y)||E,ms(5),E?i+Ie(e)+n+Ie(s)+o+Ie(r)+u+Ie(h)+b+Ie(y)+w:Re}(w,t,i,e,n,s,o,r,u,h,b,y);return k!==Re&&gs(w,Vn(),k),Ih}function Eh(t,i,e,n,s,o,r,u,h,b,y,w,k){const E=$(),L=function gr(t,i,e,n,s,o,r,u,h,b,y,w,k,E){const L=hs();let O=gi(t,L,e,s,r,h);return O=uo(t,L+4,y,k)||O,ms(6),O?i+Ie(e)+n+Ie(s)+o+Ie(r)+u+Ie(h)+b+Ie(y)+w+Ie(k)+E:Re}(E,t,i,e,n,s,o,r,u,h,b,y,w,k);return L!==Re&&gs(E,Vn(),L),Eh}const po=void 0;var I3=["en",[["a","p"],["AM","PM"],po],[["AM","PM"],po,po],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],po,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],po,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",po,"{1} 'at' {0}",po],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function k3(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let wr={};function qn(t){const i=function E3(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=M1(i);if(e)return e;const n=i.split("-")[0];if(e=M1(n),e)return e;if("en"===n)return I3;throw new Error(`Missing locale data for the locale "${t}".`)}function M1(t){return t in wr||(wr[t]=Ct.ng&&Ct.ng.common&&Ct.ng.common.locales&&Ct.ng.common.locales[t]),wr[t]}var te=(()=>((te=te||{})[te.LocaleId=0]="LocaleId",te[te.DayPeriodsFormat=1]="DayPeriodsFormat",te[te.DayPeriodsStandalone=2]="DayPeriodsStandalone",te[te.DaysFormat=3]="DaysFormat",te[te.DaysStandalone=4]="DaysStandalone",te[te.MonthsFormat=5]="MonthsFormat",te[te.MonthsStandalone=6]="MonthsStandalone",te[te.Eras=7]="Eras",te[te.FirstDayOfWeek=8]="FirstDayOfWeek",te[te.WeekendRange=9]="WeekendRange",te[te.DateFormat=10]="DateFormat",te[te.TimeFormat=11]="TimeFormat",te[te.DateTimeFormat=12]="DateTimeFormat",te[te.NumberSymbols=13]="NumberSymbols",te[te.NumberFormats=14]="NumberFormats",te[te.CurrencyCode=15]="CurrencyCode",te[te.CurrencySymbol=16]="CurrencySymbol",te[te.CurrencyName=17]="CurrencyName",te[te.Currencies=18]="Currencies",te[te.Directionality=19]="Directionality",te[te.PluralCase=20]="PluralCase",te[te.ExtraData=21]="ExtraData",te))();const Ac="en-US";let k1=Ac;function Oh(t,i,e,n,s){if(t=Ve(t),Array.isArray(t))for(let o=0;o>20;if(lr(t)||!t.multi){const E=new aa(h,s,D),L=Ph(u,i,s?y:y+k,w);-1===L?(cc(ca(b,r),o,u),Ah(o,t,i.length),i.push(u),b.directiveStart++,b.directiveEnd++,s&&(b.providerIndexes+=1048576),e.push(E),r.push(E)):(e[L]=E,r[L]=E)}else{const E=Ph(u,i,y+k,w),L=Ph(u,i,y,y+k),O=E>=0&&e[E],N=L>=0&&e[L];if(s&&!N||!s&&!O){cc(ca(b,r),o,u);const G=function kE(t,i,e,n,s){const o=new aa(t,e,D);return o.multi=[],o.index=i,o.componentProviders=0,Z1(o,s,n&&!e),o}(s?ME:DE,e.length,s,n,h);!s&&N&&(e[L].providerFactory=G),Ah(o,t,i.length,0),i.push(u),b.directiveStart++,b.directiveEnd++,s&&(b.providerIndexes+=1048576),e.push(G),r.push(G)}else Ah(o,t,E>-1?E:L,Z1(e[s?L:E],h,!s&&n));!s&&n&&N&&e[L].componentProviders++}}}function Ah(t,i,e,n){const s=lr(i),o=function Xk(t){return!!t.useClass}(i);if(s||o){const h=(o?Ve(i.useClass):i).prototype.ngOnDestroy;if(h){const b=t.destroyHooks||(t.destroyHooks=[]);if(!s&&i.multi){const y=b.indexOf(e);-1===y?b.push(e,[n,h]):b[y+1].push(n,h)}else b.push(e,h)}}}function Z1(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Ph(t,i,e,n){for(let s=e;s{e.providersResolver=(n,s)=>function xE(t,i,e){const n=tt();if(n.firstCreatePass){const s=Ri(t);Oh(e,n.data,n.blueprint,s,!0),Oh(i,n.data,n.blueprint,s,!1)}}(n,s?s(t):t,i)}}class X1{}class RE{resolveComponentFactory(i){throw function EE(t){const i=Error(`No component factory found for ${ft(t)}. Did you add it to @NgModule.entryComponents?`);return i.ngComponent=t,i}(i)}}let Ba=(()=>{class t{}return t.NULL=new RE,t})();function LE(){return Sr(rn(),$())}function Sr(t,i){return new De(Zn(t,i))}let De=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=LE,t})();function OE(t){return t instanceof De?t.nativeElement:t}class Ha{}let gn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function PE(){const t=$(),e=Xn(rn().index,t);return function AE(t){return t[11]}(Qi(e)?e:t)}(),t})(),FE=(()=>{class t{}return t.\u0275prov=X({token:t,providedIn:"root",factory:()=>null}),t})();class qa{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const NE=new qa("13.3.12"),Nh={};function Bc(t,i,e,n,s=!1){for(;null!==e;){const o=i[e.index];if(null!==o&&n.push(Zt(o)),Ei(o))for(let u=10;u-1&&(Ep(i,n),dc(e,n))}this._attachedToViewContainer=!1}J_(this._lView[1],this._lView)}onDestroy(i){Ub(this._lView[1],this._lView,null,i)}markForCheck(){lh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function uh(t,i,e){const n=i[10];n.begin&&n.begin();try{rr(t,i,t.template,e)}catch(s){throw nv(i,s),s}finally{n.end&&n.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new oe(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function tM(t,i){wa(t,i,i[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new oe(902,"");this._appRef=i}}class VE extends Ga{constructor(i){super(i),this._view=i}detectChanges(){Zb(this._view)}checkNoChanges(){}get context(){return null}}class tC extends Ba{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=Tn(i);return new Vh(e,this.ngModule)}}function nC(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class Vh extends X1{constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function rk(t){return t.map(ok).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return nC(this.componentDef.inputs)}get outputs(){return nC(this.componentDef.outputs)}create(i,e,n,s){const o=(s=s||this.ngModule)?function HE(t,i){return{get:(e,n,s)=>{const o=t.get(e,Nh,s);return o!==Nh||n===Nh?o:i.get(e,n,s)}}}(i,s.injector):i,r=o.get(Ha,Yg),u=o.get(FE,null),h=r.createRenderer(null,this.componentDef),b=this.componentDef.selectors[0][0]||"div",y=n?function Gb(t,i,e){if($t(t))return t.selectRootElement(i,e===ki.ShadowDom);let n="string"==typeof i?t.querySelector(i):i;return n.textContent="",n}(h,n,this.componentDef.encapsulation):Ip(r.createRenderer(null,this.componentDef),b,function BE(t){const i=t.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(b)),w=this.componentDef.onPush?576:528,k=function Cv(t,i){return{components:[],scheduler:t||KM,clean:zk,playerHandler:i||null,flags:0}}(),E=Dc(0,null,null,1,0,null,null,null,null,null),L=Ma(null,E,k,w,null,null,r,h,u,o);let O,N;ec(L);try{const G=function bv(t,i,e,n,s,o){const r=e[1];e[20]=t;const h=sr(r,20,2,"#host",null),b=h.mergedAttrs=i.hostAttrs;null!==b&&(kc(h,b,!0),null!==t&&(oc(s,t,b),null!==h.classes&&Fp(s,t,h.classes),null!==h.styles&&ab(s,t,h.styles)));const y=n.createRenderer(t,i),w=Ma(e,Hb(i),null,i.onPush?64:16,e[20],h,n,y,o||null,null);return r.firstCreatePass&&(cc(ca(h,e),r,i.type),Kb(r,h),Qb(h,e.length,1)),Mc(e,w),e[20]=w}(y,this.componentDef,L,r,h);if(y)if(n)oc(h,y,["ng-version",NE.full]);else{const{attrs:P,classes:J}=function ak(t){const i=[],e=[];let n=1,s=2;for(;n0&&Fp(h,y,J.join(" "))}if(N=ep(E,20),void 0!==e){const P=N.projection=[];for(let J=0;Jh(r,i)),i.contentQueries){const h=rn();i.contentQueries(1,r,h.directiveStart)}const u=rn();return!o.firstCreatePass||null===i.hostBindings&&null===i.hostAttrs||(Ps(u.index),$b(e[1],u,0,u.directiveStart,u.directiveEnd,i),Wb(i,r)),r}(G,this.componentDef,L,k,[uI]),ka(E,L,null)}finally{tc()}return new GE(this.componentType,O,Sr(N,L),L,N)}}class GE extends class IE{}{constructor(i,e,n,s,o){super(),this.location=n,this._rootLView=s,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new VE(s),this.componentType=i}get injector(){return new Qo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}}class _s{}class iC{}const xr=new Map;class rC extends _s{constructor(i,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new tC(this);const n=pi(i);this._bootstrapComponents=Xi(n.bootstrap),this._r3Injector=av(i,e,[{provide:_s,useValue:this},{provide:Ba,useValue:this.componentFactoryResolver}],ft(i)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(i)}get(i,e=En.THROW_IF_NOT_FOUND,n=xe.Default){return i===En||i===_s||i===ph?this:this._r3Injector.get(i,e,n)}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class Bh extends iC{constructor(i){super(),this.moduleType=i,null!==pi(i)&&function zE(t){const i=new Set;!function e(n){const s=pi(n,!0),o=s.id;null!==o&&(function sC(t,i,e){if(i&&i!==e)throw new Error(`Duplicate module registered for ${t} - ${ft(i)} vs ${ft(i.name)}`)}(o,xr.get(o),n),xr.set(o,n));const r=Xi(s.imports);for(const u of r)i.has(u)||(i.add(u),e(u))}(t)}(i)}create(i){return new rC(this.moduleType,i)}}function A(t,i,e){const n=Nn()+t,s=$();return s[n]===Re?ts(s,n,e?i.call(e):i()):Ra(s,n)}function U(t,i,e,n){return lC($(),Nn(),t,i,e,n)}function Ge(t,i,e,n,s){return cC($(),Nn(),t,i,e,n,s)}function Jt(t,i,e,n,s,o){return uC($(),Nn(),t,i,e,n,s,o)}function Ln(t,i,e,n,s,o,r){return function dC(t,i,e,n,s,o,r,u,h){const b=i+e;return gi(t,b,s,o,r,u)?ts(t,b+4,h?n.call(h,s,o,r,u):n(s,o,r,u)):Ua(t,b+4)}($(),Nn(),t,i,e,n,s,o,r)}function ho(t,i,e,n,s,o,r,u){const h=Nn()+t,b=$(),y=gi(b,h,e,n,s,o);return Rn(b,h+4,r)||y?ts(b,h+5,u?i.call(u,e,n,s,o,r):i(e,n,s,o,r)):Ra(b,h+5)}function Dr(t,i,e,n,s,o,r,u,h){const b=Nn()+t,y=$(),w=gi(y,b,e,n,s,o);return uo(y,b+4,r,u)||w?ts(y,b+6,h?i.call(h,e,n,s,o,r,u):i(e,n,s,o,r,u)):Ra(y,b+6)}function Hh(t,i,e,n){return function pC(t,i,e,n,s,o){let r=i+e,u=!1;for(let h=0;h=0;e--){const n=i[e];if(t===n.name)return n}}(i,e.pipeRegistry),e.data[s]=n,n.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(s,n.onDestroy)):n=e.data[s];const o=n.factory||(n.factory=ao(n.type)),r=Rs(D);try{const u=ac(!1),h=o();return ac(u),function wI(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,$(),s,h),h}finally{Rs(r)}}function f(t,i,e){const n=t+20,s=$(),o=jo(s,n);return za(s,n)?lC(s,Nn(),i,o.transform,e,o):o.transform(e)}function _t(t,i,e,n){const s=t+20,o=$(),r=jo(o,s);return za(o,s)?cC(o,Nn(),i,r.transform,e,n,r):r.transform(e,n)}function za(t,i){return t[1].data[i].pure}function qh(t){return i=>{setTimeout(t,void 0,i)}}const H=class QE extends ct{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){var s,o,r;let u=i,h=e||(()=>null),b=n;if(i&&"object"==typeof i){const w=i;u=null===(s=w.next)||void 0===s?void 0:s.bind(w),h=null===(o=w.error)||void 0===o?void 0:o.bind(w),b=null===(r=w.complete)||void 0===r?void 0:r.bind(w)}this.__isAsync&&(h=qh(h),u&&(u=qh(u)),b&&(b=qh(b)));const y=super.subscribe({next:u,error:h,complete:b});return i instanceof Et&&i.add(y),y}};function JE(){return this._results[cr()]()}class Gh{constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=cr(),n=Gh.prototype;n[e]||(n[e]=JE)}get changes(){return this._changes||(this._changes=new H)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const s=fi(i);(this._changesDetected=!function _D(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n{class t{}return t.__NG_ELEMENT_ID__=XE,t})();const YE=bi,ZE=class extends YE{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(i){const e=this._declarationTContainer.tViews,n=Ma(this._declarationLView,e,i,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(n[19]=o.createEmbeddedView(e)),ka(e,n,i),new Ga(n)}};function XE(){return Hc(rn(),$())}function Hc(t,i){return 4&t.type?new ZE(i,t,Sr(t,i)):null}let vi=(()=>{class t{}return t.__NG_ELEMENT_ID__=eR,t})();function eR(){return gC(rn(),$())}const tR=vi,mC=class extends tR{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Sr(this._hostTNode,this._hostLView)}get injector(){return new Qo(this._hostTNode,this._hostLView)}get parentInjector(){const i=lc(this._hostTNode,this._hostLView);if(f_(i)){const e=Ko(i,this._hostLView),n=Wo(i);return new Qo(e[1].data[n+8],e)}return new Qo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=fC(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-10}createEmbeddedView(i,e,n){const s=i.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(i,e,n,s,o){const r=i&&!function ha(t){return"function"==typeof t}(i);let u;if(r)u=e;else{const w=e||{};u=w.index,n=w.injector,s=w.projectableNodes,o=w.ngModuleRef}const h=r?i:new Vh(Tn(i)),b=n||this.parentInjector;if(!o&&null==h.ngModule){const k=(r?b:this.parentInjector).get(_s,null);k&&(o=k)}const y=h.create(b,s,void 0,o);return this.insert(y.hostView,u),y}insert(i,e){const n=i._lView,s=n[1];if(function Bx(t){return Ei(t[3])}(n)){const y=this.indexOf(i);if(-1!==y)this.detach(y);else{const w=n[3],k=new mC(w,w[6],w[3]);k.detach(k.indexOf(i))}}const o=this._adjustIndex(e),r=this._lContainer;!function iM(t,i,e,n){const s=10+n,o=e.length;n>0&&(e[s-1][4]=i),n0)n.push(r[u/2]);else{const b=o[u+1],y=i[-h];for(let w=10;w{class t{constructor(e){this.appInits=e,this.resolve=Uc,this.reject=Uc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,s)=>{this.resolve=n,this.reject=s})}runInitializers(){if(this.initialized)return;const e=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s{o.subscribe({complete:u,error:h})});e.push(r)}}Promise.all(e).then(()=>{n()}).catch(s=>{this.reject(s)}),0===e.length&&n(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(K(em,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const $a=new be("AppId",{providedIn:"root",factory:function VC(){return`${nm()}${nm()}${nm()}`}});function nm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const BC=new be("Platform Initializer"),zc=new be("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),HC=new be("appBootstrapListener");let DR=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const qs=new be("LocaleId",{providedIn:"root",factory:()=>O_(qs,xe.Optional|xe.SkipSelf)||function MR(){return"undefined"!=typeof $localize&&$localize.locale||Ac}()});class IR{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let qC=(()=>{class t{compileModuleSync(e){return new Bh(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),o=Xi(pi(e).declarations).reduce((r,u)=>{const h=Tn(u);return h&&r.push(new Vh(h)),r},[]);return new IR(n,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const RR=(()=>Promise.resolve(0))();function im(t){"undefined"==typeof Zone?RR.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class nt{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new H(!1),this.onMicrotaskEmpty=new H(!1),this.onStable=new H(!1),this.onError=new H(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!n&&e,s.shouldCoalesceRunChangeDetection=n,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function LR(){let t=Ct.requestAnimationFrame,i=Ct.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&i){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function PR(t){const i=()=>{!function AR(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ct,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,om(t),t.isCheckStableRunning=!0,sm(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),om(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,s,o,r,u)=>{try{return GC(t),e.invokeTask(s,o,r,u)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&i(),UC(t)}},onInvoke:(e,n,s,o,r,u,h)=>{try{return GC(t),e.invoke(s,o,r,u,h)}finally{t.shouldCoalesceRunChangeDetection&&i(),UC(t)}},onHasTask:(e,n,s,o)=>{e.hasTask(s,o),n===s&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,om(t),sm(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,s,o)=>(e.handleError(s,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(s)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!nt.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(nt.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,s){const o=this._inner,r=o.scheduleEventTask("NgZoneEvent: "+s,i,OR,Uc,Uc);try{return o.runTask(r,e,n)}finally{o.cancelTask(r)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const OR={};function sm(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function om(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function GC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function UC(t){t._nesting--,sm(t)}class FR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new H,this.onMicrotaskEmpty=new H,this.onStable=new H,this.onError=new H}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,s){return i.apply(e,n)}}let rm=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{nt.assertNotInAngularZone(),im(()=>{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())im(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,s){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(r=>r.timeoutId!==o),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:s})}whenStable(e,n,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,n,s){return[]}}return t.\u0275fac=function(e){return new(e||t)(K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),NR=(()=>{class t{constructor(){this._applications=new Map,am.addToWindow(this)}registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return am.findTestabilityInTree(this,e,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class VR{addToWindow(i){}findTestabilityInTree(i,e,n){return null}}let am=new VR,mo=null;const zC=new be("AllowMultipleToken"),jC=new be("PlatformOnDestroy");class $C{constructor(i,e){this.name=i,this.token=e}}function WC(t,i,e=[]){const n=`Platform: ${i}`,s=new be(n);return(o=[])=>{let r=lm();if(!r||r.injector.get(zC,!1)){const u=[...e,...o,{provide:s,useValue:!0}];t?t(u):function GR(t){if(mo&&!mo.get(zC,!1))throw new oe(400,"");mo=t;const i=t.get(KC),e=t.get(BC,null);e&&e.forEach(n=>n())}(function zR(t=[],i){return En.create({name:i,providers:[{provide:hh,useValue:"platform"},{provide:jC,useValue:()=>mo=null},...t]})}(u,n))}return function UR(t){const i=lm();if(!i)throw new oe(401,"");return i}()}}function lm(){var t;return null!==(t=null==mo?void 0:mo.get(KC))&&void 0!==t?t:null}let KC=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const u=function jR(t,i){let e;return e="noop"===t?new FR:("zone.js"===t?void 0:t)||new nt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)}),e}(n?n.ngZone:void 0,{ngZoneEventCoalescing:n&&n.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:n&&n.ngZoneRunCoalescing||!1}),h=[{provide:nt,useValue:u}];return u.run(()=>{const b=En.create({providers:h,parent:this.injector,name:e.moduleType.name}),y=e.create(b),w=y.injector.get(Da,null);if(!w)throw new oe(402,"");return u.runOutsideAngular(()=>{const k=u.onError.subscribe({next:E=>{w.handleError(E)}});y.onDestroy(()=>{um(this._modules,y),k.unsubscribe()})}),function $R(t,i,e){try{const n=e();return La(n)?n.catch(s=>{throw i.runOutsideAngular(()=>t.handleError(s)),s}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}(w,u,()=>{const k=y.injector.get(tm);return k.runInitializers(),k.donePromise.then(()=>(function A3(t){Jn(t,"Expected localeId to be defined"),"string"==typeof t&&(k1=t.toLowerCase().replace(/_/g,"-"))}(y.injector.get(qs,Ac)||Ac),this._moduleDoBootstrap(y),y))})})}bootstrapModule(e,n=[]){const s=QC({},n);return function HR(t,i,e){const n=new Bh(e);return Promise.resolve(n)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,s))}_moduleDoBootstrap(e){const n=e.injector.get(cm);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>n.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw new oe(403,"");e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new oe(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(jC,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function QC(t,i){return Array.isArray(i)?i.reduce(QC,t):Object.assign(Object.assign({},t),i)}let cm=(()=>{class t{constructor(e,n,s,o){this._zone=e,this._injector=n,this._exceptionHandler=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new Je(h=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{h.next(this._stable),h.complete()})}),u=new Je(h=>{let b;this._zone.runOutsideAngular(()=>{b=this._zone.onStable.subscribe(()=>{nt.assertNotInAngularZone(),im(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,h.next(!0))})})});const y=this._zone.onUnstable.subscribe(()=>{nt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{h.next(!1)}))});return()=>{b.unsubscribe(),y.unsubscribe()}});this.isStable=function YS(...t){let i=Number.POSITIVE_INFINITY,e=null,n=t[t.length-1];return Bo(n)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof n&&(i=t.pop()),null===e&&1===t.length&&t[0]instanceof Je?t[0]:ta(i)(Pd(t,e))}(r,u.pipe(function rx(){return t=>Fd()(function ix(t,i){return function(n){let s;if(s="function"==typeof t?t:function(){return t},"function"==typeof i)return n.lift(new sx(s,i));const o=Object.create(n,ex);return o.source=n,o.subjectFactory=s,o}}(ox)(t))}()))}bootstrap(e,n){if(!this._initStatus.done)throw new oe(405,"");let s;s=e instanceof X1?e:this._injector.get(Ba).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const o=function qR(t){return t.isBoundToModule}(s)?void 0:this._injector.get(_s),u=s.create(En.NULL,[],n||s.selector,o),h=u.location.nativeElement,b=u.injector.get(rm,null),y=b&&u.injector.get(NR);return b&&y&&y.registerApplication(h,b),u.onDestroy(()=>{this.detachView(u.hostView),um(this.components,u),y&&y.unregisterApplication(h)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new oe(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;um(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(HC,[]).concat(this._bootstrapListeners).forEach(s=>s(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(K(nt),K(En),K(Da),K(tm))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function um(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}let YC=!0,ZC=!1,ot=(()=>{class t{}return t.__NG_ELEMENT_ID__=JR,t})();function JR(t){return function YR(t,i,e){if(Jl(t)&&!e){const n=Xn(t.index,i);return new Ga(n,n)}return 47&t.type?new Ga(i[16],i):null}(rn(),$(),16==(16&t))}class ny{constructor(){}supports(i){return Ea(i)}create(i){return new iL(i)}}const nL=(t,i)=>i;class iL{constructor(i){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=i||nL}forEachItem(i){let e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,s=0,o=null;for(;e||n;){const r=!n||e&&e.currentIndex{r=this._trackByFn(s,u),null!==e&&Object.is(e.trackById,r)?(n&&(e=this._verifyReinsertion(e,u,r,s)),Object.is(e.item,u)||this._addIdentityChange(e,u)):(e=this._mismatch(e,u,r,s),n=!0),e=e._next,s++}),this.length=s;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,s){let o;return null===i?o=this._itTail:(o=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,o,s)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,o,s)):i=this._addAfter(new sL(e,n),o,s),i}_verifyReinsertion(i,e,n,s){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?i=this._reinsertAfter(o,i._prev,s):i.currentIndex!=s&&(i.currentIndex=s,this._addToMoves(i,s)),i}_truncate(i){for(;null!==i;){const e=i._next;this._addToRemovals(this._unlink(i)),i=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const s=i._prevRemoved,o=i._nextRemoved;return null===s?this._removalsHead=o:s._nextRemoved=o,null===o?this._removalsTail=s:o._prevRemoved=s,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const s=null===e?this._itHead:e._next;return i._next=s,i._prev=e,null===s?this._itTail=i:s._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new iy),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const e=i._prev,n=i._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new iy),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class sL{constructor(i,e){this.item=i,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class oL{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class iy{constructor(){this.map=new Map}put(i){const e=i.trackById;let n=this.map.get(e);n||(n=new oL,this.map.set(e,n)),n.add(i)}get(i,e){const s=this.map.get(i);return s?s.get(i,e):null}remove(i){const e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function sy(t,i,e){const n=t.previousIndex;if(null===n)return n;let s=0;return e&&n{if(e&&e.key===s)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(s,n);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const s=this._records.get(i);this._maybeAddToChanges(s,e);const o=s._prev,r=s._next;return o&&(o._next=r),r&&(r._prev=o),s._next=null,s._prev=null,s}const n=new aL(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class aL{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function ry(){return new Wa([new ny])}let Wa=(()=>{class t{constructor(e){this.factories=e}static create(e,n){if(null!=n){const s=n.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||ry()),deps:[[t,new ba,new Ns]]}}find(e){const n=this.factories.find(s=>s.supports(e));if(null!=n)return n;throw new oe(901,"")}}return t.\u0275prov=X({token:t,providedIn:"root",factory:ry}),t})();function ay(){return new Ka([new oy])}let Ka=(()=>{class t{constructor(e){this.factories=e}static create(e,n){if(n){const s=n.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||ay()),deps:[[t,new ba,new Ns]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(n)return n;throw new oe(901,"")}}return t.\u0275prov=X({token:t,providedIn:"root",factory:ay}),t})();const uL=WC(null,"core",[]);let dL=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(K(cm))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})(),Wc=null;function is(){return Wc}const en=new be("DocumentToken");let go=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:function(){return function fL(){return K(ly)}()},providedIn:"platform"}),t})();const gL=new be("Location Initialized");let ly=(()=>{class t extends go{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return is().getBaseHref(this._doc)}onPopState(e){const n=is().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=is().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,n,s){cy()?this._history.pushState(e,n,s):this.location.hash=s}replaceState(e,n,s){cy()?this._history.replaceState(e,n,s):this.location.hash=s}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(K(en))},t.\u0275prov=X({token:t,factory:function(){return function _L(){return new ly(K(en))}()},providedIn:"platform"}),t})();function cy(){return!!window.history.pushState}function fm(t,i){if(0==t.length)return i;if(0==i.length)return t;let e=0;return t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function uy(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function bs(t){return t&&"?"!==t[0]?"?"+t:t}let kr=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:function(){return function bL(t){const i=K(en).location;return new dy(K(go),i&&i.origin||"")}()},providedIn:"root"}),t})();const gm=new be("appBaseHref");let dy=(()=>{class t extends kr{constructor(e,n){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==n&&(n=this._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=n}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return fm(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+bs(this._platformLocation.search),s=this._platformLocation.hash;return s&&e?`${n}${s}`:n}pushState(e,n,s,o){const r=this.prepareExternalUrl(s+bs(o));this._platformLocation.pushState(e,n,r)}replaceState(e,n,s,o){const r=this.prepareExternalUrl(s+bs(o));this._platformLocation.replaceState(e,n,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var n,s;null===(s=(n=this._platformLocation).historyGo)||void 0===s||s.call(n,e)}}return t.\u0275fac=function(e){return new(e||t)(K(go),K(gm,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),vL=(()=>{class t extends kr{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=fm(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,s,o){let r=this.prepareExternalUrl(s+bs(o));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,n,r)}replaceState(e,n,s,o){let r=this.prepareExternalUrl(s+bs(o));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var n,s;null===(s=(n=this._platformLocation).historyGo)||void 0===s||s.call(n,e)}}return t.\u0275fac=function(e){return new(e||t)(K(go),K(gm,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_m=(()=>{class t{constructor(e,n){this._subject=new H,this._urlChangeListeners=[],this._platformStrategy=e;const s=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=uy(py(s)),this._platformStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+bs(n))}normalize(e){return t.stripTrailingSlash(function yL(t,i){return t&&i.startsWith(t)?i.substring(t.length):i}(this._baseHref,py(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,n="",s=null){this._platformStrategy.pushState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+bs(n)),s)}replaceState(e,n="",s=null){this._platformStrategy.replaceState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+bs(n)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var n,s;null===(s=(n=this._platformStrategy).historyGo)||void 0===s||s.call(n,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}))}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(s=>s(e,n))}subscribe(e,n,s){return this._subject.subscribe({next:e,error:n,complete:s})}}return t.normalizeQueryParams=bs,t.joinWithSlash=fm,t.stripTrailingSlash=uy,t.\u0275fac=function(e){return new(e||t)(K(kr),K(go))},t.\u0275prov=X({token:t,factory:function(){return function CL(){return new _m(K(kr),K(go))}()},providedIn:"root"}),t})();function py(t){return t.replace(/\/index.html$/,"")}var Wn=(()=>((Wn=Wn||{})[Wn.Decimal=0]="Decimal",Wn[Wn.Percent=1]="Percent",Wn[Wn.Currency=2]="Currency",Wn[Wn.Scientific=3]="Scientific",Wn))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function Ci(t,i){const e=qn(t),n=e[te.NumberSymbols][i];if(void 0===n){if(i===ge.CurrencyDecimal)return e[te.NumberSymbols][ge.Decimal];if(i===ge.CurrencyGroup)return e[te.NumberSymbols][ge.Group]}return n}const WL=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function xm(t){const i=parseInt(t);if(isNaN(i))throw new Error("Invalid integer literal when parsing "+t);return i}function yy(t,i){i=encodeURIComponent(i);for(const e of t.split(";")){const n=e.indexOf("="),[s,o]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(s.trim()===i)return decodeURIComponent(o)}return null}let Le=(()=>{class t{constructor(e,n,s,o){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=s,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ea(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachChangedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachRemovedItem(n=>{n.previousValue&&this._toggleClass(n.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(n=>{if("string"!=typeof n.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ft(n.item)}`);this._toggleClass(n.item,!0)}),e.forEachRemovedItem(n=>this._toggleClass(n.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(n=>this._toggleClass(n,!0)):Object.keys(e).forEach(n=>this._toggleClass(n,!!e[n])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(n=>this._toggleClass(n,!1)):Object.keys(e).forEach(n=>this._toggleClass(n,!1)))}_toggleClass(e,n){(e=e.trim())&&e.split(/\s+/g).forEach(s=>{n?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return t.\u0275fac=function(e){return new(e||t)(D(Wa),D(Ka),D(De),D(gn))},t.\u0275dir=le({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class r4{constructor(i,e,n,s){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=s}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 at=(()=>{class t{constructor(e,n,s){this._viewContainer=e,this._template=n,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const n=this._viewContainer;e.forEachOperation((s,o,r)=>{if(null==s.previousIndex)n.createEmbeddedView(this._template,new r4(s.item,this._ngForOf,-1,-1),null===r?void 0:r);else if(null==r)n.remove(null===o?void 0:o);else if(null!==o){const u=n.get(o);n.move(u,r),wy(u,s)}});for(let s=0,o=n.length;s{wy(n.get(s.currentIndex),s)})}static ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return new(e||t)(D(vi),D(bi),D(Wa))},t.\u0275dir=le({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function wy(t,i){t.context.$implicit=i.item}let Q=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new a4,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Ty("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Ty("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return new(e||t)(D(vi),D(bi))},t.\u0275dir=le({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class a4{constructor(){this.$implicit=null,this.ngIf=null}}function Ty(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${ft(i)}'.`)}class Mm{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let _o=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let n=0;n{class t{constructor(e,n,s){this.ngSwitch=s,s._addCase(),this._view=new Mm(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(D(vi),D(bi),D(_o,9))},t.\u0275dir=le({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),km=(()=>{class t{constructor(e,n,s){s._addDefault(new Mm(e,n))}}return t.\u0275fac=function(e){return new(e||t)(D(vi),D(bi),D(_o,9))},t.\u0275dir=le({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),lt=(()=>{class t{constructor(e,n,s){this._ngEl=e,this._differs=n,this._renderer=s,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){const[s,o]=e.split(".");null!=(n=null!=n&&o?`${n}${o}`:n)?this._renderer.setStyle(this._ngEl.nativeElement,s,n):this._renderer.removeStyle(this._ngEl.nativeElement,s)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(D(De),D(Ka),D(gn))},t.\u0275dir=le({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Rt=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const n=this._viewContainerRef;this._viewRef&&n.remove(n.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?n.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(D(vi))},t.\u0275dir=le({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[fn]}),t})();function Vi(t,i){return new oe(2100,"")}class c4{createSubscription(i,e){return i.subscribe({next:e,error:n=>{throw n}})}dispose(i){i.unsubscribe()}onDestroy(i){i.unsubscribe()}}class u4{createSubscription(i,e){return i.then(e,n=>{throw n})}dispose(i){}onDestroy(i){}}const d4=new u4,p4=new c4;let xy=(()=>{class t{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(La(e))return d4;if(qv(e))return p4;throw Vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(D(ot,16))},t.\u0275pipe=Pn({name:"async",type:t,pure:!1}),t})(),iu=(()=>{class t{constructor(e){this._locale=e}transform(e,n,s){if(!function Im(t){return!(null==t||""===t||t!=t)}(e))return null;s=s||this._locale;try{return function XL(t,i,e){return function Tm(t,i,e,n,s,o,r=!1){let u="",h=!1;if(isFinite(t)){let b=function t4(t){let n,s,o,r,u,i=Math.abs(t)+"",e=0;for((s=i.indexOf("."))>-1&&(i=i.replace(".","")),(o=i.search(/e/i))>0?(s<0&&(s=o),s+=+i.slice(o+1),i=i.substring(0,o)):s<0&&(s=i.length),o=0;"0"===i.charAt(o);o++);if(o===(u=i.length))n=[0],s=1;else{for(u--;"0"===i.charAt(u);)u--;for(s-=o,n=[],r=0;o<=u;o++,r++)n[r]=Number(i.charAt(o))}return s>22&&(n=n.splice(0,21),e=s-1,s=1),{digits:n,exponent:e,integerLen:s}}(t);r&&(b=function e4(t){if(0===t.digits[0])return t;const i=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===i?t.digits.push(0,0):1===i&&t.digits.push(0),t.integerLen+=2),t}(b));let y=i.minInt,w=i.minFrac,k=i.maxFrac;if(o){const P=o.match(WL);if(null===P)throw new Error(`${o} is not a valid digit info`);const J=P[1],se=P[3],ke=P[5];null!=J&&(y=xm(J)),null!=se&&(w=xm(se)),null!=ke?k=xm(ke):null!=se&&w>k&&(k=w)}!function n4(t,i,e){if(i>e)throw new Error(`The minimum number of digits after fraction (${i}) is higher than the maximum (${e}).`);let n=t.digits,s=n.length-t.integerLen;const o=Math.min(Math.max(i,s),e);let r=o+t.integerLen,u=n[r];if(r>0){n.splice(Math.max(t.integerLen,r));for(let w=r;w=5)if(r-1<0){for(let w=0;w>r;w--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[r-1]++;for(;s=b?L.pop():h=!1),k>=10?1:0},0);y&&(n.unshift(y),t.integerLen++)}(b,w,k);let E=b.digits,L=b.integerLen;const O=b.exponent;let N=[];for(h=E.every(P=>!P);L0?N=E.splice(L,E.length):(N=E,E=[0]);const G=[];for(E.length>=i.lgSize&&G.unshift(E.splice(-i.lgSize,E.length).join(""));E.length>i.gSize;)G.unshift(E.splice(-i.gSize,E.length).join(""));E.length&&G.unshift(E.join("")),u=G.join(Ci(e,n)),N.length&&(u+=Ci(e,s)+N.join("")),O&&(u+=Ci(e,ge.Exponential)+"+"+O)}else u=Ci(e,ge.Infinity);return u=t<0&&!h?i.negPre+u+i.negSuf:i.posPre+u+i.posSuf,u}(t,function Sm(t,i="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),s=n[0],o=n[1],r=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],u=r[0],h=r[1]||"";e.posPre=u.substr(0,u.indexOf("#"));for(let y=0;y{class t{transform(e,n,s){if(null==e)return null;if(!this.supports(e))throw Vi();return e.slice(n,s)}supports(e){return"string"==typeof e||Array.isArray(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Pn({name:"slice",type:t,pure:!1}),t})(),Fe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();const ky="browser";let R4=(()=>{class t{}return t.\u0275prov=X({token:t,providedIn:"root",factory:()=>new L4(K(en),window)}),t})();class L4{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const e=function O4(t,i){const e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let s=n.currentNode;for(;s;){const o=s.shadowRoot;if(o){const r=o.getElementById(i)||o.querySelector(`[name="${i}"]`);if(r)return r}s=n.nextNode()}}return null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=i)}}scrollToElement(i){const e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,s=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],s-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const i=Iy(this.window.history)||Iy(Object.getPrototypeOf(this.window.history));return!(!i||!i.writable&&!i.set)}catch(i){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(i){return!1}}}function Iy(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Ey{}class Rm extends class A4 extends class mL{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function hL(t){Wc||(Wc=t)}(new Rm)}onAndCancel(i,e,n){return i.addEventListener(e,n,!1),()=>{i.removeEventListener(e,n,!1)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const e=function P4(){return Za=Za||document.querySelector("base"),Za?Za.getAttribute("href"):null}();return null==e?null:function F4(t){su=su||document.createElement("a"),su.setAttribute("href",t);const i=su.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){Za=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return yy(document.cookie,i)}}let su,Za=null;const Ry=new be("TRANSITION_ID"),V4=[{provide:em,useFactory:function N4(t,i,e){return()=>{e.get(tm).donePromise.then(()=>{const n=is(),s=i.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{const o=i.findTestabilityInTree(n,s);if(null==o)throw new Error("Could not find testability for element.");return o},Ct.getAllAngularTestabilities=()=>i.getAllTestabilities(),Ct.getAllAngularRootElements=()=>i.getAllRootElements(),Ct.frameworkStabilizers||(Ct.frameworkStabilizers=[]),Ct.frameworkStabilizers.push(n=>{const s=Ct.getAllAngularTestabilities();let o=s.length,r=!1;const u=function(h){r=r||h,o--,0==o&&n(r)};s.forEach(function(h){h.whenStable(u)})})}findTestabilityInTree(i,e,n){if(null==e)return null;const s=i.getTestability(e);return null!=s?s:n?is().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null}}let B4=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const ou=new be("EventManagerPlugins");let ru=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,n,s){return this._findPluginFor(n).addEventListener(e,n,s)}addGlobalEventListener(e,n,s){return this._findPluginFor(n).addGlobalEventListener(e,n,s)}getZone(){return this._zone}_findPluginFor(e){const n=this._eventNameToPlugin.get(e);if(n)return n;const s=this._plugins;for(let o=0;o{class t{constructor(){this._stylesSet=new Set}addStyles(e){const n=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),n.add(s))}),this.onStylesAdded(n)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Xa=(()=>{class t extends Oy{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,n,s){e.forEach(o=>{const r=this._doc.createElement("style");r.textContent=o,s.push(n.appendChild(r))})}addHost(e){const n=[];this._addStylesToHost(this._stylesSet,e,n),this._hostNodes.set(e,n)}removeHost(e){const n=this._hostNodes.get(e);n&&n.forEach(Ay),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((n,s)=>{this._addStylesToHost(e,s,n)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ay))}}return t.\u0275fac=function(e){return new(e||t)(K(en))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function Ay(t){is().remove(t)}const Om={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/"},Am=/%COMP%/g;function au(t,i,e){for(let n=0;n{if("__ngUnwrap__"===i)return t;!1===t(i)&&(i.preventDefault(),i.returnValue=!1)}}let lu=(()=>{class t{constructor(e,n,s){this.eventManager=e,this.sharedStylesHost=n,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new Pm(e)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;switch(n.encapsulation){case ki.Emulated:{let s=this.rendererByCompId.get(n.id);return s||(s=new j4(this.eventManager,this.sharedStylesHost,n,this.appId),this.rendererByCompId.set(n.id,s)),s.applyToHost(e),s}case 1:case ki.ShadowDom:return new $4(this.eventManager,this.sharedStylesHost,e,n);default:if(!this.rendererByCompId.has(n.id)){const s=au(n.id,n.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(n.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(K(ru),K(Xa),K($a))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class Pm{constructor(i){this.eventManager=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?document.createElementNS(Om[e]||e,i):document.createElement(i)}createComment(i){return document.createComment(i)}createText(i){return document.createTextNode(i)}appendChild(i,e){i.appendChild(e)}insertBefore(i,e,n){i&&i.insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n="string"==typeof i?document.querySelector(i):i;if(!n)throw new Error(`The selector "${i}" did not match any elements`);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,s){if(s){e=s+":"+e;const o=Om[s];o?i.setAttributeNS(o,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const s=Om[n];s?i.removeAttributeNS(s,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,s){s&(ti.DashCase|ti.Important)?i.style.setProperty(e,n,s&ti.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&ti.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){return"string"==typeof i?this.eventManager.addGlobalEventListener(i,e,Ny(n)):this.eventManager.addEventListener(i,e,Ny(n))}}class j4 extends Pm{constructor(i,e,n,s){super(i),this.component=n;const o=au(s+"-"+n.id,n.styles,[]);e.addStyles(o),this.contentAttr=function G4(t){return"_ngcontent-%COMP%".replace(Am,t)}(s+"-"+n.id),this.hostAttr=function U4(t){return"_nghost-%COMP%".replace(Am,t)}(s+"-"+n.id)}applyToHost(i){super.setAttribute(i,this.hostAttr,"")}createElement(i,e){const n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}}class $4 extends Pm{constructor(i,e,n,s){super(i),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=au(s.id,s.styles,[]);for(let r=0;r{class t extends Ly{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,s){return e.addEventListener(n,s,!1),()=>this.removeEventListener(e,n,s)}removeEventListener(e,n,s){return e.removeEventListener(n,s)}}return t.\u0275fac=function(e){return new(e||t)(K(en))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const By=["alt","control","meta","shift"],Q4={"\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"},Hy={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},J4={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Y4=(()=>{class t extends Ly{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const o=t.parseEventName(n),r=t.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>is().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const o=t._normalizeKey(n.pop());let r="";if(By.forEach(h=>{const b=n.indexOf(h);b>-1&&(n.splice(b,1),r+=h+".")}),r+=o,0!=n.length||0===o.length)return null;const u={};return u.domEventName=s,u.fullKey=r,u}static getEventFullKey(e){let n="",s=function Z4(t){let i=t.key;if(null==i){if(i=t.keyIdentifier,null==i)return"Unidentified";i.startsWith("U+")&&(i=String.fromCharCode(parseInt(i.substring(2),16)),3===t.location&&Hy.hasOwnProperty(i)&&(i=Hy[i]))}return Q4[i]||i}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),By.forEach(o=>{o!=s&&J4[o](e)&&(n+=o+".")}),n+=s,n}static eventCallback(e,n,s){return o=>{t.getEventFullKey(o)===e&&s.runGuarded(()=>n(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(K(en))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const nO=WC(uL,"browser",[{provide:zc,useValue:ky},{provide:BC,useValue:function X4(){Rm.makeCurrent(),Lm.init()},multi:!0},{provide:en,useFactory:function tO(){return function Px(t){Zd=t}(document),document},deps:[]}]),iO=[{provide:hh,useValue:"root"},{provide:Da,useFactory:function eO(){return new Da},deps:[]},{provide:ou,useClass:W4,multi:!0,deps:[en,nt,zc]},{provide:ou,useClass:Y4,multi:!0,deps:[en]},{provide:lu,useClass:lu,deps:[ru,Xa,$a]},{provide:Ha,useExisting:lu},{provide:Oy,useExisting:Xa},{provide:Xa,useClass:Xa,deps:[en]},{provide:rm,useClass:rm,deps:[nt]},{provide:ru,useClass:ru,deps:[ou,nt]},{provide:Ey,useClass:B4,deps:[]}];let qy=(()=>{class t{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:$a,useValue:e.appId},{provide:Ry,useExisting:$a},V4]}}}return t.\u0275fac=function(e){return new(e||t)(K(t,12))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:iO,imports:[Fe,dL]}),t})();function re(...t){let i=t[t.length-1];return Bo(i)?(t.pop(),Ad(t,i)):Pd(t)}function bo(t,i){return yn(t,i,1)}function Us(t,i){return function(n){return n.lift(new mO(t,i))}}"undefined"!=typeof window&&window;class mO{constructor(i,e){this.predicate=i,this.thisArg=e}call(i,e){return e.subscribe(new fO(i,this.predicate,this.thisArg))}}class fO extends wt{constructor(i,e,n){super(i),this.predicate=e,this.thisArg=n,this.count=0}_next(i){let e;try{e=this.predicate.call(this.thisArg,i,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(i)}}class zy{}class jy{}class Cs{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?this.lazyInit="string"==typeof i?()=>{this.headers=new Map,i.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const s=e.slice(0,n),o=s.toLowerCase(),r=e.slice(n+1).trim();this.maybeSetNormalizedName(s,o),this.headers.has(o)?this.headers.get(o).push(r):this.headers.set(o,[r])}})}:()=>{this.headers=new Map,Object.keys(i).forEach(e=>{let n=i[e];const s=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof Cs?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const e=new Cs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Cs?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,e);const s=("a"===i.op?this.headers.get(e):void 0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const o=i.value;if(o){let r=this.headers.get(e);if(!r)return;r=r.filter(u=>-1===o.indexOf(u)),0===r.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,r)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class gO{encodeKey(i){return $y(i)}encodeValue(i){return $y(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const bO=/%(\d[a-f0-9])/gi,vO={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function $y(t){return encodeURIComponent(t).replace(bO,(i,e)=>{var n;return null!==(n=vO[e])&&void 0!==n?n:i})}function Wy(t){return`${t}`}class ve{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new gO,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function _O(t,i){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(s=>{const o=s.indexOf("="),[r,u]=-1==o?[i.decodeKey(s),""]:[i.decodeKey(s.slice(0,o)),i.decodeValue(s.slice(o+1))],h=e.get(r)||[];h.push(u),e.set(r,h)}),e}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const n=i.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return Object.keys(i).forEach(n=>{const s=i[n];Array.isArray(s)?s.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:s,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const e=new ve({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const e=("a"===i.op?this.map.get(i.param):void 0)||[];e.push(Wy(i.value)),this.map.set(i.param,e);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const s=n.indexOf(Wy(i.value));-1!==s&&n.splice(s,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class CO{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function Ky(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Qy(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Jy(t){return"undefined"!=typeof FormData&&t instanceof FormData}class el{constructor(i,e,n,s){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function yO(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==n?n:null,o=s):o=n,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 Cs),this.context||(this.context=new CO),this.params){const r=this.params.toString();if(0===r.length)this.urlWithParams=e;else{const u=e.indexOf("?");this.urlWithParams=e+(-1===u?"?":uk.set(E,i.setHeaders[E]),b)),i.setParams&&(y=Object.keys(i.setParams).reduce((k,E)=>k.set(E,i.setParams[E]),y)),new el(n,s,r,{params:y,headers:b,context:w,reportProgress:h,responseType:o,withCredentials:u})}}var sn=(()=>((sn=sn||{})[sn.Sent=0]="Sent",sn[sn.UploadProgress=1]="UploadProgress",sn[sn.ResponseHeader=2]="ResponseHeader",sn[sn.DownloadProgress=3]="DownloadProgress",sn[sn.Response=4]="Response",sn[sn.User=5]="User",sn))();class Nm{constructor(i,e=200,n="OK"){this.headers=i.headers||new Cs,this.status=void 0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class Vm extends Nm{constructor(i={}){super(i),this.type=sn.ResponseHeader}clone(i={}){return new Vm({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class cu extends Nm{constructor(i={}){super(i),this.type=sn.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new cu({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class Yy extends Nm{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function Bm(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Bi=(()=>{class t{constructor(e){this.handler=e}request(e,n,s={}){let o;if(e instanceof el)o=e;else{let h,b;h=s.headers instanceof Cs?s.headers:new Cs(s.headers),s.params&&(b=s.params instanceof ve?s.params:new ve({fromObject:s.params})),o=new el(e,n,void 0!==s.body?s.body:null,{headers:h,context:s.context,params:b,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const r=re(o).pipe(bo(h=>this.handler.handle(h)));if(e instanceof el||"events"===s.observe)return r;const u=r.pipe(Us(h=>h instanceof cu));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return u.pipe(et(h=>{if(null!==h.body&&!(h.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return h.body}));case"blob":return u.pipe(et(h=>{if(null!==h.body&&!(h.body instanceof Blob))throw new Error("Response is not a Blob.");return h.body}));case"text":return u.pipe(et(h=>{if(null!==h.body&&"string"!=typeof h.body)throw new Error("Response is not a string.");return h.body}));default:return u.pipe(et(h=>h.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new ve).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,s={}){return this.request("PATCH",e,Bm(s,n))}post(e,n,s={}){return this.request("POST",e,Bm(s,n))}put(e,n,s={}){return this.request("PUT",e,Bm(s,n))}}return t.\u0275fac=function(e){return new(e||t)(K(zy))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class Zy{constructor(i,e){this.next=i,this.interceptor=e}handle(i){return this.interceptor.intercept(i,this.next)}}const Xy=new be("HTTP_INTERCEPTORS");let TO=(()=>{class t{intercept(e,n){return n.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const SO=/^\)\]\}',?\n/;let e0=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Je(n=>{const s=this.xhrFactory.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((E,L)=>s.setRequestHeader(E,L.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const E=e.detectContentTypeHeader();null!==E&&s.setRequestHeader("Content-Type",E)}if(e.responseType){const E=e.responseType.toLowerCase();s.responseType="json"!==E?E:"text"}const o=e.serializeBody();let r=null;const u=()=>{if(null!==r)return r;const E=s.statusText||"OK",L=new Cs(s.getAllResponseHeaders()),O=function xO(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return r=new Vm({headers:L,status:s.status,statusText:E,url:O}),r},h=()=>{let{headers:E,status:L,statusText:O,url:N}=u(),G=null;204!==L&&(G=void 0===s.response?s.responseText:s.response),0===L&&(L=G?200:0);let P=L>=200&&L<300;if("json"===e.responseType&&"string"==typeof G){const J=G;G=G.replace(SO,"");try{G=""!==G?JSON.parse(G):null}catch(se){G=J,P&&(P=!1,G={error:se,text:G})}}P?(n.next(new cu({body:G,headers:E,status:L,statusText:O,url:N||void 0})),n.complete()):n.error(new Yy({error:G,headers:E,status:L,statusText:O,url:N||void 0}))},b=E=>{const{url:L}=u(),O=new Yy({error:E,status:s.status||0,statusText:s.statusText||"Unknown Error",url:L||void 0});n.error(O)};let y=!1;const w=E=>{y||(n.next(u()),y=!0);let L={type:sn.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(L.total=E.total),"text"===e.responseType&&!!s.responseText&&(L.partialText=s.responseText),n.next(L)},k=E=>{let L={type:sn.UploadProgress,loaded:E.loaded};E.lengthComputable&&(L.total=E.total),n.next(L)};return s.addEventListener("load",h),s.addEventListener("error",b),s.addEventListener("timeout",b),s.addEventListener("abort",b),e.reportProgress&&(s.addEventListener("progress",w),null!==o&&s.upload&&s.upload.addEventListener("progress",k)),s.send(o),n.next({type:sn.Sent}),()=>{s.removeEventListener("error",b),s.removeEventListener("abort",b),s.removeEventListener("load",h),s.removeEventListener("timeout",b),e.reportProgress&&(s.removeEventListener("progress",w),null!==o&&s.upload&&s.upload.removeEventListener("progress",k)),s.readyState!==s.DONE&&s.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(K(Ey))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const Hm=new be("XSRF_COOKIE_NAME"),qm=new be("XSRF_HEADER_NAME");class t0{}let DO=(()=>{class t{constructor(e,n,s){this.doc=e,this.platform=n,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=yy(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(K(en),K(zc),K(Hm))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Gm=(()=>{class t{constructor(e,n){this.tokenService=e,this.headerName=n}intercept(e,n){const s=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return n.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),n.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(K(t0),K(qm))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),MO=(()=>{class t{constructor(e,n){this.backend=e,this.injector=n,this.chain=null}handle(e){if(null===this.chain){const n=this.injector.get(Xy,[]);this.chain=n.reduceRight((s,o)=>new Zy(s,o),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(K(jy),K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),kO=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Gm,useClass:TO}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Hm,useValue:e.cookieName}:[],e.headerName?{provide:qm,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[Gm,{provide:Xy,useExisting:Gm,multi:!0},{provide:t0,useClass:DO},{provide:Hm,useValue:"XSRF-TOKEN"},{provide:qm,useValue:"X-XSRF-TOKEN"}]}),t})(),IO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[Bi,{provide:zy,useClass:MO},e0,{provide:jy,useExisting:e0}],imports:[[kO.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function ss(t){return!!t&&(t instanceof Je||"function"==typeof t.lift&&"function"==typeof t.subscribe)}function n0(...t){if(1===t.length){const i=t[0];if(Vo(i))return uu(i,null);if(Ld(i)&&Object.getPrototypeOf(i)===Object.prototype){const e=Object.keys(i);return uu(e.map(n=>i[n]),e)}}if("function"==typeof t[t.length-1]){const i=t.pop();return uu(t=1===t.length&&Vo(t[0])?t[0]:t,null).pipe(et(e=>i(...e)))}return uu(t,null)}function uu(t,i){return new Je(e=>{const n=t.length;if(0===n)return void e.complete();const s=new Array(n);let o=0,r=0;for(let u=0;u{b||(b=!0,r++),s[u]=y},error:y=>e.error(y),complete:()=>{o++,(o===n||!b)&&(r===n&&e.next(i?i.reduce((y,w,k)=>(y[w]=s[k],y),{}):s),e.complete())}}))}})}function tl(...t){return function EO(){return ta(1)}()(re(...t))}const Ir=new Je(t=>t.complete());function du(t){return t?function RO(t){return new Je(i=>t.schedule(()=>i.complete()))}(t):Ir}function pu(t){return new Je(i=>{let e;try{e=t()}catch(s){return void i.error(s)}return(e?Mn(e):du()).subscribe(i)})}const s0=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function vo(t){return i=>0===t?du():i.lift(new LO(t))}class LO{constructor(i){if(this.total=i,this.total<0)throw new s0}call(i,e){return e.subscribe(new OO(i,this.total))}}class OO extends wt{constructor(i,e){super(i),this.total=e,this.count=0}_next(i){const e=this.total,n=++this.count;n<=e&&(this.destination.next(i),n===e&&(this.destination.complete(),this.unsubscribe()))}}class AO extends Et{constructor(i,e){super()}schedule(i,e=0){return this}}class hu extends AO{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){if(this.closed)return this;this.state=i;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(i,e,n=0){return setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let s,n=!1;try{this.work(i)}catch(o){n=!0,s=!!o&&o||new Error(o)}if(n)return this.unsubscribe(),s}_unsubscribe(){const i=this.id,e=this.scheduler,n=e.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null}}let o0=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(e,n=0,s){return new this.SchedulerAction(this,e).schedule(s,n)}}return t.now=()=>Date.now(),t})();class Hi extends o0{constructor(i,e=o0.now){super(i,()=>Hi.delegate&&Hi.delegate!==this?Hi.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(i,e=0,n){return Hi.delegate&&Hi.delegate!==this?Hi.delegate.schedule(i,e,n):super.schedule(i,e,n)}flush(i){const{actions:e}=this;if(this.active)return void e.push(i);let n;this.active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this.active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}}const NO=new class FO extends Hi{}(class PO extends hu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}schedule(i,e=0){return e>0?super.schedule(i,e):(this.delay=e,this.state=i,this.scheduler.flush(this),this)}execute(i,e){return e>0||this.closed?super.execute(i,e):this._execute(i,e)}requestAsyncId(i,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(i,e,n):i.flush(this)}});function nl(t,i){return new Je(i?e=>i.schedule(VO,0,{error:t,subscriber:e}):e=>e.error(t))}function VO({error:t,subscriber:i}){i.error(t)}class Kn{constructor(i,e,n){this.kind=i,this.value=e,this.error=n,this.hasValue="N"===i}observe(i){switch(this.kind){case"N":return i.next&&i.next(this.value);case"E":return i.error&&i.error(this.error);case"C":return i.complete&&i.complete()}}do(i,e,n){switch(this.kind){case"N":return i&&i(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(i,e,n){return i&&"function"==typeof i.next?this.observe(i):this.do(i,e,n)}toObservable(){switch(this.kind){case"N":return re(this.value);case"E":return nl(this.error);case"C":return du()}throw new Error("unexpected notification kind value")}static createNext(i){return void 0!==i?new Kn("N",i):Kn.undefinedValueNotification}static createError(i){return new Kn("E",void 0,i)}static createComplete(){return Kn.completeNotification}}Kn.completeNotification=new Kn("C"),Kn.undefinedValueNotification=new Kn("N",void 0);class mu extends wt{constructor(i,e,n=0){super(i),this.scheduler=e,this.delay=n}static dispatch(i){const{notification:e,destination:n}=i;e.observe(n),this.unsubscribe()}scheduleMessage(i){this.destination.add(this.scheduler.schedule(mu.dispatch,this.delay,new HO(i,this.destination)))}_next(i){this.scheduleMessage(Kn.createNext(i))}_error(i){this.scheduleMessage(Kn.createError(i)),this.unsubscribe()}_complete(){this.scheduleMessage(Kn.createComplete()),this.unsubscribe()}}class HO{constructor(i,e){this.notification=i,this.destination=e}}class qO extends ct{constructor(i=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=i<1?1:i,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(i){if(!this.isStopped){const e=this._events;e.push(i),e.length>this._bufferSize&&e.shift()}super.next(i)}nextTimeWindow(i){this.isStopped||(this._events.push(new GO(this._getNow(),i)),this._trimBufferThenGetEvents()),super.next(i)}_subscribe(i){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,o=n.length;let r;if(this.closed)throw new no;if(this.isStopped||this.hasError?r=Et.EMPTY:(this.observers.push(i),r=new Eg(this,i)),s&&i.add(i=new mu(i,s)),e)for(let u=0;ue&&(r=Math.max(r,o-e)),r>0&&s.splice(0,r),s}}class GO{constructor(i,e){this.time=i,this.value=e}}function Um(t,i,e){let n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:i,refCount:!1,scheduler:e},s=>s.lift(function UO({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:i=Number.POSITIVE_INFINITY,refCount:e,scheduler:n}){let s,r,o=0,u=!1,h=!1;return function(y){let w;o++,!s||u?(u=!1,s=new qO(t,i,n),w=s.subscribe(this),r=y.subscribe({next(k){s.next(k)},error(k){u=!0,s.error(k)},complete(){h=!0,r=void 0,s.complete()}}),h&&(r=void 0)):w=s.subscribe(this),this.add(()=>{o--,w.unsubscribe(),w=void 0,r&&!h&&e&&0===o&&(r.unsubscribe(),r=void 0,s=void 0)})}}(n))}function qi(t,i){return"function"==typeof i?e=>e.pipe(qi((n,s)=>Mn(t(n,s)).pipe(et((o,r)=>i(n,o,s,r))))):e=>e.lift(new zO(t))}class zO{constructor(i){this.project=i}call(i,e){return e.subscribe(new jO(i,this.project))}}class jO extends Xr{constructor(i,e){super(i),this.project=e,this.index=0}_next(i){let e;const n=this.index++;try{e=this.project(i,n)}catch(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(i){const e=this.innerSubscription;e&&e.unsubscribe();const n=new Zr(this),s=this.destination;s.add(n),this.innerSubscription=ea(i,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:i}=this;(!i||i.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(i){this.destination.next(i)}}class il{}let r0=(()=>{class t extends il{getTranslation(e){return re({})}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=an(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class zm{}let a0=(()=>{class t{handle(e){return e.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function sl(t,i){if(t===i)return!0;if(null===t||null===i)return!1;if(t!=t&&i!=i)return!0;let s,o,r,e=typeof t;if(e==typeof i&&"object"==e){if(!Array.isArray(t)){if(Array.isArray(i))return!1;for(o in r=Object.create(null),t){if(!sl(t[o],i[o]))return!1;r[o]=!0}for(o in i)if(!(o in r)&&void 0!==i[o])return!1;return!0}if(!Array.isArray(i))return!1;if((s=t.length)==i.length){for(o=0;o{jm(i[n])?n in t?e[n]=l0(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e}class fu{}let c0=(()=>{class t extends fu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,n){let s;return s="string"==typeof e?this.interpolateString(e,n):"function"==typeof e?this.interpolateFunction(e,n):e,s}getValue(e,n){let s="string"==typeof n?n.split("."):[n];n="";do{n+=s.shift(),!oi(e)||!oi(e[n])||"object"!=typeof e[n]&&s.length?s.length?n+=".":e=void 0:(e=e[n],n="")}while(s.length);return e}interpolateFunction(e,n){return e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(s,o)=>{let r=this.getValue(n,o);return oi(r)?r:s}):e}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=an(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class gu{}let u0=(()=>{class t extends gu{compile(e,n){return e}compileTranslations(e,n){return e}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=an(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class d0{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new H,this.onLangChange=new H,this.onDefaultLangChange=new H}}const $m=new be("USE_STORE"),Wm=new be("USE_DEFAULT_LANG"),Km=new be("DEFAULT_LANGUAGE"),Qm=new be("USE_EXTEND");let Oe=(()=>{class t{constructor(e,n,s,o,r,u=!0,h=!1,b=!1,y){this.store=e,this.currentLoader=n,this.compiler=s,this.parser=o,this.missingTranslationHandler=r,this.useDefaultLang=u,this.isolate=h,this.extend=b,this.pending=!1,this._onTranslationChange=new H,this._onLangChange=new H,this._onDefaultLangChange=new H,this._langs=[],this._translations={},this._translationRequests={},y&&this.setDefaultLang(y)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let n=this.retrieveTranslations(e);void 0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(vo(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return re(this.translations[e]);let n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe(vo(1)).subscribe(s=>{this.changeLang(e)}),n):(this.changeLang(e),re(this.translations[e]))}retrieveTranslations(e){let n;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),n=this._translationRequests[e]),n}getTranslation(e){this.pending=!0;const n=this.currentLoader.getTranslation(e).pipe(Um(1),vo(1));return this.loadingTranslations=n.pipe(et(s=>this.compiler.compileTranslations(s,e)),Um(1),vo(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},s),this.translations[e]):s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),n}setTranslation(e,n,s=!1){n=this.compiler.compileTranslations(n,e),this.translations[e]=(s||this.extend)&&this.translations[e]?l0(this.translations[e],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(n=>{-1===this.langs.indexOf(n)&&this.langs.push(n)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,n,s){let o;if(n instanceof Array){let r={},u=!1;for(let h of n)r[h]=this.getParsedResult(e,h,s),ss(r[h])&&(u=!0);return u?n0(n.map(b=>ss(r[b])?r[b]:re(r[b]))).pipe(et(b=>{let y={};return b.forEach((w,k)=>{y[n[k]]=w}),y})):r}if(e&&(o=this.parser.interpolate(this.parser.getValue(e,n),s)),void 0===o&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),s)),void 0===o){let r={key:n,translateService:this};void 0!==s&&(r.interpolateParams=s),o=this.missingTranslationHandler.handle(r)}return void 0!==o?o:n}get(e,n){if(!oi(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(bo(s=>ss(s=this.getParsedResult(s,e,n))?s:re(s)));{let s=this.getParsedResult(this.translations[this.currentLang],e,n);return ss(s)?s:re(s)}}getStreamOnTranslationChange(e,n){if(!oi(e)||!e.length)throw new Error('Parameter "key" required');return tl(pu(()=>this.get(e,n)),this.onTranslationChange.pipe(qi(s=>{const o=this.getParsedResult(s.translations,e,n);return"function"==typeof o.subscribe?o:re(o)})))}stream(e,n){if(!oi(e)||!e.length)throw new Error('Parameter "key" required');return tl(pu(()=>this.get(e,n)),this.onLangChange.pipe(qi(s=>{const o=this.getParsedResult(s.translations,e,n);return ss(o)?o:re(o)})))}instant(e,n){if(!oi(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,n);if(ss(s)){if(e instanceof Array){let o={};return e.forEach((r,u)=>{o[e[u]]=e[u]}),o}return e}return s}set(e,n,s=this.currentLang){this.translations[s][e]=this.compiler.compile(n,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return t.\u0275fac=function(e){return new(e||t)(K(d0),K(il),K(gu),K(fu),K(zm),K(Wm),K($m),K(Qm),K(Km))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_u=(()=>{class t{constructor(e,n,s){this.translateService=e,this.element=n,this._ref=s,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(o=>{o.lang===this.translateService.currentLang&&this.checkNodes(!0,o.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(o=>{this.checkNodes(!0,o.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(o=>{this.checkNodes(!0)}))}set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){sl(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,n){let s=this.element.nativeElement.childNodes;s.length||(this.setContent(this.element.nativeElement,this.key),s=this.element.nativeElement.childNodes);for(let o=0;o{r!==e&&(n.lastKey=e),n.originalContent||(n.originalContent=this.getContent(n)),n.currentValue=oi(r)?r:n.originalContent||e,this.setContent(n,this.key?n.currentValue:n.originalContent.replace(e,n.currentValue)),this._ref.markForCheck()};if(oi(s)){let r=this.translateService.getParsedResult(s,e,this.currentParams);ss(r)?r.subscribe({next:o}):o(r)}else this.translateService.get(e,this.currentParams).subscribe(o)}}getContent(e){return oi(e.textContent)?e.textContent:e.data}setContent(e,n){oi(e.textContent)?e.textContent=n:e.data=n}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(D(Oe),D(De),D(ot))},t.\u0275dir=le({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),t})(),ce=(()=>{class t{constructor(e,n){this.translate=e,this._ref=n,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,n,s){let o=r=>{this.value=void 0!==r?r:e,this.lastKey=e,this._ref.markForCheck()};if(s){let r=this.translate.getParsedResult(s,e,n);ss(r.subscribe)?r.subscribe(o):o(r)}this.translate.get(e,n).subscribe(o)}transform(e,...n){if(!e||!e.length)return e;if(sl(e,this.lastKey)&&sl(n,this.lastParams))return this.value;let s;if(oi(n[0])&&n.length)if("string"==typeof n[0]&&n[0].length){let o=n[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(o)}catch(r){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else"object"==typeof n[0]&&!Array.isArray(n[0])&&(s=n[0]);return this.lastKey=e,this.lastParams=n,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,o.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(D(Oe,16),D(ot,16))},t.\u0275pipe=Pn({name:"translate",type:t,pure:!1}),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),$O=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:il,useClass:r0},e.compiler||{provide:gu,useClass:u0},e.parser||{provide:fu,useClass:c0},e.missingTranslationHandler||{provide:zm,useClass:a0},d0,{provide:$m,useValue:e.isolate},{provide:Wm,useValue:e.useDefaultLang},{provide:Qm,useValue:e.extend},{provide:Km,useValue:e.defaultLanguage},Oe]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:il,useClass:r0},e.compiler||{provide:gu,useClass:u0},e.parser||{provide:fu,useClass:c0},e.missingTranslationHandler||{provide:zm,useClass:a0},{provide:$m,useValue:e.isolate},{provide:Wm,useValue:e.useDefaultLang},{provide:Qm,useValue:e.extend},{provide:Km,useValue:e.defaultLanguage},Oe]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();class WO{constructor(i,e="/assets/i18n/",n=".json"){this.http=i,this.prefix=e,this.suffix=n}getTranslation(i){return this.http.get(`${this.prefix}${i}${this.suffix}`)}}let p0=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(D(gn),D(De))},t.\u0275dir=le({type:t}),t})(),Co=(()=>{class t extends p0{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=an(t)))(n||t)}}(),t.\u0275dir=le({type:t,features:[ut]}),t})();const dn=new be("NgValueAccessor"),QO={provide:dn,useExisting:je(()=>Ye),multi:!0},YO=new be("CompositionEventMode");let Ye=(()=>{class t extends p0{constructor(e,n,s){super(e,n),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function JO(){const t=is()?is().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(D(gn),D(De),D(YO,8))},t.\u0275dir=le({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,n){1&e&&C("input",function(o){return n._handleInput(o.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(o){return n._compositionEnd(o.target.value)})},features:[Pe([QO]),ut]}),t})();function zs(t){return null==t||0===t.length}const On=new be("NgValidators"),js=new be("NgAsyncValidators");function _0(t){return zs(t.value)?{required:!0}:null}function bu(t){return null}function T0(t){return null!=t}function S0(t){const i=La(t)?Mn(t):t;return Dh(i),i}function x0(t){let i={};return t.forEach(e=>{i=null!=e?Object.assign(Object.assign({},i),e):i}),0===Object.keys(i).length?null:i}function D0(t,i){return i.map(e=>e(t))}function M0(t){return t.map(i=>function XO(t){return!t.validate}(i)?i:e=>i.validate(e))}function Jm(t){return null!=t?function k0(t){if(!t)return null;const i=t.filter(T0);return 0==i.length?null:function(e){return x0(D0(e,i))}}(M0(t)):null}function Ym(t){return null!=t?function I0(t){if(!t)return null;const i=t.filter(T0);return 0==i.length?null:function(e){return n0(D0(e,i).map(S0)).pipe(et(x0))}}(M0(t)):null}function E0(t,i){return null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Zm(t){return t?Array.isArray(t)?t:[t]:[]}function vu(t,i){return Array.isArray(t)?t.includes(i):t===i}function O0(t,i){const e=Zm(i);return Zm(t).forEach(s=>{vu(e,s)||e.push(s)}),e}function A0(t,i){return Zm(i).filter(e=>!vu(t,e))}class P0{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=Jm(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Ym(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return this.control?this.control.getError(i,e):null}}class os extends P0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Un extends P0{get formDirective(){return null}get path(){return null}}class F0{constructor(i){this._cd=i}is(i){var e,n,s;return"submitted"===i?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(s=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===s?void 0:s[i])}}let we=(()=>{class t extends F0{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(D(os,2))},t.\u0275dir=le({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&si("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[ut]}),t})(),Ue=(()=>{class t extends F0{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(D(Un,10))},t.\u0275dir=le({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,n){2&e&&si("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[ut]}),t})();function ol(t,i){tf(t,i),i.valueAccessor.writeValue(t.value),function aA(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&V0(t,i)})}(t,i),function cA(t,i){const e=(n,s)=>{i.valueAccessor.writeValue(n),s&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function lA(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&V0(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function rA(t,i){if(i.valueAccessor.setDisabledState){const e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function Tu(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function tf(t,i){const e=function R0(t){return t._rawValidators}(t);null!==i.validator?t.setValidators(E0(e,i.validator)):"function"==typeof e&&t.setValidators([e]);const n=function L0(t){return t._rawAsyncValidators}(t);null!==i.asyncValidator?t.setAsyncValidators(E0(n,i.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const s=()=>t.updateValueAndValidity();Tu(i._rawValidators,s),Tu(i._rawAsyncValidators,s)}function V0(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function of(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}const rl="VALID",xu="INVALID",Er="PENDING",al="DISABLED";function af(t){return(Du(t)?t.validators:t)||null}function G0(t){return Array.isArray(t)?Jm(t):t||null}function lf(t,i){return(Du(i)?i.asyncValidators:t)||null}function U0(t){return Array.isArray(t)?Ym(t):t||null}function Du(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}const cf=t=>t instanceof df;function j0(t){return(t=>t instanceof K0)(t)?t.value:t.getRawValue()}function $0(t,i){const e=cf(t),n=t.controls;if(!(e?Object.keys(n):n).length)throw new oe(1e3,"");if(!n[i])throw new oe(1001,"")}function W0(t,i){cf(t),t._forEachChild((n,s)=>{if(void 0===i[s])throw new oe(1002,"")})}class uf{constructor(i,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=i,this._rawAsyncValidators=e,this._composedValidatorFn=G0(this._rawValidators),this._composedAsyncValidatorFn=U0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===rl}get invalid(){return this.status===xu}get pending(){return this.status==Er}get disabled(){return this.status===al}get enabled(){return this.status!==al}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._rawValidators=i,this._composedValidatorFn=G0(i)}setAsyncValidators(i){this._rawAsyncValidators=i,this._composedAsyncValidatorFn=U0(i)}addValidators(i){this.setValidators(O0(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(O0(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(A0(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(A0(i,this._rawAsyncValidators))}hasValidator(i){return vu(this._rawValidators,i)}hasAsyncValidator(i){return vu(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Er,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=al,this.errors=null,this._forEachChild(n=>{n.disable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=rl,this._forEachChild(n=>{n.enable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rl||this.status===Er)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?al:rl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Er,this._hasOwnPendingAsyncValidator=!0;const e=S0(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){return function hA(t,i,e){if(null==i||(Array.isArray(i)||(i=i.split(e)),Array.isArray(i)&&0===i.length))return null;let n=t;return i.forEach(s=>{n=cf(n)?n.controls.hasOwnProperty(s)?n.controls[s]:null:(t=>t instanceof fA)(n)&&n.at(s)||null}),n}(this,i,".")}getError(i,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new H,this.statusChanges=new H}_calculateStatus(){return this._allControlsDisabled()?al:this.errors?xu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Er)?Er:this._anyControlsHaveStatus(xu)?xu:rl}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_isBoxedValue(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Du(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class K0 extends uf{constructor(i=null,e,n){super(af(e),lf(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Du(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){of(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){of(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}class df extends uf{constructor(i,e,n){super(af(e),lf(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){W0(this,i),Object.keys(i).forEach(n=>{$0(this,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=j0(e),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&i(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(i,e,n)=>((e.enabled||this.disabled)&&(i[n]=e.value),i))}_reduceChildren(i,e){let n=i;return this._forEachChild((s,o)=>{n=e(n,s,o)}),n}_allControlsDisabled(){for(const i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class fA extends uf{constructor(i,e,n){super(af(e),lf(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return this.controls[i]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){W0(this,i),i.forEach((n,s)=>{$0(this,s),this.at(s).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((n,s)=>{this.at(s)&&this.at(s).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>j0(i))}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_syncPendingControls(){let i=this.controls.reduce((e,n)=>!!n._syncPendingControls()||e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(const i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}const gA={provide:Un,useExisting:je(()=>He)},ll=(()=>Promise.resolve(null))();let He=(()=>{class t extends Un{constructor(e,n){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new H,this.form=new df({},Jm(e),Ym(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){ll.then(()=>{const n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),ol(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){ll.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){ll.then(()=>{const n=this._findContainer(e.path),s=new df({});(function B0(t,i){tf(t,i)})(s,e),n.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){ll.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){ll.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,function q0(t,i){t._syncPendingControls(),i.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return t.\u0275fac=function(e){return new(e||t)(D(On,10),D(js,10))},t.\u0275dir=le({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&C("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Pe([gA]),ut]}),t})();const bA={provide:os,useExisting:je(()=>_e)},Y0=(()=>Promise.resolve(null))();let _e=(()=>{class t extends os{constructor(e,n,s,o,r){super(),this._changeDetectorRef=r,this.control=new K0,this._registered=!1,this.update=new H,this._parent=e,this._setValidators(n),this._setAsyncValidators(s),this.valueAccessor=function sf(t,i){if(!i)return null;let e,n,s;return Array.isArray(i),i.forEach(o=>{o.constructor===Ye?e=o:function pA(t){return Object.getPrototypeOf(t.constructor)===Co}(o)?n=o:s=o}),s||n||e||null}(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function nf(t,i){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ol(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Y0.then(()=>{var n;this.control.setValue(e,{emitViewToModelChange:!1}),null===(n=this._changeDetectorRef)||void 0===n||n.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,s=""===n||n&&"false"!==n;Y0.then(()=>{var o;s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()})}_getPath(e){return this._parent?function yu(t,i){return[...i.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(D(Un,9),D(On,10),D(js,10),D(dn,10),D(ot,8))},t.\u0275dir=le({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Pe([bA]),ut,fn]}),t})(),ze=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=le({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const vA={provide:dn,useExisting:je(()=>Mu),multi:!0};let Mu=(()=>{class t extends Co{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=an(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,n){1&e&&C("input",function(o){return n.onChange(o.target.value)})("blur",function(){return n.onTouched()})},features:[Pe([vA]),ut]}),t})(),Z0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();const pf=new be("NgModelWithFormControlWarning");function aw(t){return"number"==typeof t?t:parseFloat(t)}let yo=(()=>{class t{constructor(){this._validator=bu}ngOnChanges(e){if(this.inputName in e){const n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):bu,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=le({type:t,features:[fn]}),t})();const PA={provide:On,useExisting:je(()=>ku),multi:!0};let ku=(()=>{class t extends yo{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>aw(e),this.createValidator=e=>function g0(t){return i=>{if(zs(i.value)||zs(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=an(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("max",n._enabled?n.max:null)},inputs:{max:"max"},features:[Pe([PA]),ut]}),t})();const FA={provide:On,useExisting:je(()=>Iu),multi:!0};let Iu=(()=>{class t extends yo{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>aw(e),this.createValidator=e=>function f0(t){return i=>{if(zs(i.value)||zs(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e