diff --git a/app_api/models/predmet.js b/app_api/models/predmet.js index ddb2b83..1267855 100644 --- a/app_api/models/predmet.js +++ b/app_api/models/predmet.js @@ -192,7 +192,7 @@ const gradivoShema = new mongoose.Schema({ */ const predmetShema = new mongoose.Schema({ - ime: {type: String}, + ime: {type: String, unique: true}, opis: {type: String}, // 0 -> ni v letniku a, 1 -> 1. letnik... letnik: {type: Number}, @@ -215,7 +215,8 @@ const predmetShema = new mongoose.Schema({ gradiva: [{ type: mongoose.Schema.Types.ObjectId, ref: 'Gradivo' - }] + }], + kraticaPredmeta:{type: String, unique:true} }); /** diff --git a/app_public/build/index.html b/app_public/build/index.html index c364193..27440d0 100644 --- a/app_public/build/index.html +++ b/app_public/build/index.html @@ -22,5 +22,5 @@ - + diff --git a/app_public/build/main.a65e3802f5f8c574907e.js b/app_public/build/main.fff48111f6a5eeb47220.js similarity index 88% rename from app_public/build/main.a65e3802f5f8c574907e.js rename to app_public/build/main.fff48111f6a5eeb47220.js index d5b4354..393de61 100644 --- a/app_public/build/main.a65e3802f5f8c574907e.js +++ b/app_public/build/main.fff48111f6a5eeb47220.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);let r=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(s.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let d=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:s,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof u?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends d{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[p](){return this}static create(t,e,n){const i=new f(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class m extends f{constructor(t,e,n,r){let s;super(),this._parentSubscriber=t;let o=this;i(e)?s=e:e&&(s=e.next,n=e.error,r=e.complete,e!==a&&(o=Object.create(e),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=s;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return s.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function v(t){return t}let b=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,r=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(r.add(i?i.call(r,this.source):this.source||s.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),s.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(t){try{return this._subscribe(t)}catch(e){s.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=y(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(r){n(r),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?v:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=y(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function y(t){if(t||(t=s.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const _=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends d{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class k extends f{constructor(t){super(t),this.destination=t}}let j=(()=>{class t extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new k(this)}lift(t){const e=new C(this,this);return e.operator=t,e}next(t){if(this.closed)throw new _;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;rnew C(t,e),t})();class C extends j{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):d.EMPTY}}function S(t){return t&&"function"==typeof t.schedule}function P(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new x(t,e))}}class x{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new O(t,this.project,this.thisArg))}}class O extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const E=t=>e=>{for(let n=0,i=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function T(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const N=t=>{if(t&&"function"==typeof t[g])return i=t,t=>{const e=i[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(z(t))return E(t);if(T(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[A])return e=t,t=>{const n=e[A]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,i};function R(t,e){return new b(n=>{const i=new d;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function M(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new b(n=>{const i=new d;return i.add(e.schedule(()=>{const r=t[g]();i.add(r.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(T(t))return function(t,e){return new b(n=>{const i=new d;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(z(t))return R(t,e);if(function(t){return t&&"function"==typeof t[A]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new b(n=>{const i=new d;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=t[A](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof b?t:new b(N(t))}class V extends f{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class D extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function U(t,e){if(e.closed)return;if(t instanceof b)return t.subscribe(e);let n;try{n=N(t)(e)}catch(i){e.error(i)}return n}function L(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(L((n,i)=>M(t(n,i)).pipe(P((t,r)=>e(n,t,i,r))),n)):("number"==typeof e&&(n=e),e=>e.lift(new F(t,n)))}class F{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new $(t,this.project,this.concurrent))}}class $ extends D{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function H(t=Number.POSITIVE_INFINITY){return L(v,t)}function B(t,e){return e?R(t,e):new b(E(t))}function G(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return S(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof b?t[0]:H(e)(B(t,n))}function q(){return function(t){return t.lift(new W(t))}}class W{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new Z(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class Z extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class K extends b{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new d,t.add(this.source.subscribe(new J(this.getSubject(),this))),t.closed&&(this._connection=null,t=d.EMPTY)),t}refCount(){return q()(this)}}const Q=(()=>{const t=K.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 J extends k{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function Y(t,e){return function(n){let i;if(i="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new X(i,e));const r=Object.create(n,Q);return r.source=n,r.subjectFactory=i,r}}class X{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:n}=this,i=this.subjectFactory(),r=n(i).subscribe(t);return r.add(e.subscribe(i)),r}}function tt(){return new j}function et(t){for(let e in t)if(t[e]===et)return e;throw Error("Could not find renamed property on target object.")}function nt(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function it(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(it).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function rt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const st=et({__forward_ref__:et});function ot(t){return t.__forward_ref__=ot,t.toString=function(){return it(this())},t}function at(t){return lt(t)?t():t}function lt(t){return"function"==typeof t&&t.hasOwnProperty(st)&&t.__forward_ref__===ot}class ct extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function ut(t){return"string"==typeof t?t:null==t?"":String(t)}function dt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ut(t)}function ht(t,e){const n=e?` in ${e}`:"";throw new ct("201",`No provider for ${dt(t)} found${n}`)}function pt(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${n} ${i} ${e} <=Actual]`))}function ft(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function mt(t){return{providers:t.providers||[],imports:t.imports||[]}}function gt(t){return vt(t,yt)||vt(t,wt)}function vt(t,e){return t.hasOwnProperty(e)?t[e]:null}function bt(t){return t&&(t.hasOwnProperty(_t)||t.hasOwnProperty(kt))?t[_t]:null}const yt=et({"\u0275prov":et}),_t=et({"\u0275inj":et}),wt=et({ngInjectableDef:et}),kt=et({ngInjectorDef:et});var jt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let Ct;function St(t){const e=Ct;return Ct=t,e}function Pt(t,e,n){const i=gt(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&jt.Optional?null:void 0!==e?e:void ht(it(t),"Injector")}function xt(t){return{toString:t}.toString()}var Ot=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Et=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const It="undefined"!=typeof globalThis&&globalThis,At="undefined"!=typeof window&&window,zt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Tt="undefined"!=typeof global&&global,Nt=It||Tt||At||zt,Rt={},Mt=[],Vt=[],Dt=et({"\u0275cmp":et}),Ut=et({"\u0275dir":et}),Lt=et({"\u0275pipe":et}),Ft=et({"\u0275mod":et}),$t=et({"\u0275loc":et}),Ht=et({"\u0275fac":et}),Bt=et({__NG_ELEMENT_ID__:et});let Gt=0;function qt(t){return xt(()=>{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===Ot.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Vt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Et.Emulated,id:"c",styles:t.styles||Vt,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,s=t.pipes;return n.id+=Gt++,n.inputs=Jt(t.inputs,e),n.outputs=Jt(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Wt):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(Zt):null,n})}function Wt(t){return te(t)||function(t){return t[Ut]||null}(t)}function Zt(t){return function(t){return t[Lt]||null}(t)}const Kt={};function Qt(t){const e={type:t.type,bootstrap:t.bootstrap||Vt,declarations:t.declarations||Vt,imports:t.imports||Vt,exports:t.exports||Vt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&xt(()=>{Kt[t.id]=t.type}),e}function Jt(t,e){if(null==t)return Rt;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,e&&(e[r]=s)}return n}const Yt=qt;function Xt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function te(t){return t[Dt]||null}function ee(t,e){const n=t[Ft]||null;if(!n&&!0===e)throw new Error(`Type ${it(t)} does not have '\u0275mod' property.`);return n}const ne=20,ie=10;function re(t){return Array.isArray(t)&&"object"==typeof t[1]}function se(t){return Array.isArray(t)&&!0===t[1]}function oe(t){return 0!=(8&t.flags)}function ae(t){return 2==(2&t.flags)}function le(t){return 1==(1&t.flags)}function ce(t){return null!==t.template}function ue(t,e){return t.hasOwnProperty(Ht)?t[Ht]:null}class de{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function he(){return pe}function pe(t){return t.type.prototype.ngOnChanges&&(t.setInput=me),fe}function fe(){const t=ge(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Rt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function me(t,e,n,i){const r=ge(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Rt,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];s[a]=new de(l&&l.currentValue,e,o===Rt),t[i]=e}function ge(t){return t.__ngSimpleChanges__||null}let ve;function be(){return void 0!==ve?ve:"undefined"!=typeof document?document:void 0}function ye(t){return!!t.listen}he.ngInherit=!0;const _e={createRenderer:(t,e)=>be()};function we(t){for(;Array.isArray(t);)t=t[0];return t}function ke(t,e){return we(e[t])}function je(t,e){return we(e[t.index])}function Ce(t,e){return t.data[e]}function Se(t,e){return t[e]}function Pe(t,e){const n=e[t];return re(n)?n:n[0]}function xe(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Oe(t){return 4==(4&t[2])}function Ee(t){return 128==(128&t[2])}function Ie(t,e){return null==e?null:t[e]}function Ae(t){t[18]=0}function ze(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Te={lFrame:on(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ne(){return Te.bindingsEnabled}function Re(){return Te.lFrame.lView}function Me(){return Te.lFrame.tView}function Ve(t){Te.lFrame.contextLView=t}function De(){let t=Ue();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ue(){return Te.lFrame.currentTNode}function Le(){const t=Te.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Fe(t,e){const n=Te.lFrame;n.currentTNode=t,n.isParent=e}function $e(){return Te.lFrame.isParent}function He(){Te.lFrame.isParent=!1}function Be(){return Te.isInCheckNoChangesMode}function Ge(t){Te.isInCheckNoChangesMode=t}function qe(){const t=Te.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function We(){return Te.lFrame.bindingIndex}function Ze(){return Te.lFrame.bindingIndex++}function Ke(t){const e=Te.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Qe(t){Te.lFrame.inI18n=t}function Je(t,e){const n=Te.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ye(e)}function Ye(t){Te.lFrame.currentDirectiveIndex=t}function Xe(){return Te.lFrame.currentQueryIndex}function tn(t){Te.lFrame.currentQueryIndex=t}function en(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function nn(t,e,n){if(n&jt.SkipSelf){let i=e,r=t;for(;i=i.parent,!(null!==i||n&jt.Host||(i=en(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;e=i,t=r}const i=Te.lFrame=sn();return i.currentTNode=e,i.lView=t,!0}function rn(t){const e=sn(),n=t[1];Te.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function sn(){const t=Te.lFrame,e=null===t?null:t.child;return null===e?on(t):e}function on(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function an(){const t=Te.lFrame;return Te.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ln=an;function cn(){const t=an();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 un(){return Te.lFrame.selectedIndex}function dn(t){Te.lFrame.selectedIndex=t}function hn(){const t=Te.lFrame;return Ce(t.tView,t.selectedIndex)}function pn(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{s.call(o)}finally{}}}else try{s.call(o)}finally{}}const yn=-1;class _n{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function wn(t,e,n){const i=ye(t);let r=0;for(;re){o=s-1;break}}}for(;s>16,i=e;for(;n>0;)i=i[15],n--;return i}let En=!0;function In(t){const e=En;return En=t,e}let An=0;function zn(t,e){const n=Nn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Tn(i.data,t),Tn(e,null),Tn(i.blueprint,null));const r=Rn(t,e),s=t.injectorIndex;if(Pn(r)){const t=xn(r),n=On(r,e),i=n[1].data;for(let r=0;r<8;r++)e[s+r]=n[t+r]|i[t+r]}return e[s+8]=r,s}function Tn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Nn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Rn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;null!==r;){const t=r[1],e=t.type;if(i=2===e?t.declTNode:1===e?r[6]:null,null===i)return yn;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return yn}function Mn(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Bt)&&(i=n[Bt]),null==i&&(i=n[Bt]=An++);const r=255&i;e.data[t+(r>>5)]|=1<=0?255&e:Fn:e}(n);if("function"==typeof s){if(!nn(e,t,i))return i&jt.Host?Vn(r,n,i):Dn(e,n,i,r);try{const t=s();if(null!=t||i&jt.Optional)return t;ht(n)}finally{ln()}}else if("number"==typeof s){let r=null,o=Nn(t,e),a=yn,l=i&jt.Host?e[16][6]:null;for((-1===o||i&jt.SkipSelf)&&(a=-1===o?Rn(t,e):e[o+8],a!==yn&&qn(i,!1)?(r=e[1],o=xn(a),e=On(a,e)):o=-1);-1!==o;){const t=e[1];if(Gn(s,o,t.data)){const t=$n(o,e,n,r,i,l);if(t!==Ln)return t}a=e[o+8],a!==yn&&qn(i,e[1].data[o+8]===l)&&Gn(s,o,e)?(r=t,o=xn(a),e=On(a,e)):o=-1}}}return Dn(e,n,i,r)}const Ln={};function Fn(){return new Wn(De(),Re())}function $n(t,e,n,i,r,s){const o=e[1],a=o.data[t+8],l=Hn(a,o,n,null==i?ae(a)&&En:i!=o&&0!=(3&a.type),r&jt.Host&&s===a);return null!==l?Bn(e,o,l,a):Ln}function Hn(t,e,n,i,r){const s=t.providerIndexes,o=e.data,a=1048575&s,l=t.directiveStart,c=s>>20,u=r?a+c:t.directiveEnd;for(let d=i?a:a+c;d=l&&t.type===n)return d}if(r){const t=o[l];if(t&&ce(t)&&t.type===n)return l}return null}function Bn(t,e,n,i){let r=t[n];const s=e.data;if(r instanceof _n){const o=r;o.resolving&&function(t,e){throw new ct("200",`Circular dependency in DI detected for ${t}`)}(dt(s[n]));const a=In(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?St(o.injectImpl):null;nn(t,i,jt.Default);try{r=t[n]=o.factory(void 0,s,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const i=pe(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{null!==l&&St(l),In(a),o.resolving=!1,ln()}}return r}function Gn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Ht]||Kn(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[Ht]||Kn(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function Kn(t){return lt(t)?()=>{const e=Kn(at(t));return e&&e()}:ue(t)}function Qn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty(Jn)?t[Jn]:Object.defineProperty(t,Jn,{value:[]})[Jn];for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class Xn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ft({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ti=new Xn("AnalyzeForEntryComponents"),ei=Function;function ni(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?ii(t,e):e(t))}function ri(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function si(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function oi(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function li(t,e){const n=ci(t,e);if(n>=0)return t[1|n]}function ci(t,e){return function(t,e,n){let i=0,r=t.length>>1;for(;r!==i;){const n=i+(r-i>>1),s=t[n<<1];if(e===s)return n<<1;s>e?r=n:i=n+1}return~(r<<1)}(t,e)}const ui={},di=/\n/gm,hi="__source",pi=et({provide:String,useValue:et});let fi;function mi(t){const e=fi;return fi=t,e}function gi(t,e=jt.Default){if(void 0===fi)throw new Error("inject() must be called from an injection context");return null===fi?Pt(t,void 0,e):fi.get(t,e&jt.Optional?null:void 0,e)}function vi(t,e=jt.Default){return(Ct||gi)(at(t),e)}function bi(t){const e=[];for(let n=0;n({token:t})),-1),wi=yi(Yn("Optional"),8),ki=yi(Yn("SkipSelf"),4);let ji;function Ci(t){var e;return(null===(e=function(){if(void 0===ji&&(ji=null,Nt.trustedTypes))try{ji=Nt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return ji}())||void 0===e?void 0:e.createHTML(t))||t}class Si{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function Pi(t){return t instanceof Si?t.changingThisBreaksApplicationSecurity:t}class xi{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Ci(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Oi{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ci(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Ci(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0Ai(t.trim())).join(", ")}function Ti(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Ni(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Ri=Ti("area,br,col,hr,img,wbr"),Mi=Ti("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Vi=Ti("rp,rt"),Di=Ni(Vi,Mi),Ui=Ni(Ri,Ni(Mi,Ti("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")),Ni(Vi,Ti("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")),Di),Li=Ti("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fi=Ti("srcset"),$i=Ni(Li,Fi,Ti("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"),Ti("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"));var Hi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Bi(t){const e=function(){const t=Re();return t&&t[12]}();return e?e.sanitize(Hi.URL,t)||"":function(t,e){const n=function(t){return t instanceof Si&&t.getTypeName()||null}(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}(t,"URL")?Pi(t):Ai(ut(t))}function Gi(t){return t.ngDebugContext}function qi(t){return t.ngOriginalError}function Wi(t,...e){t.error(...e)}class Zi{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||Wi}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Gi(t)?Gi(t):this._findContext(qi(t)):null}_findOriginalError(t){let e=qi(t);for(;e&&qi(e);)e=qi(e);return e}}function Ki(t,e){t.__ngContext__=e}const Qi=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Nt))();function Ji(t){return t instanceof Function?t():t}var Yi=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Xi;function tr(t,e){return Xi(t,e)}function er(t){const e=t[3];return se(e)?e[3]:e}function nr(t){return rr(t[13])}function ir(t){return rr(t[4])}function rr(t){for(;null!==t&&!se(t);)t=t[4];return t}function sr(t,e,n,i,r){if(null!=i){let s,o=!1;se(i)?s=i:re(i)&&(o=!0,i=i[0]);const a=we(i);0===t&&null!==n?null==r?mr(e,n,a):fr(e,n,a,r||null,!0):1===t&&null!==n?fr(e,n,a,r||null,!0):2===t?function(t,e,n){const i=vr(t,e);i&&function(t,e,n,i){ye(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,n,i,r){const s=n[7];s!==we(n)&&sr(e,t,i,s,r);for(let o=ie;o0&&(t[n-1][4]=i[4]);const o=si(t,ie+e);Or(i[1],r=i,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var r;return i}function ur(t,e){if(!(256&e[2])){const n=e[11];ye(n)&&n.destroyNode&&Or(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return dr(t[1],t);for(;e;){let n=null;if(re(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)re(e)&&dr(e[1],e),e=e[3];null===e&&(e=t),re(e)&&dr(e[1],e),n=e&&e[4]}e=n}}(e)}}function dr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?i[r=l]():i[r=-l].unsubscribe(),s+=2}else{const t=i[r=n[s+1]];n[s].call(t)}if(null!==i){for(let t=r+1;ts?"":r[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==zr(e,c,0)||2&i&&c!==t){if(Dr(i))return!1;o=!0}}}}else{if(!o&&!Dr(i)&&!Dr(l))return!1;if(o&&Dr(l))continue;o=!1,i=l|1&i}}return Dr(i)||o}function Dr(t){return 0==(1&t)}function Ur(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||Dr(o)||(e+=Fr(s,r),r=""),i=o,s=s||!Dr(i);n++}return""!==r&&(e+=Fr(s,r)),e}const Hr={};function Br(t){Gr(Me(),Re(),un()+t,Be())}function Gr(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&fn(e,i,n)}else{const i=t.preOrderHooks;null!==i&&mn(e,i,0,n)}dn(n)}function qr(t,e){return t<<17|e<<2}function Wr(t){return t>>17&32767}function Zr(t){return 2|t}function Kr(t){return(131068&t)>>2}function Qr(t,e){return-131069&t|e<<2}function Jr(t){return 1|t}function Yr(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;ine&&Gr(t,e,ne,Be()),n(i,r)}finally{dn(s)}}function as(t,e,n){if(oe(e)){const i=e.directiveEnd;for(let r=e.directiveStart;r0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=s&&n.push(s),n.push(i,r,o)}}function vs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function bs(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function ys(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&xs(n)}}function xs(t){for(let n=nr(t);null!==n;n=ir(n))for(let t=ie;t0&&xs(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&xs(i)}}function Os(t,e){const n=Pe(e,t),i=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Rs(t){return t[7]||(t[7]=[])}function Ms(t){return t.cleanup||(t.cleanup=[])}function Vs(t,e){const n=t[9],i=n?n.get(Zi,null):null;i&&i.handleError(e)}function Ds(t,e,n,i,r){for(let s=0;sthis.processProvider(n,t,e)),ii([t],t=>this.processInjectorType(t,[],r)),this.records.set(Fs,Xs(void 0,this));const s=this.records.get(Hs);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:it(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=ui,n=jt.Default){this.assertNotDestroyed();const i=mi(this);try{if(!(n&jt.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof Xn)&>(t);e=n&&this.injectableDefInScope(n)?Xs(Js(t),Bs):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&jt.Self?Zs():this.parent).get(t,e=n&jt.Optional&&e===ui?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(it(t)),i)throw s;return function(t,e,n,i){const r=t.ngTempTokenPath;throw e[hi]&&r.unshift(e[hi]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=it(e);if(Array.isArray(e))r=e.map(it).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):it(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(di,"\n ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{mi(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(it(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=at(t)))return!1;let i=bt(t);const r=null==i&&t.ngModule||void 0,s=void 0===r?t:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=bt(r)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(s);try{ii(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||qs))}}this.injectorDefTypes.add(s);const a=ue(s)||(()=>new s);this.records.set(s,Xs(a,Bs));const l=i.providers;if(null!=l&&!o){const e=t;ii(l,t=>this.processProvider(t,e,l))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=eo(t=at(t))?t:at(t&&t.provide);const r=function(t,e,n){return to(t)?Xs(void 0,t.useValue):Xs(Ys(t),Bs)}(t);if(eo(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Xs(void 0,Bs,!0),e.factory=()=>bi(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){var n;return e.value===Bs&&(e.value=Gs,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Js(t){const e=gt(t),n=null!==e?e.factory:ue(t);if(null!==n)return n;if(t instanceof Xn)throw new Error(`Token ${it(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=oi(e,"?");throw new Error(`Can't resolve all parameters for ${it(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[yt]||t[wt]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Ys(t,e,n){let i;if(eo(t)){const e=at(t);return ue(e)||Js(e)}if(to(t))i=()=>at(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...bi(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>vi(at(t.useExisting));else{const e=at(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ue(e)||Js(e);i=()=>new e(...bi(t.deps))}var r;return i}function Xs(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function to(t){return null!==t&&"object"==typeof t&&pi in t}function eo(t){return"function"==typeof t}const no=function(t,e,n){return function(t,e=null,n=null,i){const r=Ks(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let io=(()=>{class t{static create(t,e){return Array.isArray(t)?no(t,e,""):no(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=ui,t.NULL=new $s,t.\u0275prov=ft({token:t,providedIn:"any",factory:()=>vi(Fs)}),t.__NG_ELEMENT_ID__=-1,t})();function ro(t,e){pn(xe(t)[1],De())}function so(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let r;if(ce(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);const e=t;e.inputs=oo(t.inputs),e.declaredInputs=oo(t.declaredInputs),e.outputs=oo(t.outputs);const n=r.hostBindings;n&&co(t,n);const s=r.viewQuery,o=r.contentQueries;if(s&&ao(t,s),o&&lo(t,o),nt(t.inputs,r.inputs),nt(t.declaredInputs,r.declaredInputs),nt(t.outputs,r.outputs),ce(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}}const e=r.features;if(e)for(let i=0;i=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Cn(r.hostAttrs,n=Cn(n,r.hostAttrs))}}(i)}function oo(t){return t===Rt?{}:t===Vt?[]:t}function ao(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function lo(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function co(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let uo=null;function ho(){if(!uo){const t=Nt.Symbol;if(t&&t.iterator)uo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(we(t[i.index])).target:i.index;if(ye(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let s=0;sn?t[n]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,d=!1;else{s=Vo(i,e,0,s,!1);const t=n.listen(p.name||f,r,s);u.push(s,t),c&&c.push(r,g,m,m+1)}}else s=Vo(i,e,0,s,!0),f.addEventListener(r,s,o),u.push(s),c&&c.push(r,g,m,o)}else s=Vo(i,e,0,s,!1);const h=i.outputs;let p;if(d&&null!==h&&(p=h[r])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Te.lFrame.contextLView))[8]}(t)}function Uo(t,e,n){return Lo(t,"",e,"",n),Uo}function Lo(t,e,n,i,r){const s=Re(),o=_o(s,e,n,i);return o!==Hr&&fs(Me(),hn(),s,t,o,s[11],r,!1),Lo}function Fo(t,e,n,i,r,s,o){const a=Re(),l=wo(a,e,n,i,r,s);return l!==Hr&&fs(Me(),hn(),a,t,l,a[11],o,!1),Fo}function $o(t,e,n,i,r){const s=t[n+1],o=null===e;let a=i?Wr(s):Kr(s),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Ho(t[a],e)&&(l=!0,t[a+1]=i?Jr(n):Zr(n)),a=i?Wr(n):Kr(n)}l&&(t[n+1]=i?Zr(s):Jr(s))}function Ho(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ci(t,e)>=0}const Bo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Go(t){return t.substring(Bo.key,Bo.keyEnd)}function qo(t,e){const n=Bo.textEnd;return n===e?-1:(e=Bo.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Bo.key=e,n),Wo(t,e,n))}function Wo(t,e,n){for(;e=0;n=qo(e,n))ai(t,Go(e),!0)}function Jo(t,e,n,i){const r=Me(),s=Ke(2);r.firstUpdatePass&&Xo(r,null,s,i);const o=Re();if(n!==Hr&&vo(o,s,n)){const a=r.data[un()];if(sa(a,i)&&!Yo(r,s)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=rt(t,n||"")),Po(r,a,o,n,i)}else!function(t,e,n,i,r,s,o,a){r===Hr&&(r=Mt);let l=0,c=0,u=0=t.expandoStartIndex}function Xo(t,e,n,i){const r=t.data;if(null===r[n+1]){const s=r[un()],o=Yo(t,n);sa(s,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const r=function(t){const e=Te.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=ea(n=ta(null,t,e,n,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=ta(r,t,e,n,i),null===s){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Kr(i))return t[Wr(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=ta(null,t,e,n[1],i),n=ea(n,e.attrs,i),function(t,e,n,i){t[Wr(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else s=function(t,e,n){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s0)&&(u=!0)}else c=n;if(r)if(0!==l){const e=Wr(t[a+1]);t[i+1]=qr(e,a),0!==e&&(t[e+1]=Qr(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=qr(a,0),0!==a&&(t[a+1]=Qr(t[a+1],i)),a=i;else t[i+1]=qr(l,0),0===a?a=i:t[l+1]=Qr(t[l+1],i),l=i;u&&(t[i+1]=Zr(t[i+1])),$o(t,c,i,!0),$o(t,c,i,!1),function(t,e,n,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&ci(s,e)>=0&&(n[i+1]=Jr(n[i+1]))}(e,c,t,i,s),o=qr(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,n,o,i)}}function ta(t,e,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[r],s=Array.isArray(e),l=s?e[1]:e,c=null===l;let u=n[r+1];u===Hr&&(u=c?Mt:void 0);let d=c?li(u,i):l===i?u:void 0;if(s&&!ra(d)&&(d=li(e,i)),ra(d)&&(a=d,o))return a;const h=t[r+1];r=o?Wr(h):Kr(h)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=li(t,i))}return a}function ra(t){return void 0!==t}function sa(t,e){return 0!=(t.flags&(e?16:32))}function oa(t,e=""){const n=Re(),i=Me(),r=t+ne,s=i.firstCreatePass?ts(i,r,1,e,null):i.data[r],o=n[r]=or(n[11],e);jr(i,n,o,s),Fe(s,!1)}function aa(t){return la("",t,""),aa}function la(t,e,n){const i=Re(),r=_o(i,t,e,n);return r!==Hr&&Us(i,un(),r),la}function ca(t,e,n,i,r){const s=Re(),o=wo(s,t,e,n,i,r);return o!==Hr&&Us(s,un(),o),ca}function ua(t,e,n){const i=Re();return vo(i,Ze(),e)&&fs(Me(),hn(),i,t,e,i[11],n,!0),ua}const da=void 0;var ha=["en",[["a","p"],["AM","PM"],da],[["AM","PM"],da,da],[["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"]],da,[["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"]],da,[["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}",da,"{1} 'at' {0}",da],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let pa={};function fa(t){return t in pa||(pa[t]=Nt.ng&&Nt.ng.common&&Nt.ng.common.locales&&Nt.ng.common.locales[t]),pa[t]}var ma=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const ga="en-US",va={marker:"element"},ba={marker:"ICU"};var ya=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}({});let _a=ga;function wa(t){var e;null==(e=t)&&pt("Expected localeId to be defined",e,null,"!="),"string"==typeof t&&(_a=t.toLowerCase().replace(/_/g,"-"))}function ka(t,e,n){const i=e.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?yr(t,0,n):we(n[r])}function ja(t,e,n,i,r){const s=e.insertBeforeIndex;if(Array.isArray(s)){let o=i,a=null;if(3&e.type||(a=o,o=r),null!==o&&0==(2&e.flags))for(let e=1;e1)for(let n=t.length-2;n>=0;n--){const i=t[n];Sa(i)||Pa(i,e)&&null===xa(i)&&Oa(i,e.index)}}function Sa(t){return!(64&t.type)}function Pa(t,e){return Sa(e)||t.index>e.index}function xa(t){const e=t.insertBeforeIndex;return Array.isArray(e)?e[0]:e}function Oa(t,e){const n=t.insertBeforeIndex;Array.isArray(n)?n[0]=e:(kr(ka,ja),t.insertBeforeIndex=e)}function Ea(t,e,n){const i=es(t,n,64,null,null);return Ca(e,i),i}const Ia=/\ufffd(\d+):?\d*\ufffd/gi,Aa=/\ufffd(\d+)\ufffd/,za=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Ta=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Na=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Ra=/\uE500/g;function Ma(t,e,n,i,r,s,o){const a=ns(t,i,1,null);let l=a<0?e[o]:(t.push(i,n),r(e[1].data[~o],e),s())}return 0===t.length?null:(n=t.pop(),i=t.pop(),s())}return function(n,i){for(e=i;t.length;)t.pop();return r(n.value,i),s}}())),r.push(l,null===s?"":s);const u=es(t,a,o?32:1,null===s?"":s,null);Ca(n,u);const d=u.index;return Fe(u,!1),null!==c&&e!==c&&function(t,e){let n=t.insertBeforeIndex;var i;null===n?(kr(ka,ja),n=t.insertBeforeIndex=[null,e]):("Expecting array here",(i=Array.isArray(n))!=!0&&pt("Expecting array here",i,true,"=="),n.push(e))}(c,d),u}function Va(t,e,n,i,r,s,o){const a=o.match(Ia),l=Ma(t,e,n,s,i,a?null:o,!1);a&&Da(r,o,l.index)}function Da(t,e,n,i,r=null){const s=t.length,o=s+1;t.push(null,null);const a=s+2,l=e.split(Ia);let c=0;for(let u=0;un.length&&n.push(r)}return{type:i,mainBinding:r,cases:e,values:n}}function Ha(t){if(!t)return[];let e=0;const n=[],i=[],r=/[{}]/g;let s;for(r.lastIndex=0;s=r.exec(t);){const r=s.index;if("}"==s[0]){if(n.pop(),0==n.length){const n=t.substring(e,r);za.test(n)?i.push($a(n)):i.push(n),e=r+1}}else{if(0==n.length){const n=t.substring(e,r);i.push(n),e=r+1}n.push("{")}}const o=t.substring(e);return i.push(o),i}function Ba(t,e,n,i,r,s,o,a){const l=[],c=[],u=[];e.cases.push(s),e.create.push(l),e.remove.push(c),e.update.push(u);const d=function(t){const e=new Oi(t);return function(){try{return!!(new window.DOMParser).parseFromString(Ci(""),"text/html")}catch(t){return!1}}()?new xi(e):e}(be()).getInertBodyElement(o),h=("content"in(p=d)&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(p)?p.content:null)||d;var p;return h?Ga(t,e,n,i,l,c,u,h,r,a,0):0}function Ga(t,e,n,i,r,s,o,a,l,c,u){let d=0,h=a.firstChild;for(;h;){const a=ns(t,n,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:const p=h,f=p.tagName.toLowerCase();if(Ui.hasOwnProperty(f)){Za(r,va,f,l,a),t.data[a]=f;const m=p.attributes;for(let t=0;t>>ya.SHIFT;let d=t[u];null===d&&(d=t[u]=l?r.createComment(a):or(r,a)),c&&null!==n&&fr(r,n,d,i,!1)}}(r,l.create,c,a&&8&a.type?r[a.index]:null),Qe(!0)})(t,e,n),Qe(!1)}function Ja(t,e,n,i,r){if(t=at(t),Array.isArray(t))for(let s=0;s>20;if(eo(t)||!t.multi){const i=new _n(l,r,Co),p=tl(a,e,r?u:u+h,d);-1===p?(Mn(zn(c,o),s,a),Ya(s,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=tl(a,e,u+h,d),f=tl(a,e,u,u+h),m=p>=0&&n[p],g=f>=0&&n[f];if(r&&!g||!r&&!m){Mn(zn(c,o),s,a);const u=function(t,e,n,i,r){const s=new _n(t,n,Co);return s.multi=[],s.index=e,s.componentProviders=0,Xa(s,r,i&&!n),s}(r?nl:el,n.length,r,i,l);!r&&g&&(n[f].providerFactory=u),Ya(s,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else Ya(s,t,p>-1?p:f,Xa(n[r?f:p],l,!r&&i));!r&&i&&g&&n[f].componentProviders++}}}function Ya(t,e,n,i){const r=eo(e);if(r||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,s]):o[t+1].push(i,s)}else o.push(n,s)}}}function Xa(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function tl(t,e,n,i){for(let r=n;r{n.providersResolver=(n,i)=>function(t,e,n){const i=Me();if(i.firstCreatePass){const r=ce(t);Ja(n,i.data,i.blueprint,r,!0),Ja(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class sl{}class ol{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${it(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let al=(()=>{class t{}return t.NULL=new ol,t})();function ll(...t){}function cl(t,e){return new dl(je(t,e))}const ul=function(){return cl(De(),Re())};let dl=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ul,t})();function hl(t){return t instanceof dl?t.nativeElement:t}class pl{}let fl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ml(),t})();const ml=function(){const t=Re(),e=Pe(De().index,t);return function(t){return t[11]}(re(e)?e:t)};let gl=(()=>{class t{}return t.\u0275prov=ft({token:t,providedIn:"root",factory:()=>null}),t})();class vl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const bl=new vl("11.2.9");class yl{constructor(){}supports(t){return fo(t)}create(t){return new wl(t)}}const _l=(t,e)=>e;class wl{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||_l}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,r=null;for(;e||n;){const s=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),s=!0),r=r._next,e++}),this.length=e;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):t=this._addAfter(new kl(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Cl),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Cl),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class kl{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class jl{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Cl{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new jl,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sl(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new Ol(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Ol{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function El(){return new Il([new yl])}let Il=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||El()),deps:[[t,new ki,new wi]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ft({token:t,providedIn:"root",factory:El}),t})();function Al(){return new zl([new Pl])}let zl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Al()),deps:[[t,new ki,new wi]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ft({token:t,providedIn:"root",factory:Al}),t})();function Tl(t,e,n,i,r=!1){for(;null!==n;){const s=e[n.index];if(null!==s&&i.push(we(s)),se(s))for(let t=ie;t-1&&(cr(t,n),si(e,n))}this._attachedToViewContainer=!1}ur(this._lView[1],this._lView)}onDestroy(t){hs(this._lView[1],this._lView,null,t)}markForCheck(){Is(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){As(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Ge(!0);try{As(t,e,n)}finally{Ge(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Or(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Rl extends Nl{constructor(t){super(t),this._view=t}detectChanges(){zs(this._view)}checkNoChanges(){!function(t){Ge(!0);try{zs(t)}finally{Ge(!1)}}(this._view)}get context(){return null}}const Ml=function(t=!1){return function(t,e,n){if(!n&&ae(t)){const n=Pe(t.index,e);return new Nl(n,n)}return 47&t.type?new Nl(e[16],e):null}(De(),Re(),t)};let Vl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ml,t.__ChangeDetectorRef__=!0,t})();const Dl=[new Pl],Ul=new Il([new yl]),Ll=new zl(Dl),Fl=function(){return Gl(De(),Re())};let $l=(()=>{class t{}return t.__NG_ELEMENT_ID__=Fl,t})();const Hl=$l,Bl=class extends Hl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Xr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),is(e,n,t),new Nl(n)}};function Gl(t,e){return 4&t.type?new Bl(e,t,cl(t,e)):null}class ql{}class Wl{}const Zl=function(){return tc(De(),Re())};let Kl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Zl,t})();const Ql=Kl,Jl=class extends Ql{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return cl(this._hostTNode,this._hostLView)}get injector(){return new Wn(this._hostTNode,this._hostLView)}get parentInjector(){const t=Rn(this._hostTNode,this._hostLView);if(Pn(t)){const e=On(t,this._hostLView),n=xn(t);return new Wn(e[1].data[n+8],e)}return new Wn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Yl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ie}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const s=n||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(ql,null);t&&(r=t)}const o=t.create(s,i,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(se(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new Jl(e,e[6],e[3]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e),s=this._lContainer;!function(t,e,n,i){const r=ie+i,s=n.length;i>0&&(n[r-1][4]=e),iQi});class sc extends sl{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map($r).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return ic(this.componentDef.inputs)}get outputs(){return ic(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const s=t.get(n,ec,r);return s!==ec||i===ec?s:e.get(n,i,r)}}}(t,i.injector):t,s=r.get(pl,_e),o=r.get(gl,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(ye(t))return t.selectRootElement(e,n===Et.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):ar(s.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,d={components:[],scheduler:Qi,clean:Ns,playerHandler:null,flags:0},h=ds(0,null,null,1,0,null,null,null,null,null),p=Xr(null,h,d,u,null,null,s,a,o,r);let f,m;rn(p);try{const t=function(t,e,n,i,r,s){const o=n[1];n[20]=t;const a=ts(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Ls(a,l,!0),null!==t&&(wn(r,t,l),null!==a.classes&&Ar(r,t,a.classes),null!==a.styles&&Ir(r,t,a.styles)));const c=i.createRenderer(t,e),u=Xr(n,us(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(Mn(zn(a,n),o,e.type),bs(o,a),_s(a,n.length,1)),Es(n,u),n[20]=u}(c,this.componentDef,p,s,a);if(c)if(n)wn(a,c,["ng-version",bl.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i0&&Ar(a,c,e.join(" "))}if(m=Ce(h,ne),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=De();e.contentQueries(1,o,t.directiveStart)}const a=De();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(dn(a.index),gs(n[1],a,0,a.directiveStart,a.directiveEnd,e),vs(e,o)),o}(t,this.componentDef,p,d,[ro]),is(h,p,null)}finally{cn()}return new oc(this.componentType,f,cl(m,p),p,m)}}class oc extends class{}{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new Rl(i),this.componentType=t}get injector(){return new Wn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const ac=new Map;class lc extends ql{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new nc(this);const n=ee(t),i=t[$t]||null;i&&wa(i),this._bootstrapComponents=Ji(n.bootstrap),this._r3Injector=Ks(t,e,[{provide:ql,useValue:this},{provide:al,useValue:this.componentFactoryResolver}],it(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=io.THROW_IF_NOT_FOUND,n=jt.Default){return t===io||t===ql||t===Fs?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class cc extends Wl{constructor(t){super(),this.moduleType=t,null!==ee(t)&&function(t){const e=new Set;!function t(n){const i=ee(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${it(e)} vs ${it(e.name)}`)}(r,ac.get(r),n),ac.set(r,n));const s=Ji(i.imports);for(const o of s)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new lc(this.moduleType,t)}}function uc(t,e,n){const i=qe()+t,r=Re();return r[i]===Hr?go(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function dc(t,e,n,i){return fc(Re(),qe(),t,e,n,i)}function hc(t,e,n,i,r){return function(t,e,n,i,r,s,o){const a=e+n;return bo(t,a,r,s)?go(t,a+2,o?i.call(o,r,s):i(r,s)):pc(t,a+2)}(Re(),qe(),t,e,n,i,r)}function pc(t,e){const n=t[e];return n===Hr?void 0:n}function fc(t,e,n,i,r,s){const o=e+n;return vo(t,o,r)?go(t,o+1,s?i.call(s,r):i(r)):pc(t,o+1)}function mc(t,e){const n=Me();let i;const r=t+ne;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new ct("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=ue(i.type)),o=St(Co);try{const t=In(!1),e=s();return In(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,Re(),r,e),e}finally{St(o)}}function gc(t,e,n){const i=t+ne,r=Re(),s=Se(r,i);return function(t,e){return po.isWrapped(e)&&(e=po.unwrap(e),t[We()]=Hr),e}(r,function(t,e){return t[1].data[e].pure}(r,i)?fc(r,qe(),e,s.transform,n,s):s.transform(n))}const vc=class extends j{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,r=t=>null,s=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(r=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(s=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,r,s);return t instanceof d&&t.add(o),o}};function bc(){return this._results[ho()]()}class yc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=ho(),n=yc.prototype;n[e]||(n[e]=bc)}get changes(){return this._changes||(this._changes=new vc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=ni(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i0)i.push(o[t/2]);else{const r=s[t+1],o=e[-n];for(let t=ie;t{class t{constructor(t){this.appInits=t,this.resolve=ll,this.reject=ll,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(vi(Mc,8))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const Dc=new Xn("AppId"),Uc={provide:Dc,useFactory:function(){return`${Lc()}${Lc()}${Lc()}`},deps:[]};function Lc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Fc=new Xn("Platform Initializer"),$c=new Xn("Platform ID"),Hc=new Xn("appBootstrapListener");let Bc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const Gc=new Xn("LocaleId"),qc=new Xn("DefaultCurrencyCode");class Wc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Zc=function(t){return new cc(t)},Kc=Zc,Qc=function(t){return Promise.resolve(Zc(t))},Jc=function(t){const e=Zc(t),n=Ji(ee(t).declarations).reduce((t,e)=>{const n=te(e);return n&&t.push(new sc(n)),t},[]);return new Wc(e,n)},Yc=Jc,Xc=function(t){return Promise.resolve(Jc(t))};let tu=(()=>{class t{constructor(){this.compileModuleSync=Kc,this.compileModuleAsync=Qc,this.compileModuleAndAllComponentsSync=Yc,this.compileModuleAndAllComponentsAsync=Xc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const eu=(()=>Promise.resolve(0))();function nu(t){"undefined"==typeof Zone?eu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class iu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new vc(!1),this.onMicrotaskEmpty=new vc(!1),this.onStable=new vc(!1),this.onError=new vc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=Nt.requestAnimationFrame,e=Nt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Nt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ou(t),su(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ou(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,o,a)=>{try{return au(t),n.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&e(),lu(t)}},onInvoke:(n,i,r,s,o,a,l)=>{try{return au(t),n.invoke(r,s,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),lu(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,ou(t),su(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!iu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(iu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,t,ru,ll,ll);try{return r.runTask(s,e,n)}finally{r.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const ru={};function su(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 ou(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function au(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function lu(t){t._nesting--,su(t)}class cu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new vc,this.onMicrotaskEmpty=new vc,this.onStable=new vc,this.onError=new vc}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let uu=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{iu.assertNotInAngularZone(),nu(()=>{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())nu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(vi(iu))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),du=(()=>{class t{constructor(){this._applications=new Map,fu.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return fu.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();class hu{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let pu,fu=new hu,mu=!0,gu=!1;const vu=new Xn("AllowMultipleToken");class bu{constructor(t,e){this.name=t,this.token=e}}function yu(t,e,n=[]){const i=`Platform: ${e}`,r=new Xn(i);return(e=[])=>{let s=_u();if(!s||s.injector.get(vu,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:Hs,useValue:"platform"});!function(t){if(pu&&!pu.destroyed&&!pu.injector.get(vu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");pu=t.get(wu);const e=t.get(Fc,null);e&&e.forEach(t=>t())}(io.create({providers:t,name:i}))}return function(t){const e=_u();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function _u(){return pu&&!pu.destroyed?pu:null}let wu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new cu:("zone.js"===t?void 0:t)||new iu({enableLongStackTrace:(gu=!0,mu),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:iu,useValue:n}];return n.run(()=>{const e=io.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(e),s=r.injector.get(Zi,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{s.handleError(t)}});r.onDestroy(()=>{Cu(this._modules,r),t.unsubscribe()})}),function(t,e,n){try{const i=n();return To(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(s,n,()=>{const t=r.injector.get(Vc);return t.runInitializers(),t.donePromise.then(()=>(wa(r.injector.get(Gc,ga)||ga),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=ku({},e);return function(t,e,n){const i=new cc(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(ju);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${it(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(vi(io))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();function ku(t,e){return Array.isArray(e)?e.reduce(ku,t):Object.assign(Object.assign({},t),e)}let ju=(()=>{class t{constructor(t,e,n,i,r){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=r,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 s=new b(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new b(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{iu.assertNotInAngularZone(),nu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{iu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=G(s,o.pipe(t=>q()(Y(tt)(t))))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof sl?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(ql),r=n.create(io.NULL,[],e||n.selector,i),s=r.location.nativeElement,o=r.injector.get(uu,null),a=o&&r.injector.get(du);return o&&a&&a.registerApplication(s,o),r.onDestroy(()=>{this.detachView(r.hostView),Cu(this.components,r),a&&a.unregisterApplication(s)}),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Cu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Hc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(vi(iu),vi(io),vi(Zi),vi(al),vi(Vc))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();function Cu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Su{}class Pu{}const xu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Ou=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||xu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>Eu(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+r]).then(t=>Eu(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(vi(tu),vi(Pu,8))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();function Eu(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Iu=yu(null,"core",[{provide:$c,useValue:"unknown"},{provide:wu,deps:[io]},{provide:du,deps:[]},{provide:Bc,deps:[]}]),Au=[{provide:ju,useClass:ju,deps:[iu,io,Zi,al,Vc]},{provide:rc,deps:[iu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Vc,useClass:Vc,deps:[[new wi,Mc]]},{provide:tu,useClass:tu,deps:[]},Uc,{provide:Il,useFactory:function(){return Ul},deps:[]},{provide:zl,useFactory:function(){return Ll},deps:[]},{provide:Gc,useFactory:function(t){return wa(t=t||"undefined"!=typeof $localize&&$localize.locale||ga),t},deps:[[new _i(Gc),new wi,new ki]]},{provide:qc,useValue:"USD"}];let zu=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(vi(ju))},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:Au}),t})(),Tu=null;function Nu(){return Tu}const Ru=new Xn("DocumentToken");let Mu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({factory:Vu,token:t,providedIn:"platform"}),t})();function Vu(){return vi(Uu)}const Du=new Xn("Location Initialized");let Uu=(()=>{class t extends Mu{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Nu().getLocation(),this._history=Nu().getHistory()}getBaseHrefFromDOM(){return Nu().getBaseHref(this._doc)}onPopState(t){Nu().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Nu().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){Lu()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Lu()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(vi(Ru))},t.\u0275prov=ft({factory:Fu,token:t,providedIn:"platform"}),t})();function Lu(){return!!window.history.pushState}function Fu(){return new Uu(vi(Ru))}function $u(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Hu(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Bu(t){return t&&"?"!==t[0]?"?"+t:t}let Gu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({factory:qu,token:t,providedIn:"root"}),t})();function qu(t){const e=vi(Ru).location;return new Zu(vi(Mu),e&&e.origin||"")}const Wu=new Xn("appBaseHref");let Zu=(()=>{class t extends Gu{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return $u(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Bu(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const r=this.prepareExternalUrl(n+Bu(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+Bu(i));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(vi(Mu),vi(Wu,8))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),Ku=(()=>{class t extends Gu{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=$u(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let r=this.prepareExternalUrl(n+Bu(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){let r=this.prepareExternalUrl(n+Bu(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(vi(Mu),vi(Wu,8))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),Qu=(()=>{class t{constructor(t,e){this._subject=new vc,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Hu(Yu(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Bu(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Yu(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Bu(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Bu(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(vi(Gu),vi(Mu))},t.normalizeQueryParams=Bu,t.joinWithSlash=$u,t.stripTrailingSlash=Hu,t.\u0275prov=ft({factory:Ju,token:t,providedIn:"root"}),t})();function Ju(){return new Qu(vi(Gu),vi(Mu))}function Yu(t){return t.replace(/\/index.html$/,"")}var Xu=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class td{}let ed=(()=>{class t extends td{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=fa(e);if(n)return n;const i=e.split("-")[0];if(n=fa(i),n)return n;if("en"===i)return ha;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[ma.PluralCase]}(e||this.locale)(t)){case Xu.Zero:return"zero";case Xu.One:return"one";case Xu.Two:return"two";case Xu.Few:return"few";case Xu.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(vi(Gc))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();function nd(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}let id=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(fo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${it(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Co(Il),Co(zl),Co(dl),Co(fl))},t.\u0275dir=Yt({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class rd{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 sd=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new rd(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new od(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new od(t,r);e.push(s)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Co(Kl),Co($l),Co(Il))},t.\u0275dir=Yt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class od{constructor(t,e){this.record=t,this.view=e}}let ad=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new ld,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){cd("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){cd("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Co(Kl),Co($l))},t.\u0275dir=Yt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class ld{constructor(){this.$implicit=null,this.ngIf=null}}function cd(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${it(e)}'.`)}let ud=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(Co(Kl))},t.\u0275dir=Yt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[he]}),t})(),dd=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw function(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${it(t)}'`)}(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Xt({name:"uppercase",type:t,pure:!0}),t})(),hd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[{provide:td,useClass:ed}]}),t})();function pd(t){return"browser"===t}let fd=(()=>{class t{}return t.\u0275prov=ft({token:t,providedIn:"root",factory:()=>new md(vi(Ru),window)}),t})();class md{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){var e;if(!this.supportsScrolling())return;const n=null!==(e=this.document.getElementById(t))&&void 0!==e?e:this.document.getElementsByName(t)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=gd(this.window.history)||gd(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function gd(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class vd extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new vd,Tu||(Tu=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=yd||(yd=document.querySelector("base"),yd)?yd.getAttribute("href"):null;return null==e?null:(n=e,bd||(bd=document.createElement("a")),bd.setAttribute("href",n),"/"===bd.pathname.charAt(0)?bd.pathname:"/"+bd.pathname);var n}resetBaseElement(){yd=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return nd(document.cookie,t)}}let bd,yd=null;const _d=new Xn("TRANSITION_ID"),wd=[{provide:Mc,useFactory:function(t,e,n){return()=>{n.get(Vc).donePromise.then(()=>{const n=Nu();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[_d,Ru,io],multi:!0}];class kd{static init(){var t;t=new kd,fu=t}addToWindow(t){Nt.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Nt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Nt.getAllAngularRootElements=()=>t.getAllRootElements(),Nt.frameworkStabilizers||(Nt.frameworkStabilizers=[]),Nt.frameworkStabilizers.push(t=>{const e=Nt.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?Nu().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const jd=new Xn("EventManagerPlugins");let Cd=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),xd=(()=>{class t extends Pd{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Nu().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(vi(Ru))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const Od={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/"},Ed=/%COMP%/g;function Id(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let zd=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Td(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Et.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Nd(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case Et.ShadowDom:return new Rd(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Id(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(vi(Cd),vi(xd),vi(Dc))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();class Td{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Od[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const r=Od[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=Od[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(Yi.DashCase|Yi.Important)?t.style.setProperty(e,n,i&Yi.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Yi.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Ad(n)):this.eventManager.addEventListener(t,e,Ad(n))}}class Nd extends Td{constructor(t,e,n,i){super(t),this.component=n;const r=Id(i+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(Ed,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Ed,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Rd extends Td{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=Id(i.id,i.styles,[]);for(let s=0;s{class t extends Sd{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(vi(Ru))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const Vd=["alt","control","meta","shift"],Dd={"\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"},Ud={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"},Ld={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Fd=(()=>{class t extends Sd{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const r=t.parseEventName(n),s=t.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Nu().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let s="";if(Vd.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),s+=t+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Ud.hasOwnProperty(e)&&(e=Ud[e]))}return Dd[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Vd.forEach(i=>{i!=n&&(0,Ld[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded(()=>n(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(vi(Ru))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const $d=yu(Iu,"browser",[{provide:$c,useValue:"browser"},{provide:Fc,useValue:function(){vd.makeCurrent(),kd.init()},multi:!0},{provide:Ru,useFactory:function(){return function(t){ve=t}(document),document},deps:[]}]),Hd=[[],{provide:Hs,useValue:"root"},{provide:Zi,useFactory:function(){return new Zi},deps:[]},{provide:jd,useClass:Md,multi:!0,deps:[Ru,iu,$c]},{provide:jd,useClass:Fd,multi:!0,deps:[Ru]},[],{provide:zd,useClass:zd,deps:[Cd,xd,Dc]},{provide:pl,useExisting:zd},{provide:Pd,useExisting:xd},{provide:xd,useClass:xd,deps:[Ru]},{provide:uu,useClass:uu,deps:[iu]},{provide:Cd,useClass:Cd,deps:[jd,iu]},[]];let Bd=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Dc,useValue:e.appId},{provide:_d,useExisting:Dc},wd]}}}return t.\u0275fac=function(e){return new(e||t)(vi(t,12))},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:Hd,imports:[hd,zu]}),t})();function Gd(...t){let e=t[t.length-1];return S(e)?(t.pop(),R(t,e)):B(t)}function qd(t,e){return L(t,e,1)}function Wd(t,e){return function(n){return n.lift(new Zd(t,e))}}"undefined"!=typeof window&&window;class Zd{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Kd(t,this.predicate,this.thisArg))}}class Kd extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}class Qd{}class Jd{}class Yd{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Yd?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Yd;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Yd?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Xd{encodeKey(t){return th(t)}encodeValue(t){return th(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function th(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class eh{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Xd,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[r,s]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(r)||[];o.push(s),n.set(r,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new eh({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function nh(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function ih(t){return"undefined"!=typeof Blob&&t instanceof Blob}function rh(t){return"undefined"!=typeof FormData&&t instanceof FormData}class sh{constructor(t,e,n,i){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new Yd),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new sh(e,n,r,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:s})}}var oh=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class ah{constructor(t,e=200,n="OK"){this.headers=t.headers||new Yd,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class lh extends ah{constructor(t={}){super(t),this.type=oh.ResponseHeader}clone(t={}){return new lh({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class ch extends ah{constructor(t={}){super(t),this.type=oh.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new ch({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class uh extends ah{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function dh(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let hh=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof sh)i=t;else{let r,s;r=n.headers instanceof Yd?n.headers:new Yd(n.headers),n.params&&(s=n.params instanceof eh?n.params:new eh({fromObject:n.params})),i=new sh(t,e,void 0!==n.body?n.body:null,{headers:r,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=Gd(i).pipe(qd(t=>this.handler.handle(t)));if(t instanceof sh||"events"===n.observe)return r;const s=r.pipe(Wd(t=>t instanceof ch));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return s.pipe(P(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return s.pipe(P(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return s.pipe(P(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return s.pipe(P(t=>t.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new eh).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,dh(n,e))}post(t,e,n={}){return this.request("POST",t,dh(n,e))}put(t,e,n={}){return this.request("PUT",t,dh(n,e))}}return t.\u0275fac=function(e){return new(e||t)(vi(Qd))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();class ph{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const fh=new Xn("HTTP_INTERCEPTORS");let mh=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const gh=/^\)\]\}',?\n/;class vh{}let bh=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),yh=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new b(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",s=new Yd(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return r=new lh({headers:s,status:e,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:a}=s(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(gh,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new ch({body:l,headers:i,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new uh({error:l,headers:i,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=s(),r=new uh({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let l=!1;const c=i=>{l||(e.next(s()),l=!0);let r={type:oh.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},u=t=>{let n={type:oh.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:oh.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(vi(vh))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const _h=new Xn("XSRF_COOKIE_NAME"),wh=new Xn("XSRF_HEADER_NAME");class kh{}let jh=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=nd(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(vi(Ru),vi($c),vi(_h))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),Ch=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(vi(kh),vi(wh))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),Sh=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(fh,[]);this.chain=t.reduceRight((t,e)=>new ph(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(vi(Jd),vi(io))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),Ph=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Ch,useClass:mh}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:_h,useValue:e.cookieName}:[],e.headerName?{provide:wh,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[Ch,{provide:fh,useExisting:Ch,multi:!0},{provide:kh,useClass:jh},{provide:_h,useValue:"XSRF-TOKEN"},{provide:wh,useValue:"X-XSRF-TOKEN"}]}),t})(),xh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[hh,{provide:Qd,useClass:Sh},yh,{provide:Jd,useExisting:yh},bh,{provide:vh,useExisting:bh}],imports:[[Ph.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function Oh(t,e){return new b(n=>{const i=t.length;if(0===i)return void n.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a{c||(c=!0,o++),r[a]=t},error:t=>n.error(t),complete:()=>{s++,s!==i&&c||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=r[n],t),{}):r),n.complete())}}))}})}class Eh{}const Ih=new Xn("NgValueAccessor"),Ah={provide:Ih,useExisting:ot(()=>zh),multi:!0};let zh=(()=>{class t extends Eh{constructor(t,e){super(),this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Co(fl),Co(dl))},t.\u0275dir=Yt({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Ro("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[rl([Ah]),so]}),t})();const Th={provide:Ih,useExisting:ot(()=>Rh),multi:!0},Nh=new Xn("CompositionEventMode");let Rh=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Nu()?Nu().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Co(fl),Co(dl),Co(Nh,8))},t.\u0275dir=Yt({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(t,e){1&t&&Ro("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[rl([Th])]}),t})();function Mh(t){return null==t||0===t.length}const Vh=new Xn("NgValidators"),Dh=new Xn("NgAsyncValidators");function Uh(t){return null}function Lh(t){return null!=t}function Fh(t){const e=To(t)?M(t):t;return No(e),e}function $h(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Hh(t,e){return e.map(e=>e(t))}function Bh(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function Gh(t){return null!=t?function(t){if(!t)return null;const e=t.filter(Lh);return 0==e.length?null:function(t){return $h(Hh(t,e))}}(Bh(t)):null}function qh(t){return null!=t?function(t){if(!t)return null;const e=t.filter(Lh);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return Oh(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Oh(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Oh(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(P(t=>e(...t)))}return Oh(t,null)}(Hh(t,e).map(Fh)).pipe(P($h))}}(Bh(t)):null}function Wh(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}let Zh=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Gh(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=qh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Yt({type:t}),t})(),Kh=(()=>{class t extends Zh{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Qh(e||t)},t.\u0275dir=Yt({type:t,features:[so]}),t})();const Qh=Zn(Kh);class Jh extends Zh{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Yh{constructor(t){this._cd=t}is(t){var e,n;return!!(null===(n=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===n?void 0:n[t])}}let Xh=(()=>{class t extends Yh{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Co(Jh,2))},t.\u0275dir=Yt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Zo("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[so]}),t})(),tp=(()=>{class t extends Yh{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Co(Kh,10))},t.\u0275dir=Yt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&Zo("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[so]}),t})();function ep(t,e){ip(t,e,!0),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&rp(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&rp(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function np(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function ip(t,e,n){const i=function(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(Wh(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const r=function(t){return t._rawAsyncValidators}(t);if(null!==e.asyncValidator?t.setAsyncValidators(Wh(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]),n){const n=()=>t.updateValueAndValidity();np(e._rawValidators,n),np(e._rawAsyncValidators,n)}}function rp(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function sp(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const op="VALID",ap="INVALID",lp="PENDING",cp="DISABLED";function up(t){return(fp(t)?t.validators:t)||null}function dp(t){return Array.isArray(t)?Gh(t):t||null}function hp(t,e){return(fp(e)?e.asyncValidators:t)||null}function pp(t){return Array.isArray(t)?qh(t):t||null}function fp(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class mp{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=dp(this._rawValidators),this._composedAsyncValidatorFn=pp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===op}get invalid(){return this.status===ap}get pending(){return this.status==lp}get disabled(){return this.status===cp}get enabled(){return this.status!==cp}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=dp(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=pp(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=lp,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=cp,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=op,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==op&&this.status!==lp||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?cp:op}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=lp,this._hasOwnPendingAsyncValidator=!0;const e=Fh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof vp?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof bp&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new vc,this.statusChanges=new vc}_calculateStatus(){return this._allControlsDisabled()?cp:this.errors?ap:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(lp)?lp:this._anyControlsHaveStatus(ap)?ap:op}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){fp(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class gp extends mp{constructor(t=null,e,n){super(up(e),hp(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){sp(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){sp(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class vp extends mp{constructor(t,e,n){super(up(e),hp(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof gp?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class bp extends mp{constructor(t,e,n){super(up(e),hp(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof gp?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const yp={provide:Kh,useExisting:ot(()=>wp)},_p=(()=>Promise.resolve(null))();let wp=(()=>{class t extends Kh{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new vc,this.form=new vp({},Gh(t),qh(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){_p.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),ep(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){_p.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),sp(this._directives,t)})}addFormGroup(t){_p.then(()=>{const e=this._findContainer(t.path),n=new vp({});(function(t,e){ip(t,e,!1)})(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){_p.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){_p.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Co(Vh,10),Co(Dh,10))},t.\u0275dir=Yt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Ro("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rl([yp]),so]}),t})();const kp={provide:Jh,useExisting:ot(()=>Cp)},jp=(()=>Promise.resolve(null))();let Cp=(()=>{class t extends Jh{constructor(t,e,n,i){super(),this.control=new gp,this._registered=!1,this.update=new vc,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;let n,i,r;return Array.isArray(e),e.forEach(t=>{t.constructor===Rh?n=t:Object.getPrototypeOf(t.constructor)===Eh?i=t:r=t}),r||i||n||null}(0,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){ep(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(t){jp.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;jp.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Co(Kh,9),Co(Vh,10),Co(Dh,10),Co(Ih,10))},t.\u0275dir=Yt({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:[rl([kp]),so,he]}),t})(),Sp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Yt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),Pp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})();const xp=new Xn("NgModelWithFormControlWarning"),Op={provide:Ih,useExisting:ot(()=>Ip),multi:!0};function Ep(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Ip=(()=>{class t extends Eh{constructor(t,e){super(),this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=Ep(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(Co(fl),Co(dl))},t.\u0275dir=Yt({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Ro("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[rl([Op]),so]}),t})(),Ap=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(Ep(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Co(dl),Co(fl),Co(Ip,9))},t.\u0275dir=Yt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const zp={provide:Ih,useExisting:ot(()=>Np),multi:!0};function Tp(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Np=(()=>{class t extends Eh{constructor(t,e){super(),this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Tp(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Tp(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Co(dl),Co(fl),Co(Np,9))},t.\u0275dir=Yt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Mp={provide:Vh,useExisting:ot(()=>Vp),multi:!0};let Vp=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?function(t){return Mh(t.value)?{required:!0}:null}(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Yt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&yo("required",e.required?"":null)},inputs:{required:"required"},features:[rl([Mp])]}),t})();const Dp={provide:Vh,useExisting:ot(()=>Up),multi:!0};let Up=(()=>{class t{constructor(){this._validator=Uh}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=function(t){if(!t)return Uh;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(Mh(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Yt({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&yo("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[rl([Dp]),he]}),t})(),Lp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[Pp]]}),t})(),Fp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[Lp]}),t})(),$p=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:xp,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[Lp]}),t})();class Hp extends j{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new _;return this._value}next(t){super.next(this._value=t)}}class Bp extends f{notifyNext(t,e,n,i,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Gp extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function qp(t,e,n,i,r=new Gp(t,n,i)){if(!r.closed)return e instanceof b?e.subscribe(r):N(e)(r)}const Wp={};class Zp{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Kp(t,this.resultSelector))}}class Kp extends Bp{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Wp),this.observables.push(t)}_complete(){const t=this.observables,e=t.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 Jp(...t){return H(1)(Gd(...t))}const Yp=new b(t=>t.complete());function Xp(t){return t?function(t){return new b(e=>t.schedule(()=>e.complete()))}(t):Yp}function tf(t){return new b(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?M(n):Xp()).subscribe(e)})}function ef(t,e){return"function"==typeof e?n=>n.pipe(ef((n,i)=>M(t(n,i)).pipe(P((t,r)=>e(n,t,i,r))))):e=>e.lift(new nf(t))}class nf{constructor(t){this.project=t}call(t,e){return e.subscribe(new rf(t,this.project))}}class rf extends D{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new V(this),i=this.destination;i.add(n),this.innerSubscription=U(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const sf=(()=>{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 of(t){return e=>0===t?Xp():e.lift(new af(t))}class af{constructor(t){if(this.total=t,this.total<0)throw new sf}call(t,e){return e.subscribe(new lf(t,this.total))}}class lf extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function cf(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new uf(t,e,n))}}class uf{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new df(t,this.accumulator,this.seed,this.hasSeed))}}class df extends f{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function hf(t){return function(e){const n=new pf(t),i=e.lift(n);return n.caught=i}}class pf{constructor(t){this.selector=t}call(t,e){return e.subscribe(new ff(t,this.selector,this.caught))}}class ff extends D{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new V(this);this.add(i);const r=U(n,i);r!==i&&this.add(r)}}}function mf(t){return function(e){return 0===t?Xp():e.lift(new gf(t))}}class gf{constructor(t){if(this.total=t,this.total<0)throw new sf}call(t,e){return e.subscribe(new vf(t,this.total))}}class vf extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;re.lift(new yf(t))}class yf{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new _f(t,this.errorFactory))}}class _f extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function wf(){return new Qp}function kf(t=null){return e=>e.lift(new jf(t))}class jf{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Cf(t,this.defaultValue))}}class Cf extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Sf(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Wd((e,n)=>t(e,n,i)):v,of(1),n?kf(e):bf(()=>new Qp))}function Pf(){}function xf(t,e,n){return function(i){return i.lift(new Of(t,e,n))}}class Of{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new Ef(t,this.nextOrObserver,this.error,this.complete))}}class Ef extends f{constructor(t,e,n,r){super(t),this._tapNext=Pf,this._tapError=Pf,this._tapComplete=Pf,this._tapError=n||Pf,this._tapComplete=r||Pf,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Pf,this._tapError=e.error||Pf,this._tapComplete=e.complete||Pf)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class If{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Af(t,this.callback))}}class Af extends f{constructor(t,e){super(t),this.add(new d(e))}}class zf{constructor(t,e){this.id=t,this.url=e}}class Tf extends zf{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Nf extends zf{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Rf extends zf{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Mf extends zf{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Vf extends zf{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Df extends zf{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Uf extends zf{constructor(t,e,n,i,r){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Lf extends zf{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ff extends zf{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $f{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Hf{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Bf{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gf{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qf{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wf{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zf{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Kf="primary";class Qf{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Jf(t){return new Qf(t)}function Yf(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Xf(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function nm(t){return Array.prototype.concat.apply([],t)}function im(t){return t.length>0?t[t.length-1]:null}function rm(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function sm(t){return No(t)?t:To(t)?M(Promise.resolve(t)):Gd(t)}function om(t,e,n){return n?function(t,e){return tm(t,e)}(t.queryParams,e.queryParams)&&am(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>em(t[n],e[n]))}(t.queryParams,e.queryParams)&&lm(t.root,e.root)}function am(t,e){if(!pm(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!am(t.children[n],e.children[n]))return!1}return!0}function lm(t,e){return cm(t,e,e.segments)}function cm(t,e,n){if(t.segments.length>n.length)return!!pm(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!pm(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!lm(t.children[n],e.children[n]))return!1}return!0}{const i=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!pm(t.segments,i)&&!!t.children.primary&&cm(t.children.primary,e,r)}}class um{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Jf(this.queryParams)),this._queryParamMap}toString(){return gm.serialize(this)}}class dm{constructor(t,e){this.segments=t,this.children=e,this.parent=null,rm(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vm(this)}}class hm{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Jf(this.parameters)),this._parameterMap}toString(){return Cm(this)}}function pm(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class fm{}class mm{parse(t){const e=new Em(t);return new um(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${bm(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${_m(e)}=${_m(t)}`).join("&"):`${_m(e)}=${_m(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const gm=new mm;function vm(t){return t.segments.map(t=>Cm(t)).join("/")}function bm(t,e){if(!t.hasChildren())return vm(t);if(e){const e=t.children.primary?bm(t.children.primary,!1):"",n=[];return rm(t.children,(t,e)=>{e!==Kf&&n.push(`${e}:${bm(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return rm(t.children,(t,i)=>{i===Kf&&(n=n.concat(e(t,i)))}),rm(t.children,(t,i)=>{i!==Kf&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===Kf?[bm(t.children.primary,!1)]:[`${n}:${bm(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${vm(t)}/${e[0]}`:`${vm(t)}/(${e.join("//")})`}}function ym(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _m(t){return ym(t).replace(/%3B/gi,";")}function wm(t){return ym(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function km(t){return decodeURIComponent(t)}function jm(t){return km(t.replace(/\+/g,"%20"))}function Cm(t){return`${wm(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${wm(t)}=${wm(e[t])}`).join("")}`;var e}const Sm=/^[^\/()?;=#]+/;function Pm(t){const e=t.match(Sm);return e?e[0]:""}const xm=/^[^=?&#]+/,Om=/^[^?&#]+/;class Em{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dm([],{}):new dm([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new dm(t,e)),n}parseSegment(){const t=Pm(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new hm(km(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Pm(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Pm(this.remaining);t&&(n=t,this.capture(n))}t[km(e)]=km(n)}parseQueryParam(t){const e=function(t){const e=t.match(xm);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Om);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=jm(e),r=jm(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(r)}else t[i]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Pm(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=Kf);const s=this.parseChildren();e[r]=1===Object.keys(s).length?s.primary:new dm([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Im{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Am(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Am(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=zm(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return zm(t,this._root).map(t=>t.value)}}function Am(t,e){if(t===e.value)return e;for(const n of e.children){const e=Am(t,n);if(e)return e}return null}function zm(t,e){if(t===e.value)return[e];for(const n of e.children){const i=zm(t,n);if(i.length)return i.unshift(e),i}return[]}class Tm{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Nm(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Rm extends Im{constructor(t,e){super(t),this.snapshot=e,Fm(this,t)}toString(){return this.snapshot.toString()}}function Mm(t,e){const n=function(t,e){const n=new Um([],{},{},"",{},Kf,e,null,t.root,-1,{});return new Lm("",new Tm(n,[]))}(t,e),i=new Hp([new hm("",{})]),r=new Hp({}),s=new Hp({}),o=new Hp({}),a=new Hp(""),l=new Vm(i,r,o,a,s,Kf,e,n.root);return l.snapshot=n.root,new Rm(new Tm(l,[]),n)}class Vm{constructor(t,e,n,i,r,s,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this._futureSnapshot=a}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(P(t=>Jf(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(P(t=>Jf(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Dm(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Um{constructor(t,e,n,i,r,s,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Jf(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Jf(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Lm extends Im{constructor(t,e){super(e),this.url=t,Fm(this,e)}toString(){return $m(this._root)}}function Fm(t,e){e.value._routerState=t,e.children.forEach(e=>Fm(t,e))}function $m(t){const e=t.children.length>0?` { ${t.children.map($m).join(", ")} } `:"";return`${t.value}${e}`}function Hm(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,tm(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),tm(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;ntm(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Bm(t.parent,e.parent))}function Gm(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const r=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return Gm(t,e,i);return Gm(t,e)})}(t,e,n);return new Tm(i,r)}{const n=t.retrieve(e.value);if(n){const t=n.route;return qm(e,t),t}{const n=new Vm(new Hp((i=e.value).url),new Hp(i.params),new Hp(i.queryParams),new Hp(i.fragment),new Hp(i.data),i.outlet,i.component,i),r=e.children.map(e=>Gm(t,e));return new Tm(n,r)}}var i}function qm(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{s[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new um(n.root===t?e:Qm(n.root,t,e),s,r)}function Qm(t,e,n){const i={};return rm(t.children,(t,r)=>{i[r]=t===e?n:Qm(t,e,n)}),new dm(t.segments,i)}class Jm{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Wm(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Zm);if(i&&i!==im(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ym{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Xm(t,e,n){if(t||(t=new dm([],{})),0===t.segments.length&&t.hasChildren())return tg(t,e,n);const i=function(t,e,n){let i=0,r=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return s;const e=t.segments[r],o=n[i];if(Zm(o))break;const a=`${o}`,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!rg(a,l,e))return s;i+=2}else{if(!rg(a,{},e))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=Xm(t.children[i],e,n))}),rm(t.children,(t,e)=>{void 0===i[e]&&(r[e]=t)}),new dm(t.segments,r)}}function eg(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=eg(new dm([],{}),0,t))}),e}function ig(t){const e={};return rm(t,(t,n)=>e[n]=`${t}`),e}function rg(t,e,n){return t==n.path&&tm(e,n.parameters)}class sg{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Hm(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Nm(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),rm(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,r=Nm(t);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}activateChildRoutes(t,e,n){const i=Nm(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new Wf(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Gf(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(Hm(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),og(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=r,e.outlet&&e.outlet.activateWith(i,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function og(t){Hm(t.value),t.children.forEach(og)}class ag{constructor(t,e){this.routes=t,this.module=e}}function lg(t){return"function"==typeof t}function cg(t){return t instanceof um}const ug=Symbol("INITIAL_VALUE");function dg(){return ef(t=>function(...t){let e,n;return S(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),B(t,n).lift(new Zp(e))}(t.map(t=>t.pipe(of(1),function(...t){const e=t[t.length-1];return S(e)?(t.pop(),n=>Jp(t,n,e)):e=>Jp(t,e)}(ug)))).pipe(cf((t,e)=>{let n=!1;return e.reduce((t,i,r)=>{if(t!==ug)return t;if(i===ug&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||cg(i))return i}return t},t)},ug),Wd(t=>t!==ug),P(t=>cg(t)?t:!0===t),of(1)))}let hg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Eo(0,"router-outlet")},directives:function(){return[ov]},encapsulation:2}),t})();function pg(t,e=""){for(let n=0;nvg(t)===e);return n.push(...t.filter(t=>vg(t)!==e)),n}const yg={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function _g(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},yg):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||Xf)(n,t,e);if(!r)return Object.assign({},yg);const s={};rm(r.posParams,(t,e)=>{s[e]=t.path});const o=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function wg(t,e,n,i,r="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>kg(t,e,n)&&vg(n)!==Kf)}(t,n,i)){const r=new dm(e,function(t,e,n,i){const r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const s of n)if(""===s.path&&vg(s)!==Kf){const n=new dm([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[vg(s)]=n}return r}(t,e,i,new dm(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>kg(t,e,n))}(t,n,i)){const s=new dm(t.segments,function(t,e,n,i,r,s){const o={};for(const a of i)if(kg(t,n,a)&&!r[vg(a)]){const n=new dm([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[vg(a)]=n}return Object.assign(Object.assign({},r),o)}(t,e,n,i,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const s=new dm(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function kg(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function jg(t,e,n,i){return!!(vg(t)===i||i!==Kf&&kg(e,n,t))&&("**"===t.path||_g(e,t,n).matched)}function Cg(t,e,n){return 0===e.length&&!t.children[n]}class Sg{constructor(t){this.segmentGroup=t||null}}class Pg{constructor(t){this.urlTree=t}}function xg(t){return new b(e=>e.error(new Sg(t)))}function Og(t){return new b(e=>e.error(new Pg(t)))}function Eg(t){return new b(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ig{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(ql)}apply(){const t=wg(this.urlTree.root,[],[],this.config).segmentGroup,e=new dm(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Kf).pipe(P(t=>this.createUrlTree(Ag(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(hf(t=>{if(t instanceof Pg)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Sg)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Kf).pipe(P(e=>this.createUrlTree(Ag(e),t.queryParams,t.fragment))).pipe(hf(t=>{if(t instanceof Sg)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new dm([],{[Kf]:t}):t;return new um(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(P(t=>new dm([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const r of Object.keys(n.children))"primary"===r?i.unshift(r):i.push(r);return M(i).pipe(qd(i=>{const r=n.children[i],s=bg(e,i);return this.expandSegmentGroup(t,s,r,i).pipe(P(t=>({segment:t,outlet:i})))}),cf((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Wd((e,n)=>t(e,n,i)):v,mf(1),n?kf(e):bf(()=>new Qp))}())}expandSegment(t,e,n,i,r,s){return M(n).pipe(qd(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,r,s).pipe(hf(t=>{if(t instanceof Sg)return Gd(null);throw t}))),Sf(t=>!!t),hf((t,n)=>{if(t instanceof Qp||"EmptyError"===t.name){if(Cg(e,i,r))return Gd(new dm([],{}));throw new Sg(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,r,s,o){return jg(i,e,r,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s):xg(e):xg(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Og(r):this.lineralizeSegments(n,r).pipe(L(n=>{const r=new dm(n,{});return this.expandSegment(t,r,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=_g(e,i,r);if(!o)return xg(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Og(u):this.lineralizeSegments(i,u).pipe(L(i=>this.expandSegment(t,e,n,i.concat(r.slice(l)),s,!1)))}matchSegmentAgainstRoute(t,e,n,i,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?Gd(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(P(t=>(n._loadedConfig=t,new dm(i,{})))):Gd(new dm(i,{}));const{matched:s,consumedSegments:o,lastChild:a}=_g(e,n,i);if(!s)return xg(e);const l=i.slice(a);return this.getChildConfig(t,n,i).pipe(L(t=>{const i=t.module,s=t.routes,{segmentGroup:a,slicedSegments:c}=wg(e,o,l,s),u=new dm(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(i,s,u).pipe(P(t=>new dm(o,t)));if(0===s.length&&0===c.length)return Gd(new dm(o,{}));const d=vg(n)===r;return this.expandSegment(i,u,s,c,d?Kf:r,!0).pipe(P(t=>new dm(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Gd(new ag(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Gd(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(L(n=>n?this.configLoader.load(t.injector,e).pipe(P(t=>(e._loadedConfig=t,t))):function(t){return new b(e=>e.error(Yf(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Gd(new ag([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;return i&&0!==i.length?Gd(i.map(i=>{const r=t.get(i);let s;if(function(t){return t&&lg(t.canLoad)}(r))s=r.canLoad(e,n);else{if(!lg(r))throw new Error("Invalid CanLoad guard");s=r(e,n)}return sm(s)})).pipe(dg(),xf(t=>{if(!cg(t))return;const e=Yf(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),P(t=>!0===t)):Gd(!0)}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Gd(n);if(i.numberOfChildren>1||!i.children.primary)return Eg(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const r=this.createSegmentGroup(t,e.root,n,i);return new um(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return rm(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const r=this.createSegments(t,e.segments,n,i);let s={};return rm(e.children,(e,r)=>{s[r]=this.createSegmentGroup(t,e,n,i)}),new dm(r,s)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function Ag(t){const e={};for(const n of Object.keys(t.children)){const i=Ag(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new dm(t.segments.concat(e.segments),e.children)}return t}(new dm(t.segments,e))}class zg{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Tg{constructor(t,e){this.component=t,this.route=e}}function Ng(t,e,n){const i=t._root;return Mg(i,e?e._root:null,n,[i.value])}function Rg(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function Mg(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Nm(e);return t.children.forEach(t=>{!function(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!pm(t.url,e.url);case"pathParamsOrQueryParamsChange":return!pm(t.url,e.url)||!tm(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Bm(t,e)||!tm(t.queryParams,e.queryParams);case"paramsChange":default:return!Bm(t,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new zg(i)):(s.data=o.data,s._resolvedData=o._resolvedData),Mg(t,e,s.component?a?a.children:null:n,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Tg(a.outlet.component,o))}else o&&Vg(e,a,r),r.canActivateChecks.push(new zg(i)),Mg(t,null,s.component?a?a.children:null:n,i,r)}(t,s[t.value.outlet],n,i.concat([t.value]),r),delete s[t.value.outlet]}),rm(s,(t,e)=>Vg(t,n.getContext(e),r)),r}function Vg(t,e,n){const i=Nm(t),r=t.value;rm(i,(t,i)=>{Vg(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new Tg(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}class Dg{}function Ug(t){return new b(e=>e.error(t))}class Lg{constructor(t,e,n,i,r,s){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){const t=wg(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Kf);if(null===e)return null;const n=new Um([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Kf,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Tm(n,e),r=new Lm(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,n=Dm(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const r of Object.keys(e.children)){const i=e.children[r],s=bg(t,r),o=this.processSegmentGroup(s,i,r);if(null===o)return null;n.push(...o)}const i=function(t){const e=[];for(const n of t){if(!Fg(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?t.children.push(...n.children):e.push(n)}return e}(n);return i.sort((t,e)=>t.value.outlet===Kf?-1:e.value.outlet===Kf?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const r of t){const t=this.processSegmentAgainstRoute(r,e,n,i);if(null!==t)return t}return Cg(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!jg(t,e,n,i))return null;let r,s=[],o=[];if("**"===t.path){const i=n.length>0?im(n).parameters:{};r=new Um(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Bg(t),vg(t),t.component,t,$g(e),Hg(e)+n.length,Gg(t))}else{const i=_g(e,t,n);if(!i.matched)return null;s=i.consumedSegments,o=n.slice(i.lastChild),r=new Um(s,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Bg(t),vg(t),t.component,t,$g(e),Hg(e)+s.length,Gg(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=wg(e,s,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new Tm(r,t)]}if(0===a.length&&0===c.length)return[new Tm(r,[])];const u=vg(t)===i,d=this.processSegment(a,l,c,u?Kf:i);return null===d?null:[new Tm(r,d)]}}function Fg(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function $g(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Hg(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Bg(t){return t.data||{}}function Gg(t){return t.resolve||{}}function qg(t){return ef(e=>{const n=t(e);return n?M(n).pipe(P(()=>e)):Gd(e)})}class Wg extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Zg=new Xn("ROUTES");class Kg{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(P(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new ag(nm(i.injector.get(Zg,void 0,jt.Self|jt.Optional)).map(gg),i)}),hf(t=>{throw e._loader$=void 0,t}));return e._loader$=new K(n,()=>new j).pipe(q()),e._loader$}loadModuleFactory(t){return"string"==typeof t?M(this.loader.load(t)):sm(t()).pipe(L(t=>t instanceof Wl?Gd(t):M(this.compiler.compileModuleAsync(t))))}}class Qg{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Jg,this.attachRef=null}}class Jg{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Qg,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Yg{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Xg(t){throw t}function tv(t,e,n){return e.parse("/")}function ev(t,e){return Gd(null)}let nv=(()=>{class t{constructor(t,e,n,i,r,s,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new j,this.errorHandler=Xg,this.malformedUriErrorHandler=tv,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ev,afterPreactivation:ev},this.urlHandlingStrategy=new Yg,this.routeReuseStrategy=new Wg,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=r.get(ql),this.console=r.get(Bc);const l=r.get(iu);this.isNgZoneEnabled=l instanceof iu&&iu.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new um(new dm([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Kg(s,o,t=>this.triggerEvent(new $f(t)),t=>this.triggerEvent(new Hf(t))),this.routerState=Mm(this.currentUrlTree,this.rootComponentType),this.transitions=new Hp({id: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()}setupNavigations(t){const e=this.events;return t.pipe(Wd(t=>0!==t.id),P(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),ef(t=>{let n=!1,i=!1;return Gd(t).pipe(xf(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ef(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Gd(t).pipe(ef(t=>{const n=this.transitions.getValue();return e.next(new Tf(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Yp:Promise.resolve(t)}),(i=this.ngModule.injector,r=this.configLoader,s=this.urlSerializer,o=this.config,ef(t=>function(t,e,n,i,r){return new Ig(t,e,n,i,r).apply()}(i,r,s,t.extractedUrl,o).pipe(P(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),xf(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,r){return L(s=>function(t,e,n,i,r="emptyOnly",s="legacy"){try{const o=new Lg(t,e,n,i,r,s).recognize();return null===o?Ug(new Dg):Gd(o)}catch(o){return Ug(o)}}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe(P(t=>Object.assign(Object.assign({},s),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),xf(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects);const n=new Vf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,r,s,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:s,extras:o}=t,a=new Tf(n,this.serializeUrl(i),r,s);e.next(a);const l=Mm(i,this.rootComponentType).snapshot;return Gd(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Yp}),qg(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),xf(t=>{const e=new Df(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),P(t=>Object.assign(Object.assign({},t),{guards:Ng(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return L(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?Gd(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return M(t).pipe(L(t=>function(t,e,n,i,r){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?Gd(s.map(s=>{const o=Rg(s,e,r);let a;if(function(t){return t&&lg(t.canDeactivate)}(o))a=sm(o.canDeactivate(t,e,n,i));else{if(!lg(o))throw new Error("Invalid CanDeactivate guard");a=sm(o(t,e,n,i))}return a.pipe(Sf())})).pipe(dg()):Gd(!0)}(t.component,t.route,n,e,i)),Sf(t=>!0!==t,!0))}(o,i,r,t).pipe(L(n=>n&&"boolean"==typeof n?function(t,e,n,i){return M(e).pipe(qd(e=>Jp(function(t,e){return null!==t&&e&&e(new Bf(t)),Gd(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new qf(t)),Gd(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>tf(()=>Gd(e.guards.map(r=>{const s=Rg(r,e.node,n);let o;if(function(t){return t&&lg(t.canActivateChild)}(s))o=sm(s.canActivateChild(i,t));else{if(!lg(s))throw new Error("Invalid CanActivateChild guard");o=sm(s(i,t))}return o.pipe(Sf())})).pipe(dg())));return Gd(r).pipe(dg())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Gd(i.map(i=>tf(()=>{const r=Rg(i,e,n);let s;if(function(t){return t&&lg(t.canActivate)}(r))s=sm(r.canActivate(e,t));else{if(!lg(r))throw new Error("Invalid CanActivate guard");s=sm(r(e,t))}return s.pipe(Sf())}))).pipe(dg()):Gd(!0)}(t,e.route,n))),Sf(t=>!0!==t,!0))}(i,s,t,e):Gd(n)),P(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),xf(t=>{if(cg(t.guardsResult)){const e=Yf(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new Uf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Wd(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Rf(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),qg(t=>{if(t.guards.canActivateChecks.length)return Gd(t).pipe(xf(t=>{const e=new Lf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),ef(t=>{let n=!1;return Gd(t).pipe((i=this.paramsInheritanceStrategy,r=this.ngModule.injector,L(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Gd(t);let s=0;return M(n).pipe(qd(t=>function(t,e,n,i){return function(t,e,n,i){const r=Object.keys(t);if(0===r.length)return Gd({});const s={};return M(r).pipe(L(r=>function(t,e,n,i){const r=Rg(t,e,i);return sm(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(xf(t=>{s[r]=t}))),mf(1),L(()=>Object.keys(s).length===r.length?Gd(s):Yp))}(t._resolve,t,e,i).pipe(P(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Dm(t,n).resolve),null)))}(t.route,e,i,r)),xf(()=>s++),mf(1),L(e=>s===n.length?Gd(t):Yp))})),xf({next:()=>n=!0,complete:()=>{if(!n){const n=new Rf(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,r}),xf(t=>{const e=new Ff(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),qg(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),P(t=>{const e=function(t,e,n){const i=Gm(t,e._root,n?n._root:void 0);return new Rm(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),xf(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),P(t=>(new sg(o,t.targetRouterState,t.currentRouterState,a).activate(s),t))),xf({next(){n=!0},complete(){n=!0}}),(r=()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new Rf(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new If(r))),hf(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=cg(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new Rf(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new Mf(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}var r;return Yp}));var r,s,o,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,r={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(i,t,n,r)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){pg(t),this.config=t.map(gg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:r,queryParamsHandling:s,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:r;let c=null;switch(s){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,r){if(0===n.length)return Km(e.root,e.root,e,i,r);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Jm(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return rm(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Jm(n,e,i)}(n);if(s.toRoot())return Km(e.root,new dm([],{}),e,i,r);const o=function(t,e,n){if(t.isAbsolute)return new Ym(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Ym(t,t===e.root,0)}const i=Wm(t.commands[0])?0:1;return function(t,e,n){let i=t,r=e,s=n;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new Ym(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?tg(o.segmentGroup,o.index,s.commands):Xm(o.segmentGroup,o.index,s.commands);return Km(o.segmentGroup,a,e,i,r)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=cg(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new Nf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,r){if(this.disposed)return Promise.resolve(!1);const s=this.getTransition(),o="imperative"!==e&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;r?(l=r.resolve,c=r.reject,u=r.promise):u=new Promise((t,e)=>{l=t,c=e});const d=++this.navigationId;return this.setTransition({id:d,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const r=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(vi(ei),vi(fm),vi(Jg),vi(Qu),vi(io),vi(Su),vi(tu),vi(void 0))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),iv=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new j,null==n&&i.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:sv(this.skipLocationChange),replaceUrl:sv(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:sv(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Co(nv),Co(Vm),Qn("tabindex"),Co(fl),Co(dl))},t.\u0275dir=Yt({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Ro("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[he]}),t})(),rv=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new j,this.subscription=t.events.subscribe(t=>{t instanceof Nf&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,r){if(0!==t||e||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:sv(this.skipLocationChange),replaceUrl:sv(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:sv(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Co(nv),Co(Vm),Co(Gu))},t.\u0275dir=Yt({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Ro("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(ua("href",e.href,Bi),yo("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[he]}),t})();function sv(t){return""===t||!!t}let ov=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new vc,this.deactivateEvents=new vc,this.name=i||Kf,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.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 t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new av(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Co(Jg),Co(Kl),Co(al),Qn("name"),Co(Vl))},t.\u0275dir=Yt({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class av{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Vm?this.route:t===Jg?this.childContexts:this.parent.get(t,e)}}class lv{}class cv{preload(t,e){return Gd(null)}}let uv=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new Kg(e,n,e=>t.triggerEvent(new $f(e)),e=>t.triggerEvent(new Hf(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Wd(t=>t instanceof Nf),qd(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(ql);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return M(n).pipe(H(),P(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?Gd(e._loadedConfig):this.loader.load(t.injector,e)).pipe(L(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(vi(nv),vi(Su),vi(tu),vi(io),vi(lv))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),dv=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Tf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Nf&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Zf&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Zf(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(vi(nv),vi(fd),vi(void 0))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const hv=new Xn("ROUTER_CONFIGURATION"),pv=new Xn("ROUTER_FORROOT_GUARD"),fv=[Qu,{provide:fm,useClass:mm},{provide:nv,useFactory:function(t,e,n,i,r,s,o,a={},l,c){const u=new nv(null,t,e,n,i,r,s,nm(o));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing){const t=Nu();u.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return u},deps:[fm,Jg,Qu,io,Su,tu,Zg,hv,[class{},new wi],[class{},new wi]]},Jg,{provide:Vm,useFactory:function(t){return t.routerState.root},deps:[nv]},{provide:Su,useClass:Ou},uv,cv,class{preload(t,e){return e().pipe(hf(()=>Gd(null)))}},{provide:hv,useValue:{enableTracing:!1}}];function mv(){return new bu("Router",nv)}let gv=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[fv,_v(e),{provide:pv,useFactory:yv,deps:[[nv,new wi,new ki]]},{provide:hv,useValue:n||{}},{provide:Gu,useFactory:bv,deps:[Mu,[new _i(Wu),new wi],hv]},{provide:dv,useFactory:vv,deps:[nv,fd,hv]},{provide:lv,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:cv},{provide:bu,multi:!0,useFactory:mv},[wv,{provide:Mc,multi:!0,useFactory:kv,deps:[wv]},{provide:Cv,useFactory:jv,deps:[wv]},{provide:Hc,multi:!0,useExisting:Cv}]]}}static forChild(e){return{ngModule:t,providers:[_v(e)]}}}return t.\u0275fac=function(e){return new(e||t)(vi(pv,8),vi(nv,8))},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})();function vv(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new dv(t,e,n)}function bv(t,e,n={}){return n.useHash?new Ku(t,e):new Zu(t,e)}function yv(t){return"guarded"}function _v(t){return[{provide:ti,multi:!0,useValue:t},{provide:Zg,multi:!0,useValue:t}]}let wv=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new j}appInitializer(){return this.injector.get(Du,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(nv),i=this.injector.get(hv);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Gd(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(hv),n=this.injector.get(uv),i=this.injector.get(dv),r=this.injector.get(nv),s=this.injector.get(ju);t===s.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(vi(io))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();function kv(t){return t.appInitializer.bind(t)}function jv(t){return t.bootstrapListener.bind(t)}const Cv=new Xn("Router Initializer");let Sv=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qt({type:t,selectors:[["app-domaca-stran"]],decls:5,vars:0,consts:[[1,"content","bg-dark","p-3"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h1"),oa(2,"Dobrodo\u0161li na Karjoli!"),Oo(),xo(3,"p"),oa(4,"Karjola je portal za deljenje zapiskov med \u0161tudenti univerzitetnega programa na Fakulteti za ra\u010dunalni\u0161tvo in informatiko. Za objavo zapiskov in komentiranje objavljenih zapiskov se morate registrirati s \u0161tudentskim e-po\u0161tnim naslovom. To omejitev imamo zato, da \u010dim bolj prepre\u010dimo objavljanje neprimerne vsebine."),Oo(),Oo())},styles:[""]}),t})();function Pv(t,e,n,i){return new(n||(n=Promise))(function(r,s){function o(t){try{l(i.next(t))}catch(e){s(e)}}function a(t){try{l(i.throw(t))}catch(e){s(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}l((i=i.apply(t,e||[])).next())})}const xv=new Xn("Shramba brskalnika",{providedIn:"root",factory:()=>localStorage}),Ov="https://sp-lp24-karjola.herokuapp.com/api";let Ev=(()=>{class t{constructor(t,e){this.http=t,this.shramba=e,this.apiUrl=Ov}prijava(t){return this.avtentikacija("uporabniki/prijava",t)}registracija(t){return this.avtentikacija("uporabniki/registriraj",t)}avtentikacija(t,e){return this.http.post(`${this.apiUrl}/${t}`,e).toPromise().then(t=>t).catch(this.obdelajNapako)}posljiObnovitvenoZahtevo(t){return this.http.put(`${this.apiUrl}/uporabniki/vnosZetona`,t).toPromise().then(t=>t).catch(this.obdelajNapako)}obnoviGeslo(t){return this.http.put(`${this.apiUrl}/uporabniki/obnovitevGesla`,t).toPromise().then(t=>t).catch(this.obdelajNapako)}pridobiUporabnike(){return this.http.get(`${this.apiUrl}/uporabniki/`).toPromise().then(t=>t).catch(this.obdelajNapako)}pridobiUporabnika(t){const e=`${this.apiUrl}/uporabniki/${t}`,n={headers:new Yd({Authorization:`Bearer ${this.shramba.getItem("karjola-zeton")}`})};return this.http.get(e,n).toPromise().then(t=>t).catch(this.obdelajNapako)}spremeniGeslo(t){const e=`${this.apiUrl}/uporabniki/${t.idUporabnika}/posodobiGeslo`,n={headers:new Yd({Authorization:`Bearer ${this.shramba.getItem("karjola-zeton")}`})};return this.http.put(e,t,n).toPromise().then(t=>t).catch(this.obdelajNapako)}izbrisiUporabnika(t){const e=`${this.apiUrl}/uporabniki/${t}`,n={headers:new Yd({Authorization:`Bearer ${this.shramba.getItem("karjola-zeton")}`})};return this.http.delete(e,n).toPromise().then(t=>t).catch(this.obdelajNapako)}obdelajNapako(t){return console.error("Pri\u0161lo je do napake",t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t),Promise.reject(t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t)}}return t.\u0275fac=function(e){return new(e||t)(vi(hh),vi(xv))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Iv=(()=>{class t{constructor(t,e){this.shramba=t,this.uporabnikPodatkiStoritev=e}b64Utf8(t){return decodeURIComponent(Array.prototype.map.call(atob(t),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}jePrijavljen(){const t=this.vrniZeton();return!!t&&JSON.parse(this.b64Utf8(t.split(".")[1])).potek>Date.now()/1e3}vrniTrenutnegaUporabnika(){if(this.jePrijavljen()){const t=this.vrniZeton(),{_id:e,uporabniskoIme:n,ePosta:i,jeAdmin:r,jePotrjen:s}=JSON.parse(this.b64Utf8(t.split(".")[1]));return{_id:e,uporabniskoIme:n,ePosta:i,jeAdmin:r,jePotrjen:s}}}jeAdmin(){if(this.jePrijavljen()){const t=this.vrniZeton();if(JSON.parse(this.b64Utf8(t.split(".")[1])).jeAdmin)return!0}return!1}jePotrjen(){if(this.jePrijavljen()){const t=this.vrniZeton();if(JSON.parse(this.b64Utf8(t.split(".")[1])).jePotrjen)return!0}return!1}prijava(t){return Pv(this,void 0,void 0,function*(){return this.uporabnikPodatkiStoritev.prijava(t).then(t=>{this.shraniZeton(t["\u017eeton"])})})}registracija(t){return Pv(this,void 0,void 0,function*(){return this.uporabnikPodatkiStoritev.registracija(t).then(t=>{this.shraniZeton(t["\u017eeton"])})})}odjava(){this.shramba.removeItem("karjola-zeton")}vrniZeton(){return this.shramba.getItem("karjola-zeton")}shraniZeton(t){this.shramba.setItem("karjola-zeton",t)}}return t.\u0275fac=function(e){return new(e||t)(vi(xv),vi(Ev))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Av(t,e,n,r){return i(n)&&(r=n,n=void 0),r?Av(t,e,n).pipe(P(t=>l(t)?r(...t):r(t))):new b(i=>{zv(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function zv(t,e,n,i,r){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,r),s=()=>i.removeEventListener(e,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),s=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),s=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,o=t.length;s{class t{constructor(){this.jePovezava=!1,G(Av(window,"offline").pipe(P(()=>!1)),Av(window,"online").pipe(P(()=>!0)),new b(t=>{t.next(navigator.onLine),t.complete()})).subscribe(t=>this.jePovezava=t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Nv=(()=>{class t{constructor(t){this.usmerjevalnik=t,this.urlNaslovi=[],this.usmerjevalnik.events.pipe(Wd(t=>t instanceof Nf)).subscribe(t=>{this.urlNaslovi=[...this.urlNaslovi,t.urlAfterRedirects]})}vrniPredhodnjeUrlNaslove(){const t=this.urlNaslovi.length;return t>1?this.urlNaslovi[t-2]:"/"}vrniPredhodnjeUrlNasloveBrezIzbranih(){const t=["/registracija","/prijava","/obnoviGeslo","/vnesiNovoGeslo/:eposta","/uporabniki/:idUporabnika"],e=this.urlNaslovi.filter(e=>!t.includes(e)),n=e.length;return n>1?e[n-1]:"/"}}return t.\u0275fac=function(e){return new(e||t)(vi(nv))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Rv=(()=>{class t{constructor(t){this.http=t}vrniKraj(t){return this.http.get("https://api.lavbic.net/kraji/"+t).toPromise().then(t=>t).catch(this.obdelajNapako)}obdelajNapako(t){return console.error("Pri\u0161lo je do napake",t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t),Promise.reject("Po\u0161ta ni najdena! Preveri ali sploh ta po\u0161ta obstaja in ali povezava deluje.")}}return t.\u0275fac=function(e){return new(e||t)(vi(hh))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Mv(t,e){if(1&t&&(xo(0,"div",20),xo(1,"strong",21),oa(2),Oo(),xo(3,"span",22),oa(4),Oo(),Oo()),2&t){const t=Do();Br(2),aa(t.napaka),Br(2),aa(t.napakaNaObrazcu)}}function Vv(t,e){1&t&&(xo(0,"div",23),xo(1,"strong",24),oa(2,"Registracija uspe\u0161na!"),Oo(),Eo(3,"span",25),Oo())}let Dv=(()=>{class t{constructor(t,e,n,i,r){this.usmerjevalnik=t,this.avtentikacijaStoritev=e,this.povezavaStoritev=n,this.zgodovinaStoritev=i,this.zunanjiApiStoritev=r,this.uspesnoObvestilo=!1,this.registracijskiPodatki={_id:"",uporabniskoIme:"",ePosta:"",novoGeslo:"",ponoviNovoGeslo:"",naslov:"Tesni naslov 12345667889a",posta:"1000",kraj:"Lublana",jeAdmin:!1,jePotrjen:!1},this.glava={naslov:"REGISTRACIJA UPORABNIKA",podnaslov:""}}nastaviNapako(t,e){this.napakaNaObrazcu=e,this.napaka=t}pridobiKraj(){""!=this.registracijskiPodatki.posta&&this.zunanjiApiStoritev.vrniKraj(this.registracijskiPodatki.posta).then(t=>{var e=JSON.parse(JSON.stringify(t));this.registracijskiPodatki.kraj=e.kraj,this.napakaNaObrazcu=""}).catch(t=>{this.registracijskiPodatki.posta="",this.registracijskiPodatki.kraj="",this.napakaNaObrazcu=t})}posiljanjePodatkov(){if(this.nastaviNapako("",""),this.jePovezava())if(""!=this.registracijskiPodatki.uporabniskoIme&&""!=this.registracijskiPodatki.ePosta&&""!=this.registracijskiPodatki.novoGeslo&&""!=this.registracijskiPodatki.ponoviNovoGeslo&&""!=this.registracijskiPodatki.naslov&&""!=this.registracijskiPodatki.posta&&""!=this.registracijskiPodatki.kraj)if(!new RegExp(/^\d{4}$/).test(this.registracijskiPodatki.posta)||parseInt(this.registracijskiPodatki.posta)<1e3)this.nastaviNapako("\u0160tiri \u0161tevke!"," Po\u0161ta je sestavljena iz \u0161tiri \u0161tevk od 1000 do 9999.");else if(new RegExp("[a-z]{2}[0-9]{4}@student.uni-lj.si").test(this.registracijskiPodatki.ePosta))if(new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@\u20ac#$%^&*])(?=.{8,})").test(this.registracijskiPodatki.novoGeslo)&&this.registracijskiPodatki.novoGeslo==this.registracijskiPodatki.ponoviNovoGeslo){var t=this.registracijskiPodatki.naslov,e=this.registracijskiPodatki.kraj,n=this.registracijskiPodatki.uporabniskoIme;new RegExp(/<\/?[a-z][\s\S]*>/i).test(t)||new RegExp(/<\/?[a-z][\s\S]*>/i).test(e)||new RegExp(/<\/?[a-z][\s\S]*>/i).test(n)||""==e?this.nastaviNapako("Nedovoljeni znaki!"," Uporabni\u0161ko ime, naslov ali kraj vsebuje nedovoljene znake!"):""==this.napakaNaObrazcu&&this.izvediRegistracijo()}else this.nastaviNapako("Geslo ni vredu!"," Geslo mora ustrezati naslednjim kriterijem: Geslo more vsebovati vsaj eno veliko in eno majhno \u010drko. Geslo mora vsebovati vsaj eno \u0161tevilko in biti dolgo 8 znakov, hkrati pa naj vsebuje specialni znak glej regex (^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@\u20ac#$%^&*])(?=.{8,})). Prav tako poskrbi, da bo v obe polji vpisano isto geslo.");else this.nastaviNapako("Preveri e-po\u0161to!"," Zahtevana je po\u0161ta od \u0161tudentskega UL ra\u010duna.");else this.nastaviNapako("Manjkajo\u010di podatki!","Preveri manjkajo\u010de podatke in jih izpolni.");else this.nastaviNapako("Ni povezave","Vzpostavi povezavo z internetom.")}izvediRegistracijo(){this.avtentikacijaStoritev.registracija(this.registracijskiPodatki).then(()=>{this.usmerjevalnik.navigateByUrl(this.zgodovinaStoritev.vrniPredhodnjeUrlNasloveBrezIzbranih()),this.uspesnoObvestilo=!0}).catch(t=>this.napakaNaObrazcu=t)}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(nv),Co(Iv),Co(Tv),Co(Nv),Co(Rv))},t.\u0275cmp=qt({type:t,selectors:[["app-registracija"]],decls:41,vars:12,consts:[[1,"content","bg-dark","p-3"],[1,"formtitle"],["autocomplete","on","id","forma",3,"submit"],[1,"form-row","col-md-12"],[1,"form-group","col-md-6"],["for","inputEmail4"],[1,"required"],["type","text","id","userName","name","uporabniskoIme","placeholder","Uporabni\u0161ko ime","required","","autofocus","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","email","id","exampleInputEmail1","aria-describedby","emailHelp","name","ePosta","placeholder","Vnesi email","autocomplete","on","pattern","[a-z]{2}[0-9]{4}@student.uni-lj.si","title","Vnesi e-po\u0161tni naslov, ki si ga prejel s strani Univerze v Ljubljani. Primer: jn0000@student.uni-lj.si","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["for","exampleInputPassword1"],["type","password","id","exampleInputPassword1","name","novoGesko","placeholder","Geslo","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["for","repeatPassword"],["type","password","id","repeatPassword","placeholder","Ponovi geslo","name","ponoviNovoGeslo","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],[1,"form-group","col-md-12"],[1,"form-check","col-md-6"],["for","gridRadios3",1,"form-check-label"],["routerLink","/splosniPogoji"],["type","submit","id","submit",1,"btn","btn-primary",3,"disabled"],["class","alert alert-danger fade show col-md-12","role","alert",4,"ngIf"],["class","alert alert-success fade show col-md-12","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger","fade","show","col-md-12"],["id","danger-strong"],["id","danger-navadno"],["role","alert",1,"alert","alert-success","fade","show","col-md-12"],["id","success-strong"],["id","success-navadno"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h2",1),oa(2),Oo(),Eo(3,"br"),xo(4,"form",2),Ro("submit",function(){return e.posiljanjePodatkov()}),xo(5,"div",3),xo(6,"div",4),xo(7,"label",5),oa(8,"UPORABNI\u0160KO IME "),xo(9,"em",6),oa(10,"*"),Oo(),Oo(),xo(11,"input",7),Ro("ngModelChange",function(t){return e.registracijskiPodatki.uporabniskoIme=t}),Oo(),Oo(),xo(12,"div",4),xo(13,"label",5),oa(14,"E-PO\u0160TA "),xo(15,"em",6),oa(16,"*"),Oo(),Oo(),xo(17,"input",8),Ro("ngModelChange",function(t){return e.registracijskiPodatki.ePosta=t}),Oo(),Oo(),xo(18,"div",4),xo(19,"label",9),oa(20,"GESLO "),xo(21,"em",6),oa(22,"*"),Oo(),Oo(),xo(23,"input",10),Ro("ngModelChange",function(t){return e.registracijskiPodatki.novoGeslo=t}),Oo(),Oo(),xo(24,"div",4),xo(25,"label",11),oa(26,"POTRDITEV GESLA "),xo(27,"em",6),oa(28,"*"),Oo(),Oo(),xo(29,"input",12),Ro("ngModelChange",function(t){return e.registracijskiPodatki.ponoviNovoGeslo=t}),Oo(),Oo(),Oo(),xo(30,"div",13),xo(31,"div",14),xo(32,"label",15),oa(33," Z uporabo strani se strinja\u0161 s "),xo(34,"a",16),oa(35,"splo\u0161nimi pogoji."),Oo(),Oo(),Oo(),Eo(36,"br"),xo(37,"button",17),oa(38," Registriraj se"),Oo(),ko(39,Mv,5,2,"div",18),ko(40,Vv,4,0,"div",19),Oo(),Oo(),Oo()),2&t&&(Br(2),aa(e.glava.naslov),Br(9),So("ngModel",e.registracijskiPodatki.uporabniskoIme)("disabled",!e.jePovezava()),Br(6),So("ngModel",e.registracijskiPodatki.ePosta)("disabled",!e.jePovezava()),Br(6),So("ngModel",e.registracijskiPodatki.novoGeslo)("disabled",!e.jePovezava()),Br(6),So("ngModel",e.registracijskiPodatki.ponoviNovoGeslo)("disabled",!e.jePovezava()),Br(8),So("disabled",!e.jePovezava()),Br(2),So("ngIf",e.napakaNaObrazcu),Br(1),So("ngIf",e.uspesnoObvestilo))},directives:[Sp,tp,wp,Rh,Vp,Xh,Cp,Up,rv,ad],styles:[""]}),t})();function Uv(t,e){if(1&t&&(xo(0,"small",17),oa(1,"\u0160e nisi registriran? Registriraj se "),xo(2,"a",18),oa(3,"tu"),Oo(),oa(4,"."),Oo()),2&t){const t=Do();Br(2),So("disabled",!t.jePovezava())}}function Lv(t,e){if(1&t&&(xo(0,"small",19),oa(1,"Pozabljeno geslo? Obnovi\u0161 ga lahko na "),xo(2,"a",20),oa(3,"naslednji povezavi"),Oo(),oa(4,"."),Oo()),2&t){const t=Do();Br(2),So("disabled",!t.jePovezava())}}function Fv(t,e){1&t&&(xo(0,"div",21),oa(1," Ni povezave z internetom! "),Oo())}function $v(t,e){if(1&t&&(xo(0,"div",22),xo(1,"strong",23),oa(2),Oo(),xo(3,"span",24),oa(4),Oo(),Oo()),2&t){const t=Do();Br(2),aa(t.napaka),Br(2),aa(t.napakaNaObrazcu)}}function Hv(t,e){1&t&&(xo(0,"div",25),xo(1,"strong",26),oa(2,"Prijava uspe\u0161na!"),Oo(),Eo(3,"span",27),Oo())}let Bv=(()=>{class t{constructor(t,e,n,i){this.usmerjevalnik=t,this.avtentikacijaStoritev=e,this.povezavaStoritev=n,this.zgodovinaStoritev=i,this.uspesnoObvestilo=!1,this.href="",this.prijavniPodatki={ePosta:"",geslo:""},this.glava={naslov:"PRIJAVA UPORABNIKA",podnaslov:""}}nastaviNapako(t,e){this.napakaNaObrazcu=e,this.napaka=t}posiljanjePodatkov(){this.nastaviNapako("",""),this.jePovezava()?""!=this.prijavniPodatki.ePosta&&""!=this.prijavniPodatki.geslo?new RegExp("[a-z]{2}[0-9]{4}@student.uni-lj.si").test(this.prijavniPodatki.ePosta)?new RegExp(/<\/?[a-z][\s\S]*>/i).test(this.prijavniPodatki.geslo)||new RegExp(/<\/?[a-z][\s\S]*>/i).test(this.prijavniPodatki.ePosta)?this.nastaviNapako("Nedovoljeni znaki!"," Uporabnisko ime ali geslo vsebuje nedovoljene znake"):this.izvediPrijavo():this.nastaviNapako("Preveri e-po\u0161to!"," Zahtevana je po\u0161ta od \u0161tudentskega UL ra\u010duna."):this.nastaviNapako("Manjkajo\u010di podatki!","Preveri manjkajo\u010de podatke in jih izpolni."):this.nastaviNapako("Ni povezave","Vzpostavi povezavo z internetom.")}izvediPrijavo(){this.avtentikacijaStoritev.prijava(this.prijavniPodatki).then(()=>{this.uspesnoObvestilo=!0,this.usmerjevalnik.navigateByUrl(this.zgodovinaStoritev.vrniPredhodnjeUrlNasloveBrezIzbranih())}).catch(t=>this.napakaNaObrazcu=t)}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(nv),Co(Iv),Co(Tv),Co(Nv))},t.\u0275cmp=qt({type:t,selectors:[["app-prijava"]],decls:29,vars:11,consts:[[1,"content","bg-dark","p-3"],[1,"formtitle"],["id","forma",3,"submit"],[1,"form-row","col-md-12"],[1,"form-group","col-md-6"],["for","exampleInputEmail1"],[1,"required"],["type","email","id","exampleInputEmail1","aria-describedby","emailHelp","placeholder","Vnesi email","required","","name","ePosta","autocomplete","on","pattern","[a-z]{2}[0-9]{4}@student.uni-lj.si","title","Vnesi e-po\u0161tni naslov, ki si ga prejel s strani Univerze v Ljubljani. Primer: jn0000@student.uni-lj.si",1,"form-control",3,"ngModel","disabled","ngModelChange"],["id","emailHelp","class","form-text text-muted",4,"ngIf"],["for","exampleInputPassword1"],["type","password","id","exampleInputPassword1","placeholder","Geslo","name","trenutnoGeslo","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["id","passwordHelp","class","form-text text-muted",4,"ngIf"],[1,"form-group","col-md-12"],["type","submit","id","submit",1,"btn","btn-primary",3,"disabled"],["class","alert alert-info fade show col-md-12","role","alert",4,"ngIf"],["class","alert alert-danger fade show col-md-12","role","alert",4,"ngIf"],["class","alert alert-success fade show col-md-12","role","alert",4,"ngIf"],["id","emailHelp",1,"form-text","text-muted"],["routerLink","/registracija",3,"disabled"],["id","passwordHelp",1,"form-text","text-muted"],["routerLink","/obnoviGeslo",3,"disabled"],["role","alert",1,"alert","alert-info","fade","show","col-md-12"],["role","alert",1,"alert","alert-danger","fade","show","col-md-12"],["id","danger-strong"],["id","danger-navadno"],["role","alert",1,"alert","alert-success","fade","show","col-md-12"],["id","success-strong"],["id","success-navadno"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h2",1),oa(2),Oo(),Eo(3,"br"),xo(4,"form",2),Ro("submit",function(){return e.posiljanjePodatkov()}),xo(5,"div",3),xo(6,"div",4),xo(7,"label",5),oa(8,"E-PO\u0160TA "),xo(9,"em",6),oa(10,"*"),Oo(),Oo(),xo(11,"input",7),Ro("ngModelChange",function(t){return e.prijavniPodatki.ePosta=t}),Oo(),ko(12,Uv,5,1,"small",8),Oo(),Eo(13,"br"),xo(14,"div",4),xo(15,"label",9),oa(16,"GESLO "),xo(17,"em",6),oa(18,"*"),Oo(),Oo(),xo(19,"input",10),Ro("ngModelChange",function(t){return e.prijavniPodatki.geslo=t}),Oo(),ko(20,Lv,5,1,"small",11),Oo(),Oo(),xo(21,"div",12),Eo(22,"br"),xo(23,"button",13),oa(24,"Prijavi se"),Oo(),Oo(),Eo(25,"br"),ko(26,Fv,2,0,"div",14),ko(27,$v,5,2,"div",15),ko(28,Hv,4,0,"div",16),Oo(),Oo()),2&t&&(Br(2),aa(e.glava.naslov),Br(9),So("ngModel",e.prijavniPodatki.ePosta)("disabled",!e.jePovezava()),Br(1),So("ngIf",e.jePovezava()),Br(7),So("ngModel",e.prijavniPodatki.geslo)("disabled",!e.jePovezava()),Br(1),So("ngIf",e.jePovezava()),Br(3),So("disabled",!e.jePovezava()),Br(3),So("ngIf",!e.jePovezava()),Br(1),So("ngIf",e.napakaNaObrazcu),Br(1),So("ngIf",e.uspesnoObvestilo))},directives:[Sp,tp,wp,Rh,Vp,Up,Xh,Cp,ad,rv],styles:[""]}),t})();function Gv(t,e){1&t&&(xo(0,"div",16),oa(1," Ni povezave z internetom! "),Oo())}function qv(t,e){if(1&t&&(xo(0,"div",17),xo(1,"strong",18),oa(2),Oo(),xo(3,"span",19),oa(4),Oo(),Oo()),2&t){const t=Do();Br(2),aa(t.napaka),Br(2),aa(t.napakaNaObrazcu)}}function Wv(t,e){1&t&&(xo(0,"div",20),xo(1,"strong"),oa(2,"Geslo je bilo uspe\u0161no ponastavljeno! Lahko se vrne\u0161 na "),xo(3,"a",21),oa(4,"prijavo in se prijavi\u0161!"),Oo(),Oo(),Oo())}let Zv=(()=>{class t{constructor(t,e,n,i){this.povezavaStoritev=t,this.usmerjevalnik=e,this.uporabnikPodatkiStoritev=n,this.pot=i,this.uspesnoObvestilo=!1,this.noviPodatki={ePosta:"",zetonZaPosodobitev:"",novoGeslo:"",ponoviNovoGeslo:""},this.glava={naslov:"VNOS NOVEGA GESLA IN \u017dETONA",podnaslov:""}}ngOnInit(){this.pot.paramMap.subscribe(t=>{this.noviPodatki.ePosta=t.get("eposta")})}nastaviNapako(t,e){this.napakaNaObrazcu=e,this.napaka=t}posljiPodatke(){this.nastaviNapako("",""),this.jePovezava()?""!=this.noviPodatki.zetonZaPosodobitev&&""!=this.noviPodatki.ePosta&&""!=this.noviPodatki.novoGeslo&&""!=this.noviPodatki.ponoviNovoGeslo?new RegExp("[a-z]{2}[0-9]{4}@student.uni-lj.si").test(this.noviPodatki.ePosta)?new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@\u20ac#$%^&*])(?=.{8,})").test(this.noviPodatki.novoGeslo)&&this.noviPodatki.novoGeslo==this.noviPodatki.ponoviNovoGeslo?new RegExp("[A-Za-z0-9]{40}").test(this.noviPodatki.zetonZaPosodobitev)?this.uporabnikPodatkiStoritev.obnoviGeslo(this.noviPodatki).then(()=>{this.uspesnoObvestilo=!0}).catch(t=>this.napakaNaObrazcu=t):this.nastaviNapako("Napa\u010den format \u017eetona!"," Vnesi \u017eeton pravilnega formata, ki je presumably prispel na tvoj mail!"):this.nastaviNapako("Geslo ni vredu!"," Geslo mora ustrezati naslednjim kriterijem: Geslo more vsebovati vsaj eno veliko in eno majhno \u010drko. Geslo mora vsebovati vsaj eno \u0161tevilko in biti dolgo 8 znakov, hkrati pa naj vsebuje specialni znak glej regex (^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@\u20ac#$%^&*])(?=.{8,})). Prav tako poskrbi, da bo v obe polji vpisano isto geslo."):this.nastaviNapako("Preveri e-po\u0161to!"," Zahtevana je po\u0161ta od \u0161tudentskega UL ra\u010duna."):this.nastaviNapako("Manjkajo\u010di podatki!"," Preveri manjkajo\u010de podatke in jih izpolni."):this.nastaviNapako("Ni povezave","Vzpostavi povezavo z internetom.")}jePovezava(){return this.povezavaStoritev.jePovezava}}return t.\u0275fac=function(e){return new(e||t)(Co(Tv),Co(nv),Co(Ev),Co(Vm))},t.\u0275cmp=qt({type:t,selectors:[["app-vnesi-novo-geslo"]],decls:31,vars:10,consts:[[1,"content","bg-dark","p-3"],[1,"formtitle"],[3,"submit"],[1,"form-row","col-sm-12","col-md-12","col-lg-12"],[1,"form-group","col-md-6","col-lg-12"],["for","exampleInputPassword1"],[1,"required"],["type","text","id","InputPassword","placeholder","Zeton poslan na mail","name","zeton","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","password","id","InputPassword","placeholder","Geslo","name","novoGeslo","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["for","repeatPassword"],["type","password","id","repeatPassword","placeholder","Ponovi geslo","name","potrdiNovoGeslo","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],[1,"form-group","col-md-2","col-lg-6"],["type","submit","id","submit",1,"btn","btn-primary",3,"disabled"],["class","alert alert-info fade show col-md-12","role","alert",4,"ngIf"],["class","alert alert-danger alert-dismissible fade show","role","alert",4,"ngIf"],["class","alert alert-success alert-dismissible fade show","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-info","fade","show","col-md-12"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show"],["id","danger-strong"],["id","danger-navadno"],["role","alert",1,"alert","alert-success","alert-dismissible","fade","show"],["routerLink","/prijava"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h2",1),oa(2,"VNOS NOVEGA GESLA"),Oo(),Eo(3,"br"),xo(4,"form",2),Ro("submit",function(){return e.posljiPodatke()}),xo(5,"div",3),xo(6,"div",4),xo(7,"label",5),oa(8,"\u017dETON "),xo(9,"em",6),oa(10,"*"),Oo(),Oo(),xo(11,"input",7),Ro("ngModelChange",function(t){return e.noviPodatki.zetonZaPosodobitev=t}),Oo(),Oo(),xo(12,"div",4),xo(13,"label",5),oa(14,"NOVO GESLO "),xo(15,"em",6),oa(16,"*"),Oo(),Oo(),xo(17,"input",8),Ro("ngModelChange",function(t){return e.noviPodatki.novoGeslo=t}),Oo(),Oo(),xo(18,"div",4),xo(19,"label",9),oa(20,"POTRDI GESLO "),xo(21,"em",6),oa(22,"*"),Oo(),Oo(),xo(23,"input",10),Ro("ngModelChange",function(t){return e.noviPodatki.ponoviNovoGeslo=t}),Oo(),Oo(),Oo(),xo(24,"div",11),xo(25,"button",12),oa(26,"Ponastavi!"),Oo(),Oo(),ko(27,Gv,2,0,"div",13),Eo(28,"br"),ko(29,qv,5,2,"div",14),ko(30,Wv,5,0,"div",15),Oo(),Oo()),2&t&&(Br(11),So("ngModel",e.noviPodatki.zetonZaPosodobitev)("disabled",!e.jePovezava()),Br(6),So("ngModel",e.noviPodatki.novoGeslo)("disabled",!e.jePovezava()),Br(6),So("ngModel",e.noviPodatki.ponoviNovoGeslo)("disabled",!e.jePovezava()),Br(2),So("disabled",!e.jePovezava()),Br(2),So("ngIf",!e.jePovezava()),Br(2),So("ngIf",e.napakaNaObrazcu),Br(1),So("ngIf",e.uspesnoObvestilo))},directives:[Sp,tp,wp,Rh,Vp,Xh,Cp,ad,rv],styles:[""]}),t})();function Kv(t,e){1&t&&(xo(0,"div",11),oa(1," Ni povezave z internetom! "),Oo())}function Qv(t,e){if(1&t&&(xo(0,"div",12),xo(1,"strong",13),oa(2),Oo(),xo(3,"span",14),oa(4),Oo(),Oo()),2&t){const t=Do();Br(2),aa(t.napaka),Br(2),aa(t.napakaNaObrazcu)}}function Jv(t,e){1&t&&(xo(0,"div",15),xo(1,"strong",16),oa(2,"Navodila za ponastavitev gesla so bila poslana!"),Oo(),Eo(3,"span",17),Oo())}let Yv=(()=>{class t{constructor(t,e,n){this.usmerjevalnik=t,this.povezavaStoritev=e,this.uporabnikPodatkiStoritev=n,this.uspesnoObvestilo=!1,this.glava={naslov:"PONASTAVITEV GESLA",podnaslov:""},this.obnovitveniPodatki={ePosta:""}}ngOnInit(){}nastaviNapako(t,e){this.napakaNaObrazcu=e,this.napaka=t}posiljanjePodatkov(){this.nastaviNapako("",""),this.jePovezava()?""!=this.obnovitveniPodatki.ePosta&&new RegExp("[a-z]{2}[0-9]{4}@student.uni-lj.si").test(this.obnovitveniPodatki.ePosta)?this.uporabnikPodatkiStoritev.posljiObnovitvenoZahtevo(this.obnovitveniPodatki).then(()=>{this.uspesnoObvestilo=!0,this.usmerjevalnik.navigateByUrl("vnesiNovoGeslo/"+this.obnovitveniPodatki.ePosta)}).catch(t=>this.napakaNaObrazcu=t):this.nastaviNapako("Manjo\u010da ali napa\u010dna e-po\u0161ta!"," Preveri manjkajo\u010do e-po\u0161to in njen format!"):this.nastaviNapako("Ni povezave","Vzpostavi povezavo z internetom.")}jePovezava(){return this.povezavaStoritev.jePovezava}}return t.\u0275fac=function(e){return new(e||t)(Co(nv),Co(Tv),Co(Ev))},t.\u0275cmp=qt({type:t,selectors:[["app-obnovi-geslo"]],decls:19,vars:7,consts:[[1,"content","bg-dark","p-3"],[1,"formtitle"],["role","form",3,"submit"],["id","enterEmailForgetPassword",1,"form-group","col-md-12"],["for","exampleInputEmail1"],[1,"required"],["type","email","id","exampleInputEmail1","aria-describedby","emailHelp","placeholder","Vnesi e-po\u0161tni naslov za ponastavitev gesla","required","","name","ePosta","autocomplete","on","pattern","[a-z]{2}[0-9]{4}@student.uni-lj.si","title","Vnesi e-po\u0161tni naslov, ki si ga prejel s strani Univerze v Ljubljani. Primer: jn0000@student.uni-lj.si",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","submit","id","submit",1,"btn","btn-primary",3,"disabled"],["class","alert alert-info fade show col-md-12","role","alert",4,"ngIf"],["class","alert alert-danger alert-dismissible fade show col-md-12","role","alert",4,"ngIf"],["class","alert alert-success alert-dismissible fade show ","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-info","fade","show","col-md-12"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show","col-md-12"],["id","danger-strong"],["id","danger-navadno"],["role","alert",1,"alert","alert-success","alert-dismissible","fade","show"],["id","success-strong"],["id","success-navadno"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h2",1),oa(2),Oo(),Eo(3,"br"),xo(4,"form",2),Ro("submit",function(){return e.posiljanjePodatkov()}),xo(5,"div",3),xo(6,"label",4),oa(7,"E-PO\u0160TA "),xo(8,"em",5),oa(9,"*"),Oo(),Oo(),xo(10,"input",6),Ro("ngModelChange",function(t){return e.obnovitveniPodatki.ePosta=t}),Oo(),Eo(11,"br"),xo(12,"button",7),oa(13,"Ponastavi geslo!"),Oo(),Oo(),Eo(14,"br"),ko(15,Kv,2,0,"div",8),Eo(16,"br"),ko(17,Qv,5,2,"div",9),ko(18,Jv,4,0,"div",10),Oo(),Oo()),2&t&&(Br(2),aa(e.glava.naslov),Br(8),So("ngModel",e.obnovitveniPodatki.ePosta)("disabled",!e.jePovezava()),Br(2),So("disabled",!e.jePovezava()),Br(3),So("ngIf",!e.jePovezava()),Br(2),So("ngIf",e.napakaNaObrazcu),Br(1),So("ngIf",e.uspesnoObvestilo))},directives:[Sp,tp,wp,Rh,Vp,Up,Xh,Cp,ad],styles:[""]}),t})();class Xv{}class tb{}let eb=(()=>{class t{constructor(t,e){this.http=t,this.shramba=e,this.apiUrl=Ov}httpLastnosti(){return{headers:new Yd({Authorization:`Bearer ${this.shramba.getItem("karjola-zeton")}`})}}pridobiOsebje(){return this.http.get(`${this.apiUrl}/osebje`).toPromise().then(t=>t).catch(this.obdelajNapako)}dodajOsebje(t){return this.http.post(`${this.apiUrl}/osebje/`,t,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}posodobiOsebje(t,e){return this.http.put(`${this.apiUrl}/osebje/${e}`,t,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}izbrisiOsebje(t){return this.http.delete(`${this.apiUrl}/osebje/${t}`,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}pridobiPredmete(){return this.http.get(`${this.apiUrl}/predmeti`).toPromise().then(t=>t).catch(this.obdelajNapako)}dodajPredmet(t){return this.http.post(`${this.apiUrl}/predmeti/`,t,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}posodobiPredmet(t,e){return this.http.put(`${this.apiUrl}/predmeti/${e}`,t,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}izbrisiPredmet(t){return this.http.delete(`${this.apiUrl}/predmeti/${t}`,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}pridobiModule(){return this.http.get(`${this.apiUrl}/moduli`).toPromise().then(t=>t).catch(this.obdelajNapako)}dodajModul(t){return this.http.post(`${this.apiUrl}/moduli/`,t,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}posodobiModul(t,e){return this.http.put(`${this.apiUrl}/moduli/${e}`,t,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}izbrisiModul(t){return this.http.delete(`${this.apiUrl}/moduli/${t}`,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}obdelajNapako(t){let e=t.message;return null!=t.error&&null!=t.error.sporocilo?e=t.error.sporocilo:null!=t.error&&null!=t.error.sporo\u010dilo&&(e=t.error.sporo\u010dilo),console.error("Pri\u0161lo je do napake",t),Promise.reject(e)}idArrayIntoObjectArray(t,e,n){for(var i=Object.assign({},t),r=[],s=[],o=[],a=0;ae._id===t.profesorji[a]);if(n)r.push(n);else{const t=new Xv;t._id="-1",t.ime_priimek="deleted",r.push(t)}}for(a=0;ae._id===t.asistenti[a]);if(n)s.push(n);else{const t=new Xv;t._id="-1",t.ime_priimek="deleted",s.push(t)}}for(a=0;ae._id===t.moduli[a]);if(e)o.push(e);else{const t=new tb;t._id="-1",t.ime="deleted",o.push(t)}}return i.profesorji=r,i.asistenti=s,i.moduli=o,i}}return t.\u0275fac=function(e){return new(e||t)(vi(hh),vi(xv))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class nb extends d{constructor(t,e){super()}schedule(t,e=0){return this}}class ib extends nb{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let rb=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class sb extends rb{constructor(t,e=rb.now){super(t,()=>sb.delegate&&sb.delegate!==this?sb.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return sb.delegate&&sb.delegate!==this?sb.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const ob=new sb(ib);function ab(t){return!l(t)&&t-parseFloat(t)+1>=0}function lb(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}class cb{call(t,e){return e.subscribe(new ub(t))}}class ub extends Bp{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let n=0;nthis.index}hasCompleted(){return this.array.length===this.index}}class vb extends D{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[A](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return U(this.observable,new V(this))}}function bb(t){return e=>e.lift(new yb(t))}class yb{constructor(t){this.notifier=t}call(t,e){const n=new _b(t),i=U(this.notifier,new V(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class _b extends D{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function wb(...t){return e=>{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new kb(t,n))}}class kb{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new jb(t,this.observables,this.project))}}class jb extends Bp{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const i=e.length;this.values=new Array(i);for(let r=0;r0){const t=i.indexOf(n);-1!==t&&i.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function Cb(t,e){return new b(e?n=>e.schedule(Sb,0,{error:t,subscriber:n}):e=>e.error(t))}function Sb({error:t,subscriber:e}){e.error(t)}let Pb=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Gd(this.value);case"E":return Cb(this.error);case"C":return Xp()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class xb{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Ob(t,this.delay,this.scheduler))}}class Ob extends f{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,r=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Ob.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new Eb(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Pb.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Pb.createComplete()),this.unsubscribe()}}class Eb{constructor(t,e){this.time=t,this.notification=e}}const Ib=["*"],Ab=["dialog"];function zb(t,e){1&t&&(xo(0,"span",8),Qa(1,9),Oo())}function Tb(t,e){1&t&&(xo(0,"span",8),Qa(1,10),Oo())}function Nb(t,e){1&t&&(xo(0,"span",8),Qa(1,11),Oo())}function Rb(t,e){1&t&&(xo(0,"span",8),Qa(1,12),Oo())}function Mb(t,e){1&t&&oa(0,"...")}function Vb(t,e){1&t&&(xo(0,"span",14),oa(1,"(current)"),Oo())}function Db(t,e){if(1&t&&(oa(0),ko(1,Vb,2,0,"span",13)),2&t){const t=e.$implicit,n=e.currentPage;la(" ",t," "),Br(1),So("ngIf",t===n)}}function Ub(t,e){}const Lb=function(t,e){return{disabled:t,currentPage:e}};function Fb(t,e){if(1&t){const t=zo();xo(0,"li",15),xo(1,"a",16),Ro("click",function(e){return Ve(t),Do().selectPage(1),e.preventDefault()}),ko(2,Ub,0,0,"ng-template",17),Oo(),Oo()}if(2&t){const t=Do(),e=jo(1);Zo("disabled",t.previousDisabled()),Br(1),yo("tabindex",t.previousDisabled()?"-1":null)("aria-disabled",t.previousDisabled()?"true":null),Br(1),So("ngTemplateOutlet",(null==t.tplFirst?null:t.tplFirst.templateRef)||e)("ngTemplateOutletContext",hc(6,Lb,t.previousDisabled(),t.page))}}function $b(t,e){}const Hb=function(t){return{disabled:t}};function Bb(t,e){if(1&t){const t=zo();xo(0,"li",15),xo(1,"a",18),Ro("click",function(e){Ve(t);const n=Do();return n.selectPage(n.page-1),e.preventDefault()}),ko(2,$b,0,0,"ng-template",17),Oo(),Oo()}if(2&t){const t=Do(),e=jo(3);Zo("disabled",t.previousDisabled()),Br(1),yo("tabindex",t.previousDisabled()?"-1":null)("aria-disabled",t.previousDisabled()?"true":null),Br(1),So("ngTemplateOutlet",(null==t.tplPrevious?null:t.tplPrevious.templateRef)||e)("ngTemplateOutletContext",dc(6,Hb,t.previousDisabled()))}}function Gb(t,e){}const qb=function(t){return{disabled:!0,currentPage:t}};function Wb(t,e){if(1&t&&(xo(0,"a",21),ko(1,Gb,0,0,"ng-template",17),Oo()),2&t){const t=Do(2),e=jo(9);Br(1),So("ngTemplateOutlet",(null==t.tplEllipsis?null:t.tplEllipsis.templateRef)||e)("ngTemplateOutletContext",dc(2,qb,t.page))}}function Zb(t,e){}const Kb=function(t,e,n){return{disabled:t,$implicit:e,currentPage:n}};function Qb(t,e){if(1&t){const t=zo();xo(0,"a",22),Ro("click",function(e){Ve(t);const n=Do().$implicit;return Do().selectPage(n),e.preventDefault()}),ko(1,Zb,0,0,"ng-template",17),Oo()}if(2&t){const t=Do().$implicit,e=Do(),l=jo(11);yo("tabindex",e.disabled?"-1":null)("aria-disabled",e.disabled?"true":null),Br(1),So("ngTemplateOutlet",(null==e.tplNumber?null:e.tplNumber.templateRef)||l)("ngTemplateOutletContext",(n=4,i=Kb,r=e.disabled,s=t,o=e.page,function(t,e,n,i,r,s,o,a){const l=e+n;return function(t,e,n,i,r){const s=bo(t,e,n,i);return vo(t,e+2,r)||s}(t,l,r,s,o)?go(t,l+3,a?i.call(a,r,s,o):i(r,s,o)):pc(t,l+3)}(Re(),qe(),n,i,r,s,o,a)))}var n,i,r,s,o,a}function Jb(t,e){if(1&t&&(xo(0,"li",15),ko(1,Wb,2,4,"a",19),ko(2,Qb,2,8,"a",20),Oo()),2&t){const t=e.$implicit,n=Do();Zo("active",t===n.page)("disabled",n.isEllipsis(t)||n.disabled),yo("aria-current",t===n.page?"page":null),Br(1),So("ngIf",n.isEllipsis(t)),Br(1),So("ngIf",!n.isEllipsis(t))}}function Yb(t,e){}function Xb(t,e){if(1&t){const t=zo();xo(0,"li",15),xo(1,"a",23),Ro("click",function(e){Ve(t);const n=Do();return n.selectPage(n.page+1),e.preventDefault()}),ko(2,Yb,0,0,"ng-template",17),Oo(),Oo()}if(2&t){const t=Do(),e=jo(5);Zo("disabled",t.nextDisabled()),Br(1),yo("tabindex",t.nextDisabled()?"-1":null)("aria-disabled",t.nextDisabled()?"true":null),Br(1),So("ngTemplateOutlet",(null==t.tplNext?null:t.tplNext.templateRef)||e)("ngTemplateOutletContext",hc(6,Lb,t.nextDisabled(),t.page))}}function ty(t,e){}function ey(t,e){if(1&t){const t=zo();xo(0,"li",15),xo(1,"a",24),Ro("click",function(e){Ve(t);const n=Do();return n.selectPage(n.pageCount),e.preventDefault()}),ko(2,ty,0,0,"ng-template",17),Oo(),Oo()}if(2&t){const t=Do(),e=jo(7);Zo("disabled",t.nextDisabled()),Br(1),yo("tabindex",t.nextDisabled()?"-1":null)("aria-disabled",t.nextDisabled()?"true":null),Br(1),So("ngTemplateOutlet",(null==t.tplLast?null:t.tplLast.templateRef)||e)("ngTemplateOutletContext",hc(6,Lb,t.nextDisabled(),t.page))}}function ny(t){return!isNaN(function(t){return parseInt(`${t}`,10)}(t))}function iy(t){return null!=t}function ry(t){return(t||document.body).offsetHeight}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});const sy={animation:!0,transitionTimerDelayMs:5};let oy=(()=>{class t{constructor(){this.animation=sy.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({factory:function(){return new t},token:t,providedIn:"root"}),t})();const ay=()=>{},{transitionTimerDelayMs:ly}=sy,cy=new Map,uy=(t,e,n,i)=>{let r=i.context||{};const s=cy.get(e);if(s)switch(i.runningTransition){case"continue":return Yp;case"stop":t.run(()=>s.transition$.complete()),r=Object.assign(s.context,r),cy.delete(e)}const o=n(e,i.animation,r)||ay;if(!i.animation||"none"===window.getComputedStyle(e).transitionProperty)return t.run(()=>o()),Gd(void 0).pipe(function(t){return e=>new b(n=>e.subscribe(e=>t.run(()=>n.next(e)),e=>t.run(()=>n.error(e)),()=>t.run(()=>n.complete())))}(t));const a=new j,c=new j,u=a.pipe(function(...t){return e=>Jp(e,Gd(...t))}(!0));cy.set(e,{transition$:a,complete:()=>{c.next(),c.complete()},context:r});const d=function(t){const{transitionDelay:e,transitionDuration:n}=window.getComputedStyle(t);return 1e3*(parseFloat(e)+parseFloat(n))}(e);return t.runOutsideAngular(()=>{const n=Av(e,"transitionend").pipe(bb(u),Wd(({target:t})=>t===e));(function(...t){if(1===t.length){if(!l(t[0]))return t[0];t=t[0]}return B(t,void 0).lift(new cb)})(function(t=0,e,n){let i=-1;return ab(e)?i=Number(e)<1?1:Number(e):S(e)&&(n=e),S(n)||(n=ob),new b(e=>{const r=ab(t)?t:+t-n.now();return n.schedule(lb,r,{index:0,period:i,subscriber:e})})}(d+ly).pipe(bb(u)),n,c).pipe(bb(u)).subscribe(()=>{cy.delete(e),t.run(()=>{o(),a.next(),a.complete()})})}),a.asObservable()};let dy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),hy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),py=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})(),fy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),my=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})();var gy=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",t}({});"undefined"!=typeof navigator&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const vy=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function by(t){const e=Array.from(t.querySelectorAll(vy)).filter(t=>-1!==t.tabIndex);return[e[0],e[e.length-1]]}new class{getAllStyles(t){return window.getComputedStyle(t)}getStyle(t,e){return this.getAllStyles(t)[e]}isStaticPositioned(t){return"static"===(this.getStyle(t,"position")||"static")}offsetParent(t){let e=t.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(t,e=!0){let n,i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n=t.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const e=this.offsetParent(t);n=this.offset(t,!1),e!==document.documentElement&&(i=this.offset(e,!1)),i.top+=e.clientTop,i.left+=e.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(t,e=!0){const n=t.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,r=window.pageXOffset-document.documentElement.clientLeft;let s={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+r,right:n.right+r};return e&&(s.height=Math.round(s.height),s.width=Math.round(s.width),s.top=Math.round(s.top),s.bottom=Math.round(s.bottom),s.left=Math.round(s.left),s.right=Math.round(s.right)),s}positionElements(t,e,n,i){const[r="top",s="center"]=n.split("-"),o=i?this.offset(t,!1):this.position(t,!1),a=this.getAllStyles(e),l=parseFloat(a.marginTop),c=parseFloat(a.marginBottom),u=parseFloat(a.marginLeft),d=parseFloat(a.marginRight);let h=0,p=0;switch(r){case"top":h=o.top-(e.offsetHeight+l+c);break;case"bottom":h=o.top+o.height;break;case"left":p=o.left-(e.offsetWidth+u+d);break;case"right":p=o.left+o.width}switch(s){case"top":h=o.top;break;case"bottom":h=o.top+o.height-e.offsetHeight;break;case"left":p=o.left;break;case"right":p=o.left+o.width-e.offsetWidth;break;case"center":"top"===r||"bottom"===r?p=o.left+o.width/2-e.offsetWidth/2:h=o.top+o.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(p)}px, ${Math.round(h)}px)`;const f=e.getBoundingClientRect(),m=document.documentElement,g=window.innerHeight||m.clientHeight,v=window.innerWidth||m.clientWidth;return f.left>=0&&f.top>=0&&f.right<=v&&f.bottom<=g}},new Date(1882,10,12),new Date(2174,10,25);let yy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd,Fp]]}),t})(),_y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Yt({type:t,selectors:[["",8,"navbar"]]}),t})(),wy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})(),ky=(()=>{class t{constructor(t){this._ngbConfig=t,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return t.\u0275fac=function(e){return new(e||t)(vi(oy))},t.\u0275prov=ft({factory:function(){return new t(vi(oy))},token:t,providedIn:"root"}),t})();class jy{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}const Cy=()=>{};let Sy=(()=>{class t{constructor(t){this._document=t}compensate(){const t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):Cy}_adjustBody(t){const e=this._document.body,n=e.style.paddingRight,i=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=`${i+t}px`,()=>e.style["padding-right"]=n}_isPresent(t){const e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}_getWidth(){const t=this._document.createElement("div");t.className="modal-scrollbar-measure";const e=this._document.body;e.appendChild(t);const n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n}}return t.\u0275fac=function(e){return new(e||t)(vi(Ru))},t.\u0275prov=ft({factory:function(){return new t(vi(Ru))},token:t,providedIn:"root"}),t})(),Py=(()=>{class t{constructor(t,e){this._el=t,this._zone=e}ngOnInit(){this._zone.onStable.asObservable().pipe(of(1)).subscribe(()=>{uy(this._zone,this._el.nativeElement,(t,e)=>{e&&ry(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return uy(this._zone,this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(Co(dl),Co(iu))},t.\u0275cmp=qt({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(t,e){2&t&&(Ko("modal-backdrop"+(e.backdropClass?" "+e.backdropClass:"")),Zo("show",!e.animation)("fade",e.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})();class xy{close(t){}dismiss(t){}}class Oy{constructor(t,e,n,i){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,this._beforeDismiss=i,this._closed=new j,this._dismissed=new j,this._hidden=new j,t.instance.dismissEvent.subscribe(t=>{this.dismiss(t)}),this.result=new Promise((t,e)=>{this._resolve=t,this._reject=e}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(bb(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(bb(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(e=>{!1!==e&&this._dismiss(t)},()=>{}):!1!==e&&this._dismiss(t)}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Gd(void 0);t.subscribe(()=>{const{nativeElement:t}=this._windowCmptRef.location;t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:t}=this._backdropCmptRef.location;t.parentNode.removeChild(t),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),hb(t,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Ey=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}({});let Iy=(()=>{class t{constructor(t,e,n){this._document=t,this._elRef=e,this._zone=n,this._closed$=new j,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new vc,this.shown=new j,this.hidden=new j}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){this._show()}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,e={animation:this.animation,runningTransition:"stop"},n=hb(uy(this._zone,t,()=>t.classList.remove("show"),e),uy(this._zone,this._dialogEl.nativeElement,()=>{},e));return n.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),n}_show(){const t={animation:this.animation,runningTransition:"continue"};hb(uy(this._zone,this._elRef.nativeElement,(t,e)=>{e&&ry(t),t.classList.add("show")},t),uy(this._zone,this._dialogEl.nativeElement,()=>{},t)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{Av(t,"keydown").pipe(bb(this._closed$),Wd(t=>t.which===gy.Escape)).subscribe(t=>{this.keyboard?requestAnimationFrame(()=>{t.defaultPrevented||this._zone.run(()=>this.dismiss(Ey.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let e=!1;Av(this._dialogEl.nativeElement,"mousedown").pipe(bb(this._closed$),xf(()=>e=!1),ef(()=>Av(t,"mouseup").pipe(bb(this._closed$),of(1))),Wd(({target:e})=>t===e)).subscribe(()=>{e=!0}),Av(t,"click").pipe(bb(this._closed$)).subscribe(({target:n})=>{t===n&&("static"===this.backdrop?this._bumpBackdrop():!0!==this.backdrop||e||this._zone.run(()=>this.dismiss(Ey.BACKDROP_CLICK))),e=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const e=t.querySelector("[ngbAutofocus]"),n=by(t)[0];(e||n||t).focus()}}_restoreFocus(){const t=this._document.body,e=this._elWithFocus;let n;n=e&&e.focus&&t.contains(e)?e:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&uy(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(Co(Ru),Co(dl),Co(iu))},t.\u0275cmp=qt({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(t,e){if(1&t&&function(t,e,n){const i=Me();i.firstCreatePass&&(Tc(i,new kc(t,3,void 0),-1),i.staticViewQueries=!0),zc(i,Re(),3)}(Ab),2&t){let t;Ec(t=Ac())&&(e._dialogEl=t.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,e){2&t&&(yo("aria-modal",!0)("aria-labelledby",e.ariaLabelledBy)("aria-describedby",e.ariaDescribedBy),Ko("modal d-block"+(e.windowClass?" "+e.windowClass:"")),Zo("fade",e.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:Ib,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,e){1&t&&(function(t){const e=Re()[16][6];if(!e.projection){const t=e.projection=oi(1,null),n=t.slice();let i=e.child;for(;null!==i;){const e=0;null!==e&&(n[e]?n[e].projectionNext=i:t[e]=i,n[e]=i),i=i.next}}}(),xo(0,"div",0,1),xo(2,"div",2),function(t,e=0,n){const i=Re(),r=Me(),s=ts(r,ne+t,16,null,n||null);null===s.projection&&(s.projection=e),He(),64!=(64&s.flags)&&function(t,e,n){Er(e[11],0,e,n,hr(t,n,e),br(n.parent||e[6],n,e))}(r,i,s)}(3),Oo(),Oo()),2&t&&Ko("modal-dialog"+(e.size?" modal-"+e.size:"")+(e.centered?" modal-dialog-centered":"")+(e.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{-ms-flex-direction:column;display:-ms-flexbox;display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),Ay=(()=>{class t{constructor(t,e,n,i,r,s){this._applicationRef=t,this._injector=e,this._document=n,this._scrollBar=i,this._rendererFactory=r,this._ngZone=s,this._activeWindowCmptHasChanged=new j,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new vc,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const t=this._windowCmpts[this._windowCmpts.length-1];((t,e,n,i=!1)=>{this._ngZone.runOutsideAngular(()=>{const t=Av(e,"focusin").pipe(bb(n),P(t=>t.target));Av(e,"keydown").pipe(bb(n),Wd(t=>t.which===gy.Tab),wb(t)).subscribe(([t,n])=>{const[i,r]=by(e);n!==i&&n!==e||!t.shiftKey||(r.focus(),t.preventDefault()),n!==r||t.shiftKey||(i.focus(),t.preventDefault())}),i&&Av(e,"click").pipe(bb(n),wb(t),P(t=>t[1])).subscribe(t=>t.focus())})})(0,t.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(t.location.nativeElement)}})}open(t,e,n,i){const r=i.container instanceof HTMLElement?i.container:iy(i.container)?this._document.querySelector(i.container):this._document.body,s=this._rendererFactory.createRenderer(null,null),o=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!r)throw new Error(`The specified modal container "${i.container||"body"}" was not found in the DOM.`);const l=new xy,c=this._getContentRef(t,i.injector||e,n,l,i);let u=!1!==i.backdrop?this._attachBackdrop(t,r):void 0,d=this._attachWindowComponent(t,r,c),h=new Oy(d,c,u,i.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(d),h.result.then(o,o),h.result.then(a,a),l.close=t=>{h.close(t)},l.dismiss=t=>{h.dismiss(t)},this._applyWindowOptions(d.instance,i),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&this._applyBackdropOptions(u.instance,i),h}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(e=>e.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,e){let n=t.resolveComponentFactory(Py).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}_attachWindowComponent(t,e,n){let i=t.resolveComponentFactory(Iy).create(this._injector,n.nodes);return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_applyWindowOptions(t,e){this._windowAttributes.forEach(n=>{iy(e[n])&&(t[n]=e[n])})}_applyBackdropOptions(t,e){this._backdropAttributes.forEach(n=>{iy(e[n])&&(t[n]=e[n])})}_getContentRef(t,e,n,i,r){return n?n instanceof $l?this._createFromTemplateRef(n,i):"string"==typeof n?this._createFromString(n):this._createFromComponent(t,e,n,i,r):new jy([])}_createFromTemplateRef(t,e){const n=t.createEmbeddedView({$implicit:e,close(t){e.close(t)},dismiss(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new jy([n.rootNodes],n)}_createFromString(t){const e=this._document.createTextNode(`${t}`);return new jy([[e]])}_createFromComponent(t,e,n,i,r){const s=t.resolveComponentFactory(n),o=io.create({providers:[{provide:xy,useValue:i}],parent:e}),a=s.create(o),l=a.location.nativeElement;return r.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new jy([[l]],a.hostView,a)}_setAriaHidden(t){const e=t.parentElement;e&&t!==this._document.body&&(Array.from(e.children).forEach(e=>{e!==t&&"SCRIPT"!==e.nodeName&&(this._ariaHiddenValues.set(e,e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}),this._setAriaHidden(e))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const e=()=>{const e=this._modalRefs.indexOf(t);e>-1&&(this._modalRefs.splice(e,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(e,e)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const e=this._windowCmpts.indexOf(t);e>-1&&(this._windowCmpts.splice(e,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(vi(ju),vi(io),vi(Ru),vi(Sy),vi(pl),vi(iu))},t.\u0275prov=ft({factory:function(){return new t(vi(ju),vi(Fs),vi(Ru),vi(Sy),vi(pl),vi(iu))},token:t,providedIn:"root"}),t})(),zy=(()=>{class t{constructor(t,e,n,i){this._moduleCFR=t,this._injector=e,this._modalStack=n,this._config=i}open(t,e={}){const n=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(vi(al),vi(io),vi(Ay),vi(ky))},t.\u0275prov=ft({factory:function(){return new t(vi(al),vi(Fs),vi(Ay),vi(ky))},token:t,providedIn:"root"}),t})(),Ty=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[zy]}),t})(),Ny=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),Ry=(()=>{class t{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({factory:function(){return new t},token:t,providedIn:"root"}),t})(),My=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Co($l))},t.\u0275dir=Yt({type:t,selectors:[["ng-template","ngbPaginationEllipsis",""]]}),t})(),Vy=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Co($l))},t.\u0275dir=Yt({type:t,selectors:[["ng-template","ngbPaginationFirst",""]]}),t})(),Dy=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Co($l))},t.\u0275dir=Yt({type:t,selectors:[["ng-template","ngbPaginationLast",""]]}),t})(),Uy=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Co($l))},t.\u0275dir=Yt({type:t,selectors:[["ng-template","ngbPaginationNext",""]]}),t})(),Ly=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Co($l))},t.\u0275dir=Yt({type:t,selectors:[["ng-template","ngbPaginationNumber",""]]}),t})(),Fy=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Co($l))},t.\u0275dir=Yt({type:t,selectors:[["ng-template","ngbPaginationPrevious",""]]}),t})(),$y=(()=>{class t{constructor(t){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new vc(!0),this.disabled=t.disabled,this.boundaryLinks=t.boundaryLinks,this.directionLinks=t.directionLinks,this.ellipses=t.ellipses,this.maxSize=t.maxSize,this.pageSize=t.pageSize,this.rotate=t.rotate,this.size=t.size}hasPrevious(){return this.page>1}hasNext(){return this.page0&&(t>2?this.pages.unshift(-1):2===t&&this.pages.unshift(2),this.pages.unshift(1)),e0&&this.pageCount>this.maxSize){let t=0,e=this.pageCount;[t,e]=this.rotate?this._applyRotation():this._applyPagination(),this.pages=this.pages.slice(t,e),this._applyEllipses(t,e)}}}return t.\u0275fac=function(e){return new(e||t)(Co(Ry))},t.\u0275cmp=qt({type:t,selectors:[["ngb-pagination"]],contentQueries:function(t,e,n){if(1&t&&(Ic(n,My,1),Ic(n,Vy,1),Ic(n,Dy,1),Ic(n,Uy,1),Ic(n,Ly,1),Ic(n,Fy,1)),2&t){let t;Ec(t=Ac())&&(e.tplEllipsis=t.first),Ec(t=Ac())&&(e.tplFirst=t.first),Ec(t=Ac())&&(e.tplLast=t.first),Ec(t=Ac())&&(e.tplNext=t.first),Ec(t=Ac())&&(e.tplNumber=t.first),Ec(t=Ac())&&(e.tplPrevious=t.first)}},hostAttrs:["role","navigation"],inputs:{page:"page",disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",maxSize:"maxSize",pageSize:"pageSize",rotate:"rotate",size:"size",collectionSize:"collectionSize"},outputs:{pageChange:"pageChange"},features:[he],decls:18,vars:7,consts:function(){let t,e,n,i,r,s,o,a;return t=$localize`:@@ngb.pagination.first␟656506dfd46380956a655f919f1498d018f75ca0␟6867721956102594380:««`,e=$localize`:@@ngb.pagination.previous␟6e52b6ee77a4848d899dd21b591c6fd499e3aef3␟6479320895410098858:«`,n=$localize`:@@ngb.pagination.next␟ba9cbb4ff311464308a3627e4f1c3345d9fe6d7d␟5458177150283468089:»`,i=$localize`:@@ngb.pagination.last␟49f27a460bc97e7e00be5b37098bfa79884fc7d9␟5277020320267646988:»»`,r=$localize`:@@ngb.pagination.first-aria␟f2f852318759c6396b5d3d17031d53817d7b38cc␟2241508602425256033:First`,s=$localize`:@@ngb.pagination.previous-aria␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`,o=$localize`:@@ngb.pagination.next-aria␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`,a=$localize`:@@ngb.pagination.last-aria␟5c729788ba138508aca1bec050b610f7bf81db3e␟4882268002141858767:Last`,[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["class","page-item",3,"disabled",4,"ngIf"],["class","page-item",3,"active","disabled",4,"ngFor","ngForOf"],["aria-hidden","true"],t,e,n,i,["class","sr-only",4,"ngIf"],[1,"sr-only"],[1,"page-item"],["aria-label",r,"href","",1,"page-link",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-label",s,"href","",1,"page-link",3,"click"],["class","page-link","tabindex","-1","aria-disabled","true",4,"ngIf"],["class","page-link","href","",3,"click",4,"ngIf"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",o,"href","",1,"page-link",3,"click"],["aria-label",a,"href","",1,"page-link",3,"click"]]},template:function(t,e){1&t&&(ko(0,zb,2,0,"ng-template",null,0,Rc),ko(2,Tb,2,0,"ng-template",null,1,Rc),ko(4,Nb,2,0,"ng-template",null,2,Rc),ko(6,Rb,2,0,"ng-template",null,3,Rc),ko(8,Mb,1,0,"ng-template",null,4,Rc),ko(10,Db,2,2,"ng-template",null,5,Rc),xo(12,"ul"),ko(13,Fb,3,9,"li",6),ko(14,Bb,3,8,"li",6),ko(15,Jb,3,7,"li",7),ko(16,Xb,3,9,"li",6),ko(17,ey,3,9,"li",6),Oo()),2&t&&(Br(12),Ko("pagination"+(e.size?" pagination-"+e.size:"")),Br(1),So("ngIf",e.boundaryLinks),Br(1),So("ngIf",e.directionLinks),Br(1),So("ngForOf",e.pages),Br(1),So("ngIf",e.directionLinks),Br(1),So("ngIf",e.boundaryLinks))},directives:[ad,sd,ud],encapsulation:2,changeDetection:0}),t})(),Hy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),By=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),Gy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),qy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),Wy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),Zy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),Ky=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})();new Xn("live announcer delay",{providedIn:"root",factory:function(){return 100}});let Qy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})();const Jy=[dy,hy,py,fy,my,yy,wy,Ty,Ny,Hy,By,Gy,qy,Wy,Zy,Ky,Qy];let Yy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[Jy,dy,hy,py,fy,my,yy,wy,Ty,Ny,Hy,By,Gy,qy,Wy,Zy,Ky,Qy]}),t})(),Xy=(()=>{class t{constructor(t,e,n){this.adminPodatkiStoritev=t,this.pot=e,this.activeModal=n,this.profesorAsistent={_id:"",ime_priimek:"",akademskiNaziv:"",izobrazba:"",e_mail:"",opis:""}}ngOnInit(){this.pot.paramMap.pipe(ef(t=>(this.idOseba=this.idInput,this.adminPodatkiStoritev.pridobiOsebje()))).subscribe(t=>{this.osebje=t;const e=t.find(t=>t._id===this.idOseba);this.profesorAsistent._id=e._id,this.profesorAsistent.ime_priimek=e.ime_priimek,this.profesorAsistent.akademskiNaziv=e.akademskiNaziv,this.profesorAsistent.izobrazba=e.izobrazba,this.profesorAsistent.e_mail=e.e_mail,this.profesorAsistent.opis=e.opis})}}return t.\u0275fac=function(e){return new(e||t)(Co(eb),Co(Vm),Co(xy))},t.\u0275cmp=qt({type:t,selectors:[["app-osebje"]],inputs:{idInput:"idInput"},decls:30,vars:7,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close","text-white",3,"click"],["aria-hidden","true"],[1,"form-moduli"],[1,"form-group","col-12"],[1,"d-flex"],[1,"flex-fill"],["type","button","ngbAutofocus","",1,"btn","btn-danger","btn-block","my-3",3,"click"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h4",1),oa(2),mc(3,"uppercase"),Oo(),xo(4,"button",2),Ro("click",function(){return e.activeModal.dismiss("Cross click")}),xo(5,"span",3),oa(6,"\xd7"),Oo(),Oo(),Oo(),xo(7,"div"),xo(8,"div",4),xo(9,"div",5),xo(10,"p"),xo(11,"b"),oa(12,"AKADEMSKI NAZIV:"),Oo(),oa(13),Oo(),xo(14,"p"),xo(15,"b"),oa(16,"IZOBRAZBA: "),Oo(),oa(17),Oo(),xo(18,"p"),xo(19,"b"),oa(20,"E-MAIL:"),Oo(),oa(21),Oo(),xo(22,"p"),xo(23,"b"),oa(24,"OPIS:"),Oo(),oa(25),Oo(),xo(26,"div",6),xo(27,"span",7),xo(28,"button",8),Ro("click",function(){return e.activeModal.dismiss("Prekli\u010di click")}),oa(29,"Zapri"),Oo(),Oo(),Oo(),Oo(),Oo(),Oo()),2&t&&(Br(2),aa(gc(3,5,e.profesorAsistent.ime_priimek)),Br(11),la(" ",e.profesorAsistent.akademskiNaziv,""),Br(4),la(" ",e.profesorAsistent.izobrazba,""),Br(4),la(" ",e.profesorAsistent.e_mail,""),Br(4),la(" ",e.profesorAsistent.opis,""))},pipes:[dd],styles:[".card-naslov[_ngcontent-%COMP%]{color:#000;background-color:#b2d39c;margin-bottom:10px}.card-elementi[_ngcontent-%COMP%], .list-group-item[_ngcontent-%COMP%]{background-color:#4e555b}.card[_ngcontent-%COMP%]{border-radius:25px}"]}),t})(),t_=(()=>{class t{constructor(t){this.http=t,this.apiUrl=Ov}generirajUrlZaPoizvedbo(t,e,n,i,r){let s=new eh;return s=s.set("iskalniIzraz",t),s=s.set("predmeti",e.toString()),s=s.set("osebje",n.toString()),s=s.set("limit",i.toString()),s=s.set("offset",r.toString()),s.toString()}pridobiZadetke(t){return this.http.get(`${this.apiUrl}/iskanje?`+t).toPromise().then(t=>t).catch(this.obdelajNapako)}obdelajNapako(t){let e=t.message;return null!=t.error&&null!=t.error.sporocilo?e=t.error.sporocilo:null!=t.error&&null!=t.error.sporo\u010dilo&&(e=t.error.sporo\u010dilo),console.error("Pri\u0161lo je do napake",t),Promise.reject(e)}}return t.\u0275fac=function(e){return new(e||t)(vi(hh))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function e_(t,e){if(1&t&&(xo(0,"div",20),oa(1),Oo()),2&t){const t=Do().$implicit;Br(1),aa(t.ime)}}function n_(t,e){if(1&t&&(xo(0,"div",21),oa(1),Oo()),2&t){const t=Do().$implicit;Lo("routerLink","../predmeti/",t._id,""),Br(1),aa(t.ime)}}function i_(t,e){if(1&t){const t=zo();xo(0,"div",22),Ro("click",function(){Ve(t);const e=Do().$implicit;return Do().openOsebje(e._id)}),oa(1),Oo()}if(2&t){const t=Do().$implicit;Br(1),aa(t.ime_priimek)}}function r_(t,e){if(1&t&&(xo(0,"div"),ko(1,e_,2,1,"div",17),ko(2,n_,2,2,"div",18),ko(3,i_,2,1,"div",19),Oo()),2&t){const t=e.$implicit;Br(1),So("ngIf","gradivo"==t.tip),Br(1),So("ngIf","predmet"==t.tip),Br(1),So("ngIf","osebje"==t.tip)}}function s_(t,e){if(1&t){const t=zo();xo(0,"ngb-pagination",23),Ro("pageChange",function(e){return Ve(t),Do().page=e})("pageChange",function(){Ve(t);const e=Do();return e.onPageChange(e.page)}),Oo()}if(2&t){const t=Do();So("collectionSize",t.vseh)("page",t.page)("ellipses",!1)("boundaryLinks",!0)}}function o_(t,e){1&t&&(xo(0,"p"),oa(1,"Za ta iskalni niz ni rezultatov"),Oo())}const a_=function(){return{standalone:!0}},l_=function(t,e){return{"btn-predmet":t,"btn-predmet-outline":e}},c_=function(t,e){return{"btn-osebje":t,"btn-osebje-outline":e}};let u_=(()=>{class t{constructor(t,e,n,i,r,s){this.pot=t,this.iskanjeStoritev=e,this.modalService=n,this.povezavaStoritev=i,this.location=r,this.router=s,this.predmetiFilter=!0,this.osebjeFilter=!0,this.page=1,this.pageSize=10,this.zadetki=[]}openOsebje(t){this.modalService.open(Xy,{centered:!0,size:"md"}).componentInstance.idInput=t}jePovezava(){return this.povezavaStoritev.jePovezava}onPageChange(t){this.page=t,this.iskanje()}iskanje(){var t=this.generirajUrl();this.iskanjeStoritev.pridobiZadetke(t).then(e=>{this.zadetki=e.zadetki,this.vseh=e.vseh,this.location.go("iskanje?"+t),console.log(e)}).catch(t=>this.sporociloNapaka=t)}generirajUrl(){return this.iskanjeStoritev.generirajUrlZaPoizvedbo(this.iskalniIzraz,this.predmetiFilter,this.osebjeFilter,this.pageSize,(this.page-1)*this.pageSize)}ngOnInit(){this.pot.queryParams.subscribe(t=>{this.iskalniIzraz=t.iskalniIzraz,this.iskalniIzraz||(this.iskalniIzraz=""),this.iskanje()})}}return t.\u0275fac=function(e){return new(e||t)(Co(Vm),Co(t_),Co(zy),Co(Tv),Co(Qu),Co(nv))},t.\u0275cmp=qt({type:t,selectors:[["app-iskanje"]],decls:24,vars:19,consts:[[1,"col-md-12","col-lg-12"],[1,"col-sm-12","col-md-9","col-xl-9"],["action","/iskanje","method","get",1,"d-inline"],[1,"input-group"],["type","text","placeholder","Iskanje",1,"form-control",3,"ngModel","ngModelOptions","disabled","ngModelChange"],[1,"input-group-append"],[1,"btn","btn-secondary",3,"disabled","click"],[1,"fa","fa-search"],[1,"float-left","mt-4"],[1,"ml-3"],[1,"btn","m-3",3,"ngClass","click"],[1,"ena-vrstica","mb-3","py-2","col-sm-12","col-md-9","col-xl-9","text-center"],[1,"alert","alert-warning","col-sm-12","col-md-9","col-xl-9",2,"margin-left","10px",3,"hidden"],[4,"ngFor","ngForOf"],[1,"m-3","col-sm-12","col-md-9","col-xl-9"],["class","",3,"collectionSize","page","ellipses","boundaryLinks","pageChange",4,"ngIf"],[4,"ngIf"],["class","ena-vrstica-gradivo col-sm-12 col-md-9 col-xl-9 text-center hoverNoLink",4,"ngIf"],["class","ena-vrstica-predmet col-sm-12 col-md-9 col-xl-9 text-center hoverNoLink",3,"routerLink",4,"ngIf"],["class","ena-vrstica-osebje col-sm-12 col-md-9 col-xl-9 text-center hoverNoLink",3,"click",4,"ngIf"],[1,"ena-vrstica-gradivo","col-sm-12","col-md-9","col-xl-9","text-center","hoverNoLink"],[1,"ena-vrstica-predmet","col-sm-12","col-md-9","col-xl-9","text-center","hoverNoLink",3,"routerLink"],[1,"ena-vrstica-osebje","col-sm-12","col-md-9","col-xl-9","text-center","hoverNoLink",3,"click"],[1,"",3,"collectionSize","page","ellipses","boundaryLinks","pageChange"]],template:function(t,e){1&t&&(xo(0,"main",0),xo(1,"div",1),xo(2,"form",2),xo(3,"div",3),xo(4,"input",4),Ro("ngModelChange",function(t){return e.iskalniIzraz=t}),Oo(),xo(5,"div",5),xo(6,"button",6),Ro("click",function(){return e.iskanje()}),Eo(7,"i",7),Oo(),Oo(),Oo(),Oo(),Oo(),xo(8,"span"),xo(9,"span",8),xo(10,"p",9),oa(11,"filtriranje rezultatov:"),Oo(),Oo(),xo(12,"button",10),Ro("click",function(){return e.predmetiFilter=!e.predmetiFilter}),oa(13,"predmeti"),Oo(),xo(14,"button",10),Ro("click",function(){return e.osebjeFilter=!e.osebjeFilter}),oa(15,"osebje"),Oo(),Oo(),xo(16,"div",11),oa(17),Oo(),xo(18,"div",12),oa(19),Oo(),ko(20,r_,4,3,"div",13),xo(21,"div",14),ko(22,s_,1,4,"ngb-pagination",15),Oo(),ko(23,o_,2,0,"p",16),Oo()),2&t&&(Br(4),So("ngModel",e.iskalniIzraz)("ngModelOptions",uc(12,a_))("disabled",!e.jePovezava()),Br(2),So("disabled",!e.jePovezava()),Br(6),So("ngClass",hc(13,l_,e.predmetiFilter,!e.predmetiFilter)),Br(2),So("ngClass",hc(16,c_,e.osebjeFilter,!e.osebjeFilter)),Br(3),la('Rezultati iskanja za: "',e.iskalniIzraz,'"'),Br(1),So("hidden",!e.sporociloNapaka),Br(1),aa(e.sporociloNapaka),Br(1),So("ngForOf",e.zadetki),Br(2),So("ngIf",e.vseh>10),Br(1),So("ngIf",0==(null==e.zadetki?null:e.zadetki.length)))},directives:[Sp,tp,wp,Rh,Xh,Cp,id,sd,ad,iv,$y],styles:[""]}),t})(),d_=(()=>{class t{constructor(t,e){this.http=t,this.shramba=e,this.apiUrl=Ov,this.url="db"}vnesiPodatke(){const t={headers:new Yd({Authorization:`Bearer ${this.shramba.getItem("karjola-zeton")}`})};return this.http.post(`${this.apiUrl}/${this.url}`,"",t).toPromise().then(t=>t).catch(this.obdelajNapako)}izbrisiPodatke(){const t={headers:new Yd({Authorization:`Bearer ${this.shramba.getItem("karjola-zeton")}`})};return this.http.delete(`${this.apiUrl}/${this.url}`,t).toPromise().then(t=>t).catch(this.obdelajNapako)}obdelajNapako(t){return console.error("Pri\u0161lo je do napake",t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t),Promise.reject(t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t)}}return t.\u0275fac=function(e){return new(e||t)(vi(hh),vi(xv))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function h_(t,e){1&t&&(xo(0,"div",7),oa(1," Brisanje baze je na voljo le administratorju. "),Oo())}function p_(t,e){1&t&&(xo(0,"div",7),oa(1," Ni niti ni povezave, da bi kaj smiselnega naredil. :D "),Oo())}function f_(t,e){if(1&t){const t=zo();xo(0,"form",8),Ro("submit",function(){return Ve(t),Do().vnesiPodatke()}),xo(1,"button",9),oa(2,"Vnos za\u010detnih podatkov"),Oo(),Oo()}if(2&t){const t=Do();Br(1),So("disabled",!t.jePovezava())}}function m_(t,e){if(1&t){const t=zo();xo(0,"form",8),Ro("submit",function(){return Ve(t),Do().izbrisiPodatke()}),xo(1,"button",10),oa(2,"Izbris vsebine podatkovne baze"),Oo(),Oo()}if(2&t){const t=Do();Br(1),So("disabled",!t.jePovezava())}}function g_(t,e){if(1&t&&(xo(0,"div",11),oa(1),Oo()),2&t){const t=Do();Br(1),la(" ",t.napakaNaObrazcu," ")}}function v_(t,e){1&t&&(xo(0,"div",12),oa(1," Operacija uspe\u0161no narejena! "),Oo())}let b_=(()=>{class t{constructor(t,e,n,i,r){this.avtentikacijaStoritev=t,this.podatkovnaBazaStoritev=e,this.povezavaStoritev=n,this.usmerjevalnik=i,this.zgodovinaStoritev=r,this.jeVnosViden=!0,this.jeIzbrisViden=!0,this.uspesnoObvestilo=!1}ngOnInit(){}vnesiPodatke(){this.uspesnoObvestilo=!1,this.napakaNaObrazcu="",this.podatkovnaBazaStoritev.vnesiPodatke().then(()=>{this.uspesnoObvestilo=!0,this.jeVnosViden=!1,this.jeIzbrisViden=!0}).catch(t=>{this.napakaNaObrazcu=t,this.uspesnoObvestilo=!1})}izbrisiPodatke(){this.napakaNaObrazcu="",this.uspesnoObvestilo=!1,this.podatkovnaBazaStoritev.izbrisiPodatke().then(()=>{this.uspesnoObvestilo=!0,this.jeIzbrisViden=!1,this.jeVnosViden=!0}).catch(t=>{this.napakaNaObrazcu=t,this.uspesnoObvestilo=!1})}jeAdmin(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return!!t&&t.jeAdmin}jePrijavljen(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return!!t&&t.jeAdmin}jePovezava(){return this.povezavaStoritev.jePovezava}}return t.\u0275fac=function(e){return new(e||t)(Co(Iv),Co(d_),Co(Tv),Co(nv),Co(Nv))},t.\u0275cmp=qt({type:t,selectors:[["app-podatkovna-baza"]],decls:15,vars:6,consts:[[1,"content","bg-dark","p-3"],[1,"content","p-3"],[1,"formtitle"],["class","alert alert-info","role","alert",4,"ngIf"],[3,"submit",4,"ngIf"],["class","alert alert-danger","role","alert",4,"ngIf"],["class","alert alert-success","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-info"],[3,"submit"],["type","submit","id","izbris",1,"btn","btn-success","pb",3,"disabled"],["type","submit","id","izbris",1,"btn","btn-danger","pb",3,"disabled"],["role","alert",1,"alert","alert-danger"],["role","alert",1,"alert","alert-success"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"div",1),xo(2,"h2",2),oa(3,"Vnos za\u010detnih podatkov"),Oo(),Eo(4,"br"),ko(5,h_,2,0,"div",3),ko(6,p_,2,0,"div",3),ko(7,f_,3,1,"form",4),Eo(8,"br"),Eo(9,"br"),ko(10,m_,3,1,"form",4),Eo(11,"br"),ko(12,g_,2,1,"div",5),Eo(13,"br"),ko(14,v_,2,0,"div",6),Oo(),Oo()),2&t&&(Br(5),So("ngIf",!e.jeAdmin()),Br(1),So("ngIf",!e.jePovezava()),Br(1),So("ngIf",e.jeVnosViden&&e.jePovezava()),Br(3),So("ngIf",e.jeAdmin()&&e.jeIzbrisViden&&e.jePovezava()),Br(2),So("ngIf",e.napakaNaObrazcu),Br(2),So("ngIf",e.uspesnoObvestilo))},directives:[ad,Sp,tp,wp],styles:[""]}),t})(),y_=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qt({type:t,selectors:[["app-splosni-pogoji"]],decls:9,vars:0,consts:[[1,"content","bg-dark"],[1,"p-3"],[1,"h3","p-3"],[1,"content","bg-darkerBg","p-3","my-3"],[1,"h4"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"div",1),xo(2,"p",2),oa(3,"SPLO\u0160NI POGOJI"),Oo(),xo(4,"div",3),xo(5,"p",4),oa(6,"PRAVICE IN DOL\u017dNOSTI"),Oo(),xo(7,"p"),oa(8,"Lorem ipsum"),Oo(),Oo(),Oo(),Oo())},styles:[""]}),t})(),__=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qt({type:t,selectors:[["app-potrditev-obnove-gesla"]],decls:2,vars:0,template:function(t,e){1&t&&(xo(0,"p"),oa(1," potrditev-obnove-gesla works!\n"),Oo())},styles:[""]}),t})();function w_(t,e){if(1&t&&(xo(0,"div"),xo(1,"strong",3),oa(2),Oo(),xo(3,"span",4),oa(4,"Nisi prijavljen ali ni povezave!"),Oo(),Oo()),2&t){const t=Do();Br(2),aa(t.napaka)}}function k_(t,e){if(1&t&&(xo(0,"p"),oa(1),Oo()),2&t){const t=Do(2);Br(1),la("UPORABNI\u0160KO IME: ",t.uporabnik.ime,"")}}function j_(t,e){if(1&t&&(xo(0,"p"),oa(1),Oo()),2&t){const t=Do(2);Br(1),la("E-PO\u0160TNI NASLOV: ",t.uporabnik.ePosta,"")}}function C_(t,e){if(1&t){const t=zo();xo(0,"form",11),Ro("submit",function(){return Ve(t),Do(2).nastaviNovoGeslo()}),Eo(1,"input",12),xo(2,"div",13),xo(3,"label",14),oa(4,"TRENUTNO GESLO"),Oo(),xo(5,"input",15),Ro("ngModelChange",function(e){return Ve(t),Do(2).uporabniskiPodatki.trenutnoGeslo=e}),Oo(),Oo(),xo(6,"div",13),xo(7,"label",14),oa(8,"NOVO GESLO"),Oo(),xo(9,"input",16),Ro("ngModelChange",function(e){return Ve(t),Do(2).uporabniskiPodatki.novoGeslo=e}),Oo(),Oo(),xo(10,"div",13),xo(11,"label",14),oa(12,"POTRDITEV GESLA"),Oo(),xo(13,"input",17),Ro("ngModelChange",function(e){return Ve(t),Do(2).uporabniskiPodatki.potrdiNovoGeslo=e}),Oo(),Oo(),xo(14,"button",18),oa(15,"Spremeni geslo"),Oo(),Oo()}if(2&t){const t=Do(2);Br(5),So("ngModel",t.uporabniskiPodatki.trenutnoGeslo)("disabled",!t.jePovezava()),Br(4),So("ngModel",t.uporabniskiPodatki.novoGeslo)("disabled",!t.jePovezava()),Br(4),So("ngModel",t.uporabniskiPodatki.potrdiNovoGeslo)("disabled",!t.jePovezava()),Br(1),So("disabled",!t.jePovezava())}}function S_(t,e){if(1&t){const t=zo();xo(0,"form",19),Ro("submit",function(){return Ve(t),Do(2).odjava()}),xo(1,"button",20),oa(2),Oo(),Oo()}if(2&t){const t=Do(2);Br(1),So("disabled",!t.jePovezava()&&t.jeTrenutni()),Br(1),la('Odjavi se "',t.uporabnik.ime,'"')}}function P_(t,e){if(1&t){const t=zo();xo(0,"form",19),Ro("submit",function(){return Ve(t),Do(2).izbrisiUporabnika()}),xo(1,"button",20),oa(2),Oo(),Oo()}if(2&t){const t=Do(2);Br(1),So("disabled",!t.jePovezava()),Br(1),la('Izbris uporabnika "',t.uporabnik.ime,'" ')}}function x_(t,e){if(1&t&&(xo(0,"div",21),xo(1,"strong",3),oa(2),Oo(),xo(3,"span",4),oa(4),Oo(),Oo()),2&t){const t=Do(2);Br(2),aa(t.napaka),Br(2),aa(t.napakaNaObrazcu)}}function O_(t,e){if(1&t&&(xo(0,"div",22),xo(1,"strong",3),oa(2),Oo(),Eo(3,"span",4),Oo()),2&t){const t=Do(2);Br(2),aa(t.sporocilo)}}function E_(t,e){if(1&t&&(xo(0,"div",5),xo(1,"p",6),oa(2,"UPORABNI\u0160KE NASTAVITVE"),Oo(),ko(3,k_,2,1,"p",1),ko(4,j_,2,1,"p",1),ko(5,C_,16,7,"form",7),ko(6,S_,3,2,"form",8),Eo(7,"br"),ko(8,P_,3,2,"form",8),Eo(9,"br"),ko(10,x_,5,2,"div",9),ko(11,O_,4,1,"div",10),Oo()),2&t){const t=Do();Br(3),So("ngIf",(t.jeTrenutni()||t.jeAdmin())&&t.obstaja),Br(1),So("ngIf",(t.jeTrenutni()||t.jeAdmin())&&t.obstaja),Br(1),So("ngIf",t.jeTrenutni()),Br(1),So("ngIf",t.jeTrenutni()),Br(2),So("ngIf",t.jeTrenutni()&&t.jePovezava()),Br(2),So("ngIf",t.napakaNaObrazcu),Br(1),So("ngIf",t.uspesnoObvestilo)}}let I_=(()=>{class t{constructor(t,e,n,i,r,s){this.avtentikacijaStoritev=t,this.povezavaStoritev=e,this.uporabnikPodatkiStoritev=n,this.zgodovinaStoritev=i,this.usmerjevalnik=r,this.pot=s,this.uporabnik={ime:"Ta id te je pripeljal na neobstoje\u010dega uporabnika.",ePosta:"Preveri id in/ali se obrni admine."},this.uspesnoObvestilo=!1,this.obstaja=!1,this.uporabniskiPodatki={trenutnoGeslo:"",novoGeslo:"",potrdiNovoGeslo:"",idUporabnika:""}}nastaviNapako(t,e){this.napakaNaObrazcu=e,this.napaka=t}pridobiUporabnika(t){this.uspesnoObvestilo=!1,this.sporocilo=" Pridobivam uporabnika.",this.uporabnikPodatkiStoritev.pridobiUporabnika(t).then(t=>{this.obstaja=!0,this.uporabnik.ime=t.uporabniskoIme,this.uporabnik.ePosta=t.ePosta,this.sporocilo="Zdravo!",this.uspesnoObvestilo=!0}).catch(t=>{this.napakaNaObrazcu=t,this.obstaja=!1})}ngOnInit(){for(;!this.jePovezava(););this.pot.paramMap.subscribe(t=>{this.id=t.get("idUporabnika")}),this.pridobiUporabnika(this.id)}odjava(){this.avtentikacijaStoritev.odjava(),this.sporocilo="Odjava uspe\u0161na. Navigiraj na naslednjo stran!",this.usmerjevalnik.navigateByUrl(this.zgodovinaStoritev.vrniPredhodnjeUrlNasloveBrezIzbranih())}jePrijavljen(){return this.avtentikacijaStoritev.jePrijavljen()}vrniUporabnika(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return t?t.uporabniskoIme:"Anonimen uporabnik"}vrniEposto(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return t?t.ePosta:"Ni elektronske po\u0161te"}vrniId(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return t?t._id:"Ni identitete"}jeTrenutni(){return this.id==this.vrniId()}jeAdmin(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return!!t&&t.jeAdmin}jePovezava(){return this.povezavaStoritev.jePovezava}nastaviNovoGeslo(){this.sporocilo="",this.uspesnoObvestilo=!1,this.nastaviNapako("",""),this.jePovezava()?""!=this.uporabniskiPodatki.trenutnoGeslo&&""!=this.uporabniskiPodatki.novoGeslo&&""!=this.uporabniskiPodatki.potrdiNovoGeslo?new RegExp(/<\/?[a-z][\s\S]*>/i).test(this.uporabniskiPodatki.trenutnoGeslo)||new RegExp(/<\/?[a-z][\s\S]*>/i).test(this.uporabniskiPodatki.novoGeslo)?this.nastaviNapako("Nedovoljeni znaki!"," Uporabnisko ime, naslov ali kraj vsebuje nedovoljene znake"):new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@\u20ac#$%^&*])(?=.{8,})").test(this.uporabniskiPodatki.novoGeslo)&&this.uporabniskiPodatki.novoGeslo==this.uporabniskiPodatki.potrdiNovoGeslo?(this.uporabniskiPodatki.idUporabnika=this.vrniId(),this.uporabnikPodatkiStoritev.spremeniGeslo(this.uporabniskiPodatki).then(()=>{this.uspesnoObvestilo=!0,this.sporocilo="Sprememba gesla uspe\u0161na!",this.uporabniskiPodatki.trenutnoGeslo="",this.uporabniskiPodatki.novoGeslo="",this.uporabniskiPodatki.potrdiNovoGeslo=""}).catch(t=>this.napakaNaObrazcu=t)):this.nastaviNapako("Geslo ni vredu!"," Geslo mora ustrezati naslednjim kriterijem: Geslo more vsebovati vsaj eno veliko in eno majhno \u010drko. Geslo mora vsebovati vsaj eno \u0161tevilko in biti dolgo 8 znakov, hkrati pa naj vsebuje specialni znak glej regex (^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@\u20ac#$%^&*])(?=.{8,})). Prav tako poskrbi, da bo v obe polji vpisano isto geslo."):this.nastaviNapako("Manjkajo\u010di podatki!"," Preveri manjkajo\u010de podatke in jih izpolni."):this.nastaviNapako("Ni povezave","Vzpostavi povezavo z internetom.")}izbrisiUporabnika(){this.uspesnoObvestilo=!1,this.sporocilo="",this.jePovezava()?this.uporabnikPodatkiStoritev.izbrisiUporabnika(this.id).then(()=>{this.avtentikacijaStoritev.odjava(),this.uspesnoObvestilo=!0,this.sporocilo="Uporabnik uspe\u0161no izbrisan!",this.usmerjevalnik.navigateByUrl(this.zgodovinaStoritev.vrniPredhodnjeUrlNasloveBrezIzbranih())}).catch(t=>this.napakaNaObrazcu=t):this.nastaviNapako("Ni povezave","Vzpostavi povezavo z internetom.")}}return t.\u0275fac=function(e){return new(e||t)(Co(Iv),Co(Tv),Co(Ev),Co(Nv),Co(nv),Co(Vm))},t.\u0275cmp=qt({type:t,selectors:[["app-uporabnik"]],decls:3,vars:2,consts:[[1,"content","bg-dark","p-3"],[4,"ngIf"],["class","container",4,"ngIf"],["id","danger-strong"],["id","danger-navadno"],[1,"container"],[1,"h3","py-3"],["id","changePasswordForm","class","mb-3",3,"submit",4,"ngIf"],[3,"submit",4,"ngIf"],["class","alert alert-danger alert-dismissible fade show","role","alert",4,"ngIf"],["class","alert alert-success alert-dismissible fade show","role","alert",4,"ngIf"],["id","changePasswordForm",1,"mb-3",3,"submit"],["type","hidden","name","obrazec","value","posodobiGeslo"],[1,"form-group"],["for","currentPassword"],["type","password","name","trenutnoGeslo","id","currentPassword","placeholder","Trenutno geslo","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","password","name","novoGeslo","id","currentPassword","placeholder","Novo geslo","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","password","name","potrdiNovoGeslo","id","currentPassword","placeholder","Novo geslo","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["id","changePasswordSubmit","type","submit",1,"btn","btn-primary",3,"disabled"],[3,"submit"],["id","changePasswordSubmit","type","submit",1,"btn","btn-danger",3,"disabled"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show"],["role","alert",1,"alert","alert-success","alert-dismissible","fade","show"]],template:function(t,e){1&t&&(xo(0,"div",0),ko(1,w_,5,1,"div",1),ko(2,E_,12,7,"div",2),Oo()),2&t&&(Br(1),So("ngIf",!e.jePovezava()||!e.jePrijavljen()),Br(1),So("ngIf",e.jePrijavljen()&&e.jePovezava()))},directives:[ad,Sp,tp,wp,Rh,Vp,Xh,Cp],styles:[""]}),t})();function A_(t,e){if(1&t&&(xo(0,"option",24),oa(1),Oo()),2&t){const t=e.$implicit;So("ngValue",t),Br(1),aa(t)}}function z_(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"div",25),oa(2," Izpolniti je potrebno vsa polja. "),xo(3,"button",26),Ro("click",function(){return Ve(t),Do(2).formWarning=!1}),xo(4,"span",3),oa(5,"\xd7"),Oo(),Oo(),Oo(),Oo()}if(2&t){const t=Do(2);Br(3),So("disabled",!t.jePovezava())}}function T_(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"div",27),oa(2," Dodajanje je bilo uspe\u0161no! "),xo(3,"button",26),Ro("click",function(){return Ve(t),Do(2).formSuccess=!1}),xo(4,"span",3),oa(5,"\xd7"),Oo(),Oo(),Oo(),Oo()}if(2&t){const t=Do(2);Br(3),So("disabled",!t.jePovezava())}}function N_(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"div",8),xo(2,"div",5),xo(3,"label",9),oa(4,"AKADEMSKI NAZIV"),Oo(),xo(5,"select",10),Ro("ngModelChange",function(e){return Ve(t),Do().novoOsebje.akademskiNaziv=e}),ko(6,A_,2,2,"option",11),Oo(),Oo(),xo(7,"div",5),xo(8,"label",12),oa(9,"IZOBRAZBA"),Oo(),xo(10,"input",13),Ro("ngModelChange",function(e){return Ve(t),Do().novoOsebje.izobrazba=e}),Oo(),Oo(),xo(11,"div",5),xo(12,"label",14),oa(13,"IME IN PRIIMEK"),Oo(),xo(14,"input",15),Ro("ngModelChange",function(e){return Ve(t),Do().novoOsebje.ime_priimek=e}),Oo(),Oo(),xo(15,"div",5),xo(16,"label"),oa(17,"E-MAIL"),Oo(),xo(18,"input",16),Ro("ngModelChange",function(e){return Ve(t),Do().novoOsebje.e_mail=e}),Oo(),Oo(),xo(19,"div",5),xo(20,"label",17),oa(21,"OPIS"),Oo(),xo(22,"textarea",18),Ro("ngModelChange",function(e){return Ve(t),Do().novoOsebje.opis=e}),Oo(),Oo(),xo(23,"div",19),xo(24,"span",20),xo(25,"button",21),Ro("click",function(){Ve(t);const e=Do();return e.izvediAkcijo(e.modalTitle)}),oa(26),Oo(),Oo(),xo(27,"span",22),xo(28,"button",23),Ro("click",function(){return Ve(t),Do().activeModal.dismiss("Prekli\u010di click")}),oa(29,"Prekli\u010di"),Oo(),Oo(),Oo(),Oo(),ko(30,z_,6,1,"div",6),ko(31,T_,6,1,"div",6),Oo()}if(2&t){const t=Do();Br(5),So("ngModel",t.novoOsebje.akademskiNaziv)("disabled",!t.jePovezava()),Br(1),So("ngForOf",t.akademskiNazivi),Br(4),So("ngModel",t.novoOsebje.izobrazba)("disabled",!t.jePovezava()),Br(4),So("ngModel",t.novoOsebje.ime_priimek)("disabled",!t.jePovezava()),Br(4),So("ngModel",t.novoOsebje.e_mail),Br(4),So("ngModel",t.novoOsebje.opis),Br(3),So("disabled",!t.jePovezava()),Br(1),aa(t.submitButton),Br(2),So("disabled",!t.jePovezava()),Br(2),So("ngIf",t.formWarning),Br(1),So("ngIf",t.formSuccess)}}function R_(t,e){if(1&t&&(xo(0,"option",24),oa(1),Oo()),2&t){const t=e.$implicit;So("ngValue",t),Br(1),aa(t)}}function M_(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"div",25),oa(2," Izpolniti je potrebno vsa polja. "),xo(3,"button",26),Ro("click",function(){return Ve(t),Do(2).formWarning=!1}),xo(4,"span",3),oa(5,"\xd7"),Oo(),Oo(),Oo(),Oo()}if(2&t){const t=Do(2);Br(3),So("disabled",!t.jePovezava())}}function V_(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"div",27),oa(2," Oseba je uspe\u0161no posodobljena! "),xo(3,"button",26),Ro("click",function(){return Ve(t),Do(2).formSuccess=!1}),xo(4,"span",3),oa(5,"\xd7"),Oo(),Oo(),Oo(),Oo()}if(2&t){const t=Do(2);Br(3),So("disabled",!t.jePovezava())}}function D_(t,e){if(1&t){const t=zo();xo(0,"div",5),xo(1,"div",8),xo(2,"div",5),xo(3,"label",9),oa(4,"AKADEMSKI NAZIV"),Oo(),xo(5,"select",28),Ro("ngModelChange",function(e){return Ve(t),Do().inputOseba.akademskiNaziv=e}),ko(6,R_,2,2,"option",11),Oo(),Oo(),xo(7,"div",5),xo(8,"label",12),oa(9,"IZOBRAZBA"),Oo(),xo(10,"input",29),Ro("ngModelChange",function(e){return Ve(t),Do().inputOseba.izobrazba=e}),Oo(),Oo(),xo(11,"div",5),xo(12,"label",14),oa(13,"IME IN PRIIMEK"),Oo(),xo(14,"input",30),Ro("ngModelChange",function(e){return Ve(t),Do().inputOseba.ime_priimek=e}),Oo(),Oo(),xo(15,"div",5),xo(16,"label"),oa(17,"E-MAIL"),Oo(),xo(18,"input",31),Ro("ngModelChange",function(e){return Ve(t),Do().inputOseba.e_mail=e}),Oo(),Oo(),xo(19,"div",5),xo(20,"label",17),oa(21,"OPIS"),Oo(),xo(22,"textarea",32),Ro("ngModelChange",function(e){return Ve(t),Do().inputOseba.opis=e}),Oo(),Oo(),xo(23,"div",19),xo(24,"span",20),xo(25,"button",33),Ro("click",function(){Ve(t);const e=Do();return e.izvediAkcijo(e.modalTitle)}),oa(26),Oo(),Oo(),xo(27,"span",22),xo(28,"button",34),Ro("click",function(){return Ve(t),Do().activeModal.dismiss("Prekli\u010di click")}),oa(29,"Prekli\u010di"),Oo(),Oo(),Oo(),ko(30,M_,6,1,"div",6),ko(31,V_,6,1,"div",6),Oo(),Oo()}if(2&t){const t=Do();Br(5),So("ngModel",t.inputOseba.akademskiNaziv)("disabled",!t.jePovezava()),Br(1),So("ngForOf",t.akademskiNazivi),Br(4),So("ngModel",t.inputOseba.izobrazba)("disabled",!t.jePovezava()),Br(4),So("ngModel",t.inputOseba.ime_priimek)("disabled",!t.jePovezava()),Br(4),So("ngModel",t.inputOseba.e_mail)("disabled",!t.jePovezava()),Br(4),So("ngModel",t.inputOseba.opis),Br(4),aa(t.submitButton),Br(4),So("ngIf",t.formWarningUpdate),Br(1),So("ngIf",t.formSuccessUpdate)}}function U_(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"div",27),oa(2," Brisanje je bilo uspe\u0161no! "),xo(3,"button",26),Ro("click",function(){return Ve(t),Do(2).formSuccess=!1}),xo(4,"span",3),oa(5,"\xd7"),Oo(),Oo(),Oo(),Oo()}if(2&t){const t=Do(2);Br(3),So("disabled",!t.jePovezava())}}function L_(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"div",5),xo(2,"p"),oa(3,"Oseba "),xo(4,"b"),oa(5),Oo(),oa(6," bo izbrisana."),Oo(),xo(7,"p"),oa(8,"\u017delite nadaljevati?"),Oo(),xo(9,"div",19),xo(10,"span",20),xo(11,"button",35),Ro("click",function(){Ve(t);const e=Do();return e.izvediAkcijo(e.modalTitle)}),oa(12),Oo(),Oo(),xo(13,"span",22),xo(14,"button",36),Ro("click",function(){return Ve(t),Do().activeModal.dismiss("Prekli\u010di click")}),oa(15,"Prekli\u010di"),Oo(),Oo(),Oo(),ko(16,U_,6,1,"div",6),Oo(),Oo()}if(2&t){const t=Do();Br(5),aa(t.inputOseba.ime_priimek),Br(6),So("disabled",!t.jePovezava()),Br(1),aa(t.submitButton),Br(2),So("disabled",!t.jePovezava()),Br(2),So("ngIf",t.formSuccess)}}let F_=(()=>{class t{constructor(t,e,n){this.adminPodatkiStoritev=t,this.activeModal=e,this.povezavaStoritev=n,this.formWarning=!1,this.formSuccess=!1,this.deleteNotification=!1,this.formWarningUpdate=!1,this.formSuccessUpdate=!1,this.akademskiNazivi=["brez","asistent","docent","profesor"],this.novoOsebje={_id:"",ime_priimek:"",akademskiNaziv:"",izobrazba:"",e_mail:"",opis:""}}dodajNovoOsebo(){""===this.novoOsebje.akademskiNaziv||""===this.novoOsebje.izobrazba||""===this.novoOsebje.ime_priimek||""===this.novoOsebje.e_mail||""===this.novoOsebje.opis?this.formWarning=!0:this.adminPodatkiStoritev.dodajOsebje(this.novoOsebje).then(t=>{this.novoOsebje._id=t._id,console.log("dodano osebje ",this.novoOsebje),this.osebje.push(this.novoOsebje),this.formSuccess=!0,setTimeout(()=>{this.activeModal.close()},1e3)})}izbrisiOsebo(){console.log("izbrisi osebo"),this.adminPodatkiStoritev.izbrisiOsebje(this.inputOseba._id).then(t=>{console.log("uspesno brisanje osebe: ",this.inputOseba.ime_priimek),this.formSuccess=!0,this.formSuccessText=`Oseba ${this.inputOseba.ime_priimek} je bila uspe\u0161no izbrisana.`,this.osebje.splice(this.inputOsebaIx,1),this.inputOsebaIx=-1,setTimeout(()=>{this.activeModal.close()},1e3)})}posodobiOsebo(){""===this.inputOseba.akademskiNaziv||""===this.inputOseba.izobrazba||""===this.inputOseba.ime_priimek||""===this.inputOseba.e_mail||""===this.inputOseba.opis?this.formWarningUpdate=!0:this.adminPodatkiStoritev.posodobiOsebje(this.inputOseba,this.inputOseba._id).then(t=>{this.osebje[this.inputOsebaIx]=this.inputOseba,console.log("Oseba posodobljena ",this.osebje[this.inputOsebaIx]),this.formSuccessUpdate=!0,setTimeout(()=>{this.activeModal.close()},1e3)})}izvediAkcijo(t){switch(t){case"Dodajanje osebe":this.dodajNovoOsebo();break;case"Brisanje osebe":this.izbrisiOsebo();break;case"Posodabljanje osebe":this.posodobiOsebo()}}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(eb),Co(xy),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-modal-osebje"]],inputs:{modalTitle:"modalTitle",osebje:"osebje",new:"new",delete:"delete",update:"update",submitButton:"submitButton",inputOseba:"inputOseba",inputOsebaIx:"inputOsebaIx"},decls:12,vars:4,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close","text-white",3,"click"],["aria-hidden","true"],[1,"form-moduli"],[1,"form-group","col-12"],[4,"ngIf"],["class","form-group col-12",4,"ngIf"],[1,"form-prof-asist"],["for","formAkademskiNazivInput"],["id","formAkademskiNazivInput","name","akademskiNaziv",1,"form-control",3,"ngModel","disabled","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],["for","formIzobrazbaCustomInput"],["type","text","id","formIzobrazbaCustomInput","name","izobrazba","placeholder","npr. dipl. in\u017e. ra\u010d. mat.",1,"form-control",3,"ngModel","disabled","ngModelChange"],["for","formImeInPriimekInput"],["type","text","id","formImeInPriimekInput","name","ime_priimek","placeholder","Ime Priimek",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","text","placeholder","ime.priimek@fri.uni-lj.si",1,"form-control",3,"ngModel","ngModelChange"],["for","formOpis"],["id","formOpis","name","opis","rows","4","placeholder","Kratek opis izobrazbe, dela, podro\u010dij raziskovanja.",1,"form-control",3,"ngModel","ngModelChange"],[1,"d-flex"],[1,"flex-fill","mr-3"],["type","submit",1,"btn","btn-primary","btn-block","my-3",3,"disabled","click"],[1,"flex-fill"],["type","button","ngbAutofocus","",1,"btn","btn-danger","btn-block","my-3",3,"disabled","click"],[3,"ngValue"],["role","alert",1,"alert","alert-warning","alert-dismissible","fade","show",2,"margin-top","10px"],["type","button",1,"close",3,"disabled","click"],["role","alert",1,"alert","alert-success","alert-dismissible","fade","show",2,"margin-top","10px"],["name","akademskiNaziv",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","text","name","izobrazba","placeholder","npr. dipl. in\u017e. ra\u010d. mat.",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","text","name","ime_priimek","placeholder","Ime Priimek",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","text","placeholder","ime.priimek@fri.uni-lj.si",1,"form-control",3,"ngModel","disabled","ngModelChange"],["name","opis","rows","4","placeholder","Kratek opis izobrazbe, dela, podro\u010dij raziskovanja.",1,"form-control",3,"ngModel","ngModelChange"],["type","submit",1,"btn","btn-primary","btn-block","my-3",3,"click"],["type","button","ngbAutofocus","",1,"btn","btn-danger","btn-block","my-3",3,"click"],["type","submit","aria-label","Posodobi osebje",1,"btn","btn-primary","btn-block","my-3",3,"disabled","click"],["type","button","ngbAutofocus","","aria-label","Prekli\u010di",1,"btn","btn-danger","btn-block","my-3",3,"disabled","click"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h4",1),oa(2),Oo(),xo(3,"button",2),Ro("click",function(){return e.activeModal.dismiss("Cross click")}),xo(4,"span",3),oa(5,"\xd7"),Oo(),Oo(),Oo(),xo(6,"div"),xo(7,"div",4),xo(8,"div",5),ko(9,N_,32,14,"div",6),Oo(),ko(10,D_,32,13,"div",7),ko(11,L_,17,5,"div",6),Oo(),Oo()),2&t&&(Br(2),aa(e.modalTitle),Br(7),So("ngIf",e.new),Br(1),So("ngIf",e.update),Br(1),So("ngIf",e.delete))},directives:[ad,Ip,Xh,Cp,sd,Rh,Ap,Rp],styles:[""]}),t})();function $_(t,e){if(1&t){const t=zo();xo(0,"div",1),xo(1,"div",9),xo(2,"p"),xo(3,"span",10),xo(4,"b"),oa(5),Oo(),Oo(),xo(6,"span",11),xo(7,"button",12),Ro("click",function(){Ve(t);const n=e.$implicit,i=e.index;return Do().openModal("update",n,i)}),oa(8,"Uredi osebo"),Oo(),xo(9,"button",13),Ro("click",function(){Ve(t);const n=e.$implicit,i=e.index;return Do().openModal("delete",n,i)}),Eo(10,"i",14),Oo(),Oo(),Oo(),Oo(),Oo()}if(2&t){const t=e.$implicit,n=Do();Br(5),aa(t.ime_priimek),Br(2),So("disabled",!n.jePovezava()),Br(2),So("disabled",!n.jePovezava()),Br(1),So("disabled",!n.jePovezava())}}let H_=(()=>{class t{constructor(t,e,n){this.adminPodatkiStoritev=t,this.modalService=e,this.povezavaStoritev=n,this.formWarning=!1,this.formSuccess=!1,this.deleteNotification=!1,this.akademskiNazivi=["brez","asistent","docent","profesor"],this.novoOsebje={_id:"",ime_priimek:"",akademskiNaziv:"",izobrazba:"",e_mail:"",opis:""}}openModal(t,e,n){var i=this.modalService.open(F_,{centered:!0,size:"md"}).componentInstance;switch(i.osebje=this.osebje,t){case"new":i.modalTitle="Dodajanje osebe",i.new=!0,i.submitButton="Ustvari osebo";break;case"delete":i.modalTitle="Brisanje osebe",i.delete=!0,i.inputOseba=e,i.inputOsebaIx=n,i.submitButton="Izbri\u0161i osebo";break;case"update":const t=JSON.parse(JSON.stringify(e));i.modalTitle="Posodabljanje osebe",i.update=!0,i.inputOseba=t,i.inputOsebaIx=n,i.submitButton="Posodobi osebo";break;default:console.log("Ta akcija za modalno okno pri osebju ne obstaja")}}dodajNovoOsebje(){""==this.novoOsebje.ime_priimek||""==this.novoOsebje.akademskiNaziv||""==this.novoOsebje.izobrazba||""==this.novoOsebje.opis?this.formWarning=!0:(console.log("vse ok"),this.adminPodatkiStoritev.dodajOsebje(this.novoOsebje).then(t=>{console.log("dodano osebje ",t);let e=this.osebje.slice(0);e.push(t),this.osebje=e,this.formSuccess=!0}))}izbrisiOsebje(t,e){this.adminPodatkiStoritev.izbrisiOsebje(t).then(t=>{this.izbrisani=this.osebje[e].ime_priimek,this.deleteNotification=!0;let n=this.osebje.slice(0);n.splice(e,1),this.osebje=n})}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(eb),Co(zy),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-admin-osebje"]],inputs:{osebje:"osebje"},decls:12,vars:2,consts:[[1,"section-prof-asist"],[1,"row"],[1,"naslov-sekcije","col-sm-11","col-md-11","col-xl-11"],[1,"float-left"],[1,"text-dark"],[1,"float-left","ml-4","mb-2"],[1,"btn","btn-dark","btn-admin","px-5",3,"disabled","click"],[1,"podsekcije"],["class","row",4,"ngFor","ngForOf"],[1,"ena-vrstica","col-sm-10","col-md-9","col-xl-9"],[2,"float","left"],[2,"float","right"],[1,"btn","btn-dark","btn-admin","mx-2","my-0",3,"disabled","click"],["aria-label","Izbri\u0161i osebo.",1,"btn","btn-danger","btn-admin","text-dark","mx-2",3,"disabled","click"],[1,"far","fa-trash-alt","fa-lg",2,"color","black",3,"disabled"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"div",1),xo(2,"div",2),xo(3,"span",3),xo(4,"p",4),xo(5,"b"),oa(6,"OSEBJE"),Oo(),Oo(),Oo(),xo(7,"span",5),xo(8,"button",6),Ro("click",function(){return e.openModal("new")}),oa(9,"Dodaj osebo"),Oo(),Oo(),Oo(),Oo(),xo(10,"div",7),ko(11,$_,11,4,"div",8),Oo(),Oo()),2&t&&(Br(8),So("disabled",!e.jePovezava()),Br(3),So("ngForOf",e.osebje))},directives:[sd],styles:[""]}),t})(),B_=(()=>{class t{transform(t,...e){return 1===t?"1. letnik":2===t?"2. letnik":3===t?"3. letnik":"Ni v letniku"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Xt({name:"formatirajLetnik",type:t,pure:!0}),t})(),G_=(()=>{class t{transform(t,...e){return 1===t?"Zimski semester":2===t?"Poletni semester":"Napaka"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Xt({name:"formatirajSemester",type:t,pure:!0}),t})(),q_=(()=>{class t{transform(t,...e){return 1===t?"Splo\u0161ni izbirni predmet":2===t?"Strokovni izbirni predmet":"Ni izbirni predmet"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Xt({name:"formatirajTipIzbirnega",type:t,pure:!0}),t})();function W_(t,e){1&t&&Eo(0,"option",42),2&t&&Uo("value",e.$implicit.ime_priimek)}function Z_(t,e){if(1&t){const t=zo();xo(0,"div",43),Ro("click",function(){Ve(t);const n=e.index;return Do(2).izbrisiElement(n,0)}),oa(1),xo(2,"span",44),Eo(3,"i",45),Oo(),Oo()}if(2&t){const t=e.$implicit;Br(1),aa(t.ime_priimek)}}function K_(t,e){1&t&&Eo(0,"option",42),2&t&&Uo("value",e.$implicit.ime_priimek)}function Q_(t,e){if(1&t){const t=zo();xo(0,"div",43),Ro("click",function(){Ve(t);const n=e.index;return Do(2).izbrisiElement(n,1)}),oa(1),xo(2,"span",44),Eo(3,"i",45),Oo(),Oo()}if(2&t){const t=e.$implicit;Br(1),aa(t.ime_priimek)}}function J_(t,e){1&t&&Eo(0,"option",42),2&t&&Uo("value",e.$implicit.ime)}function Y_(t,e){if(1&t){const t=zo();xo(0,"div",43),Ro("click",function(){Ve(t);const n=e.index;return Do(2).izbrisiElement(n,2)}),oa(1),xo(2,"span",44),Eo(3,"i",45),Oo(),Oo()}if(2&t){const t=e.$implicit;Br(1),aa(t.ime)}}function X_(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"label",13),oa(2,"Ime predmeta"),Oo(),xo(3,"input",14),Ro("ngModelChange",function(e){return Ve(t),Do().noviPredmet.ime=e}),Oo(),xo(4,"div",15),xo(5,"label",16),oa(6,"Letnik"),Oo(),xo(7,"div",17),xo(8,"button",18),oa(9),mc(10,"formatirajLetnik"),Oo(),xo(11,"ul",19),xo(12,"li",20),Ro("click",function(){return Ve(t),Do().nastaviLetnik(1)}),xo(13,"a",21),oa(14,"1. letnik"),Oo(),Oo(),xo(15,"li",20),Ro("click",function(){return Ve(t),Do().nastaviLetnik(2)}),xo(16,"a",21),oa(17,"2. letnik"),Oo(),Oo(),xo(18,"li",20),Ro("click",function(){return Ve(t),Do().nastaviLetnik(3)}),xo(19,"a",21),oa(20,"3. letnik"),Oo(),Oo(),xo(21,"li",20),Ro("click",function(){return Ve(t),Do().nastaviLetnik(0)}),xo(22,"a",21),oa(23,"Ni v letniku"),Oo(),Oo(),Oo(),Oo(),xo(24,"label",22),oa(25,"Semester"),Oo(),xo(26,"div",17),xo(27,"button",23),oa(28),mc(29,"formatirajSemester"),Oo(),xo(30,"ul",24),xo(31,"li",20),Ro("click",function(){return Ve(t),Do().nastaviSemester(1)}),xo(32,"a",21),oa(33,"Zimski semester"),Oo(),Oo(),xo(34,"li",20),Ro("click",function(){return Ve(t),Do().nastaviSemester(2)}),xo(35,"a",21),oa(36,"Poletni semester"),Oo(),Oo(),Oo(),Oo(),xo(37,"label",25),oa(38,"Tip"),Oo(),xo(39,"div",17),xo(40,"button",26),oa(41),mc(42,"formatirajTipIzbirnega"),Oo(),xo(43,"ul",27),xo(44,"li",20),Ro("click",function(){return Ve(t),Do().nastaviTip(2)}),xo(45,"a",21),oa(46,"Strokovni izbirni predmet"),Oo(),Oo(),xo(47,"li",20),Ro("click",function(){return Ve(t),Do().nastaviTip(1)}),xo(48,"a",21),oa(49,"Splo\u0161ni izbirni predmet"),Oo(),Oo(),xo(50,"li",20),Ro("click",function(){return Ve(t),Do().nastaviTip(0)}),xo(51,"a",21),oa(52,"Ni izbirni predmet"),Oo(),Oo(),Oo(),Oo(),Oo(),xo(53,"label",28),oa(54,"PROFESORJI"),Oo(),xo(55,"div",29),xo(56,"input",30),Ro("change",function(e){return Ve(t),Do().dodajElement(e,0)}),Oo(),xo(57,"datalist",31),ko(58,W_,1,1,"option",32),Oo(),Oo(),xo(59,"div",33),ko(60,Z_,4,1,"div",34),Oo(),xo(61,"label",35),oa(62,"ASISTENTI"),Oo(),xo(63,"div",29),xo(64,"input",30),Ro("change",function(e){return Ve(t),Do().dodajElement(e,1)}),Oo(),xo(65,"datalist",31),ko(66,K_,1,1,"option",32),Oo(),Oo(),xo(67,"div",33),ko(68,Q_,4,1,"div",34),Oo(),xo(69,"label",36),oa(70,"Moduli"),Oo(),xo(71,"div",29),xo(72,"input",37),Ro("change",function(e){return Ve(t),Do().dodajElement(e,2)}),Oo(),xo(73,"datalist",38),ko(74,J_,1,1,"option",32),Oo(),Oo(),xo(75,"div",33),ko(76,Y_,4,1,"div",34),Oo(),xo(77,"div",39),xo(78,"label",40),oa(79,"OPIS"),Oo(),xo(80,"textarea",41),Ro("ngModelChange",function(e){return Ve(t),Do().noviPredmet.opis=e}),Oo(),Oo(),Oo()}if(2&t){const t=Do();Br(3),So("ngModel",t.noviPredmet.ime)("disabled",!t.jePovezava()),Br(5),So("disabled",!t.jePovezava()),Br(1),aa(gc(10,19,t.noviPredmet.letnik)),Br(18),So("disabled",!t.jePovezava()),Br(1),aa(gc(29,21,t.noviPredmet.semester)),Br(12),So("disabled",!t.jePovezava()),Br(1),aa(gc(42,23,t.noviPredmet.vrstaIzbirnega)),Br(15),So("disabled",!t.jePovezava()),Br(2),So("ngForOf",t.osebje),Br(2),So("ngForOf",t.noviPredmet.profesorji),Br(4),So("disabled",!t.jePovezava()),Br(2),So("ngForOf",t.osebje),Br(2),So("ngForOf",t.noviPredmet.asistenti),Br(4),So("disabled",!t.jePovezava()),Br(2),So("ngForOf",t.moduli),Br(2),So("ngForOf",t.noviPredmet.moduli),Br(4),So("ngModel",t.noviPredmet.opis)("disabled",!t.jePovezava())}}function tw(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"p"),oa(2,"Predmet "),xo(3,"b",46),oa(4),Oo(),oa(5," in vsa gradiva ter komentarji tega predmeta bodo izbrisani."),Oo(),xo(6,"p"),oa(7,"\u010ce \u017eelite nadaljevati prepi\u0161ite ime predmeta in potrdite izbris."),Oo(),xo(8,"input",14),Ro("ngModelChange",function(e){return Ve(t),Do().noviPredmet.ime=e}),Oo(),Oo()}if(2&t){const t=Do();Br(4),aa(t.inputPredmet.ime),Br(4),So("ngModel",t.noviPredmet.ime)("disabled",!t.jePovezava())}}function ew(t,e){if(1&t){const t=zo();xo(0,"div",5),xo(1,"div",47),oa(2),xo(3,"button",48),Ro("click",function(){return Ve(t),Do().formWarning=!1}),xo(4,"span",3),oa(5,"\xd7"),Oo(),Oo(),Oo(),Oo()}if(2&t){const t=Do();Br(2),la(" ",t.formWarningText," "),Br(1),So("disabled",!t.jePovezava())}}function nw(t,e){if(1&t){const t=zo();xo(0,"div",5),xo(1,"div",49),oa(2),xo(3,"button",48),Ro("click",function(){return Ve(t),Do().formSuccess=!1}),xo(4,"span",50),oa(5,"\xd7"),Oo(),Oo(),Oo(),Oo()}if(2&t){const t=Do();Br(2),la(" ",t.formSuccessText," "),Br(1),So("disabled",!t.jePovezava())}}let iw=(()=>{class t{constructor(t,e,n){this.adminPodatkiStoritev=t,this.activeModal=e,this.povezavaStoritev=n,this.noviPredmet={_id:"",ime:"",opis:"",letnik:0,semester:1,profesorji:[],asistenti:[],moduli:[],vrstaIzbirnega:0,gradiva:[]},this.formWarning=!1,this.formSuccess=!1}izvediAkcijo(t){switch(t){case"Dodajanje predmeta":this.dodajNovPredmet();break;case"Brisanje predmeta":this.izbrisiPredmet();break;case"Posodabljanje predmeta":this.posodobiPredmet()}}dodajNovPredmet(){const t=this.imeZasedeno(this.noviPredmet.ime);""==this.noviPredmet.ime||0==this.noviPredmet.profesorji.length||t?(this.formWarning=!0,this.formWarningText=t?`Predmet z imenom ${this.noviPredmet.ime} \u017ee obstaja`:"Ime predmeta in profesor sta zahtevana podatka."):this.adminPodatkiStoritev.dodajPredmet(this.noviPredmet).then(t=>{console.log("dodan predmet ",t),this.predmeti.push(t),this.formSuccess=!0,this.formSuccessText=`Predmet ${this.noviPredmet.ime} je bil uspe\u0161no dodan.`,setTimeout(()=>{this.activeModal.close()},1e3)})}posodobiPredmet(){""==this.noviPredmet.ime||0==this.noviPredmet.profesorji.length?(this.formWarning=!0,this.formWarningText="Ime predmeta in profesor sta zahtevana podatka."):this.vsebujeDeleted(this.noviPredmet.profesorji)||this.vsebujeDeleted(this.noviPredmet.asistenti)||this.vsebujeDeleted(this.noviPredmet.moduli)?(this.formWarning=!0,this.formWarningText='"deleted" ozna\u010duje profesorja oz. modul ki ne obstaja ve\u010d. Pred posodobitvijo je potrebno to referenco ro\u010dno odstraniti.'):this.adminPodatkiStoritev.posodobiPredmet(this.noviPredmet,this.noviPredmet._id).then(t=>{if(console.log("Predmet posodobljen ",t),this.inputPredmetIx&&(this.predmeti[this.inputPredmetIx]=t),this.referencaNaStariPredmet)for(var e in this.referencaNaStariPredmet)this.referencaNaStariPredmet[e]=this.noviPredmet[e];this.formSuccess=!0,this.formSuccessText=`Predmet ${this.noviPredmet.ime} je bil uspe\u0161no posodobljen.`,setTimeout(()=>{this.activeModal.close()},1e3)})}izbrisiPredmet(){-1!=this.inputPredmetIx&&this.noviPredmet.ime==this.inputPredmet.ime?this.adminPodatkiStoritev.izbrisiPredmet(this.inputPredmet._id).then(t=>{console.log("uspesno brisanje predmeta: ",this.inputPredmet.ime),this.formSuccess=!0,this.formSuccessText=`Predmet ${this.inputPredmet.ime} je bil uspe\u0161no izbrisan.`,this.predmeti.splice(this.inputPredmetIx,1),this.inputPredmetIx=-1,setTimeout(()=>{this.activeModal.close()},1e3)}):(this.formWarningText=-1==this.inputPredmetIx?`Predmet z imenom ${this.inputPredmet.ime} ne obstaja.`:"Vne\u0161eno ime predmeta se ne ujema.",this.formWarning=!0)}dodajElement(t,e){if(e<0||e>2)return;let n=this.checkIfInListAndReturn(t.target.value,0==e||1==e?this.osebje:this.moduli,this.mapTipIntoAttribute(e));n&&(0==e?this.noviPredmet.profesorji.push(n):1==e?this.noviPredmet.asistenti.push(n):this.noviPredmet.moduli.push(n))}izbrisiElement(t,e){e<0||e>2||(0==e?this.noviPredmet.profesorji.splice(t,1):1==e?this.noviPredmet.asistenti.splice(t,1):this.noviPredmet.moduli.splice(t,1))}mapTipIntoAttribute(t){return 0==t||1==t?"ime_priimek":2==t?"ime":null}checkIfInListAndReturn(t,e,n){for(var i=0;ie.ime===t)}vsebujeDeleted(t){return!!t.find(t=>"-1"===t._id)}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){this.predmeti||this.pridobiPredmete(),this.osebje||this.pridobiOsebje(),this.moduli||this.pridobiModule()}pridobiOsebje(){this.adminPodatkiStoritev.pridobiOsebje().then(t=>{this.osebje=t})}pridobiModule(){this.adminPodatkiStoritev.pridobiModule().then(t=>this.moduli=t)}pridobiPredmete(){this.adminPodatkiStoritev.pridobiPredmete().then(t=>this.predmeti=t)}}return t.\u0275fac=function(e){return new(e||t)(Co(eb),Co(xy),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-modal-predmeti"]],inputs:{modalTitle:"modalTitle",new:"new",delete:"delete",update:"update",submitButton:"submitButton",inputPredmet:"inputPredmet",inputPredmetIx:"inputPredmetIx",referencaNaStariPredmet:"referencaNaStariPredmet"},decls:20,vars:8,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close","text-white",3,"click"],["aria-hidden","true"],[1,"form-moduli"],[1,"form-group","col-12"],[4,"ngIf"],[1,"d-flex"],[1,"flex-fill","mr-3"],["type","submit","aria-label","Posodobi predmet",1,"btn","btn-primary","btn-block","my-3",3,"disabled","click"],[1,"flex-fill"],["type","button","ngbAutofocus","","aria-label","Prekli\u010di",1,"btn","btn-danger","btn-block","my-3",3,"disabled","click"],["class","form-group col-12",4,"ngIf"],["for","formImeModulaInput",1,""],["type","text","name","ime","ngbAutofocus","",1,"form-control",3,"ngModel","disabled","ngModelChange"],[1,"form-group","mt-3"],["for","izberiLetnik"],[1,"dropdown"],["type","button","id","izberiLetnik","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","dropdown-toggle","btn-block",3,"disabled"],["id","letnikDropdown","name","letnik",1,"dropdown-menu","btn-block"],[3,"click"],[1,"dropdown-item","hoverNoLink"],["for","izberiSemester"],["type","button","id","izberiSemester","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","dropdown-toggle","btn-block",3,"disabled"],["id","semesterDropdown","name","semester",1,"dropdown-menu","btn-block"],["for","izberiTip"],["type","button","id","izberiTip","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","dropdown-toggle","btn-block",3,"disabled"],["id","tipDropdown","name","vrstaIzbirnega",1,"dropdown-menu","btn-block"],["for","izberiProf",1,"form-predmeti"],[1,"input-group","form-group"],["list","osebje","placeholder","Osebje",1,"form-datalist",3,"disabled","change"],["id","osebje"],[3,"value",4,"ngFor","ngForOf"],[1,"ml-3"],["class","btn btn-warning rounded m-1",3,"click",4,"ngFor","ngForOf"],[1,"form-predmeti"],["for","izberiModul",1,"form-predmeti"],["list","moduli","placeholder","Moduli",1,"form-datalist",3,"disabled","change"],["id","moduli"],[1,"form-group"],["for","formOpisPredmetaInput"],["type","text","rows","5","name","opis","id","formOpisPredmetaInput",1,"form-control",3,"ngModel","disabled","ngModelChange"],[3,"value"],[1,"btn","btn-warning","rounded","m-1",3,"click"],[1,"btn-label"],[1,"fa","fa-times","ml-2"],[1,"unclickable"],["role","alert",1,"alert","alert-warning",2,"margin-top","10px"],["type","button",1,"close","close-warning",3,"disabled","click"],["role","alert",1,"alert","alert-success",2,"margin-top","10px"],["aria-hidden","true",1,"text-dark"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h4",1),oa(2),Oo(),xo(3,"button",2),Ro("click",function(){return e.activeModal.dismiss("Cross click")}),xo(4,"span",3),oa(5,"\xd7"),Oo(),Oo(),Oo(),xo(6,"div"),xo(7,"div",4),xo(8,"div",5),ko(9,X_,81,25,"div",6),ko(10,tw,9,3,"div",6),xo(11,"div",7),xo(12,"span",8),xo(13,"button",9),Ro("click",function(){return e.izvediAkcijo(e.modalTitle)}),oa(14),Oo(),Oo(),xo(15,"span",10),xo(16,"button",11),Ro("click",function(){return e.activeModal.dismiss("Prekli\u010di click")}),oa(17,"Prekli\u010di"),Oo(),Oo(),Oo(),Oo(),ko(18,ew,6,2,"div",12),ko(19,nw,6,2,"div",12),Oo(),Oo()),2&t&&(Br(2),aa(e.modalTitle),Br(7),So("ngIf",e.new||e.update),Br(1),So("ngIf",e.delete),Br(3),So("disabled",!e.jePovezava()),Br(1),aa(e.submitButton),Br(2),So("disabled",!e.jePovezava()),Br(2),So("ngIf",e.formWarning),Br(1),So("ngIf",e.formSuccess))},directives:[ad,Rh,Xh,Cp,sd,Ap,Rp],pipes:[B_,G_,q_],encapsulation:2}),t})();function rw(t,e){if(1&t){const t=zo();xo(0,"div",1),xo(1,"div",9),xo(2,"p"),xo(3,"span",10),xo(4,"b"),oa(5),Oo(),Oo(),xo(6,"span",11),xo(7,"button",12),Ro("click",function(){Ve(t);const n=e.$implicit,i=e.index;return Do().openModal("update",n,i)}),oa(8,"Uredi predmet"),Oo(),xo(9,"button",13),Ro("click",function(){Ve(t);const n=e.$implicit,i=e.index;return Do().openModal("delete",n,i)}),Eo(10,"i",14),Oo(),Oo(),Oo(),Oo(),Oo()}if(2&t){const t=e.$implicit,n=Do();Br(5),aa(t.ime),Br(2),So("disabled",!n.jePovezava()),Br(2),So("disabled",!n.jePovezava())}}let sw=(()=>{class t{constructor(t,e,n){this.modalService=t,this.adminPodatkiStoritev=e,this.povezavaStoritev=n}openModal(t,e,n){var i=this.modalService.open(iw,{centered:!0,size:"md"}).componentInstance;switch(i.predmeti=this.predmeti,t){case"new":i.modalTitle="Dodajanje predmeta",i.new=!0,i.osebje=this.osebje,i.moduli=this.moduli,i.submitButton="Ustvari predmet";break;case"delete":i.modalTitle="Brisanje predmeta",i.delete=!0,i.inputPredmet=e,i.inputPredmetIx=n,i.submitButton="Potrdi";break;case"update":i.modalTitle="Posodabljanje predmeta",i.update=!0,i.osebje=this.osebje,i.moduli=this.moduli,i.noviPredmet=this.adminPodatkiStoritev.idArrayIntoObjectArray(e,this.osebje,this.moduli),i.inputPredmetIx=n,i.submitButton="Posodobi predmet";break;default:console.log("Ta akcija za modalno okno pri predmetih ne obstaja")}}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(zy),Co(eb),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-admin-predmeti"]],inputs:{predmeti:"predmeti",osebje:"osebje",moduli:"moduli"},decls:12,vars:2,consts:[[1,"section-predmeti"],[1,"row"],[1,"naslov-sekcije","col-sm-11","col-md-11","col-xl-11"],[1,"float-left"],[1,"text-dark"],[1,"float-left","ml-4","mb-2"],[1,"btn","btn-dark","btn-admin","px-5",3,"disabled","click"],[1,"podsekcije"],["class","row",4,"ngFor","ngForOf"],[1,"ena-vrstica","col-sm-10","col-md-9","col-xl-9"],[2,"float","left"],[2,"float","right"],[1,"btn","btn-dark","btn-admin","mx-2","my-0",3,"disabled","click"],["aria-label","Izbri\u0161i element.",1,"btn","btn-danger","btn-admin","text-dark","mx-2",3,"disabled","click"],[1,"far","fa-trash-alt","fa-lg",2,"color","black"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"div",1),xo(2,"div",2),xo(3,"span",3),xo(4,"p",4),xo(5,"b"),oa(6,"PREDMETI"),Oo(),Oo(),Oo(),xo(7,"span",5),xo(8,"button",6),Ro("click",function(){return e.openModal("new")}),oa(9,"Dodaj predmet"),Oo(),Oo(),Oo(),Oo(),xo(10,"div",7),ko(11,rw,11,3,"div",8),Oo(),Oo()),2&t&&(Br(8),So("disabled",!e.jePovezava()),Br(3),So("ngForOf",e.predmeti))},directives:[sd],styles:[""]}),t})();function ow(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"label",13),oa(2,"Ime modula"),Oo(),xo(3,"input",14),Ro("ngModelChange",function(e){return Ve(t),Do().noviModul.ime=e}),Oo(),Oo()}if(2&t){const t=Do();Br(3),So("ngModel",t.noviModul.ime)("disabled",!t.jePovezava())}}function aw(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"label",13),oa(2,"Novo ime za modul "),xo(3,"b"),oa(4),Oo(),oa(5,"."),Oo(),xo(6,"input",14),Ro("ngModelChange",function(e){return Ve(t),Do().noviModul.ime=e}),Oo(),Oo()}if(2&t){const t=Do();Br(4),aa(t.inputModul.ime),Br(2),So("ngModel",t.noviModul.ime)("disabled",!t.jePovezava())}}function lw(t,e){if(1&t&&(xo(0,"div"),xo(1,"p"),oa(2,"Modul "),xo(3,"b"),oa(4),Oo(),oa(5," in vse pripadnosti predmetov temu modulu bodo izbrisane."),Oo(),Oo()),2&t){const t=Do();Br(4),aa(t.inputModul.ime)}}function cw(t,e){if(1&t){const t=zo();xo(0,"div",5),xo(1,"div",15),oa(2),xo(3,"button",16),Ro("click",function(){return Ve(t),Do().formWarning=!1}),xo(4,"span",3),oa(5,"\xd7"),Oo(),Oo(),Oo(),Oo()}if(2&t){const t=Do();Br(2),la(" ",t.formWarningText," "),Br(1),So("disabled",!t.jePovezava())}}function uw(t,e){if(1&t){const t=zo();xo(0,"div",5),xo(1,"div",17),oa(2),xo(3,"button",16),Ro("click",function(){return Ve(t),Do().formSuccess=!1}),xo(4,"span",18),oa(5,"\xd7"),Oo(),Oo(),Oo(),Oo()}if(2&t){const t=Do();Br(2),la(" ",t.formSuccessText," "),Br(1),So("disabled",!t.jePovezava())}}let dw=(()=>{class t{constructor(t,e,n){this.adminPodatkiStoritev=t,this.activeModal=e,this.povezavaStoritev=n,this.noviModul={_id:"",ime:""},this.formWarning=!1,this.formSuccess=!1}jePovezava(){return this.povezavaStoritev.jePovezava}dodajNovModul(){""==this.noviModul.ime||this.imeZasedeno(this.noviModul.ime)?(this.formWarning=!0,this.formWarningText=""==this.noviModul.ime?"Ime modula je obvezen parameter":`Modul z imenom ${this.noviModul.ime} \u017ee obstaja.`):this.adminPodatkiStoritev.dodajModul(this.noviModul).then(t=>{console.log("dodan modul ",t),this.moduli.push(t),this.formSuccess=!0,this.formSuccessText=`Modul ${this.noviModul.ime} je bil uspe\u0161no dodan.`,setTimeout(()=>{this.activeModal.close()},1e3)})}posodobiModul(){""==this.noviModul.ime||this.noviModul.ime==this.inputModul.ime?(this.formWarning=!0,this.formWarningText=""==this.noviModul.ime?"Novo ime modula je obvezen parameter":"Novo ime mora biti razli\u010dno od obstoje\u010dega"):this.adminPodatkiStoritev.posodobiModul(this.noviModul,this.inputModul._id).then(t=>{console.log("Modul posodobljen ",t),this.moduli[this.inputModulIx].ime=this.noviModul.ime,this.formSuccess=!0,this.formSuccessText="Modul je bil uspe\u0161no posodobljen.",setTimeout(()=>{this.activeModal.close()},1e3)})}izbrisiModul(){-1!=this.inputModulIx?this.adminPodatkiStoritev.izbrisiModul(this.inputModul._id).then(t=>{console.log("uspesno brisanje modula: ",this.inputModul.ime),this.formSuccess=!0,this.formSuccessText=`Modul ${this.inputModul.ime} je bil uspe\u0161no izbrisan.`,this.moduli.splice(this.inputModulIx,1),this.inputModulIx=-1,setTimeout(()=>{this.activeModal.close()},1e3)}):(this.formWarning=!0,this.formWarningText=`Modul z imenom ${this.inputModul.ime} ne obstaja.`)}izvediAkcijo(t){switch(t){case"Dodajanje modula":this.dodajNovModul();break;case"Brisanje modula":this.izbrisiModul();break;case"Posodabljanje modula":this.posodobiModul()}}imeZasedeno(t){return!!this.moduli.some(e=>e.ime===t)}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(eb),Co(xy),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-modal-moduli"]],inputs:{modalTitle:"modalTitle",moduli:"moduli",new:"new",delete:"delete",update:"update",submitButton:"submitButton",inputModul:"inputModul",inputModulIx:"inputModulIx"},decls:22,vars:9,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close","text-white",3,"click"],["aria-hidden","true"],[1,"form-moduli"],[1,"form-group","col-12"],[4,"ngIf"],[1,"d-flex"],[1,"flex-fill","mr-3"],["type","submit","id","objavi-modul","aria-label","Posodobi modul",1,"btn","btn-primary","btn-block","my-3",3,"disabled","click"],[1,"flex-fill"],["type","button","ngbAutofocus","","aria-label","Prekli\u010di",1,"btn","btn-danger","btn-block","my-3",3,"disabled","click"],["class","form-group col-12",4,"ngIf"],["for","formImeModulaInput",1,""],["type","text","id","formImeModulaInput","name","ime","ngbAutofocus","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["role","alert",1,"alert","alert-warning",2,"margin-top","10px"],["type","button",1,"close","close-warning",3,"disabled","click"],["role","alert",1,"alert","alert-success",2,"margin-top","10px"],["aria-hidden","true",1,"text-dark"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h4",1),oa(2),Oo(),xo(3,"button",2),Ro("click",function(){return e.activeModal.dismiss("Cross click")}),xo(4,"span",3),oa(5,"\xd7"),Oo(),Oo(),Oo(),xo(6,"div"),xo(7,"form"),xo(8,"div",4),xo(9,"div",5),ko(10,ow,4,2,"div",6),ko(11,aw,7,3,"div",6),ko(12,lw,6,1,"div",6),xo(13,"div",7),xo(14,"span",8),xo(15,"button",9),Ro("click",function(){return e.izvediAkcijo(e.modalTitle)}),oa(16),Oo(),Oo(),xo(17,"span",10),xo(18,"button",11),Ro("click",function(){return e.activeModal.dismiss("Prekli\u010di click")}),oa(19,"Prekli\u010di"),Oo(),Oo(),Oo(),Oo(),ko(20,cw,6,2,"div",12),ko(21,uw,6,2,"div",12),Oo(),Oo(),Oo()),2&t&&(Br(2),aa(e.modalTitle),Br(8),So("ngIf",e.new),Br(1),So("ngIf",e.update),Br(1),So("ngIf",e.delete),Br(3),So("disabled",!e.jePovezava()),Br(1),aa(e.submitButton),Br(2),So("disabled",!e.jePovezava()),Br(2),So("ngIf",e.formWarning),Br(1),So("ngIf",e.formSuccess))},directives:[Sp,tp,wp,ad,Rh,Xh,Cp],encapsulation:2}),t})();function hw(t,e){if(1&t){const t=zo();xo(0,"div",1),xo(1,"div",9),xo(2,"span",3),xo(3,"b"),oa(4),Oo(),Oo(),xo(5,"span",10),xo(6,"button",11),Ro("click",function(){Ve(t);const n=e.$implicit,i=e.index;return Do().openModal("update",n,i)}),oa(7,"Uredi ime"),Oo(),xo(8,"button",12),Ro("click",function(){Ve(t);const n=e.$implicit,i=e.index;return Do().openModal("delete",n,i)}),Eo(9,"i",13),Oo(),Oo(),Oo(),Oo()}if(2&t){const t=e.$implicit,n=Do();Br(4),aa(t.ime),Br(2),So("disabled",!n.jePovezava()),Br(2),So("disabled",!n.jePovezava())}}let pw=(()=>{class t{constructor(t,e){this.modalService=t,this.povezavaStoritev=e}openModal(t,e,n){var i=this.modalService.open(dw,{centered:!0,size:"md"}).componentInstance;switch(i.moduli=this.moduli,t){case"new":i.modalTitle="Dodajanje modula",i.new=!0,i.submitButton="Ustvari modul";break;case"delete":i.modalTitle="Brisanje modula",i.delete=!0,i.inputModul=e,i.inputModulIx=n,i.submitButton="Izbri\u0161i modul";break;case"update":i.modalTitle="Posodabljanje modula",i.update=!0,i.inputModul=e,i.inputModulIx=n,i.submitButton="Posodobi modul";break;default:console.log("Ta akcija za modalno okno pri modulih ne obstaja")}}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(zy),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-admin-moduli"]],inputs:{moduli:"moduli"},decls:12,vars:2,consts:[[1,"section-moduli"],[1,"row"],[1,"naslov-sekcije","col-sm-11","col-md-11","col-xl-11"],[1,"float-left"],[1,"text-dark"],[1,"float-left","ml-4","mb-2"],[1,"btn","btn-dark","btn-admin","px-5",3,"disabled","click"],[1,"podsekcije"],["class","row",4,"ngFor","ngForOf"],[1,"ena-vrstica","col-sm-10","col-md-9","col-xl-9"],[1,"float-right"],[1,"btn","btn-dark","btn-admin","mx-2","my-0",3,"disabled","click"],["aria-label","Izbri\u0161i modul.",1,"btn","btn-danger","btn-admin","text-dark","mx-2",3,"disabled","click"],[1,"far","fa-trash-alt","fa-lg",2,"color","black"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"div",1),xo(2,"div",2),xo(3,"span",3),xo(4,"p",4),xo(5,"b"),oa(6,"MODULI"),Oo(),Oo(),Oo(),xo(7,"span",5),xo(8,"button",6),Ro("click",function(){return e.openModal("new")}),oa(9,"Dodaj modul"),Oo(),Oo(),Oo(),Oo(),xo(10,"div",7),ko(11,hw,10,3,"div",8),Oo(),Oo()),2&t&&(Br(8),So("disabled",!e.jePovezava()),Br(3),So("ngForOf",e.moduli))},directives:[sd],styles:[""]}),t})();function fw(t,e){if(1&t&&(xo(0,"div",2),xo(1,"div",3),oa(2),Oo(),xo(3,"h4"),oa(4,"ADMIN MANAGEMENT"),Oo(),Eo(5,"app-admin-osebje",4),Eo(6,"app-admin-predmeti",5),Eo(7,"app-admin-moduli",6),Oo()),2&t){const t=Do();Br(1),So("hidden",!t.sporociloNapaka),Br(1),aa(t.sporociloNapaka),Br(3),So("osebje",t.osebje),Br(1),So("predmeti",t.predmeti)("osebje",t.osebje)("moduli",t.moduli),Br(1),So("moduli",t.moduli)}}function mw(t,e){1&t&&(xo(0,"h3",7),oa(1,"Administratorska opravila so na voljo le administratorjem."),Eo(2,"br"),oa(3,"Lp in lep pozdrav"),Oo())}let gw=(()=>{class t{constructor(t,e,n){this.adminPodatkiStoritev=t,this.avtentikacijaStoritev=e,this.povezavaStoritev=n}jeAdmin(){this.admin=this.avtentikacijaStoritev.jeAdmin()}pridobiOsebje(){this.adminPodatkiStoritev.pridobiOsebje().then(t=>{this.osebje=t}).catch(t=>this.sporociloNapaka=t)}pridobiPredmete(){this.adminPodatkiStoritev.pridobiPredmete().then(t=>this.predmeti=t).catch(t=>this.sporociloNapaka=t)}pridobiModule(){this.adminPodatkiStoritev.pridobiModule().then(t=>this.moduli=t).catch(t=>this.sporociloNapaka=t)}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){this.jeAdmin(),this.admin&&(this.pridobiOsebje(),this.pridobiPredmete(),this.pridobiModule())}}return t.\u0275fac=function(e){return new(e||t)(Co(eb),Co(Iv),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-admin"]],decls:2,vars:2,consts:[["class","p-5 content bg-dark","id","admin_managment",4,"ngIf"],["class","m-3",4,"ngIf"],["id","admin_managment",1,"p-5","content","bg-dark"],[1,"alert","alert-warning",3,"hidden"],[3,"osebje"],[3,"predmeti","osebje","moduli"],[3,"moduli"],[1,"m-3"]],template:function(t,e){1&t&&(ko(0,fw,8,7,"div",0),ko(1,mw,4,0,"h3",1)),2&t&&(So("ngIf",e.admin),Br(1),So("ngIf",!e.admin))},directives:[ad,H_,sw,pw],styles:[""]}),t})(),vw=(()=>{class t{constructor(t,e){this.http=t,this.authStoritev=e,this.apiUrl=Ov}httpLastnosti(){return{headers:new Yd({Authorization:`Bearer ${this.authStoritev.vrniZeton()}`})}}pretvoriRezultat(t){var e=t;return e.komentarji=[],e}naloziGradivo(t){var e=new FormData;return t.datoteka?e.set("datoteka",t.datoteka):t.povezava&&e.set("povezava",t.povezava.toString()),this.http.post(`${this.apiUrl}/predmeti/${t.predmet}/gradivo`,e,this.httpLastnosti()).toPromise().then(t=>this.pretvoriRezultat(t)).catch(t=>{throw this.obdelajNapako(t),t})}prijaviGradivo(t){return this.http.post(`${this.apiUrl}/gradivo/${t}/prijava`,{}).toPromise().then(t=>this.pretvoriRezultat(t)).catch(this.obdelajNapako)}izbrisiGradivo(t){return this.http.delete(`${this.apiUrl}/gradivo/${t}`,this.httpLastnosti()).toPromise().catch(this.obdelajNapako)}preklopiVidljivostGradiva(t){return this.http.post(`${this.apiUrl}/gradivo/${t}/preklopiVidljivost`,{},this.httpLastnosti()).toPromise().then(t=>this.pretvoriRezultat(t)).catch(this.obdelajNapako)}objaviKomentar(t,e){return this.http.post(`${this.apiUrl}/gradivo/${t}/komentar`,e,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}prijaviKomentar(t,e){return this.http.post(`${this.apiUrl}/gradivo/${t}/komentar/${e}/prijava`,{}).toPromise().then(t=>t).catch(this.obdelajNapako)}izbrisiKomentar(t,e){return this.http.delete(`${this.apiUrl}/gradivo/${t}/komentar/${e}`,this.httpLastnosti()).toPromise().catch(this.obdelajNapako)}obdelajNapako(t){return console.error("Pri\u0161lo je do napake",t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t),Promise.reject(t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t)}}return t.\u0275fac=function(e){return new(e||t)(vi(hh),vi(Iv))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bw=(()=>{class t{transform(t,...e){var n=new Date(Date.parse(t)),i=new Date,r=Math.abs(Math.floor((Date.UTC(i.getFullYear(),i.getMonth(),i.getDate())-Date.UTC(n.getFullYear(),n.getMonth(),n.getDate()))/864e5));return 0==r?"Danes":1==r?"V\u010deraj":r<=30?`Pred ${r} dnevi`:"Ve\u010d kot mesec nazaj"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Xt({name:"casOddaje",type:t,pure:!0}),t})();function yw(t,e){1&t&&(xo(0,"span"),oa(1,"(Anonimno)"),Oo())}function _w(t,e){if(1&t&&(xo(0,"span"),oa(1),ko(2,yw,2,0,"span",1),Oo()),2&t){const t=Do();Br(1),la("",t.komentar.avtor.uporabniskoIme," "),Br(1),So("ngIf",t.komentar.anonimnost)}}function ww(t,e){1&t&&(xo(0,"span"),oa(1,"Anonimen uporabnik"),Oo())}function kw(t,e){if(1&t){const t=zo();Io(0),xo(1,"p",4),oa(2),Oo(),xo(3,"button",5),Ro("click",function(){Ve(t);const e=Do();return e.izbrisiKomentar(e.komentar)}),Eo(4,"i",6),Oo(),Ao()}if(2&t){const t=Do();Br(2),la("\u0160t. prijav: ",t.komentar.stPrijav,"")}}function jw(t,e){if(1&t){const t=zo();xo(0,"button",5),Ro("click",function(){return Ve(t),Do(2).izbrisiKomentar()}),Eo(1,"i",6),Oo()}}function Cw(t,e){if(1&t){const t=zo();xo(0,"button",9),Ro("click",function(){return Ve(t),Do(2).prijaviKomentar()}),oa(1,"Prijavi komentar"),Oo()}}function Sw(t,e){if(1&t&&(Io(0),ko(1,jw,2,0,"button",7),ko(2,Cw,2,0,"button",8),Ao()),2&t){const t=Do();Br(1),So("ngIf",t.jeAvtor),Br(1),So("ngIf",!t.jeAvtor)}}let Pw=(()=>{class t{constructor(t,e){this.gradivoStoritev=t,this.authStoritev=e,this.izbrisi=new vc,this.prijavi=new vc}ngOnInit(){console.log(this.komentar),this.jePrijavljen=this.authStoritev.jePrijavljen(),this.jeAdmin=this.authStoritev.jeAdmin();var t=this.authStoritev.vrniTrenutnegaUporabnika();this.jeAvtor=!!t&&this.komentar.avtor&&t._id==this.komentar.avtor._id}prijaviKomentar(){return Pv(this,void 0,void 0,function*(){this.komentar=yield this.gradivoStoritev.prijaviKomentar(this.gradivo._id,this.komentar._id),this.prijavi.emit(this.komentar)})}izbrisiKomentar(){return Pv(this,void 0,void 0,function*(){yield this.gradivoStoritev.izbrisiKomentar(this.gradivo._id,this.komentar._id),this.izbrisi.emit(this.komentar)})}}return t.\u0275fac=function(e){return new(e||t)(Co(vw),Co(Iv))},t.\u0275cmp=qt({type:t,selectors:[["app-komentar"]],inputs:{gradivo:"gradivo",komentar:"komentar"},outputs:{izbrisi:"izbrisi",prijavi:"prijavi"},decls:10,vars:8,consts:[[1,"h5","ml-3","d-inline"],[4,"ngIf"],[1,"h6","ml-3"],[1,"p-3"],[1,"px-3","text-danger"],[1,"btn","btn-secondary","mx-3","mb-3",3,"click"],[1,"fa","fa-trash-alt","mx-3"],["class","btn btn-secondary mx-3 mb-3",3,"click",4,"ngIf"],["class","btn btn-secondary mx-2 mb-3 p-1",3,"click",4,"ngIf"],[1,"btn","btn-secondary","mx-2","mb-3","p-1",3,"click"]],template:function(t,e){1&t&&(xo(0,"p",0),ko(1,_w,3,2,"span",1),ko(2,ww,2,0,"span",1),Oo(),xo(3,"p",2),oa(4),mc(5,"casOddaje"),Oo(),xo(6,"p",3),oa(7),Oo(),ko(8,kw,5,1,"ng-container",1),ko(9,Sw,3,2,"ng-container",1)),2&t&&(Br(1),So("ngIf",e.komentar.avtor),Br(1),So("ngIf",!e.komentar.avtor),Br(2),aa(gc(5,6,e.komentar.datum)),Br(3),aa(e.komentar.besedilo),Br(1),So("ngIf",e.jeAdmin),Br(1),So("ngIf",!e.jeAdmin))},directives:[ad],pipes:[bw],styles:[""]}),t})();function xw(t,e){1&t&&(xo(0,"div",7),xo(1,"div",8),xo(2,"strong"),oa(3,"Praznega komentarja ne more\u0161 oddati!"),Oo(),Oo(),Oo())}let Ow=(()=>{class t{constructor(t,e){this.podatkiStoritev=t,this.authStoritev=e,this.objavi=new vc}ngOnInit(){this.prazenKomentar=!1,this.komentar={gradivo:this.gradivo._id,avtor:this.authStoritev.vrniTrenutnegaUporabnika()._id,anonimno:!1,komentar:""}}posodobiBesedilo(t){this.komentar.komentar=t}objaviKomentar(){""==this.komentar.komentar?this.prazenKomentar=!0:(this.prazenKomentar=!1,this.podatkiStoritev.objaviKomentar(this.gradivo._id,this.komentar).then(t=>{this.komentar.komentar="",this.objavi.emit(t)}))}}return t.\u0275fac=function(e){return new(e||t)(Co(vw),Co(Iv))},t.\u0275cmp=qt({type:t,selectors:[["app-nov-komentar"]],inputs:{gradivo:"gradivo"},outputs:{objavi:"objavi"},decls:9,vars:3,consts:[[1,"form-group","mt-3","ml-3"],["rows","3","placeholder","Vpi\u0161i svoj komentar",1,"komentar","text-dark","form-control",3,"ngModel","ngModelChange","input"],[1,"form-check","m-1"],["type","checkbox",1,"form-check-input",3,"ngModel","ngModelChange"],["for","anonimno",1,"form-check-label"],[1,"btn","gradivoOptions","my-2",3,"click"],["class","alerts col-md-12 d-block",4,"ngIf"],[1,"alerts","col-md-12","d-block"],["role","alert",1,"alert","alert-danger"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"textarea",1),Ro("ngModelChange",function(t){return e.komentar.komentar=t})("input",function(t){return e.posodobiBesedilo(t.target.value)}),Oo(),xo(2,"div",2),xo(3,"input",3),Ro("ngModelChange",function(t){return e.komentar.anonimno=t}),Oo(),xo(4,"label",4),oa(5,"Komentiraj anonimno"),Oo(),Oo(),xo(6,"button",5),Ro("click",function(){return e.objaviKomentar()}),oa(7,"ODDAJ KOMENTAR"),Oo(),ko(8,xw,4,0,"div",6),Oo()),2&t&&(Br(1),So("ngModel",e.komentar.komentar),Br(2),So("ngModel",e.komentar.anonimno),Br(5),So("ngIf",e.prazenKomentar))},directives:[Rh,Xh,Cp,zh,ad],styles:[""]}),t})();function Ew(t,e){1&t&&Eo(0,"i",16)}function Iw(t,e){1&t&&Eo(0,"i",17)}function Aw(t,e){if(1&t){const t=zo();Io(0),xo(1,"button",12),Ro("click",function(){return Ve(t),Do(2).preklopiVidljivost()}),ko(2,Ew,1,0,"i",13),ko(3,Iw,1,0,"i",14),Oo(),xo(4,"button",12),Ro("click",function(){return Ve(t),Do(2).izbrisiGradivo()}),Eo(5,"i",15),Oo(),Ao()}if(2&t){const t=Do(2);Br(2),So("ngIf",t.vidno),Br(1),So("ngIf",!t.vidno)}}function zw(t,e){1&t&&(xo(0,"p"),oa(1,"Komentarji"),Oo())}function Tw(t,e){if(1&t){const t=zo();xo(0,"div",18),xo(1,"app-komentar",19),Ro("izbrisi",function(e){return Ve(t),Do(2).izbrisiKomentar(e)}),Oo(),Oo()}if(2&t){const t=e.$implicit,n=Do(2);Br(1),So("gradivo",n.gradivo)("komentar",t)}}function Nw(t,e){if(1&t){const t=zo();xo(0,"app-nov-komentar",20),Ro("objavi",function(e){return Ve(t),Do(2).objaviKomentar(e)}),Oo()}2&t&&So("gradivo",Do(2).gradivo)}function Rw(t,e){if(1&t){const t=zo();xo(0,"div",2),xo(1,"p",3),oa(2),Oo(),ko(3,Aw,6,2,"ng-container",4),xo(4,"button",5),Ro("click",function(){return Ve(t),Do().prijaviGradivo()}),Eo(5,"i",6),Oo(),xo(6,"button",7),xo(7,"a",8),Ro("click",function(){return Ve(t),Do().odpri()}),Oo(),Oo(),xo(8,"div",9),ko(9,zw,2,0,"p",4),ko(10,Tw,2,2,"div",10),ko(11,Nw,1,1,"app-nov-komentar",11),Oo(),Oo()}if(2&t){const t=Do();Br(2),la("\u0160t. prijav gradiva: ",t.gradivo.stPrijav,""),Br(1),So("ngIf",t.jeAdmin),Br(6),So("ngIf",t.gradivo.komentarji.length>0),Br(1),So("ngForOf",t.gradivo.komentarji),Br(1),So("ngIf",t.jePrijavljen)}}let Mw=(()=>{class t{constructor(t,e){this.gradivoStoritev=t,this.authStoritev=e,this.gradivoChange=new vc,this.izbrisi=new vc,this.prikaziInfo=!1}ngOnInit(){this.jePrijavljen=this.authStoritev.jePrijavljen(),this.jeAdmin=this.authStoritev.jeAdmin(),this.vidno=this.gradivo.vidno}togglePrikaziInfo(){this.prikaziInfo=!this.prikaziInfo}prijaviGradivo(){return Pv(this,void 0,void 0,function*(){this.gradivo=yield this.gradivoStoritev.prijaviGradivo(this.gradivo._id),this.gradivoChange.emit(this.gradivo)})}izbrisiGradivo(){return Pv(this,void 0,void 0,function*(){yield this.gradivoStoritev.izbrisiGradivo(this.gradivo._id),this.izbrisi.emit(this.gradivo)})}preklopiVidljivost(){return Pv(this,void 0,void 0,function*(){this.gradivo=yield this.gradivoStoritev.preklopiVidljivostGradiva(this.gradivo._id),this.vidno=this.gradivo.vidno,this.gradivoChange.emit(this.gradivo)})}objaviKomentar(t){this.gradivo.komentarji.push(t),this.gradivoChange.emit(this.gradivo)}izbrisiKomentar(t){this.gradivo.komentarji=this.gradivo.komentarji.filter(e=>e._id!=t._id),this.gradivoChange.emit(this.gradivo)}odpri(){window.open(`${Ov}/gradivo/${this.gradivo._id}`,"_blank")}}return t.\u0275fac=function(e){return new(e||t)(Co(vw),Co(Iv))},t.\u0275cmp=qt({type:t,selectors:[["app-gradivo"]],inputs:{gradivo:"gradivo",gradivoChange:"gradivoChange"},outputs:{izbrisi:"izbrisi"},decls:3,vars:2,consts:[[1,"btn","predmet-btn","dropdown-toggle","my-2","pl-3",3,"click"],["class","pl-2",4,"ngIf"],[1,"pl-2"],[1,"px-3","text-danger"],[4,"ngIf"],[1,"btn","btn-secondary","gradivoOptions","ml-3",3,"click"],[1,"fa","fa-exclamation-triangle","black","d-inline","mx-1","mt-1"],[1,"btn","gradivoOptions","ml-3"],[1,"fa","fa-download","black","d-inline","mx-1","mt-1",3,"click"],[1,"mt-2","ml-3"],["class","komentar text-dark my-2",4,"ngFor","ngForOf"],[3,"gradivo","objavi",4,"ngIf"],[1,"btn","gradivoOptions","ml-3",3,"click"],["class","fa fa-eye-slash black d-inline mx-1 mt-1",4,"ngIf"],["class","fa fa-eye black d-inline mx-1 mt-1",4,"ngIf"],[1,"fa","fa-trash-alt","black","d-inline","mx-1","mt-1"],[1,"fa","fa-eye-slash","black","d-inline","mx-1","mt-1"],[1,"fa","fa-eye","black","d-inline","mx-1","mt-1"],[1,"komentar","text-dark","my-2"],[3,"gradivo","komentar","izbrisi"],[3,"gradivo","objavi"]],template:function(t,e){1&t&&(xo(0,"button",0),Ro("click",function(){return e.togglePrikaziInfo()}),oa(1),Oo(),ko(2,Rw,12,5,"div",1)),2&t&&(Br(1),aa(e.gradivo.ime),Br(1),So("ngIf",e.prikaziInfo))},directives:[ad,sd,Pw,Ow],styles:[""]}),t})(),Vw=(()=>{class t{constructor(t,e){this.http=t,this.authStoritev=e,this.apiUrl=Ov}httpLastnosti(){return this.authStoritev.vrniZeton()?{headers:new Yd({Authorization:`Bearer ${this.authStoritev.vrniZeton()}`})}:{headers:null}}pridobiPredmetById(t){return this.http.get(`${this.apiUrl}/predmeti/${t}`,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}obdelajNapako(t){return console.error("Pri\u0161lo je do napake",t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t),Promise.reject(t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t)}}return t.\u0275fac=function(e){return new(e||t)(vi(hh),vi(Iv))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Dw=(()=>{class t{transform(t,...e){return Math.round(t/Math.pow(1024,2)*100)/100+" MB"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Xt({name:"velikostDatoteke",type:t,pure:!0}),t})();function Uw(t,e){1&t&&(xo(0,"label",13),oa(1,"Izberi datoteko (max 16 Mb)"),Oo())}function Lw(t,e){if(1&t&&(xo(0,"label",13),oa(1),mc(2,"velikostDatoteke"),Oo()),2&t){const t=Do();Br(1),ca("",t.datoteka.name," (",gc(2,2,t.datoteka.size),")")}}function Fw(t,e){1&t&&(xo(0,"div",14),xo(1,"strong"),oa(2,"Gradivo dodano!"),Oo(),Oo())}function $w(t,e){1&t&&(xo(0,"div",15),xo(1,"strong"),oa(2,"Nalaganje gradiva ni uspelo."),Oo(),Oo())}let Hw=(()=>{class t{constructor(t){this.gradivoPodatkiService=t,this.gradivoDodano=!1,this.obaPrisotna=!1,this.uploadNapaka=!1,this.nalozi=new vc,this.datoteka=null}ngOnInit(){}getFile(t){(!t||t.length>0)&&(this.datoteka=null),this.datoteka=t[0]}preveriPravilnost(){this.obaPrisotna=!(!this.datoteka||!this.povezava)}naloziGradivo(){var t;this.preveriPravilnost(),this.obaPrisotna||(t=this.datoteka?{predmet:this.predmet._id,datoteka:this.datoteka}:{predmet:this.predmet._id,povezava:new URL(this.povezava)},this.datoteka=null,this.povezava="",this.gradivoPodatkiService.naloziGradivo(t).then(t=>this.nalozi.emit(t)).catch(t=>this.uploadNapaka=!0))}}return t.\u0275fac=function(e){return new(e||t)(Co(vw))},t.\u0275cmp=qt({type:t,selectors:[["app-gradivo-upload"]],inputs:{predmet:"predmet"},outputs:{nalozi:"nalozi"},decls:18,vars:5,consts:[[1,"h4","m-3"],[1,"form-group","mt-3","ml-3"],["rows","1","placeholder","Link do gradiva","pattern","https?:\\/\\/[-a-zA-Z0-9@:%._\\+~#=]+\\.[a-zA-Z0-9()]+\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)",1,"form-control",3,"ngModel","ngModelChange","input"],[1,"input-group","mb-3"],[1,"custom-file","ml-3"],["type","file",1,"custom-file-input",3,"input"],["class","custom-file-label",4,"ngIf"],[1,"alerts","col-md-12"],["class","alert alert-success d-block","role","alert",4,"ngIf"],["class","alert alert-danger d-block","role","alert",4,"ngIf"],[1,"gradivoOptions","btn","btn-block","m-2",3,"click"],[1,"fa","fa-upload","black","mt-2"],[1,"ml-1"],[1,"custom-file-label"],["role","alert",1,"alert","alert-success","d-block"],["role","alert",1,"alert","alert-danger","d-block"]],template:function(t,e){1&t&&(xo(0,"p",0),oa(1,"Povezava"),Oo(),xo(2,"div",1),xo(3,"textarea",2),Ro("ngModelChange",function(t){return e.povezava=t})("input",function(){return e.preveriPravilnost()}),Oo(),Oo(),xo(4,"p",0),oa(5,"Nalo\u017ei datoteko"),Oo(),xo(6,"div",3),xo(7,"div",4),xo(8,"input",5),Ro("input",function(t){return e.getFile(t.target.files)}),Oo(),ko(9,Uw,2,0,"label",6),ko(10,Lw,3,4,"label",6),Oo(),Oo(),xo(11,"div",7),ko(12,Fw,3,0,"div",8),ko(13,$w,3,0,"div",9),Oo(),xo(14,"button",10),Ro("click",function(){return e.naloziGradivo()}),Eo(15,"i",11),xo(16,"b",12),oa(17,"Dodaj"),Oo(),Oo()),2&t&&(Br(3),So("ngModel",e.povezava),Br(6),So("ngIf",!e.datoteka),Br(1),So("ngIf",e.datoteka),Br(2),So("ngIf",e.gradivoDodano),Br(1),So("ngIf",e.uploadNapaka))},directives:[Rh,Up,Xh,Cp,ad],pipes:[Dw],styles:[""]}),t})();function Bw(t,e){1&t&&(xo(0,"div",5),xo(1,"p",6),oa(2,"Predmet \u0161e nima objavljenega gradiva :("),Eo(3,"br"),oa(4,"Bodi car in ga dodaj!"),Oo(),Oo())}function Gw(t,e){if(1&t){const t=zo();xo(0,"app-gradivo",7),Ro("izbrisi",function(e){return Ve(t),Do().izbrisiGradivo(e)}),Oo()}2&t&&So("gradivo",e.$implicit)}function qw(t,e){if(1&t){const t=zo();Io(0),xo(1,"div",8),xo(2,"p",9),oa(3,"Dodaj novo gradivo"),Oo(),Oo(),xo(4,"app-gradivo-upload",10),Ro("nalozi",function(e){return Ve(t),Do().naloziGradivo(e)}),Oo(),Ao()}if(2&t){const t=Do();Br(4),So("predmet",t.predmet)}}let Ww=(()=>{class t{constructor(t){this.authStoritev=t}ngOnInit(){this.jePrijavljen=this.authStoritev.jePrijavljen()}izbrisiGradivo(t){this.predmet.gradiva=this.predmet.gradiva.filter(e=>e._id!=t._id)}naloziGradivo(t){this.predmet.gradiva.push(t)}}return t.\u0275fac=function(e){return new(e||t)(Co(Iv))},t.\u0275cmp=qt({type:t,selectors:[["app-predmet-gradiva"]],inputs:{predmet:"predmet"},decls:6,vars:3,consts:[[1,"content","bg-darkerBg","p-3","mb-3"],[1,"h4"],["class","pl-2 pt-3",4,"ngIf"],[3,"gradivo","izbrisi",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"pl-2","pt-3"],[1,"text-info"],[3,"gradivo","izbrisi"],[1,"content","bg-default","mt-5","p-3"],[1,"h4","black","mx-3","text-center"],[3,"predmet","nalozi"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"p",1),oa(2,"DOKUMENTI IN POVEZAVE"),Oo(),ko(3,Bw,5,0,"div",2),ko(4,Gw,1,1,"app-gradivo",3),ko(5,qw,5,1,"ng-container",4),Oo()),2&t&&(Br(3),So("ngIf",!e.predmet.gradiva||0==e.predmet.gradiva.length),Br(1),So("ngForOf",e.predmet.gradiva),Br(1),So("ngIf",e.jePrijavljen))},directives:[ad,sd,Mw,Hw],styles:[""]}),t})();function Zw(t,e){if(1&t){const t=zo();xo(0,"a",17),Ro("click",function(){Ve(t);const e=Do(2);return e.openModal("update",e.predmet)}),xo(1,"button",18),oa(2,"Uredi "),Eo(3,"i",19),Oo(),Oo()}}function Kw(t,e){if(1&t){const t=zo();xo(0,"a",20),Ro("click",function(){Ve(t);const n=e.$implicit;return Do(2).openOsebje(n._id)}),oa(1),Eo(2,"i",21),Oo()}if(2&t){const t=e.$implicit;Br(1),la("Profesor | ",t.ime_priimek,"")}}function Qw(t,e){if(1&t){const t=zo();xo(0,"a",22),Ro("click",function(){Ve(t);const n=e.$implicit;return Do(2).openOsebje(n._id)}),oa(1),Eo(2,"i",21),Oo()}if(2&t){const t=e.$implicit;Br(1),la("Asistent | ",t.ime_priimek,"")}}function Jw(t,e){if(1&t&&(xo(0,"div",23),oa(1),mc(2,"formatirajLetnik"),Oo()),2&t){const t=Do(2);Br(1),la("Letnik | ",gc(2,1,t.predmet.letnik),"")}}function Yw(t,e){if(1&t&&(xo(0,"div",24),oa(1),mc(2,"formatirajTipIzbirnega"),Oo()),2&t){const t=Do(2);Br(1),la("Tip | ",gc(2,1,t.predmet.vrstaIzbirnega),"")}}function Xw(t,e){1&t&&(xo(0,"div",24),oa(1,"Tip | Obvezni predmet"),Oo())}function tk(t,e){1&t&&(xo(0,"div",24),oa(1,"Tip | Modulski predmet"),Oo())}function ek(t,e){if(1&t&&(Io(0),ko(1,Xw,2,0,"div",13),ko(2,tk,2,0,"div",13),Ao()),2&t){const t=Do(2);Br(1),So("ngIf",0==t.predmet.moduli.length),Br(1),So("ngIf",t.predmet.moduli.length>0)}}function nk(t,e){if(1&t&&(xo(0,"div",25),oa(1),Oo()),2&t){const t=e.$implicit;Br(1),la("Modul | ",t.ime,"")}}function ik(t,e){if(1&t){const t=zo();xo(0,"div",2),xo(1,"div",3),xo(2,"p",4),oa(3),Oo(),ko(4,Zw,4,0,"a",5),xo(5,"div",6),xo(6,"p",7),oa(7,"Vsebina"),Oo(),xo(8,"p",8),oa(9),Oo(),xo(10,"div"),ko(11,Kw,3,1,"a",9),ko(12,Qw,3,1,"a",10),ko(13,Jw,3,3,"div",11),xo(14,"div",12),oa(15),mc(16,"formatirajSemester"),Oo(),ko(17,Yw,3,3,"div",13),ko(18,ek,3,2,"ng-container",14),ko(19,nk,2,1,"div",15),Oo(),Oo(),xo(20,"app-predmet-gradiva",16),Ro("predmetChange",function(e){return Ve(t),Do().predmet=e}),Oo(),Oo(),Oo()}if(2&t){const t=Do();Br(3),aa(t.predmet.ime),Br(1),So("ngIf",t.jeAdmin),Br(5),aa(t.predmet.opis),Br(2),So("ngForOf",t.predmet.profesorji),Br(1),So("ngForOf",t.predmet.asistenti),Br(1),So("ngIf",t.predmet.letnik>0),Br(2),la("Semester | ",gc(16,11,t.predmet.semester),""),Br(2),So("ngIf",t.predmet.vrstaIzbirnega&&0!=t.predmet.vrstaIzbirnega),Br(1),So("ngIf",!t.predmet.vrstaIzbirnega||0==t.predmet.vrstaIzbirnega),Br(1),So("ngForOf",t.predmet.moduli),Br(1),So("predmet",t.predmet)}}function rk(t,e){1&t&&(xo(0,"div",26),oa(1," Nalagam predmet "),Oo())}const sk=[{path:"",component:Sv},{path:"registracija",component:Dv},{path:"prijava",component:Bv},{path:"obnoviGeslo",component:Yv},{path:"vnesiNovoGeslo/:eposta",component:Zv},{path:"db",component:b_},{path:"splosniPogoji",component:y_},{path:"potrditevObnoveGesla",component:__},{path:"uporabniki/:idUporabnika",component:I_},{path:"admin",component:gw},{path:"admin/osebje",component:H_},{path:"gradivo/:idGradiva",component:Mw},{path:"predmeti/:idPredmeta",component:(()=>{class t{constructor(t,e,n,i,r){this.predmetPodatkiService=t,this.adminPodatkiStoritev=e,this.authStoritev=n,this.modalService=i,this.pot=r}pridobiPredmetNaTemNaslovu(){this.pot.paramMap.pipe(ef(t=>{let e=t.get("idPredmeta");return this.predmetPodatkiService.pridobiPredmetById(e)})).subscribe(t=>{this.predmet=t,console.log(this.predmet)})}openModal(t,e,n){const i=JSON.parse(JSON.stringify(e));var r=this.modalService.open(iw,{centered:!0,size:"md"}).componentInstance;switch(t){case"update":r.modalTitle="Posodabljanje predmeta",r.update=!0,r.noviPredmet=i,r.referencaNaStariPredmet=e,r.submitButton="Posodobi predmet";break;default:console.log("Ta akcija za modalno okno pri modulih ne obstaja")}}openOsebje(t){this.modalService.open(Xy,{centered:!0,size:"md"}).componentInstance.idInput=t}ngOnInit(){this.jeAdmin=this.authStoritev.jeAdmin(),this.pridobiPredmetNaTemNaslovu()}}return t.\u0275fac=function(e){return new(e||t)(Co(Vw),Co(eb),Co(Iv),Co(zy),Co(Vm))},t.\u0275cmp=qt({type:t,selectors:[["app-predmet"]],decls:3,vars:2,consts:[["class","content bg-dark",4,"ngIf","ngIfElse"],["niPredmeta",""],[1,"content","bg-dark"],[1,"p-3"],[1,"h1","p-3"],[3,"click",4,"ngIf"],[1,"content","bg-darkerBg","p-3","my-3"],[1,"h4"],[1,"mt-3","ml-1"],["class","btn btn-profesor rounded m-1",3,"click",4,"ngFor","ngForOf"],["class","btn btn-asistent rounded m-1",3,"click",4,"ngFor","ngForOf"],["class","btn btn-letnik rounded m-1",4,"ngIf"],[1,"btn","btn-semester","rounded","m-1"],["class","btn btn-tip rounded m-1",4,"ngIf"],[4,"ngIf"],["class","btn btn-modul rounded m-1",4,"ngFor","ngForOf"],[3,"predmet","predmetChange"],[3,"click"],[1,"btn","btn-secondary","ml-3"],[1,"fa","fa-edit","d-inline","p-3"],[1,"btn","btn-profesor","rounded","m-1",3,"click"],[1,"fas","fa-external-link-alt","ml-2"],[1,"btn","btn-asistent","rounded","m-1",3,"click"],[1,"btn","btn-letnik","rounded","m-1"],[1,"btn","btn-tip","rounded","m-1"],[1,"btn","btn-modul","rounded","m-1"],["role","alert",1,"alert","alert-warning",2,"margin-top","10px"]],template:function(t,e){if(1&t&&(ko(0,ik,21,13,"div",0),ko(1,rk,2,0,"ng-template",null,1,Rc)),2&t){const t=jo(2);So("ngIf",e.predmet)("ngIfElse",t)}},directives:[ad,sd,Ww],pipes:[G_,B_,q_],styles:[""]}),t})()},{path:"osebje/:idOseba/nastavitve",component:(()=>{class t{constructor(t,e,n){this.adminPodatkiStoritev=t,this.pot=e,this.povezavaStoritev=n,this.naslov="NASTAVITVE OSEBJA",this.profesorAsistent={_id:"",ime_priimek:"",akademskiNaziv:"",izobrazba:"",opis:""}}ngOnInit(){this.pot.paramMap.pipe(ef(t=>(this.idOseba=t.get("idOseba"),this.adminPodatkiStoritev.pridobiOsebje()))).subscribe(t=>{this.osebje=t;const e=t.find(t=>t._id===this.idOseba);this.profesorAsistent._id=e._id,this.profesorAsistent.ime_priimek=e.ime_priimek,this.profesorAsistent.akademskiNaziv=e.akademskiNaziv,this.profesorAsistent.izobrazba=e.izobrazba,this.profesorAsistent.opis=e.opis})}jePovezava(){return this.povezavaStoritev.jePovezava}}return t.\u0275fac=function(e){return new(e||t)(Co(eb),Co(Vm),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-osebje-nastavitve"]],decls:64,vars:16,consts:[[1,"p-5","content","bg-dark"],[1,"h3","p-3"],["id","idOseba",1,"hidden"],[1,"vsebina"],["action","#"],[1,"form-group","col-11"],["for","formAkademskiNazivInput"],["id","formAkademskiNazivInput",1,"form-control",3,"disabled"],["hidden",""],["for","formIzobrazbaInput"],["type","text","id","formIzobrazbaInput","placeholder","npr. dipl. in\u017e. ra\u010d. mat.",1,"form-control",3,"value","disabled"],["for","formImeInPriimekInput"],["type","text","id","formImeInPriimekInput","placeholder","Ime Priimek",1,"form-control",3,"value","disabled"],["for","textAreaOpis"],["id","textAreaOpis","rows","4","placeholder","Kratek opis izobrazbe, dela, podro\u010dij raziskovanja.",1,"form-control",3,"disabled"],[1,"btn-objavi"],["id","zelen-gumb","type","submit",1,"btn","btn-success",3,"disabled"],["id","rdec-gumb","type","submit",1,"btn","btn-danger",3,"disabled"],["id","alert-izobrazba","role","alert",1,"alert","alert-warning","alert-dismissible","fade","show"],["type","button","data-dismiss","alert","aria-label","Close",1,"close",3,"disabled"],["aria-hidden","true"],["id","alert-ime-priimek","role","alert",1,"alert","alert-warning","alert-dismissible","fade","show"],["id","alert-ni-slike","role","alert",1,"alert","alert-warning","alert-dismissible","fade","show"],["id","alert-empty-polja","role","alert",1,"alert","alert-warning","alert-dismissible","fade","show"],["id","alert-oseba-posodobljena","role","alert",1,"alert","alert-success","alert-dismissible","fade","show"],["type","button","data-dismiss","alert","aria-label","Close",1,"close"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"p",1),oa(2),Oo(),xo(3,"p",2),oa(4),Oo(),xo(5,"div",3),xo(6,"form",4),xo(7,"div",5),xo(8,"label",6),oa(9,"AKADEMSKI NAZIV"),Oo(),xo(10,"select",7),xo(11,"option",8),oa(12),Oo(),xo(13,"option"),oa(14,"brez"),Oo(),xo(15,"option"),oa(16,"asistent"),Oo(),xo(17,"option"),oa(18,"docent"),Oo(),xo(19,"option"),oa(20,"profesor"),Oo(),Oo(),Oo(),xo(21,"div",5),xo(22,"label",9),oa(23,"IZOBRAZBA"),Oo(),Eo(24,"input",10),Oo(),xo(25,"div",5),xo(26,"label",11),oa(27,"IME IN PRIIMEK"),Oo(),Eo(28,"input",12),Oo(),xo(29,"div",5),xo(30,"label",13),oa(31,"OPIS"),Oo(),xo(32,"textarea",14),oa(33),Oo(),xo(34,"div",15),xo(35,"button",16),oa(36,"Shrani"),Oo(),xo(37,"button",17),oa(38,"Izbri\u0161i"),Oo(),Oo(),Oo(),Oo(),Oo(),Oo(),xo(39,"div",18),oa(40," Vpi\u0161ite ustrezno izobrazbo. "),xo(41,"button",19),xo(42,"span",20),oa(43,"\xd7"),Oo(),Oo(),Oo(),xo(44,"div",21),oa(45," Vpi\u0161ite ustrezno ime in priimek. "),xo(46,"button",19),xo(47,"span",20),oa(48,"\xd7"),Oo(),Oo(),Oo(),xo(49,"div",22),oa(50," Nalo\u017eiti je potrebno tudi sliko. "),xo(51,"button",19),xo(52,"span",20),oa(53,"\xd7"),Oo(),Oo(),Oo(),xo(54,"div",23),oa(55," Izpolniti je potrebno vsa polja. "),xo(56,"button",19),xo(57,"span",20),oa(58,"\xd7"),Oo(),Oo(),Oo(),xo(59,"div",24),oa(60," Oseba je uspe\u0161no posodobljena! "),xo(61,"button",25),xo(62,"span",20),oa(63,"\xd7"),Oo(),Oo(),Oo()),2&t&&(Br(2),aa(e.naslov),Br(2),aa(e.profesorAsistent._id),Br(6),So("disabled",!e.jePovezava()),Br(2),aa(e.profesorAsistent.akademskiNaziv),Br(12),Uo("value",e.profesorAsistent.izobrazba),So("disabled",!e.jePovezava()),Br(4),Uo("value",e.profesorAsistent.ime_priimek),So("disabled",!e.jePovezava()),Br(4),So("disabled",!e.jePovezava()),Br(1),aa(e.profesorAsistent.opis),Br(2),So("disabled",!e.jePovezava()),Br(2),So("disabled",!e.jePovezava()),Br(4),So("disabled",!e.jePovezava()),Br(5),So("disabled",!e.jePovezava()),Br(5),So("disabled",!e.jePovezava()),Br(5),So("disabled",!e.jePovezava()))},directives:[Sp,tp,wp,Ap,Rp],styles:["#zelen-gumb[_ngcontent-%COMP%]{margin-right:10px}.alert[_ngcontent-%COMP%]{margin-top:10px;display:none}"]}),t})()},{path:"osebje/:idOseba",component:Xy},{path:"iskanje",component:u_},{path:"**",redirectTo:"/"}];let ok=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd,gv.forRoot(sk)],gv]}),t})();function ak(t,e){1&t&&(xo(0,"div",15),xo(1,"a",16),oa(2,"Admin panel"),Oo(),Oo()),2&t&&So("disabled",!Do().jePovezava())}function lk(t,e){if(1&t&&(xo(0,"div",17),xo(1,"a",18),oa(2,"Prijava"),Oo(),Oo()),2&t){const t=Do();Br(1),So("disabled",!t.jePovezava())}}function ck(t,e){if(1&t&&(xo(0,"div",17),xo(1,"a",19),oa(2,"Registracija"),Oo(),Oo()),2&t){const t=Do();Br(1),So("disabled",!t.jePovezava())}}function uk(t,e){1&t&&(xo(0,"div",17),xo(1,"a",20),oa(2,"Offline na\u010din - vzpostavi internetno povezavo"),Oo(),Oo()),2&t&&(Br(1),So("disabled",!0))}function dk(t,e){1&t&&(xo(0,"a",29),oa(1,"Admin panel"),Oo()),2&t&&So("disabled",!Do(2).jePovezava())}function hk(t,e){if(1&t){const t=zo();xo(0,"div",21),Eo(1,"a",22),xo(2,"div",23),xo(3,"p",24),xo(4,"b"),oa(5),Oo(),Oo(),Eo(6,"div",25),xo(7,"a",26),oa(8,"Uporabni\u0161ke nastavitve"),Oo(),ko(9,dk,2,1,"a",27),Eo(10,"div",25),xo(11,"a",28),Ro("click",function(){return Ve(t),Do().odjava()}),oa(12,"Odjava"),Oo(),Oo(),Oo()}if(2&t){const t=Do();Br(5),aa(t.vrniUporabnika()),Br(2),Lo("routerLink","uporabniki/",t.vrniId(),""),So("disabled",!t.jePovezava()),Br(2),So("ngIf",t.jeAdmin()),Br(2),So("disabled",!t.jePovezava())}}const pk=function(){return{standalone:!0}},fk=function(t){return{iskalniIzraz:t}};let mk=(()=>{class t{constructor(t,e,n){this.avtentikacijaStoritev=t,this.zgodovinaStoritev=e,this.povezavaStoritev=n}odjava(){this.avtentikacijaStoritev.odjava()}jePrijavljen(){return this.avtentikacijaStoritev.jePrijavljen()}vrniUporabnika(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return t?t.uporabniskoIme:"Anonimen uporabnik"}vrniId(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return t?t._id:""}jeAdmin(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return!!t&&t.jeAdmin}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(Iv),Co(Nv),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-glava"]],decls:20,vars:13,consts:[[1,"navbar","navbar-expand-lg","navbar-dark","bg-dark","sticky-top"],["routerLink","/",1,"navbar-brand","mx-3","h1","mb-0","pr-5"],["src","/assets/public/img/Logo.png","width","50","height","50","alt",""],["type","button","data-toggle","collapse","aria-label","Odpri meni","data-target","#toggleNavBar",1,"navbar-toggler","navbar-toggler-icon"],["id","toggleNavBar",1,"collapse","navbar-collapse"],["class","nav-item my-2",3,"disabled",4,"ngIf"],["class","nav-item my-2",4,"ngIf"],[1,"nav-item","ml-auto","my-2"],["action","/iskanje","method","get",1,"d-inline"],[1,"input-group"],["type","text","placeholder","I\u0161\u010di gradivo",1,"form-control",3,"ngModel","ngModelOptions","disabled","ngModelChange"],[1,"input-group-append"],["type","submit","routerLink","/iskanje","aria-label","I\u0161\u010di literaturo & predmete in osebje.",1,"btn","btn-secondary",3,"queryParams","disabled"],[1,"fa","fa-search"],["class","nav-item navbar-nav dropdown",4,"ngIf"],[1,"nav-item","my-2",3,"disabled"],["routerLink","admin",1,"nav-link","btn","btn-info","py-1","ml-auto","mr-2","px-2"],[1,"nav-item","my-2"],["routerLink","prijava",1,"nav-link","btn","btn-secondary","py-1","ml-auto","mr-2","px-2",3,"disabled"],["routerLink","registracija",1,"nav-link","btn","btn-success","py-1","ml-auto","mr-2","px-2",3,"disabled"],[1,"nav-link","btn","btn-danger","py-1","ml-auto","mr-2","px-2",3,"disabled"],[1,"nav-item","navbar-nav","dropdown"],["data-toggle","dropdown",1,"nav-link","fas","fa-user","fa-2x","mx-3","d-flex","justify-content-center"],[1,"dropdown-menu","dropdown-menu-right"],[1,"dropdown-header","text-info"],[1,"dropdown-divider"],[1,"dropdown-item",3,"routerLink","disabled"],["class","dropdown-item","routerLink","admin",3,"disabled",4,"ngIf"],["routerLink","/",1,"dropdown-item","text-danger",3,"disabled","click"],["routerLink","admin",1,"dropdown-item",3,"disabled"]],template:function(t,e){1&t&&(xo(0,"nav",0),xo(1,"a",1),xo(2,"span"),xo(3,"b"),oa(4,"Karjola"),Oo(),Oo(),Eo(5,"img",2),Oo(),Eo(6,"button",3),xo(7,"div",4),ko(8,ak,3,1,"div",5),ko(9,lk,3,1,"div",6),ko(10,ck,3,1,"div",6),ko(11,uk,3,1,"div",6),xo(12,"div",7),xo(13,"form",8),xo(14,"div",9),xo(15,"input",10),Ro("ngModelChange",function(t){return e.iskalniIzraz=t}),Oo(),xo(16,"div",11),xo(17,"button",12),Eo(18,"i",13),Oo(),Oo(),Oo(),Oo(),Oo(),ko(19,hk,13,5,"div",14),Oo(),Oo()),2&t&&(Br(8),So("ngIf",e.jePrijavljen()&&e.jeAdmin()&&e.jePovezava()),Br(1),So("ngIf",!e.jePrijavljen()&&e.jePovezava()),Br(1),So("ngIf",!e.jePrijavljen()&&e.jePovezava()),Br(1),So("ngIf",!e.jePovezava()),Br(4),So("ngModel",e.iskalniIzraz)("ngModelOptions",uc(10,pk))("disabled",!e.jePovezava()),Br(2),So("queryParams",dc(11,fk,e.iskalniIzraz))("disabled",!e.jePovezava()),Br(2),So("ngIf",e.jePrijavljen()))},directives:[_y,rv,ad,Sp,tp,wp,Rh,Xh,Cp,iv],styles:[""]}),t})();class gk{constructor({naziv:t,fields:e}){this.naziv=t,this.final=!1,this.fields=e,this.id=""}}class vk{constructor({id:t,naziv:e}){this.id=t,this.naziv=e,this.final=!0,this.fields=[]}}let bk=(()=>{class t{constructor(t){this.adminPodatkiStoritev=t}pridobiSidebar(){return Promise.all([this.adminPodatkiStoritev.pridobiPredmete(),this.adminPodatkiStoritev.pridobiModule()]).then(t=>this.generirajSidebar(t[0],t[1]))}najdiLetnike(t){var e=[];for(let n of t){let t=e.find(t=>t.zaporednaSt==n.letnik);t?t.predmeti.push(n):n.letnik&&n.letnik>0&&e.push({zaporednaSt:n.letnik,predmeti:[n]})}return e}napolniModule(t,e){console.log(t),console.log(e);var n=e.map(t=>({id:t._id,ime:t.ime,predmeti:[]}));for(let i of t)if(i.moduli){let t=n.find(t=>i.moduli.some(e=>e==t.id));t&&t.predmeti.push(i)}return n}sidebarPredmet(t){return new vk({id:t._id,naziv:t.ime})}sidebarModul(t){var e=this.sidebarSemester(t.predmeti,1),n=this.sidebarSemester(t.predmeti,2),i=[];return e&&i.push(e),n&&i.push(n),new gk({naziv:t.ime,fields:i})}sidebarLetnik(t){var e=this.sidebarSemester(t.predmeti,1),n=this.sidebarSemester(t.predmeti,2),i=[];return e&&i.push(e),n&&i.push(n),new gk({naziv:`${t.zaporednaSt}. letnik`,fields:i})}sidebarIzbirni(t,e){var n=t.filter(t=>t.vrstaIzbirnega==e),i=this.sidebarSemester(n,1),r=this.sidebarSemester(n,2),s=[];return i&&s.push(i),r&&s.push(r),s}sidebarSemester(t,e){var n=t.filter(t=>t.semester==e);return n.length>0?new gk({naziv:`${e}. semester`,fields:n.map(t=>this.sidebarPredmet(t))}):null}generirajSidebar(t,e){var n=[],i=this.najdiLetnike(t).sort((t,e)=>t.zaporednaSt-e.zaporednaSt),r=this.napolniModule(t,e).filter(t=>t.predmeti.length>0),s=i.map(t=>this.sidebarLetnik(t));s.length>0&&n.push(...s);var o=r.map(t=>this.sidebarModul(t));o.length>0&&n.push(new gk({naziv:"Moduli",fields:o}));var a=this.sidebarIzbirni(t,1);a.length>0&&n.push(new gk({naziv:"Splo\u0161ni izbirni predmeti",fields:a}));var l=this.sidebarIzbirni(t,2);return l.length>0&&n.push(new gk({naziv:"Strokovni izbirni predmeti",fields:l})),n}}return t.\u0275fac=function(e){return new(e||t)(vi(eb))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function yk(t,e){if(1&t&&(xo(0,"a",2),oa(1),Oo()),2&t){const t=Do();Lo("routerLink","/predmeti/",t.data.id,""),Br(1),aa(t.data.naziv)}}function _k(t,e){if(1&t&&Eo(0,"app-side-bar-gumbi",5),2&t){const t=e.$implicit,n=Do(3);Fo("ngClass","ml-",n.level," mr-",n.level,""),So("data",t)("level",n.level+1)}}function wk(t,e){if(1&t&&(xo(0,"span"),ko(1,_k,1,4,"app-side-bar-gumbi",4),Oo()),2&t){const t=Do(2);Br(1),So("ngForOf",t.data.fields)}}function kk(t,e){if(1&t){const t=zo();xo(0,"span"),xo(1,"button",3),Ro("click",function(){Ve(t);const e=Do();return e.prikaziPodmeni=!e.prikaziPodmeni}),oa(2),Oo(),ko(3,wk,2,1,"span",1),Oo()}if(2&t){const t=Do();Br(1),"dropdown-btn dropdown-lvl-",n=t.level," btn btn-secondary mr-2 my-1",Jo(ai,Qo,_o(Re(),"dropdown-btn dropdown-lvl-",n," btn btn-secondary mr-2 my-1"),!0),Br(1),aa(t.data.naziv),Br(1),So("ngIf",t.prikaziPodmeni)}var n}let jk=(()=>{class t{constructor(){this.prikaziPodmeni=!1}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qt({type:t,selectors:[["app-side-bar-gumbi"]],inputs:{data:"data",level:"level"},decls:2,vars:2,consts:[["class","dropdown-btn dropdown-lvl-4 btn btn-secondary mr-2 my-1",3,"routerLink",4,"ngIf"],[4,"ngIf"],[1,"dropdown-btn","dropdown-lvl-4","btn","btn-secondary","mr-2","my-1",3,"routerLink"],[3,"click"],[3,"data","level","ngClass",4,"ngFor","ngForOf"],[3,"data","level","ngClass"]],template:function(t,e){1&t&&(ko(0,yk,2,2,"a",0),ko(1,kk,4,5,"span",1)),2&t&&(So("ngIf",e.data.final),Br(1),So("ngIf",e.data.fields.length>0))},directives:[ad,rv,sd,t,id],styles:[""]}),t})();function Ck(t,e){1&t&&Eo(0,"app-side-bar-gumbi",5),2&t&&So("data",e.$implicit)("level",1)}let Sk=(()=>{class t{constructor(t){this.sidebarPodatkiStoritev=t}ngOnInit(){this.sidebarPodatkiStoritev.pridobiSidebar().then(t=>{this.podatki=t}).catch(t=>this.podatki=[])}}return t.\u0275fac=function(e){return new(e||t)(Co(bk))},t.\u0275cmp=qt({type:t,selectors:[["app-side-bar"]],decls:5,vars:1,consts:[[1,"content","bg-dark","p-4"],["data-toggle","collapse","data-target","#sidebarMenu",1,"menu-icon","mb-1"],[1,"fas","fa-bars"],["id","sidebarMenu",1,"collapse","show"],[3,"data","level",4,"ngFor","ngForOf"],[3,"data","level"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"div",1),Eo(2,"span",2),Oo(),xo(3,"div",3),ko(4,Ck,1,2,"app-side-bar-gumbi",4),Oo(),Oo()),2&t&&(Br(4),So("ngForOf",e.podatki))},directives:[sd,jk],styles:[""]}),t})(),Pk=(()=>{class t{constructor(t){this.avtentikacijaStoritev=t}odjava(){this.avtentikacijaStoritev.odjava()}jePrijavljen(){return this.avtentikacijaStoritev.jePrijavljen()}vrniUporabnika(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return t?t.uporabniskoIme:"Anonimen uporabnik"}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(Iv))},t.\u0275cmp=qt({type:t,selectors:[["app-ogrodje"]],decls:6,vars:0,consts:[[1,"row","m-0","mt-2"],[1,"col-sm-12","col-md-6","col-lg-3","m-0","px-md-2","mt-3"],[1,"col-sm-12","col-md-6","col-lg-9","mt-3"]],template:function(t,e){1&t&&(Eo(0,"app-glava"),xo(1,"div",0),xo(2,"aside",1),Eo(3,"app-side-bar"),Oo(),xo(4,"main",2),Eo(5,"router-outlet"),Oo(),Oo())},directives:[mk,Sk,ov],styles:[""]}),t})();const xk="Service workers are disabled or not supported by this browser";class Ok{constructor(t){if(this.serviceWorker=t,t){const e=Av(t,"controllerchange").pipe(P(()=>t.controller)),n=Jp(tf(()=>Gd(t.controller)),e);this.worker=n.pipe(Wd(t=>!!t)),this.registration=this.worker.pipe(ef(()=>t.getRegistration()));const i=Av(t,"message").pipe(P(t=>t.data)).pipe(Wd(t=>t&&t.type)).pipe(Y(new j));i.connect(),this.events=i}else this.worker=this.events=this.registration=tf(()=>Cb(new Error("Service workers are disabled or not supported by this browser")))}postMessage(t,e){return this.worker.pipe(of(1),xf(n=>{n.postMessage(Object.assign({action:t},e))})).toPromise().then(()=>{})}postMessageWithStatus(t,e,n){const i=this.waitForStatus(n),r=this.postMessage(t,e);return Promise.all([i,r]).then(()=>{})}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(t){return this.events.pipe(Wd(e=>e.type===t))}nextEventOfType(t){return this.eventsOfType(t).pipe(of(1))}waitForStatus(t){return this.eventsOfType("STATUS").pipe(Wd(e=>e.nonce===t),of(1),P(t=>{if(!t.status)throw new Error(t.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Ek=(()=>{class t{constructor(t){if(this.sw=t,this.subscriptionChanges=new j,!t.isEnabled)return this.messages=db,this.notificationClicks=db,void(this.subscription=db);this.messages=this.sw.eventsOfType("PUSH").pipe(P(t=>t.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(P(t=>t.data)),this.pushManager=this.sw.registration.pipe(P(t=>t.pushManager));const e=this.pushManager.pipe(ef(t=>t.getSubscription()));this.subscription=G(e,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(t){if(!this.sw.isEnabled)return Promise.reject(new Error(xk));const e={userVisibleOnly:!0};let n=this.decodeBase64(t.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),i=new Uint8Array(new ArrayBuffer(n.length));for(let r=0;rt.subscribe(e)),of(1)).toPromise().then(t=>(this.subscriptionChanges.next(t),t))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(of(1),ef(t=>{if(null===t)throw new Error("Not subscribed to push notifications.");return t.unsubscribe().then(t=>{if(!t)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(xk))}decodeBase64(t){return atob(t)}}return t.\u0275fac=function(e){return new(e||t)(vi(Ok))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),Ik=(()=>{class t{constructor(t){if(this.sw=t,!t.isEnabled)return this.available=db,this.activated=db,void(this.unrecoverable=db);this.available=this.sw.eventsOfType("UPDATE_AVAILABLE"),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(xk));const t=this.sw.generateNonce();return this.sw.postMessageWithStatus("CHECK_FOR_UPDATES",{statusNonce:t},t)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(xk));const t=this.sw.generateNonce();return this.sw.postMessageWithStatus("ACTIVATE_UPDATE",{statusNonce:t},t)}}return t.\u0275fac=function(e){return new(e||t)(vi(Ok))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();class Ak{}const zk=new Xn("NGSW_REGISTER_SCRIPT");function Tk(t,e,n,i){return()=>{if(!pd(i)||!("serviceWorker"in navigator)||!1===n.enabled)return;let r;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof n.registrationStrategy)r=n.registrationStrategy();else{const[e,...i]=(n.registrationStrategy||"registerWhenStable:30000").split(":");switch(e){case"registerImmediately":r=Gd(null);break;case"registerWithDelay":r=Nk(+i[0]||0);break;case"registerWhenStable":r=i[0]?G(Rk(t),Nk(+i[0])):Rk(t);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}t.get(iu).runOutsideAngular(()=>r.pipe(of(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:n.scope}).catch(t=>console.error("Service worker registration failed with:",t))))}}function Nk(t){return Gd(null).pipe(function(t,e=ob){var n;const i=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new xb(i,e))}(t))}function Rk(t){return t.get(ju).isStable.pipe(Wd(t=>t))}function Mk(t,e){return new Ok(pd(e)&&!1!==t.enabled?navigator.serviceWorker:void 0)}let Vk=(()=>{class t{static register(e,n={}){return{ngModule:t,providers:[{provide:zk,useValue:e},{provide:Ak,useValue:n},{provide:Ok,useFactory:Mk,deps:[Ak,$c]},{provide:Mc,useFactory:Tk,deps:[io,zk,Ak,$c],multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[Ek,Ik]}),t})(),Dk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t,bootstrap:[Pk]}),t.\u0275inj=mt({providers:[],imports:[[Bd,xh,Fp,$p,ok,Yy,Vk.register("ngsw-worker.js",{enabled:!0})]]}),t})();(function(){if(gu)throw new Error("Cannot enable prod mode after platform setup.");mu=!1})(),$d().bootstrapModule(Dk).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);let r=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(s.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let d=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:s,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof u?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends d{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[p](){return this}static create(t,e,n){const i=new f(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class m extends f{constructor(t,e,n,r){let s;super(),this._parentSubscriber=t;let o=this;i(e)?s=e:e&&(s=e.next,n=e.error,r=e.complete,e!==a&&(o=Object.create(e),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=s;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return s.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function v(t){return t}let b=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,r=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(r.add(i?i.call(r,this.source):this.source||s.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),s.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(t){try{return this._subscribe(t)}catch(e){s.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=y(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(r){n(r),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?v:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=y(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function y(t){if(t||(t=s.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const _=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends d{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class k extends f{constructor(t){super(t),this.destination=t}}let j=(()=>{class t extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new k(this)}lift(t){const e=new C(this,this);return e.operator=t,e}next(t){if(this.closed)throw new _;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;rnew C(t,e),t})();class C extends j{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):d.EMPTY}}function S(t){return t&&"function"==typeof t.schedule}function P(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new x(t,e))}}class x{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new E(t,this.project,this.thisArg))}}class E extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const O=t=>e=>{for(let n=0,i=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function T(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const N=t=>{if(t&&"function"==typeof t[g])return i=t,t=>{const e=i[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(z(t))return O(t);if(T(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[A])return e=t,t=>{const n=e[A]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,i};function R(t,e){return new b(n=>{const i=new d;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function M(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new b(n=>{const i=new d;return i.add(e.schedule(()=>{const r=t[g]();i.add(r.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(T(t))return function(t,e){return new b(n=>{const i=new d;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(z(t))return R(t,e);if(function(t){return t&&"function"==typeof t[A]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new b(n=>{const i=new d;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=t[A](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof b?t:new b(N(t))}class V extends f{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class D extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function U(t,e){if(e.closed)return;if(t instanceof b)return t.subscribe(e);let n;try{n=N(t)(e)}catch(i){e.error(i)}return n}function L(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(L((n,i)=>M(t(n,i)).pipe(P((t,r)=>e(n,t,i,r))),n)):("number"==typeof e&&(n=e),e=>e.lift(new F(t,n)))}class F{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new $(t,this.project,this.concurrent))}}class $ extends D{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function H(t=Number.POSITIVE_INFINITY){return L(v,t)}function B(t,e){return e?R(t,e):new b(O(t))}function G(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return S(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof b?t[0]:H(e)(B(t,n))}function q(){return function(t){return t.lift(new W(t))}}class W{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new Z(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class Z extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class K extends b{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new d,t.add(this.source.subscribe(new J(this.getSubject(),this))),t.closed&&(this._connection=null,t=d.EMPTY)),t}refCount(){return q()(this)}}const Q=(()=>{const t=K.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 J extends k{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function Y(t,e){return function(n){let i;if(i="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new X(i,e));const r=Object.create(n,Q);return r.source=n,r.subjectFactory=i,r}}class X{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:n}=this,i=this.subjectFactory(),r=n(i).subscribe(t);return r.add(e.subscribe(i)),r}}function tt(){return new j}function et(t){for(let e in t)if(t[e]===et)return e;throw Error("Could not find renamed property on target object.")}function nt(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function it(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(it).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function rt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const st=et({__forward_ref__:et});function ot(t){return t.__forward_ref__=ot,t.toString=function(){return it(this())},t}function at(t){return lt(t)?t():t}function lt(t){return"function"==typeof t&&t.hasOwnProperty(st)&&t.__forward_ref__===ot}class ct extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function ut(t){return"string"==typeof t?t:null==t?"":String(t)}function dt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ut(t)}function ht(t,e){const n=e?` in ${e}`:"";throw new ct("201",`No provider for ${dt(t)} found${n}`)}function pt(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${n} ${i} ${e} <=Actual]`))}function ft(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function mt(t){return{providers:t.providers||[],imports:t.imports||[]}}function gt(t){return vt(t,yt)||vt(t,wt)}function vt(t,e){return t.hasOwnProperty(e)?t[e]:null}function bt(t){return t&&(t.hasOwnProperty(_t)||t.hasOwnProperty(kt))?t[_t]:null}const yt=et({"\u0275prov":et}),_t=et({"\u0275inj":et}),wt=et({ngInjectableDef:et}),kt=et({ngInjectorDef:et});var jt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let Ct;function St(t){const e=Ct;return Ct=t,e}function Pt(t,e,n){const i=gt(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&jt.Optional?null:void 0!==e?e:void ht(it(t),"Injector")}function xt(t){return{toString:t}.toString()}var Et=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Ot=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const It="undefined"!=typeof globalThis&&globalThis,At="undefined"!=typeof window&&window,zt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Tt="undefined"!=typeof global&&global,Nt=It||Tt||At||zt,Rt={},Mt=[],Vt=[],Dt=et({"\u0275cmp":et}),Ut=et({"\u0275dir":et}),Lt=et({"\u0275pipe":et}),Ft=et({"\u0275mod":et}),$t=et({"\u0275loc":et}),Ht=et({"\u0275fac":et}),Bt=et({__NG_ELEMENT_ID__:et});let Gt=0;function qt(t){return xt(()=>{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===Et.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Vt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ot.Emulated,id:"c",styles:t.styles||Vt,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,s=t.pipes;return n.id+=Gt++,n.inputs=Jt(t.inputs,e),n.outputs=Jt(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Wt):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(Zt):null,n})}function Wt(t){return te(t)||function(t){return t[Ut]||null}(t)}function Zt(t){return function(t){return t[Lt]||null}(t)}const Kt={};function Qt(t){const e={type:t.type,bootstrap:t.bootstrap||Vt,declarations:t.declarations||Vt,imports:t.imports||Vt,exports:t.exports||Vt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&xt(()=>{Kt[t.id]=t.type}),e}function Jt(t,e){if(null==t)return Rt;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,e&&(e[r]=s)}return n}const Yt=qt;function Xt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function te(t){return t[Dt]||null}function ee(t,e){const n=t[Ft]||null;if(!n&&!0===e)throw new Error(`Type ${it(t)} does not have '\u0275mod' property.`);return n}const ne=20,ie=10;function re(t){return Array.isArray(t)&&"object"==typeof t[1]}function se(t){return Array.isArray(t)&&!0===t[1]}function oe(t){return 0!=(8&t.flags)}function ae(t){return 2==(2&t.flags)}function le(t){return 1==(1&t.flags)}function ce(t){return null!==t.template}function ue(t,e){return t.hasOwnProperty(Ht)?t[Ht]:null}class de{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function he(){return pe}function pe(t){return t.type.prototype.ngOnChanges&&(t.setInput=me),fe}function fe(){const t=ge(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Rt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function me(t,e,n,i){const r=ge(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Rt,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];s[a]=new de(l&&l.currentValue,e,o===Rt),t[i]=e}function ge(t){return t.__ngSimpleChanges__||null}let ve;function be(){return void 0!==ve?ve:"undefined"!=typeof document?document:void 0}function ye(t){return!!t.listen}he.ngInherit=!0;const _e={createRenderer:(t,e)=>be()};function we(t){for(;Array.isArray(t);)t=t[0];return t}function ke(t,e){return we(e[t])}function je(t,e){return we(e[t.index])}function Ce(t,e){return t.data[e]}function Se(t,e){return t[e]}function Pe(t,e){const n=e[t];return re(n)?n:n[0]}function xe(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ee(t){return 4==(4&t[2])}function Oe(t){return 128==(128&t[2])}function Ie(t,e){return null==e?null:t[e]}function Ae(t){t[18]=0}function ze(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Te={lFrame:on(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ne(){return Te.bindingsEnabled}function Re(){return Te.lFrame.lView}function Me(){return Te.lFrame.tView}function Ve(t){Te.lFrame.contextLView=t}function De(){let t=Ue();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ue(){return Te.lFrame.currentTNode}function Le(){const t=Te.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Fe(t,e){const n=Te.lFrame;n.currentTNode=t,n.isParent=e}function $e(){return Te.lFrame.isParent}function He(){Te.lFrame.isParent=!1}function Be(){return Te.isInCheckNoChangesMode}function Ge(t){Te.isInCheckNoChangesMode=t}function qe(){const t=Te.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function We(){return Te.lFrame.bindingIndex}function Ze(){return Te.lFrame.bindingIndex++}function Ke(t){const e=Te.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Qe(t){Te.lFrame.inI18n=t}function Je(t,e){const n=Te.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ye(e)}function Ye(t){Te.lFrame.currentDirectiveIndex=t}function Xe(){return Te.lFrame.currentQueryIndex}function tn(t){Te.lFrame.currentQueryIndex=t}function en(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function nn(t,e,n){if(n&jt.SkipSelf){let i=e,r=t;for(;i=i.parent,!(null!==i||n&jt.Host||(i=en(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;e=i,t=r}const i=Te.lFrame=sn();return i.currentTNode=e,i.lView=t,!0}function rn(t){const e=sn(),n=t[1];Te.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function sn(){const t=Te.lFrame,e=null===t?null:t.child;return null===e?on(t):e}function on(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function an(){const t=Te.lFrame;return Te.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ln=an;function cn(){const t=an();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 un(){return Te.lFrame.selectedIndex}function dn(t){Te.lFrame.selectedIndex=t}function hn(){const t=Te.lFrame;return Ce(t.tView,t.selectedIndex)}function pn(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{s.call(o)}finally{}}}else try{s.call(o)}finally{}}const yn=-1;class _n{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function wn(t,e,n){const i=ye(t);let r=0;for(;re){o=s-1;break}}}for(;s>16,i=e;for(;n>0;)i=i[15],n--;return i}let On=!0;function In(t){const e=On;return On=t,e}let An=0;function zn(t,e){const n=Nn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Tn(i.data,t),Tn(e,null),Tn(i.blueprint,null));const r=Rn(t,e),s=t.injectorIndex;if(Pn(r)){const t=xn(r),n=En(r,e),i=n[1].data;for(let r=0;r<8;r++)e[s+r]=n[t+r]|i[t+r]}return e[s+8]=r,s}function Tn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Nn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Rn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;null!==r;){const t=r[1],e=t.type;if(i=2===e?t.declTNode:1===e?r[6]:null,null===i)return yn;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return yn}function Mn(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Bt)&&(i=n[Bt]),null==i&&(i=n[Bt]=An++);const r=255&i;e.data[t+(r>>5)]|=1<=0?255&e:Fn:e}(n);if("function"==typeof s){if(!nn(e,t,i))return i&jt.Host?Vn(r,n,i):Dn(e,n,i,r);try{const t=s();if(null!=t||i&jt.Optional)return t;ht(n)}finally{ln()}}else if("number"==typeof s){let r=null,o=Nn(t,e),a=yn,l=i&jt.Host?e[16][6]:null;for((-1===o||i&jt.SkipSelf)&&(a=-1===o?Rn(t,e):e[o+8],a!==yn&&qn(i,!1)?(r=e[1],o=xn(a),e=En(a,e)):o=-1);-1!==o;){const t=e[1];if(Gn(s,o,t.data)){const t=$n(o,e,n,r,i,l);if(t!==Ln)return t}a=e[o+8],a!==yn&&qn(i,e[1].data[o+8]===l)&&Gn(s,o,e)?(r=t,o=xn(a),e=En(a,e)):o=-1}}}return Dn(e,n,i,r)}const Ln={};function Fn(){return new Wn(De(),Re())}function $n(t,e,n,i,r,s){const o=e[1],a=o.data[t+8],l=Hn(a,o,n,null==i?ae(a)&&On:i!=o&&0!=(3&a.type),r&jt.Host&&s===a);return null!==l?Bn(e,o,l,a):Ln}function Hn(t,e,n,i,r){const s=t.providerIndexes,o=e.data,a=1048575&s,l=t.directiveStart,c=s>>20,u=r?a+c:t.directiveEnd;for(let d=i?a:a+c;d=l&&t.type===n)return d}if(r){const t=o[l];if(t&&ce(t)&&t.type===n)return l}return null}function Bn(t,e,n,i){let r=t[n];const s=e.data;if(r instanceof _n){const o=r;o.resolving&&function(t,e){throw new ct("200",`Circular dependency in DI detected for ${t}`)}(dt(s[n]));const a=In(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?St(o.injectImpl):null;nn(t,i,jt.Default);try{r=t[n]=o.factory(void 0,s,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const i=pe(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{null!==l&&St(l),In(a),o.resolving=!1,ln()}}return r}function Gn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Ht]||Kn(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[Ht]||Kn(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function Kn(t){return lt(t)?()=>{const e=Kn(at(t));return e&&e()}:ue(t)}function Qn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty(Jn)?t[Jn]:Object.defineProperty(t,Jn,{value:[]})[Jn];for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class Xn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ft({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ti=new Xn("AnalyzeForEntryComponents"),ei=Function;function ni(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?ii(t,e):e(t))}function ri(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function si(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function oi(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function li(t,e){const n=ci(t,e);if(n>=0)return t[1|n]}function ci(t,e){return function(t,e,n){let i=0,r=t.length>>1;for(;r!==i;){const n=i+(r-i>>1),s=t[n<<1];if(e===s)return n<<1;s>e?r=n:i=n+1}return~(r<<1)}(t,e)}const ui={},di=/\n/gm,hi="__source",pi=et({provide:String,useValue:et});let fi;function mi(t){const e=fi;return fi=t,e}function gi(t,e=jt.Default){if(void 0===fi)throw new Error("inject() must be called from an injection context");return null===fi?Pt(t,void 0,e):fi.get(t,e&jt.Optional?null:void 0,e)}function vi(t,e=jt.Default){return(Ct||gi)(at(t),e)}function bi(t){const e=[];for(let n=0;n({token:t})),-1),wi=yi(Yn("Optional"),8),ki=yi(Yn("SkipSelf"),4);let ji;function Ci(t){var e;return(null===(e=function(){if(void 0===ji&&(ji=null,Nt.trustedTypes))try{ji=Nt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return ji}())||void 0===e?void 0:e.createHTML(t))||t}class Si{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function Pi(t){return t instanceof Si?t.changingThisBreaksApplicationSecurity:t}class xi{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Ci(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Ei{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ci(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Ci(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0Ai(t.trim())).join(", ")}function Ti(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Ni(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Ri=Ti("area,br,col,hr,img,wbr"),Mi=Ti("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Vi=Ti("rp,rt"),Di=Ni(Vi,Mi),Ui=Ni(Ri,Ni(Mi,Ti("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")),Ni(Vi,Ti("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")),Di),Li=Ti("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fi=Ti("srcset"),$i=Ni(Li,Fi,Ti("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"),Ti("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"));var Hi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Bi(t){const e=function(){const t=Re();return t&&t[12]}();return e?e.sanitize(Hi.URL,t)||"":function(t,e){const n=function(t){return t instanceof Si&&t.getTypeName()||null}(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}(t,"URL")?Pi(t):Ai(ut(t))}function Gi(t){return t.ngDebugContext}function qi(t){return t.ngOriginalError}function Wi(t,...e){t.error(...e)}class Zi{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||Wi}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Gi(t)?Gi(t):this._findContext(qi(t)):null}_findOriginalError(t){let e=qi(t);for(;e&&qi(e);)e=qi(e);return e}}function Ki(t,e){t.__ngContext__=e}const Qi=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Nt))();function Ji(t){return t instanceof Function?t():t}var Yi=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Xi;function tr(t,e){return Xi(t,e)}function er(t){const e=t[3];return se(e)?e[3]:e}function nr(t){return rr(t[13])}function ir(t){return rr(t[4])}function rr(t){for(;null!==t&&!se(t);)t=t[4];return t}function sr(t,e,n,i,r){if(null!=i){let s,o=!1;se(i)?s=i:re(i)&&(o=!0,i=i[0]);const a=we(i);0===t&&null!==n?null==r?mr(e,n,a):fr(e,n,a,r||null,!0):1===t&&null!==n?fr(e,n,a,r||null,!0):2===t?function(t,e,n){const i=vr(t,e);i&&function(t,e,n,i){ye(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,n,i,r){const s=n[7];s!==we(n)&&sr(e,t,i,s,r);for(let o=ie;o0&&(t[n-1][4]=i[4]);const o=si(t,ie+e);Er(i[1],r=i,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var r;return i}function ur(t,e){if(!(256&e[2])){const n=e[11];ye(n)&&n.destroyNode&&Er(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return dr(t[1],t);for(;e;){let n=null;if(re(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)re(e)&&dr(e[1],e),e=e[3];null===e&&(e=t),re(e)&&dr(e[1],e),n=e&&e[4]}e=n}}(e)}}function dr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?i[r=l]():i[r=-l].unsubscribe(),s+=2}else{const t=i[r=n[s+1]];n[s].call(t)}if(null!==i){for(let t=r+1;ts?"":r[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==zr(e,c,0)||2&i&&c!==t){if(Dr(i))return!1;o=!0}}}}else{if(!o&&!Dr(i)&&!Dr(l))return!1;if(o&&Dr(l))continue;o=!1,i=l|1&i}}return Dr(i)||o}function Dr(t){return 0==(1&t)}function Ur(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||Dr(o)||(e+=Fr(s,r),r=""),i=o,s=s||!Dr(i);n++}return""!==r&&(e+=Fr(s,r)),e}const Hr={};function Br(t){Gr(Me(),Re(),un()+t,Be())}function Gr(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&fn(e,i,n)}else{const i=t.preOrderHooks;null!==i&&mn(e,i,0,n)}dn(n)}function qr(t,e){return t<<17|e<<2}function Wr(t){return t>>17&32767}function Zr(t){return 2|t}function Kr(t){return(131068&t)>>2}function Qr(t,e){return-131069&t|e<<2}function Jr(t){return 1|t}function Yr(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;ine&&Gr(t,e,ne,Be()),n(i,r)}finally{dn(s)}}function as(t,e,n){if(oe(e)){const i=e.directiveEnd;for(let r=e.directiveStart;r0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=s&&n.push(s),n.push(i,r,o)}}function vs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function bs(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function ys(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&xs(n)}}function xs(t){for(let n=nr(t);null!==n;n=ir(n))for(let t=ie;t0&&xs(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&xs(i)}}function Es(t,e){const n=Pe(e,t),i=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Rs(t){return t[7]||(t[7]=[])}function Ms(t){return t.cleanup||(t.cleanup=[])}function Vs(t,e){const n=t[9],i=n?n.get(Zi,null):null;i&&i.handleError(e)}function Ds(t,e,n,i,r){for(let s=0;sthis.processProvider(n,t,e)),ii([t],t=>this.processInjectorType(t,[],r)),this.records.set(Fs,Xs(void 0,this));const s=this.records.get(Hs);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:it(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=ui,n=jt.Default){this.assertNotDestroyed();const i=mi(this);try{if(!(n&jt.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof Xn)&>(t);e=n&&this.injectableDefInScope(n)?Xs(Js(t),Bs):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&jt.Self?Zs():this.parent).get(t,e=n&jt.Optional&&e===ui?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(it(t)),i)throw s;return function(t,e,n,i){const r=t.ngTempTokenPath;throw e[hi]&&r.unshift(e[hi]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=it(e);if(Array.isArray(e))r=e.map(it).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):it(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(di,"\n ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{mi(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(it(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=at(t)))return!1;let i=bt(t);const r=null==i&&t.ngModule||void 0,s=void 0===r?t:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=bt(r)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(s);try{ii(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||qs))}}this.injectorDefTypes.add(s);const a=ue(s)||(()=>new s);this.records.set(s,Xs(a,Bs));const l=i.providers;if(null!=l&&!o){const e=t;ii(l,t=>this.processProvider(t,e,l))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=eo(t=at(t))?t:at(t&&t.provide);const r=function(t,e,n){return to(t)?Xs(void 0,t.useValue):Xs(Ys(t),Bs)}(t);if(eo(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Xs(void 0,Bs,!0),e.factory=()=>bi(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){var n;return e.value===Bs&&(e.value=Gs,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Js(t){const e=gt(t),n=null!==e?e.factory:ue(t);if(null!==n)return n;if(t instanceof Xn)throw new Error(`Token ${it(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=oi(e,"?");throw new Error(`Can't resolve all parameters for ${it(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[yt]||t[wt]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Ys(t,e,n){let i;if(eo(t)){const e=at(t);return ue(e)||Js(e)}if(to(t))i=()=>at(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...bi(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>vi(at(t.useExisting));else{const e=at(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ue(e)||Js(e);i=()=>new e(...bi(t.deps))}var r;return i}function Xs(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function to(t){return null!==t&&"object"==typeof t&&pi in t}function eo(t){return"function"==typeof t}const no=function(t,e,n){return function(t,e=null,n=null,i){const r=Ks(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let io=(()=>{class t{static create(t,e){return Array.isArray(t)?no(t,e,""):no(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=ui,t.NULL=new $s,t.\u0275prov=ft({token:t,providedIn:"any",factory:()=>vi(Fs)}),t.__NG_ELEMENT_ID__=-1,t})();function ro(t,e){pn(xe(t)[1],De())}function so(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let r;if(ce(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);const e=t;e.inputs=oo(t.inputs),e.declaredInputs=oo(t.declaredInputs),e.outputs=oo(t.outputs);const n=r.hostBindings;n&&co(t,n);const s=r.viewQuery,o=r.contentQueries;if(s&&ao(t,s),o&&lo(t,o),nt(t.inputs,r.inputs),nt(t.declaredInputs,r.declaredInputs),nt(t.outputs,r.outputs),ce(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}}const e=r.features;if(e)for(let i=0;i=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Cn(r.hostAttrs,n=Cn(n,r.hostAttrs))}}(i)}function oo(t){return t===Rt?{}:t===Vt?[]:t}function ao(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function lo(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function co(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let uo=null;function ho(){if(!uo){const t=Nt.Symbol;if(t&&t.iterator)uo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(we(t[i.index])).target:i.index;if(ye(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let s=0;sn?t[n]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,d=!1;else{s=Vo(i,e,0,s,!1);const t=n.listen(p.name||f,r,s);u.push(s,t),c&&c.push(r,g,m,m+1)}}else s=Vo(i,e,0,s,!0),f.addEventListener(r,s,o),u.push(s),c&&c.push(r,g,m,o)}else s=Vo(i,e,0,s,!1);const h=i.outputs;let p;if(d&&null!==h&&(p=h[r])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Te.lFrame.contextLView))[8]}(t)}function Uo(t,e,n){return Lo(t,"",e,"",n),Uo}function Lo(t,e,n,i,r){const s=Re(),o=_o(s,e,n,i);return o!==Hr&&fs(Me(),hn(),s,t,o,s[11],r,!1),Lo}function Fo(t,e,n,i,r,s,o){const a=Re(),l=wo(a,e,n,i,r,s);return l!==Hr&&fs(Me(),hn(),a,t,l,a[11],o,!1),Fo}function $o(t,e,n,i,r){const s=t[n+1],o=null===e;let a=i?Wr(s):Kr(s),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Ho(t[a],e)&&(l=!0,t[a+1]=i?Jr(n):Zr(n)),a=i?Wr(n):Kr(n)}l&&(t[n+1]=i?Zr(s):Jr(s))}function Ho(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ci(t,e)>=0}const Bo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Go(t){return t.substring(Bo.key,Bo.keyEnd)}function qo(t,e){const n=Bo.textEnd;return n===e?-1:(e=Bo.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Bo.key=e,n),Wo(t,e,n))}function Wo(t,e,n){for(;e=0;n=qo(e,n))ai(t,Go(e),!0)}function Jo(t,e,n,i){const r=Me(),s=Ke(2);r.firstUpdatePass&&Xo(r,null,s,i);const o=Re();if(n!==Hr&&vo(o,s,n)){const a=r.data[un()];if(sa(a,i)&&!Yo(r,s)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=rt(t,n||"")),Po(r,a,o,n,i)}else!function(t,e,n,i,r,s,o,a){r===Hr&&(r=Mt);let l=0,c=0,u=0=t.expandoStartIndex}function Xo(t,e,n,i){const r=t.data;if(null===r[n+1]){const s=r[un()],o=Yo(t,n);sa(s,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const r=function(t){const e=Te.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=ea(n=ta(null,t,e,n,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=ta(r,t,e,n,i),null===s){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Kr(i))return t[Wr(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=ta(null,t,e,n[1],i),n=ea(n,e.attrs,i),function(t,e,n,i){t[Wr(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else s=function(t,e,n){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s0)&&(u=!0)}else c=n;if(r)if(0!==l){const e=Wr(t[a+1]);t[i+1]=qr(e,a),0!==e&&(t[e+1]=Qr(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=qr(a,0),0!==a&&(t[a+1]=Qr(t[a+1],i)),a=i;else t[i+1]=qr(l,0),0===a?a=i:t[l+1]=Qr(t[l+1],i),l=i;u&&(t[i+1]=Zr(t[i+1])),$o(t,c,i,!0),$o(t,c,i,!1),function(t,e,n,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&ci(s,e)>=0&&(n[i+1]=Jr(n[i+1]))}(e,c,t,i,s),o=qr(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,n,o,i)}}function ta(t,e,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[r],s=Array.isArray(e),l=s?e[1]:e,c=null===l;let u=n[r+1];u===Hr&&(u=c?Mt:void 0);let d=c?li(u,i):l===i?u:void 0;if(s&&!ra(d)&&(d=li(e,i)),ra(d)&&(a=d,o))return a;const h=t[r+1];r=o?Wr(h):Kr(h)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=li(t,i))}return a}function ra(t){return void 0!==t}function sa(t,e){return 0!=(t.flags&(e?16:32))}function oa(t,e=""){const n=Re(),i=Me(),r=t+ne,s=i.firstCreatePass?ts(i,r,1,e,null):i.data[r],o=n[r]=or(n[11],e);jr(i,n,o,s),Fe(s,!1)}function aa(t){return la("",t,""),aa}function la(t,e,n){const i=Re(),r=_o(i,t,e,n);return r!==Hr&&Us(i,un(),r),la}function ca(t,e,n,i,r){const s=Re(),o=wo(s,t,e,n,i,r);return o!==Hr&&Us(s,un(),o),ca}function ua(t,e,n){const i=Re();return vo(i,Ze(),e)&&fs(Me(),hn(),i,t,e,i[11],n,!0),ua}const da=void 0;var ha=["en",[["a","p"],["AM","PM"],da],[["AM","PM"],da,da],[["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"]],da,[["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"]],da,[["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}",da,"{1} 'at' {0}",da],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let pa={};function fa(t){return t in pa||(pa[t]=Nt.ng&&Nt.ng.common&&Nt.ng.common.locales&&Nt.ng.common.locales[t]),pa[t]}var ma=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const ga="en-US",va={marker:"element"},ba={marker:"ICU"};var ya=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}({});let _a=ga;function wa(t){var e;null==(e=t)&&pt("Expected localeId to be defined",e,null,"!="),"string"==typeof t&&(_a=t.toLowerCase().replace(/_/g,"-"))}function ka(t,e,n){const i=e.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?yr(t,0,n):we(n[r])}function ja(t,e,n,i,r){const s=e.insertBeforeIndex;if(Array.isArray(s)){let o=i,a=null;if(3&e.type||(a=o,o=r),null!==o&&0==(2&e.flags))for(let e=1;e1)for(let n=t.length-2;n>=0;n--){const i=t[n];Sa(i)||Pa(i,e)&&null===xa(i)&&Ea(i,e.index)}}function Sa(t){return!(64&t.type)}function Pa(t,e){return Sa(e)||t.index>e.index}function xa(t){const e=t.insertBeforeIndex;return Array.isArray(e)?e[0]:e}function Ea(t,e){const n=t.insertBeforeIndex;Array.isArray(n)?n[0]=e:(kr(ka,ja),t.insertBeforeIndex=e)}function Oa(t,e,n){const i=es(t,n,64,null,null);return Ca(e,i),i}const Ia=/\ufffd(\d+):?\d*\ufffd/gi,Aa=/\ufffd(\d+)\ufffd/,za=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Ta=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Na=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Ra=/\uE500/g;function Ma(t,e,n,i,r,s,o){const a=ns(t,i,1,null);let l=a<0?e[o]:(t.push(i,n),r(e[1].data[~o],e),s())}return 0===t.length?null:(n=t.pop(),i=t.pop(),s())}return function(n,i){for(e=i;t.length;)t.pop();return r(n.value,i),s}}())),r.push(l,null===s?"":s);const u=es(t,a,o?32:1,null===s?"":s,null);Ca(n,u);const d=u.index;return Fe(u,!1),null!==c&&e!==c&&function(t,e){let n=t.insertBeforeIndex;var i;null===n?(kr(ka,ja),n=t.insertBeforeIndex=[null,e]):("Expecting array here",(i=Array.isArray(n))!=!0&&pt("Expecting array here",i,true,"=="),n.push(e))}(c,d),u}function Va(t,e,n,i,r,s,o){const a=o.match(Ia),l=Ma(t,e,n,s,i,a?null:o,!1);a&&Da(r,o,l.index)}function Da(t,e,n,i,r=null){const s=t.length,o=s+1;t.push(null,null);const a=s+2,l=e.split(Ia);let c=0;for(let u=0;un.length&&n.push(r)}return{type:i,mainBinding:r,cases:e,values:n}}function Ha(t){if(!t)return[];let e=0;const n=[],i=[],r=/[{}]/g;let s;for(r.lastIndex=0;s=r.exec(t);){const r=s.index;if("}"==s[0]){if(n.pop(),0==n.length){const n=t.substring(e,r);za.test(n)?i.push($a(n)):i.push(n),e=r+1}}else{if(0==n.length){const n=t.substring(e,r);i.push(n),e=r+1}n.push("{")}}const o=t.substring(e);return i.push(o),i}function Ba(t,e,n,i,r,s,o,a){const l=[],c=[],u=[];e.cases.push(s),e.create.push(l),e.remove.push(c),e.update.push(u);const d=function(t){const e=new Ei(t);return function(){try{return!!(new window.DOMParser).parseFromString(Ci(""),"text/html")}catch(t){return!1}}()?new xi(e):e}(be()).getInertBodyElement(o),h=("content"in(p=d)&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(p)?p.content:null)||d;var p;return h?Ga(t,e,n,i,l,c,u,h,r,a,0):0}function Ga(t,e,n,i,r,s,o,a,l,c,u){let d=0,h=a.firstChild;for(;h;){const a=ns(t,n,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:const p=h,f=p.tagName.toLowerCase();if(Ui.hasOwnProperty(f)){Za(r,va,f,l,a),t.data[a]=f;const m=p.attributes;for(let t=0;t>>ya.SHIFT;let d=t[u];null===d&&(d=t[u]=l?r.createComment(a):or(r,a)),c&&null!==n&&fr(r,n,d,i,!1)}}(r,l.create,c,a&&8&a.type?r[a.index]:null),Qe(!0)})(t,e,n),Qe(!1)}function Ja(t,e,n,i,r){if(t=at(t),Array.isArray(t))for(let s=0;s>20;if(eo(t)||!t.multi){const i=new _n(l,r,Co),p=tl(a,e,r?u:u+h,d);-1===p?(Mn(zn(c,o),s,a),Ya(s,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=tl(a,e,u+h,d),f=tl(a,e,u,u+h),m=p>=0&&n[p],g=f>=0&&n[f];if(r&&!g||!r&&!m){Mn(zn(c,o),s,a);const u=function(t,e,n,i,r){const s=new _n(t,n,Co);return s.multi=[],s.index=e,s.componentProviders=0,Xa(s,r,i&&!n),s}(r?nl:el,n.length,r,i,l);!r&&g&&(n[f].providerFactory=u),Ya(s,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else Ya(s,t,p>-1?p:f,Xa(n[r?f:p],l,!r&&i));!r&&i&&g&&n[f].componentProviders++}}}function Ya(t,e,n,i){const r=eo(e);if(r||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,s]):o[t+1].push(i,s)}else o.push(n,s)}}}function Xa(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function tl(t,e,n,i){for(let r=n;r{n.providersResolver=(n,i)=>function(t,e,n){const i=Me();if(i.firstCreatePass){const r=ce(t);Ja(n,i.data,i.blueprint,r,!0),Ja(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class sl{}class ol{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${it(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let al=(()=>{class t{}return t.NULL=new ol,t})();function ll(...t){}function cl(t,e){return new dl(je(t,e))}const ul=function(){return cl(De(),Re())};let dl=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ul,t})();function hl(t){return t instanceof dl?t.nativeElement:t}class pl{}let fl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ml(),t})();const ml=function(){const t=Re(),e=Pe(De().index,t);return function(t){return t[11]}(re(e)?e:t)};let gl=(()=>{class t{}return t.\u0275prov=ft({token:t,providedIn:"root",factory:()=>null}),t})();class vl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const bl=new vl("11.2.9");class yl{constructor(){}supports(t){return fo(t)}create(t){return new wl(t)}}const _l=(t,e)=>e;class wl{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||_l}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,r=null;for(;e||n;){const s=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),s=!0),r=r._next,e++}),this.length=e;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):t=this._addAfter(new kl(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Cl),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Cl),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class kl{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class jl{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Cl{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new jl,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sl(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new El(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class El{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Ol(){return new Il([new yl])}let Il=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ol()),deps:[[t,new ki,new wi]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ft({token:t,providedIn:"root",factory:Ol}),t})();function Al(){return new zl([new Pl])}let zl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Al()),deps:[[t,new ki,new wi]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ft({token:t,providedIn:"root",factory:Al}),t})();function Tl(t,e,n,i,r=!1){for(;null!==n;){const s=e[n.index];if(null!==s&&i.push(we(s)),se(s))for(let t=ie;t-1&&(cr(t,n),si(e,n))}this._attachedToViewContainer=!1}ur(this._lView[1],this._lView)}onDestroy(t){hs(this._lView[1],this._lView,null,t)}markForCheck(){Is(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){As(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Ge(!0);try{As(t,e,n)}finally{Ge(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Er(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Rl extends Nl{constructor(t){super(t),this._view=t}detectChanges(){zs(this._view)}checkNoChanges(){!function(t){Ge(!0);try{zs(t)}finally{Ge(!1)}}(this._view)}get context(){return null}}const Ml=function(t=!1){return function(t,e,n){if(!n&&ae(t)){const n=Pe(t.index,e);return new Nl(n,n)}return 47&t.type?new Nl(e[16],e):null}(De(),Re(),t)};let Vl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ml,t.__ChangeDetectorRef__=!0,t})();const Dl=[new Pl],Ul=new Il([new yl]),Ll=new zl(Dl),Fl=function(){return Gl(De(),Re())};let $l=(()=>{class t{}return t.__NG_ELEMENT_ID__=Fl,t})();const Hl=$l,Bl=class extends Hl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Xr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),is(e,n,t),new Nl(n)}};function Gl(t,e){return 4&t.type?new Bl(e,t,cl(t,e)):null}class ql{}class Wl{}const Zl=function(){return tc(De(),Re())};let Kl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Zl,t})();const Ql=Kl,Jl=class extends Ql{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return cl(this._hostTNode,this._hostLView)}get injector(){return new Wn(this._hostTNode,this._hostLView)}get parentInjector(){const t=Rn(this._hostTNode,this._hostLView);if(Pn(t)){const e=En(t,this._hostLView),n=xn(t);return new Wn(e[1].data[n+8],e)}return new Wn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Yl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ie}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const s=n||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(ql,null);t&&(r=t)}const o=t.create(s,i,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(se(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new Jl(e,e[6],e[3]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e),s=this._lContainer;!function(t,e,n,i){const r=ie+i,s=n.length;i>0&&(n[r-1][4]=e),iQi});class sc extends sl{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map($r).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return ic(this.componentDef.inputs)}get outputs(){return ic(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const s=t.get(n,ec,r);return s!==ec||i===ec?s:e.get(n,i,r)}}}(t,i.injector):t,s=r.get(pl,_e),o=r.get(gl,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(ye(t))return t.selectRootElement(e,n===Ot.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):ar(s.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,d={components:[],scheduler:Qi,clean:Ns,playerHandler:null,flags:0},h=ds(0,null,null,1,0,null,null,null,null,null),p=Xr(null,h,d,u,null,null,s,a,o,r);let f,m;rn(p);try{const t=function(t,e,n,i,r,s){const o=n[1];n[20]=t;const a=ts(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Ls(a,l,!0),null!==t&&(wn(r,t,l),null!==a.classes&&Ar(r,t,a.classes),null!==a.styles&&Ir(r,t,a.styles)));const c=i.createRenderer(t,e),u=Xr(n,us(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(Mn(zn(a,n),o,e.type),bs(o,a),_s(a,n.length,1)),Os(n,u),n[20]=u}(c,this.componentDef,p,s,a);if(c)if(n)wn(a,c,["ng-version",bl.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i0&&Ar(a,c,e.join(" "))}if(m=Ce(h,ne),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=De();e.contentQueries(1,o,t.directiveStart)}const a=De();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(dn(a.index),gs(n[1],a,0,a.directiveStart,a.directiveEnd,e),vs(e,o)),o}(t,this.componentDef,p,d,[ro]),is(h,p,null)}finally{cn()}return new oc(this.componentType,f,cl(m,p),p,m)}}class oc extends class{}{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new Rl(i),this.componentType=t}get injector(){return new Wn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const ac=new Map;class lc extends ql{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new nc(this);const n=ee(t),i=t[$t]||null;i&&wa(i),this._bootstrapComponents=Ji(n.bootstrap),this._r3Injector=Ks(t,e,[{provide:ql,useValue:this},{provide:al,useValue:this.componentFactoryResolver}],it(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=io.THROW_IF_NOT_FOUND,n=jt.Default){return t===io||t===ql||t===Fs?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class cc extends Wl{constructor(t){super(),this.moduleType=t,null!==ee(t)&&function(t){const e=new Set;!function t(n){const i=ee(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${it(e)} vs ${it(e.name)}`)}(r,ac.get(r),n),ac.set(r,n));const s=Ji(i.imports);for(const o of s)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new lc(this.moduleType,t)}}function uc(t,e,n){const i=qe()+t,r=Re();return r[i]===Hr?go(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function dc(t,e,n,i){return fc(Re(),qe(),t,e,n,i)}function hc(t,e,n,i,r){return function(t,e,n,i,r,s,o){const a=e+n;return bo(t,a,r,s)?go(t,a+2,o?i.call(o,r,s):i(r,s)):pc(t,a+2)}(Re(),qe(),t,e,n,i,r)}function pc(t,e){const n=t[e];return n===Hr?void 0:n}function fc(t,e,n,i,r,s){const o=e+n;return vo(t,o,r)?go(t,o+1,s?i.call(s,r):i(r)):pc(t,o+1)}function mc(t,e){const n=Me();let i;const r=t+ne;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new ct("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=ue(i.type)),o=St(Co);try{const t=In(!1),e=s();return In(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,Re(),r,e),e}finally{St(o)}}function gc(t,e,n){const i=t+ne,r=Re(),s=Se(r,i);return function(t,e){return po.isWrapped(e)&&(e=po.unwrap(e),t[We()]=Hr),e}(r,function(t,e){return t[1].data[e].pure}(r,i)?fc(r,qe(),e,s.transform,n,s):s.transform(n))}const vc=class extends j{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,r=t=>null,s=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(r=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(s=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,r,s);return t instanceof d&&t.add(o),o}};function bc(){return this._results[ho()]()}class yc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=ho(),n=yc.prototype;n[e]||(n[e]=bc)}get changes(){return this._changes||(this._changes=new vc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=ni(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i0)i.push(o[t/2]);else{const r=s[t+1],o=e[-n];for(let t=ie;t{class t{constructor(t){this.appInits=t,this.resolve=ll,this.reject=ll,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(vi(Mc,8))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const Dc=new Xn("AppId"),Uc={provide:Dc,useFactory:function(){return`${Lc()}${Lc()}${Lc()}`},deps:[]};function Lc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Fc=new Xn("Platform Initializer"),$c=new Xn("Platform ID"),Hc=new Xn("appBootstrapListener");let Bc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const Gc=new Xn("LocaleId"),qc=new Xn("DefaultCurrencyCode");class Wc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Zc=function(t){return new cc(t)},Kc=Zc,Qc=function(t){return Promise.resolve(Zc(t))},Jc=function(t){const e=Zc(t),n=Ji(ee(t).declarations).reduce((t,e)=>{const n=te(e);return n&&t.push(new sc(n)),t},[]);return new Wc(e,n)},Yc=Jc,Xc=function(t){return Promise.resolve(Jc(t))};let tu=(()=>{class t{constructor(){this.compileModuleSync=Kc,this.compileModuleAsync=Qc,this.compileModuleAndAllComponentsSync=Yc,this.compileModuleAndAllComponentsAsync=Xc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const eu=(()=>Promise.resolve(0))();function nu(t){"undefined"==typeof Zone?eu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class iu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new vc(!1),this.onMicrotaskEmpty=new vc(!1),this.onStable=new vc(!1),this.onError=new vc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=Nt.requestAnimationFrame,e=Nt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Nt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ou(t),su(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ou(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,o,a)=>{try{return au(t),n.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&e(),lu(t)}},onInvoke:(n,i,r,s,o,a,l)=>{try{return au(t),n.invoke(r,s,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),lu(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,ou(t),su(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!iu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(iu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,t,ru,ll,ll);try{return r.runTask(s,e,n)}finally{r.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const ru={};function su(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 ou(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function au(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function lu(t){t._nesting--,su(t)}class cu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new vc,this.onMicrotaskEmpty=new vc,this.onStable=new vc,this.onError=new vc}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let uu=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{iu.assertNotInAngularZone(),nu(()=>{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())nu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(vi(iu))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),du=(()=>{class t{constructor(){this._applications=new Map,fu.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return fu.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();class hu{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let pu,fu=new hu,mu=!0,gu=!1;const vu=new Xn("AllowMultipleToken");class bu{constructor(t,e){this.name=t,this.token=e}}function yu(t,e,n=[]){const i=`Platform: ${e}`,r=new Xn(i);return(e=[])=>{let s=_u();if(!s||s.injector.get(vu,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:Hs,useValue:"platform"});!function(t){if(pu&&!pu.destroyed&&!pu.injector.get(vu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");pu=t.get(wu);const e=t.get(Fc,null);e&&e.forEach(t=>t())}(io.create({providers:t,name:i}))}return function(t){const e=_u();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function _u(){return pu&&!pu.destroyed?pu:null}let wu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new cu:("zone.js"===t?void 0:t)||new iu({enableLongStackTrace:(gu=!0,mu),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:iu,useValue:n}];return n.run(()=>{const e=io.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(e),s=r.injector.get(Zi,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{s.handleError(t)}});r.onDestroy(()=>{Cu(this._modules,r),t.unsubscribe()})}),function(t,e,n){try{const i=n();return To(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(s,n,()=>{const t=r.injector.get(Vc);return t.runInitializers(),t.donePromise.then(()=>(wa(r.injector.get(Gc,ga)||ga),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=ku({},e);return function(t,e,n){const i=new cc(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(ju);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${it(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(vi(io))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();function ku(t,e){return Array.isArray(e)?e.reduce(ku,t):Object.assign(Object.assign({},t),e)}let ju=(()=>{class t{constructor(t,e,n,i,r){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=r,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 s=new b(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new b(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{iu.assertNotInAngularZone(),nu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{iu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=G(s,o.pipe(t=>q()(Y(tt)(t))))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof sl?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(ql),r=n.create(io.NULL,[],e||n.selector,i),s=r.location.nativeElement,o=r.injector.get(uu,null),a=o&&r.injector.get(du);return o&&a&&a.registerApplication(s,o),r.onDestroy(()=>{this.detachView(r.hostView),Cu(this.components,r),a&&a.unregisterApplication(s)}),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Cu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Hc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(vi(iu),vi(io),vi(Zi),vi(al),vi(Vc))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();function Cu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Su{}class Pu{}const xu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Eu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||xu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>Ou(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+r]).then(t=>Ou(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(vi(tu),vi(Pu,8))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();function Ou(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Iu=yu(null,"core",[{provide:$c,useValue:"unknown"},{provide:wu,deps:[io]},{provide:du,deps:[]},{provide:Bc,deps:[]}]),Au=[{provide:ju,useClass:ju,deps:[iu,io,Zi,al,Vc]},{provide:rc,deps:[iu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Vc,useClass:Vc,deps:[[new wi,Mc]]},{provide:tu,useClass:tu,deps:[]},Uc,{provide:Il,useFactory:function(){return Ul},deps:[]},{provide:zl,useFactory:function(){return Ll},deps:[]},{provide:Gc,useFactory:function(t){return wa(t=t||"undefined"!=typeof $localize&&$localize.locale||ga),t},deps:[[new _i(Gc),new wi,new ki]]},{provide:qc,useValue:"USD"}];let zu=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(vi(ju))},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:Au}),t})(),Tu=null;function Nu(){return Tu}const Ru=new Xn("DocumentToken");let Mu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({factory:Vu,token:t,providedIn:"platform"}),t})();function Vu(){return vi(Uu)}const Du=new Xn("Location Initialized");let Uu=(()=>{class t extends Mu{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Nu().getLocation(),this._history=Nu().getHistory()}getBaseHrefFromDOM(){return Nu().getBaseHref(this._doc)}onPopState(t){Nu().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Nu().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){Lu()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Lu()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(vi(Ru))},t.\u0275prov=ft({factory:Fu,token:t,providedIn:"platform"}),t})();function Lu(){return!!window.history.pushState}function Fu(){return new Uu(vi(Ru))}function $u(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Hu(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Bu(t){return t&&"?"!==t[0]?"?"+t:t}let Gu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({factory:qu,token:t,providedIn:"root"}),t})();function qu(t){const e=vi(Ru).location;return new Zu(vi(Mu),e&&e.origin||"")}const Wu=new Xn("appBaseHref");let Zu=(()=>{class t extends Gu{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return $u(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Bu(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const r=this.prepareExternalUrl(n+Bu(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+Bu(i));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(vi(Mu),vi(Wu,8))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),Ku=(()=>{class t extends Gu{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=$u(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let r=this.prepareExternalUrl(n+Bu(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){let r=this.prepareExternalUrl(n+Bu(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(vi(Mu),vi(Wu,8))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),Qu=(()=>{class t{constructor(t,e){this._subject=new vc,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Hu(Yu(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Bu(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Yu(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Bu(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Bu(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(vi(Gu),vi(Mu))},t.normalizeQueryParams=Bu,t.joinWithSlash=$u,t.stripTrailingSlash=Hu,t.\u0275prov=ft({factory:Ju,token:t,providedIn:"root"}),t})();function Ju(){return new Qu(vi(Gu),vi(Mu))}function Yu(t){return t.replace(/\/index.html$/,"")}var Xu=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class td{}let ed=(()=>{class t extends td{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=fa(e);if(n)return n;const i=e.split("-")[0];if(n=fa(i),n)return n;if("en"===i)return ha;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[ma.PluralCase]}(e||this.locale)(t)){case Xu.Zero:return"zero";case Xu.One:return"one";case Xu.Two:return"two";case Xu.Few:return"few";case Xu.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(vi(Gc))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();function nd(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}let id=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(fo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${it(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Co(Il),Co(zl),Co(dl),Co(fl))},t.\u0275dir=Yt({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class rd{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 sd=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new rd(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new od(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new od(t,r);e.push(s)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Co(Kl),Co($l),Co(Il))},t.\u0275dir=Yt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class od{constructor(t,e){this.record=t,this.view=e}}let ad=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new ld,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){cd("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){cd("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Co(Kl),Co($l))},t.\u0275dir=Yt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class ld{constructor(){this.$implicit=null,this.ngIf=null}}function cd(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${it(e)}'.`)}let ud=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(Co(Kl))},t.\u0275dir=Yt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[he]}),t})(),dd=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw function(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${it(t)}'`)}(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Xt({name:"uppercase",type:t,pure:!0}),t})(),hd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[{provide:td,useClass:ed}]}),t})();function pd(t){return"browser"===t}let fd=(()=>{class t{}return t.\u0275prov=ft({token:t,providedIn:"root",factory:()=>new md(vi(Ru),window)}),t})();class md{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){var e;if(!this.supportsScrolling())return;const n=null!==(e=this.document.getElementById(t))&&void 0!==e?e:this.document.getElementsByName(t)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=gd(this.window.history)||gd(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function gd(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class vd extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new vd,Tu||(Tu=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=yd||(yd=document.querySelector("base"),yd)?yd.getAttribute("href"):null;return null==e?null:(n=e,bd||(bd=document.createElement("a")),bd.setAttribute("href",n),"/"===bd.pathname.charAt(0)?bd.pathname:"/"+bd.pathname);var n}resetBaseElement(){yd=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return nd(document.cookie,t)}}let bd,yd=null;const _d=new Xn("TRANSITION_ID"),wd=[{provide:Mc,useFactory:function(t,e,n){return()=>{n.get(Vc).donePromise.then(()=>{const n=Nu();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[_d,Ru,io],multi:!0}];class kd{static init(){var t;t=new kd,fu=t}addToWindow(t){Nt.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Nt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Nt.getAllAngularRootElements=()=>t.getAllRootElements(),Nt.frameworkStabilizers||(Nt.frameworkStabilizers=[]),Nt.frameworkStabilizers.push(t=>{const e=Nt.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?Nu().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const jd=new Xn("EventManagerPlugins");let Cd=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),xd=(()=>{class t extends Pd{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Nu().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(vi(Ru))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const Ed={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/"},Od=/%COMP%/g;function Id(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let zd=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Td(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Ot.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Nd(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case Ot.ShadowDom:return new Rd(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Id(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(vi(Cd),vi(xd),vi(Dc))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();class Td{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Ed[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const r=Ed[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=Ed[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(Yi.DashCase|Yi.Important)?t.style.setProperty(e,n,i&Yi.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Yi.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Ad(n)):this.eventManager.addEventListener(t,e,Ad(n))}}class Nd extends Td{constructor(t,e,n,i){super(t),this.component=n;const r=Id(i+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(Od,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Od,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Rd extends Td{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=Id(i.id,i.styles,[]);for(let s=0;s{class t extends Sd{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(vi(Ru))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const Vd=["alt","control","meta","shift"],Dd={"\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"},Ud={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"},Ld={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Fd=(()=>{class t extends Sd{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const r=t.parseEventName(n),s=t.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Nu().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let s="";if(Vd.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),s+=t+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Ud.hasOwnProperty(e)&&(e=Ud[e]))}return Dd[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Vd.forEach(i=>{i!=n&&(0,Ld[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded(()=>n(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(vi(Ru))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const $d=yu(Iu,"browser",[{provide:$c,useValue:"browser"},{provide:Fc,useValue:function(){vd.makeCurrent(),kd.init()},multi:!0},{provide:Ru,useFactory:function(){return function(t){ve=t}(document),document},deps:[]}]),Hd=[[],{provide:Hs,useValue:"root"},{provide:Zi,useFactory:function(){return new Zi},deps:[]},{provide:jd,useClass:Md,multi:!0,deps:[Ru,iu,$c]},{provide:jd,useClass:Fd,multi:!0,deps:[Ru]},[],{provide:zd,useClass:zd,deps:[Cd,xd,Dc]},{provide:pl,useExisting:zd},{provide:Pd,useExisting:xd},{provide:xd,useClass:xd,deps:[Ru]},{provide:uu,useClass:uu,deps:[iu]},{provide:Cd,useClass:Cd,deps:[jd,iu]},[]];let Bd=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Dc,useValue:e.appId},{provide:_d,useExisting:Dc},wd]}}}return t.\u0275fac=function(e){return new(e||t)(vi(t,12))},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:Hd,imports:[hd,zu]}),t})();function Gd(...t){let e=t[t.length-1];return S(e)?(t.pop(),R(t,e)):B(t)}function qd(t,e){return L(t,e,1)}function Wd(t,e){return function(n){return n.lift(new Zd(t,e))}}"undefined"!=typeof window&&window;class Zd{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Kd(t,this.predicate,this.thisArg))}}class Kd extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}class Qd{}class Jd{}class Yd{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Yd?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Yd;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Yd?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Xd{encodeKey(t){return th(t)}encodeValue(t){return th(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function th(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class eh{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Xd,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[r,s]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(r)||[];o.push(s),n.set(r,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new eh({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function nh(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function ih(t){return"undefined"!=typeof Blob&&t instanceof Blob}function rh(t){return"undefined"!=typeof FormData&&t instanceof FormData}class sh{constructor(t,e,n,i){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new Yd),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new sh(e,n,r,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:s})}}var oh=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class ah{constructor(t,e=200,n="OK"){this.headers=t.headers||new Yd,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class lh extends ah{constructor(t={}){super(t),this.type=oh.ResponseHeader}clone(t={}){return new lh({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class ch extends ah{constructor(t={}){super(t),this.type=oh.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new ch({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class uh extends ah{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function dh(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let hh=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof sh)i=t;else{let r,s;r=n.headers instanceof Yd?n.headers:new Yd(n.headers),n.params&&(s=n.params instanceof eh?n.params:new eh({fromObject:n.params})),i=new sh(t,e,void 0!==n.body?n.body:null,{headers:r,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=Gd(i).pipe(qd(t=>this.handler.handle(t)));if(t instanceof sh||"events"===n.observe)return r;const s=r.pipe(Wd(t=>t instanceof ch));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return s.pipe(P(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return s.pipe(P(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return s.pipe(P(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return s.pipe(P(t=>t.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new eh).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,dh(n,e))}post(t,e,n={}){return this.request("POST",t,dh(n,e))}put(t,e,n={}){return this.request("PUT",t,dh(n,e))}}return t.\u0275fac=function(e){return new(e||t)(vi(Qd))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();class ph{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const fh=new Xn("HTTP_INTERCEPTORS");let mh=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const gh=/^\)\]\}',?\n/;class vh{}let bh=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),yh=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new b(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",s=new Yd(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return r=new lh({headers:s,status:e,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:a}=s(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(gh,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new ch({body:l,headers:i,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new uh({error:l,headers:i,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=s(),r=new uh({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let l=!1;const c=i=>{l||(e.next(s()),l=!0);let r={type:oh.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},u=t=>{let n={type:oh.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:oh.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(vi(vh))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const _h=new Xn("XSRF_COOKIE_NAME"),wh=new Xn("XSRF_HEADER_NAME");class kh{}let jh=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=nd(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(vi(Ru),vi($c),vi(_h))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),Ch=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(vi(kh),vi(wh))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),Sh=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(fh,[]);this.chain=t.reduceRight((t,e)=>new ph(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(vi(Jd),vi(io))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),Ph=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Ch,useClass:mh}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:_h,useValue:e.cookieName}:[],e.headerName?{provide:wh,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[Ch,{provide:fh,useExisting:Ch,multi:!0},{provide:kh,useClass:jh},{provide:_h,useValue:"XSRF-TOKEN"},{provide:wh,useValue:"X-XSRF-TOKEN"}]}),t})(),xh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[hh,{provide:Qd,useClass:Sh},yh,{provide:Jd,useExisting:yh},bh,{provide:vh,useExisting:bh}],imports:[[Ph.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function Eh(t,e){return new b(n=>{const i=t.length;if(0===i)return void n.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a{c||(c=!0,o++),r[a]=t},error:t=>n.error(t),complete:()=>{s++,s!==i&&c||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=r[n],t),{}):r),n.complete())}}))}})}class Oh{}const Ih=new Xn("NgValueAccessor"),Ah={provide:Ih,useExisting:ot(()=>zh),multi:!0};let zh=(()=>{class t extends Oh{constructor(t,e){super(),this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Co(fl),Co(dl))},t.\u0275dir=Yt({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Ro("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[rl([Ah]),so]}),t})();const Th={provide:Ih,useExisting:ot(()=>Rh),multi:!0},Nh=new Xn("CompositionEventMode");let Rh=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Nu()?Nu().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Co(fl),Co(dl),Co(Nh,8))},t.\u0275dir=Yt({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(t,e){1&t&&Ro("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[rl([Th])]}),t})();function Mh(t){return null==t||0===t.length}const Vh=new Xn("NgValidators"),Dh=new Xn("NgAsyncValidators");function Uh(t){return null}function Lh(t){return null!=t}function Fh(t){const e=To(t)?M(t):t;return No(e),e}function $h(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Hh(t,e){return e.map(e=>e(t))}function Bh(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function Gh(t){return null!=t?function(t){if(!t)return null;const e=t.filter(Lh);return 0==e.length?null:function(t){return $h(Hh(t,e))}}(Bh(t)):null}function qh(t){return null!=t?function(t){if(!t)return null;const e=t.filter(Lh);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return Eh(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Eh(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Eh(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(P(t=>e(...t)))}return Eh(t,null)}(Hh(t,e).map(Fh)).pipe(P($h))}}(Bh(t)):null}function Wh(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}let Zh=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Gh(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=qh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Yt({type:t}),t})(),Kh=(()=>{class t extends Zh{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Qh(e||t)},t.\u0275dir=Yt({type:t,features:[so]}),t})();const Qh=Zn(Kh);class Jh extends Zh{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Yh{constructor(t){this._cd=t}is(t){var e,n;return!!(null===(n=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===n?void 0:n[t])}}let Xh=(()=>{class t extends Yh{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Co(Jh,2))},t.\u0275dir=Yt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Zo("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[so]}),t})(),tp=(()=>{class t extends Yh{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Co(Kh,10))},t.\u0275dir=Yt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&Zo("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[so]}),t})();function ep(t,e){ip(t,e,!0),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&rp(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&rp(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function np(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function ip(t,e,n){const i=function(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(Wh(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const r=function(t){return t._rawAsyncValidators}(t);if(null!==e.asyncValidator?t.setAsyncValidators(Wh(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]),n){const n=()=>t.updateValueAndValidity();np(e._rawValidators,n),np(e._rawAsyncValidators,n)}}function rp(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function sp(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const op="VALID",ap="INVALID",lp="PENDING",cp="DISABLED";function up(t){return(fp(t)?t.validators:t)||null}function dp(t){return Array.isArray(t)?Gh(t):t||null}function hp(t,e){return(fp(e)?e.asyncValidators:t)||null}function pp(t){return Array.isArray(t)?qh(t):t||null}function fp(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class mp{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=dp(this._rawValidators),this._composedAsyncValidatorFn=pp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===op}get invalid(){return this.status===ap}get pending(){return this.status==lp}get disabled(){return this.status===cp}get enabled(){return this.status!==cp}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=dp(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=pp(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=lp,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=cp,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=op,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==op&&this.status!==lp||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?cp:op}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=lp,this._hasOwnPendingAsyncValidator=!0;const e=Fh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof vp?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof bp&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new vc,this.statusChanges=new vc}_calculateStatus(){return this._allControlsDisabled()?cp:this.errors?ap:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(lp)?lp:this._anyControlsHaveStatus(ap)?ap:op}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){fp(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class gp extends mp{constructor(t=null,e,n){super(up(e),hp(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){sp(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){sp(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class vp extends mp{constructor(t,e,n){super(up(e),hp(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof gp?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class bp extends mp{constructor(t,e,n){super(up(e),hp(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof gp?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const yp={provide:Kh,useExisting:ot(()=>wp)},_p=(()=>Promise.resolve(null))();let wp=(()=>{class t extends Kh{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new vc,this.form=new vp({},Gh(t),qh(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){_p.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),ep(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){_p.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),sp(this._directives,t)})}addFormGroup(t){_p.then(()=>{const e=this._findContainer(t.path),n=new vp({});(function(t,e){ip(t,e,!1)})(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){_p.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){_p.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Co(Vh,10),Co(Dh,10))},t.\u0275dir=Yt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Ro("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rl([yp]),so]}),t})();const kp={provide:Jh,useExisting:ot(()=>Cp)},jp=(()=>Promise.resolve(null))();let Cp=(()=>{class t extends Jh{constructor(t,e,n,i){super(),this.control=new gp,this._registered=!1,this.update=new vc,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;let n,i,r;return Array.isArray(e),e.forEach(t=>{t.constructor===Rh?n=t:Object.getPrototypeOf(t.constructor)===Oh?i=t:r=t}),r||i||n||null}(0,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){ep(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(t){jp.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;jp.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Co(Kh,9),Co(Vh,10),Co(Dh,10),Co(Ih,10))},t.\u0275dir=Yt({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:[rl([kp]),so,he]}),t})(),Sp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Yt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),Pp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})();const xp=new Xn("NgModelWithFormControlWarning"),Ep={provide:Ih,useExisting:ot(()=>Ip),multi:!0};function Op(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Ip=(()=>{class t extends Oh{constructor(t,e){super(),this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=Op(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(Co(fl),Co(dl))},t.\u0275dir=Yt({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Ro("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[rl([Ep]),so]}),t})(),Ap=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(Op(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Co(dl),Co(fl),Co(Ip,9))},t.\u0275dir=Yt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const zp={provide:Ih,useExisting:ot(()=>Np),multi:!0};function Tp(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Np=(()=>{class t extends Oh{constructor(t,e){super(),this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Tp(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Tp(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Co(dl),Co(fl),Co(Np,9))},t.\u0275dir=Yt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Mp={provide:Vh,useExisting:ot(()=>Vp),multi:!0};let Vp=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?function(t){return Mh(t.value)?{required:!0}:null}(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Yt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&yo("required",e.required?"":null)},inputs:{required:"required"},features:[rl([Mp])]}),t})();const Dp={provide:Vh,useExisting:ot(()=>Up),multi:!0};let Up=(()=>{class t{constructor(){this._validator=Uh}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=function(t){if(!t)return Uh;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(Mh(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Yt({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&yo("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[rl([Dp]),he]}),t})(),Lp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[Pp]]}),t})(),Fp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[Lp]}),t})(),$p=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:xp,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[Lp]}),t})();class Hp extends j{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new _;return this._value}next(t){super.next(this._value=t)}}class Bp extends f{notifyNext(t,e,n,i,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Gp extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function qp(t,e,n,i,r=new Gp(t,n,i)){if(!r.closed)return e instanceof b?e.subscribe(r):N(e)(r)}const Wp={};class Zp{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Kp(t,this.resultSelector))}}class Kp extends Bp{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Wp),this.observables.push(t)}_complete(){const t=this.observables,e=t.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 Jp(...t){return H(1)(Gd(...t))}const Yp=new b(t=>t.complete());function Xp(t){return t?function(t){return new b(e=>t.schedule(()=>e.complete()))}(t):Yp}function tf(t){return new b(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?M(n):Xp()).subscribe(e)})}function ef(t,e){return"function"==typeof e?n=>n.pipe(ef((n,i)=>M(t(n,i)).pipe(P((t,r)=>e(n,t,i,r))))):e=>e.lift(new nf(t))}class nf{constructor(t){this.project=t}call(t,e){return e.subscribe(new rf(t,this.project))}}class rf extends D{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new V(this),i=this.destination;i.add(n),this.innerSubscription=U(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const sf=(()=>{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 of(t){return e=>0===t?Xp():e.lift(new af(t))}class af{constructor(t){if(this.total=t,this.total<0)throw new sf}call(t,e){return e.subscribe(new lf(t,this.total))}}class lf extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function cf(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new uf(t,e,n))}}class uf{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new df(t,this.accumulator,this.seed,this.hasSeed))}}class df extends f{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function hf(t){return function(e){const n=new pf(t),i=e.lift(n);return n.caught=i}}class pf{constructor(t){this.selector=t}call(t,e){return e.subscribe(new ff(t,this.selector,this.caught))}}class ff extends D{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new V(this);this.add(i);const r=U(n,i);r!==i&&this.add(r)}}}function mf(t){return function(e){return 0===t?Xp():e.lift(new gf(t))}}class gf{constructor(t){if(this.total=t,this.total<0)throw new sf}call(t,e){return e.subscribe(new vf(t,this.total))}}class vf extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;re.lift(new yf(t))}class yf{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new _f(t,this.errorFactory))}}class _f extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function wf(){return new Qp}function kf(t=null){return e=>e.lift(new jf(t))}class jf{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Cf(t,this.defaultValue))}}class Cf extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Sf(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Wd((e,n)=>t(e,n,i)):v,of(1),n?kf(e):bf(()=>new Qp))}function Pf(){}function xf(t,e,n){return function(i){return i.lift(new Ef(t,e,n))}}class Ef{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new Of(t,this.nextOrObserver,this.error,this.complete))}}class Of extends f{constructor(t,e,n,r){super(t),this._tapNext=Pf,this._tapError=Pf,this._tapComplete=Pf,this._tapError=n||Pf,this._tapComplete=r||Pf,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Pf,this._tapError=e.error||Pf,this._tapComplete=e.complete||Pf)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class If{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Af(t,this.callback))}}class Af extends f{constructor(t,e){super(t),this.add(new d(e))}}class zf{constructor(t,e){this.id=t,this.url=e}}class Tf extends zf{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Nf extends zf{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Rf extends zf{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Mf extends zf{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Vf extends zf{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Df extends zf{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Uf extends zf{constructor(t,e,n,i,r){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Lf extends zf{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ff extends zf{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $f{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Hf{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Bf{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gf{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qf{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wf{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zf{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Kf="primary";class Qf{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Jf(t){return new Qf(t)}function Yf(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Xf(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function nm(t){return Array.prototype.concat.apply([],t)}function im(t){return t.length>0?t[t.length-1]:null}function rm(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function sm(t){return No(t)?t:To(t)?M(Promise.resolve(t)):Gd(t)}function om(t,e,n){return n?function(t,e){return tm(t,e)}(t.queryParams,e.queryParams)&&am(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>em(t[n],e[n]))}(t.queryParams,e.queryParams)&&lm(t.root,e.root)}function am(t,e){if(!pm(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!am(t.children[n],e.children[n]))return!1}return!0}function lm(t,e){return cm(t,e,e.segments)}function cm(t,e,n){if(t.segments.length>n.length)return!!pm(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!pm(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!lm(t.children[n],e.children[n]))return!1}return!0}{const i=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!pm(t.segments,i)&&!!t.children.primary&&cm(t.children.primary,e,r)}}class um{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Jf(this.queryParams)),this._queryParamMap}toString(){return gm.serialize(this)}}class dm{constructor(t,e){this.segments=t,this.children=e,this.parent=null,rm(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vm(this)}}class hm{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Jf(this.parameters)),this._parameterMap}toString(){return Cm(this)}}function pm(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class fm{}class mm{parse(t){const e=new Om(t);return new um(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${bm(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${_m(e)}=${_m(t)}`).join("&"):`${_m(e)}=${_m(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const gm=new mm;function vm(t){return t.segments.map(t=>Cm(t)).join("/")}function bm(t,e){if(!t.hasChildren())return vm(t);if(e){const e=t.children.primary?bm(t.children.primary,!1):"",n=[];return rm(t.children,(t,e)=>{e!==Kf&&n.push(`${e}:${bm(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return rm(t.children,(t,i)=>{i===Kf&&(n=n.concat(e(t,i)))}),rm(t.children,(t,i)=>{i!==Kf&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===Kf?[bm(t.children.primary,!1)]:[`${n}:${bm(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${vm(t)}/${e[0]}`:`${vm(t)}/(${e.join("//")})`}}function ym(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _m(t){return ym(t).replace(/%3B/gi,";")}function wm(t){return ym(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function km(t){return decodeURIComponent(t)}function jm(t){return km(t.replace(/\+/g,"%20"))}function Cm(t){return`${wm(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${wm(t)}=${wm(e[t])}`).join("")}`;var e}const Sm=/^[^\/()?;=#]+/;function Pm(t){const e=t.match(Sm);return e?e[0]:""}const xm=/^[^=?&#]+/,Em=/^[^?&#]+/;class Om{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dm([],{}):new dm([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new dm(t,e)),n}parseSegment(){const t=Pm(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new hm(km(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Pm(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Pm(this.remaining);t&&(n=t,this.capture(n))}t[km(e)]=km(n)}parseQueryParam(t){const e=function(t){const e=t.match(xm);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Em);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=jm(e),r=jm(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(r)}else t[i]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Pm(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=Kf);const s=this.parseChildren();e[r]=1===Object.keys(s).length?s.primary:new dm([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Im{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Am(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Am(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=zm(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return zm(t,this._root).map(t=>t.value)}}function Am(t,e){if(t===e.value)return e;for(const n of e.children){const e=Am(t,n);if(e)return e}return null}function zm(t,e){if(t===e.value)return[e];for(const n of e.children){const i=zm(t,n);if(i.length)return i.unshift(e),i}return[]}class Tm{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Nm(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Rm extends Im{constructor(t,e){super(t),this.snapshot=e,Fm(this,t)}toString(){return this.snapshot.toString()}}function Mm(t,e){const n=function(t,e){const n=new Um([],{},{},"",{},Kf,e,null,t.root,-1,{});return new Lm("",new Tm(n,[]))}(t,e),i=new Hp([new hm("",{})]),r=new Hp({}),s=new Hp({}),o=new Hp({}),a=new Hp(""),l=new Vm(i,r,o,a,s,Kf,e,n.root);return l.snapshot=n.root,new Rm(new Tm(l,[]),n)}class Vm{constructor(t,e,n,i,r,s,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this._futureSnapshot=a}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(P(t=>Jf(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(P(t=>Jf(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Dm(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Um{constructor(t,e,n,i,r,s,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Jf(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Jf(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Lm extends Im{constructor(t,e){super(e),this.url=t,Fm(this,e)}toString(){return $m(this._root)}}function Fm(t,e){e.value._routerState=t,e.children.forEach(e=>Fm(t,e))}function $m(t){const e=t.children.length>0?` { ${t.children.map($m).join(", ")} } `:"";return`${t.value}${e}`}function Hm(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,tm(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),tm(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;ntm(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Bm(t.parent,e.parent))}function Gm(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const r=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return Gm(t,e,i);return Gm(t,e)})}(t,e,n);return new Tm(i,r)}{const n=t.retrieve(e.value);if(n){const t=n.route;return qm(e,t),t}{const n=new Vm(new Hp((i=e.value).url),new Hp(i.params),new Hp(i.queryParams),new Hp(i.fragment),new Hp(i.data),i.outlet,i.component,i),r=e.children.map(e=>Gm(t,e));return new Tm(n,r)}}var i}function qm(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{s[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new um(n.root===t?e:Qm(n.root,t,e),s,r)}function Qm(t,e,n){const i={};return rm(t.children,(t,r)=>{i[r]=t===e?n:Qm(t,e,n)}),new dm(t.segments,i)}class Jm{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Wm(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Zm);if(i&&i!==im(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ym{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Xm(t,e,n){if(t||(t=new dm([],{})),0===t.segments.length&&t.hasChildren())return tg(t,e,n);const i=function(t,e,n){let i=0,r=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return s;const e=t.segments[r],o=n[i];if(Zm(o))break;const a=`${o}`,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!rg(a,l,e))return s;i+=2}else{if(!rg(a,{},e))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=Xm(t.children[i],e,n))}),rm(t.children,(t,e)=>{void 0===i[e]&&(r[e]=t)}),new dm(t.segments,r)}}function eg(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=eg(new dm([],{}),0,t))}),e}function ig(t){const e={};return rm(t,(t,n)=>e[n]=`${t}`),e}function rg(t,e,n){return t==n.path&&tm(e,n.parameters)}class sg{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Hm(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Nm(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),rm(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,r=Nm(t);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}activateChildRoutes(t,e,n){const i=Nm(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new Wf(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Gf(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(Hm(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),og(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=r,e.outlet&&e.outlet.activateWith(i,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function og(t){Hm(t.value),t.children.forEach(og)}class ag{constructor(t,e){this.routes=t,this.module=e}}function lg(t){return"function"==typeof t}function cg(t){return t instanceof um}const ug=Symbol("INITIAL_VALUE");function dg(){return ef(t=>function(...t){let e,n;return S(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),B(t,n).lift(new Zp(e))}(t.map(t=>t.pipe(of(1),function(...t){const e=t[t.length-1];return S(e)?(t.pop(),n=>Jp(t,n,e)):e=>Jp(t,e)}(ug)))).pipe(cf((t,e)=>{let n=!1;return e.reduce((t,i,r)=>{if(t!==ug)return t;if(i===ug&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||cg(i))return i}return t},t)},ug),Wd(t=>t!==ug),P(t=>cg(t)?t:!0===t),of(1)))}let hg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Oo(0,"router-outlet")},directives:function(){return[ov]},encapsulation:2}),t})();function pg(t,e=""){for(let n=0;nvg(t)===e);return n.push(...t.filter(t=>vg(t)!==e)),n}const yg={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function _g(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},yg):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||Xf)(n,t,e);if(!r)return Object.assign({},yg);const s={};rm(r.posParams,(t,e)=>{s[e]=t.path});const o=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function wg(t,e,n,i,r="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>kg(t,e,n)&&vg(n)!==Kf)}(t,n,i)){const r=new dm(e,function(t,e,n,i){const r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const s of n)if(""===s.path&&vg(s)!==Kf){const n=new dm([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[vg(s)]=n}return r}(t,e,i,new dm(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>kg(t,e,n))}(t,n,i)){const s=new dm(t.segments,function(t,e,n,i,r,s){const o={};for(const a of i)if(kg(t,n,a)&&!r[vg(a)]){const n=new dm([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[vg(a)]=n}return Object.assign(Object.assign({},r),o)}(t,e,n,i,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const s=new dm(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function kg(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function jg(t,e,n,i){return!!(vg(t)===i||i!==Kf&&kg(e,n,t))&&("**"===t.path||_g(e,t,n).matched)}function Cg(t,e,n){return 0===e.length&&!t.children[n]}class Sg{constructor(t){this.segmentGroup=t||null}}class Pg{constructor(t){this.urlTree=t}}function xg(t){return new b(e=>e.error(new Sg(t)))}function Eg(t){return new b(e=>e.error(new Pg(t)))}function Og(t){return new b(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ig{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(ql)}apply(){const t=wg(this.urlTree.root,[],[],this.config).segmentGroup,e=new dm(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Kf).pipe(P(t=>this.createUrlTree(Ag(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(hf(t=>{if(t instanceof Pg)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Sg)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Kf).pipe(P(e=>this.createUrlTree(Ag(e),t.queryParams,t.fragment))).pipe(hf(t=>{if(t instanceof Sg)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new dm([],{[Kf]:t}):t;return new um(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(P(t=>new dm([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const r of Object.keys(n.children))"primary"===r?i.unshift(r):i.push(r);return M(i).pipe(qd(i=>{const r=n.children[i],s=bg(e,i);return this.expandSegmentGroup(t,s,r,i).pipe(P(t=>({segment:t,outlet:i})))}),cf((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Wd((e,n)=>t(e,n,i)):v,mf(1),n?kf(e):bf(()=>new Qp))}())}expandSegment(t,e,n,i,r,s){return M(n).pipe(qd(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,r,s).pipe(hf(t=>{if(t instanceof Sg)return Gd(null);throw t}))),Sf(t=>!!t),hf((t,n)=>{if(t instanceof Qp||"EmptyError"===t.name){if(Cg(e,i,r))return Gd(new dm([],{}));throw new Sg(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,r,s,o){return jg(i,e,r,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s):xg(e):xg(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Eg(r):this.lineralizeSegments(n,r).pipe(L(n=>{const r=new dm(n,{});return this.expandSegment(t,r,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=_g(e,i,r);if(!o)return xg(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Eg(u):this.lineralizeSegments(i,u).pipe(L(i=>this.expandSegment(t,e,n,i.concat(r.slice(l)),s,!1)))}matchSegmentAgainstRoute(t,e,n,i,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?Gd(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(P(t=>(n._loadedConfig=t,new dm(i,{})))):Gd(new dm(i,{}));const{matched:s,consumedSegments:o,lastChild:a}=_g(e,n,i);if(!s)return xg(e);const l=i.slice(a);return this.getChildConfig(t,n,i).pipe(L(t=>{const i=t.module,s=t.routes,{segmentGroup:a,slicedSegments:c}=wg(e,o,l,s),u=new dm(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(i,s,u).pipe(P(t=>new dm(o,t)));if(0===s.length&&0===c.length)return Gd(new dm(o,{}));const d=vg(n)===r;return this.expandSegment(i,u,s,c,d?Kf:r,!0).pipe(P(t=>new dm(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Gd(new ag(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Gd(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(L(n=>n?this.configLoader.load(t.injector,e).pipe(P(t=>(e._loadedConfig=t,t))):function(t){return new b(e=>e.error(Yf(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Gd(new ag([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;return i&&0!==i.length?Gd(i.map(i=>{const r=t.get(i);let s;if(function(t){return t&&lg(t.canLoad)}(r))s=r.canLoad(e,n);else{if(!lg(r))throw new Error("Invalid CanLoad guard");s=r(e,n)}return sm(s)})).pipe(dg(),xf(t=>{if(!cg(t))return;const e=Yf(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),P(t=>!0===t)):Gd(!0)}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Gd(n);if(i.numberOfChildren>1||!i.children.primary)return Og(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const r=this.createSegmentGroup(t,e.root,n,i);return new um(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return rm(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const r=this.createSegments(t,e.segments,n,i);let s={};return rm(e.children,(e,r)=>{s[r]=this.createSegmentGroup(t,e,n,i)}),new dm(r,s)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function Ag(t){const e={};for(const n of Object.keys(t.children)){const i=Ag(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new dm(t.segments.concat(e.segments),e.children)}return t}(new dm(t.segments,e))}class zg{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Tg{constructor(t,e){this.component=t,this.route=e}}function Ng(t,e,n){const i=t._root;return Mg(i,e?e._root:null,n,[i.value])}function Rg(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function Mg(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Nm(e);return t.children.forEach(t=>{!function(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!pm(t.url,e.url);case"pathParamsOrQueryParamsChange":return!pm(t.url,e.url)||!tm(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Bm(t,e)||!tm(t.queryParams,e.queryParams);case"paramsChange":default:return!Bm(t,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new zg(i)):(s.data=o.data,s._resolvedData=o._resolvedData),Mg(t,e,s.component?a?a.children:null:n,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Tg(a.outlet.component,o))}else o&&Vg(e,a,r),r.canActivateChecks.push(new zg(i)),Mg(t,null,s.component?a?a.children:null:n,i,r)}(t,s[t.value.outlet],n,i.concat([t.value]),r),delete s[t.value.outlet]}),rm(s,(t,e)=>Vg(t,n.getContext(e),r)),r}function Vg(t,e,n){const i=Nm(t),r=t.value;rm(i,(t,i)=>{Vg(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new Tg(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}class Dg{}function Ug(t){return new b(e=>e.error(t))}class Lg{constructor(t,e,n,i,r,s){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){const t=wg(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Kf);if(null===e)return null;const n=new Um([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Kf,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Tm(n,e),r=new Lm(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,n=Dm(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const r of Object.keys(e.children)){const i=e.children[r],s=bg(t,r),o=this.processSegmentGroup(s,i,r);if(null===o)return null;n.push(...o)}const i=function(t){const e=[];for(const n of t){if(!Fg(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?t.children.push(...n.children):e.push(n)}return e}(n);return i.sort((t,e)=>t.value.outlet===Kf?-1:e.value.outlet===Kf?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const r of t){const t=this.processSegmentAgainstRoute(r,e,n,i);if(null!==t)return t}return Cg(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!jg(t,e,n,i))return null;let r,s=[],o=[];if("**"===t.path){const i=n.length>0?im(n).parameters:{};r=new Um(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Bg(t),vg(t),t.component,t,$g(e),Hg(e)+n.length,Gg(t))}else{const i=_g(e,t,n);if(!i.matched)return null;s=i.consumedSegments,o=n.slice(i.lastChild),r=new Um(s,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Bg(t),vg(t),t.component,t,$g(e),Hg(e)+s.length,Gg(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=wg(e,s,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new Tm(r,t)]}if(0===a.length&&0===c.length)return[new Tm(r,[])];const u=vg(t)===i,d=this.processSegment(a,l,c,u?Kf:i);return null===d?null:[new Tm(r,d)]}}function Fg(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function $g(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Hg(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Bg(t){return t.data||{}}function Gg(t){return t.resolve||{}}function qg(t){return ef(e=>{const n=t(e);return n?M(n).pipe(P(()=>e)):Gd(e)})}class Wg extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Zg=new Xn("ROUTES");class Kg{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(P(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new ag(nm(i.injector.get(Zg,void 0,jt.Self|jt.Optional)).map(gg),i)}),hf(t=>{throw e._loader$=void 0,t}));return e._loader$=new K(n,()=>new j).pipe(q()),e._loader$}loadModuleFactory(t){return"string"==typeof t?M(this.loader.load(t)):sm(t()).pipe(L(t=>t instanceof Wl?Gd(t):M(this.compiler.compileModuleAsync(t))))}}class Qg{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Jg,this.attachRef=null}}class Jg{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Qg,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Yg{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Xg(t){throw t}function tv(t,e,n){return e.parse("/")}function ev(t,e){return Gd(null)}let nv=(()=>{class t{constructor(t,e,n,i,r,s,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new j,this.errorHandler=Xg,this.malformedUriErrorHandler=tv,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ev,afterPreactivation:ev},this.urlHandlingStrategy=new Yg,this.routeReuseStrategy=new Wg,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=r.get(ql),this.console=r.get(Bc);const l=r.get(iu);this.isNgZoneEnabled=l instanceof iu&&iu.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new um(new dm([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Kg(s,o,t=>this.triggerEvent(new $f(t)),t=>this.triggerEvent(new Hf(t))),this.routerState=Mm(this.currentUrlTree,this.rootComponentType),this.transitions=new Hp({id: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()}setupNavigations(t){const e=this.events;return t.pipe(Wd(t=>0!==t.id),P(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),ef(t=>{let n=!1,i=!1;return Gd(t).pipe(xf(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ef(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Gd(t).pipe(ef(t=>{const n=this.transitions.getValue();return e.next(new Tf(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Yp:Promise.resolve(t)}),(i=this.ngModule.injector,r=this.configLoader,s=this.urlSerializer,o=this.config,ef(t=>function(t,e,n,i,r){return new Ig(t,e,n,i,r).apply()}(i,r,s,t.extractedUrl,o).pipe(P(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),xf(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,r){return L(s=>function(t,e,n,i,r="emptyOnly",s="legacy"){try{const o=new Lg(t,e,n,i,r,s).recognize();return null===o?Ug(new Dg):Gd(o)}catch(o){return Ug(o)}}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe(P(t=>Object.assign(Object.assign({},s),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),xf(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects);const n=new Vf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,r,s,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:s,extras:o}=t,a=new Tf(n,this.serializeUrl(i),r,s);e.next(a);const l=Mm(i,this.rootComponentType).snapshot;return Gd(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Yp}),qg(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),xf(t=>{const e=new Df(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),P(t=>Object.assign(Object.assign({},t),{guards:Ng(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return L(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?Gd(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return M(t).pipe(L(t=>function(t,e,n,i,r){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?Gd(s.map(s=>{const o=Rg(s,e,r);let a;if(function(t){return t&&lg(t.canDeactivate)}(o))a=sm(o.canDeactivate(t,e,n,i));else{if(!lg(o))throw new Error("Invalid CanDeactivate guard");a=sm(o(t,e,n,i))}return a.pipe(Sf())})).pipe(dg()):Gd(!0)}(t.component,t.route,n,e,i)),Sf(t=>!0!==t,!0))}(o,i,r,t).pipe(L(n=>n&&"boolean"==typeof n?function(t,e,n,i){return M(e).pipe(qd(e=>Jp(function(t,e){return null!==t&&e&&e(new Bf(t)),Gd(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new qf(t)),Gd(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>tf(()=>Gd(e.guards.map(r=>{const s=Rg(r,e.node,n);let o;if(function(t){return t&&lg(t.canActivateChild)}(s))o=sm(s.canActivateChild(i,t));else{if(!lg(s))throw new Error("Invalid CanActivateChild guard");o=sm(s(i,t))}return o.pipe(Sf())})).pipe(dg())));return Gd(r).pipe(dg())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Gd(i.map(i=>tf(()=>{const r=Rg(i,e,n);let s;if(function(t){return t&&lg(t.canActivate)}(r))s=sm(r.canActivate(e,t));else{if(!lg(r))throw new Error("Invalid CanActivate guard");s=sm(r(e,t))}return s.pipe(Sf())}))).pipe(dg()):Gd(!0)}(t,e.route,n))),Sf(t=>!0!==t,!0))}(i,s,t,e):Gd(n)),P(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),xf(t=>{if(cg(t.guardsResult)){const e=Yf(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new Uf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Wd(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Rf(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),qg(t=>{if(t.guards.canActivateChecks.length)return Gd(t).pipe(xf(t=>{const e=new Lf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),ef(t=>{let n=!1;return Gd(t).pipe((i=this.paramsInheritanceStrategy,r=this.ngModule.injector,L(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Gd(t);let s=0;return M(n).pipe(qd(t=>function(t,e,n,i){return function(t,e,n,i){const r=Object.keys(t);if(0===r.length)return Gd({});const s={};return M(r).pipe(L(r=>function(t,e,n,i){const r=Rg(t,e,i);return sm(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(xf(t=>{s[r]=t}))),mf(1),L(()=>Object.keys(s).length===r.length?Gd(s):Yp))}(t._resolve,t,e,i).pipe(P(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Dm(t,n).resolve),null)))}(t.route,e,i,r)),xf(()=>s++),mf(1),L(e=>s===n.length?Gd(t):Yp))})),xf({next:()=>n=!0,complete:()=>{if(!n){const n=new Rf(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,r}),xf(t=>{const e=new Ff(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),qg(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),P(t=>{const e=function(t,e,n){const i=Gm(t,e._root,n?n._root:void 0);return new Rm(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),xf(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),P(t=>(new sg(o,t.targetRouterState,t.currentRouterState,a).activate(s),t))),xf({next(){n=!0},complete(){n=!0}}),(r=()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new Rf(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new If(r))),hf(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=cg(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new Rf(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new Mf(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}var r;return Yp}));var r,s,o,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,r={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(i,t,n,r)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){pg(t),this.config=t.map(gg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:r,queryParamsHandling:s,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:r;let c=null;switch(s){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,r){if(0===n.length)return Km(e.root,e.root,e,i,r);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Jm(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return rm(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Jm(n,e,i)}(n);if(s.toRoot())return Km(e.root,new dm([],{}),e,i,r);const o=function(t,e,n){if(t.isAbsolute)return new Ym(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Ym(t,t===e.root,0)}const i=Wm(t.commands[0])?0:1;return function(t,e,n){let i=t,r=e,s=n;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new Ym(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?tg(o.segmentGroup,o.index,s.commands):Xm(o.segmentGroup,o.index,s.commands);return Km(o.segmentGroup,a,e,i,r)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=cg(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new Nf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,r){if(this.disposed)return Promise.resolve(!1);const s=this.getTransition(),o="imperative"!==e&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;r?(l=r.resolve,c=r.reject,u=r.promise):u=new Promise((t,e)=>{l=t,c=e});const d=++this.navigationId;return this.setTransition({id:d,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const r=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(vi(ei),vi(fm),vi(Jg),vi(Qu),vi(io),vi(Su),vi(tu),vi(void 0))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),iv=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new j,null==n&&i.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:sv(this.skipLocationChange),replaceUrl:sv(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:sv(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Co(nv),Co(Vm),Qn("tabindex"),Co(fl),Co(dl))},t.\u0275dir=Yt({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Ro("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[he]}),t})(),rv=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new j,this.subscription=t.events.subscribe(t=>{t instanceof Nf&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,r){if(0!==t||e||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:sv(this.skipLocationChange),replaceUrl:sv(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:sv(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Co(nv),Co(Vm),Co(Gu))},t.\u0275dir=Yt({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Ro("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(ua("href",e.href,Bi),yo("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[he]}),t})();function sv(t){return""===t||!!t}let ov=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new vc,this.deactivateEvents=new vc,this.name=i||Kf,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.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 t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new av(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Co(Jg),Co(Kl),Co(al),Qn("name"),Co(Vl))},t.\u0275dir=Yt({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class av{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Vm?this.route:t===Jg?this.childContexts:this.parent.get(t,e)}}class lv{}class cv{preload(t,e){return Gd(null)}}let uv=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new Kg(e,n,e=>t.triggerEvent(new $f(e)),e=>t.triggerEvent(new Hf(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Wd(t=>t instanceof Nf),qd(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(ql);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return M(n).pipe(H(),P(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?Gd(e._loadedConfig):this.loader.load(t.injector,e)).pipe(L(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(vi(nv),vi(Su),vi(tu),vi(io),vi(lv))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),dv=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Tf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Nf&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Zf&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Zf(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(vi(nv),vi(fd),vi(void 0))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();const hv=new Xn("ROUTER_CONFIGURATION"),pv=new Xn("ROUTER_FORROOT_GUARD"),fv=[Qu,{provide:fm,useClass:mm},{provide:nv,useFactory:function(t,e,n,i,r,s,o,a={},l,c){const u=new nv(null,t,e,n,i,r,s,nm(o));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing){const t=Nu();u.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return u},deps:[fm,Jg,Qu,io,Su,tu,Zg,hv,[class{},new wi],[class{},new wi]]},Jg,{provide:Vm,useFactory:function(t){return t.routerState.root},deps:[nv]},{provide:Su,useClass:Eu},uv,cv,class{preload(t,e){return e().pipe(hf(()=>Gd(null)))}},{provide:hv,useValue:{enableTracing:!1}}];function mv(){return new bu("Router",nv)}let gv=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[fv,_v(e),{provide:pv,useFactory:yv,deps:[[nv,new wi,new ki]]},{provide:hv,useValue:n||{}},{provide:Gu,useFactory:bv,deps:[Mu,[new _i(Wu),new wi],hv]},{provide:dv,useFactory:vv,deps:[nv,fd,hv]},{provide:lv,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:cv},{provide:bu,multi:!0,useFactory:mv},[wv,{provide:Mc,multi:!0,useFactory:kv,deps:[wv]},{provide:Cv,useFactory:jv,deps:[wv]},{provide:Hc,multi:!0,useExisting:Cv}]]}}static forChild(e){return{ngModule:t,providers:[_v(e)]}}}return t.\u0275fac=function(e){return new(e||t)(vi(pv,8),vi(nv,8))},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})();function vv(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new dv(t,e,n)}function bv(t,e,n={}){return n.useHash?new Ku(t,e):new Zu(t,e)}function yv(t){return"guarded"}function _v(t){return[{provide:ti,multi:!0,useValue:t},{provide:Zg,multi:!0,useValue:t}]}let wv=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new j}appInitializer(){return this.injector.get(Du,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(nv),i=this.injector.get(hv);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Gd(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(hv),n=this.injector.get(uv),i=this.injector.get(dv),r=this.injector.get(nv),s=this.injector.get(ju);t===s.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(vi(io))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();function kv(t){return t.appInitializer.bind(t)}function jv(t){return t.bootstrapListener.bind(t)}const Cv=new Xn("Router Initializer");let Sv=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qt({type:t,selectors:[["app-domaca-stran"]],decls:5,vars:0,consts:[[1,"content","bg-dark","p-3"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h1"),oa(2,"Dobrodo\u0161li na Karjoli!"),Eo(),xo(3,"p"),oa(4,"Karjola je portal za deljenje zapiskov med \u0161tudenti univerzitetnega programa na Fakulteti za ra\u010dunalni\u0161tvo in informatiko. Za objavo zapiskov in komentiranje objavljenih zapiskov se morate registrirati s \u0161tudentskim e-po\u0161tnim naslovom. To omejitev imamo zato, da \u010dim bolj prepre\u010dimo objavljanje neprimerne vsebine."),Eo(),Eo())},styles:[""]}),t})();function Pv(t,e,n,i){return new(n||(n=Promise))(function(r,s){function o(t){try{l(i.next(t))}catch(e){s(e)}}function a(t){try{l(i.throw(t))}catch(e){s(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}l((i=i.apply(t,e||[])).next())})}const xv=new Xn("Shramba brskalnika",{providedIn:"root",factory:()=>localStorage}),Ev="https://sp-lp24-karjola.herokuapp.com/api";let Ov=(()=>{class t{constructor(t,e){this.http=t,this.shramba=e,this.apiUrl=Ev}prijava(t){return this.avtentikacija("uporabniki/prijava",t)}registracija(t){return this.avtentikacija("uporabniki/registriraj",t)}avtentikacija(t,e){return this.http.post(`${this.apiUrl}/${t}`,e).toPromise().then(t=>t).catch(this.obdelajNapako)}posljiObnovitvenoZahtevo(t){return this.http.put(`${this.apiUrl}/uporabniki/vnosZetona`,t).toPromise().then(t=>t).catch(this.obdelajNapako)}obnoviGeslo(t){return this.http.put(`${this.apiUrl}/uporabniki/obnovitevGesla`,t).toPromise().then(t=>t).catch(this.obdelajNapako)}pridobiUporabnike(){return this.http.get(`${this.apiUrl}/uporabniki/`).toPromise().then(t=>t).catch(this.obdelajNapako)}pridobiUporabnika(t){const e=`${this.apiUrl}/uporabniki/${t}`,n={headers:new Yd({Authorization:`Bearer ${this.shramba.getItem("karjola-zeton")}`})};return this.http.get(e,n).toPromise().then(t=>t).catch(this.obdelajNapako)}spremeniGeslo(t){const e=`${this.apiUrl}/uporabniki/${t.idUporabnika}/posodobiGeslo`,n={headers:new Yd({Authorization:`Bearer ${this.shramba.getItem("karjola-zeton")}`})};return this.http.put(e,t,n).toPromise().then(t=>t).catch(this.obdelajNapako)}izbrisiUporabnika(t){const e=`${this.apiUrl}/uporabniki/${t}`,n={headers:new Yd({Authorization:`Bearer ${this.shramba.getItem("karjola-zeton")}`})};return this.http.delete(e,n).toPromise().then(t=>t).catch(this.obdelajNapako)}obdelajNapako(t){return console.error("Pri\u0161lo je do napake",t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t),Promise.reject(t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t)}}return t.\u0275fac=function(e){return new(e||t)(vi(hh),vi(xv))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Iv=(()=>{class t{constructor(t,e){this.shramba=t,this.uporabnikPodatkiStoritev=e}b64Utf8(t){return decodeURIComponent(Array.prototype.map.call(atob(t),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}jePrijavljen(){const t=this.vrniZeton();return!!t&&JSON.parse(this.b64Utf8(t.split(".")[1])).potek>Date.now()/1e3}vrniTrenutnegaUporabnika(){if(this.jePrijavljen()){const t=this.vrniZeton(),{_id:e,uporabniskoIme:n,ePosta:i,jeAdmin:r,jePotrjen:s}=JSON.parse(this.b64Utf8(t.split(".")[1]));return{_id:e,uporabniskoIme:n,ePosta:i,jeAdmin:r,jePotrjen:s}}}jeAdmin(){if(this.jePrijavljen()){const t=this.vrniZeton();if(JSON.parse(this.b64Utf8(t.split(".")[1])).jeAdmin)return!0}return!1}jePotrjen(){if(this.jePrijavljen()){const t=this.vrniZeton();if(JSON.parse(this.b64Utf8(t.split(".")[1])).jePotrjen)return!0}return!1}prijava(t){return Pv(this,void 0,void 0,function*(){return this.uporabnikPodatkiStoritev.prijava(t).then(t=>{this.shraniZeton(t["\u017eeton"])})})}registracija(t){return Pv(this,void 0,void 0,function*(){return this.uporabnikPodatkiStoritev.registracija(t).then(t=>{this.shraniZeton(t["\u017eeton"])})})}odjava(){this.shramba.removeItem("karjola-zeton")}vrniZeton(){return this.shramba.getItem("karjola-zeton")}shraniZeton(t){this.shramba.setItem("karjola-zeton",t)}}return t.\u0275fac=function(e){return new(e||t)(vi(xv),vi(Ov))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Av(t,e,n,r){return i(n)&&(r=n,n=void 0),r?Av(t,e,n).pipe(P(t=>l(t)?r(...t):r(t))):new b(i=>{zv(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function zv(t,e,n,i,r){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,r),s=()=>i.removeEventListener(e,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),s=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),s=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,o=t.length;s{class t{constructor(){this.jePovezava=!1,G(Av(window,"offline").pipe(P(()=>!1)),Av(window,"online").pipe(P(()=>!0)),new b(t=>{t.next(navigator.onLine),t.complete()})).subscribe(t=>this.jePovezava=t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Nv=(()=>{class t{constructor(t){this.usmerjevalnik=t,this.urlNaslovi=[],this.usmerjevalnik.events.pipe(Wd(t=>t instanceof Nf)).subscribe(t=>{this.urlNaslovi=[...this.urlNaslovi,t.urlAfterRedirects]})}vrniPredhodnjeUrlNaslove(){const t=this.urlNaslovi.length;return t>1?this.urlNaslovi[t-2]:"/"}vrniPredhodnjeUrlNasloveBrezIzbranih(){const t=["/registracija","/prijava","/obnoviGeslo","/vnesiNovoGeslo/:eposta","/uporabniki/:idUporabnika"],e=this.urlNaslovi.filter(e=>!t.includes(e)),n=e.length;return n>1?e[n-1]:"/"}}return t.\u0275fac=function(e){return new(e||t)(vi(nv))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Rv=(()=>{class t{constructor(t){this.http=t}vrniKraj(t){return this.http.get("https://api.lavbic.net/kraji/"+t).toPromise().then(t=>t).catch(this.obdelajNapako)}obdelajNapako(t){return console.error("Pri\u0161lo je do napake",t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t),Promise.reject("Po\u0161ta ni najdena! Preveri ali sploh ta po\u0161ta obstaja in ali povezava deluje.")}}return t.\u0275fac=function(e){return new(e||t)(vi(hh))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Mv(t,e){if(1&t&&(xo(0,"div",20),xo(1,"strong",21),oa(2),Eo(),xo(3,"span",22),oa(4),Eo(),Eo()),2&t){const t=Do();Br(2),aa(t.napaka),Br(2),aa(t.napakaNaObrazcu)}}function Vv(t,e){1&t&&(xo(0,"div",23),xo(1,"strong",24),oa(2,"Registracija uspe\u0161na!"),Eo(),Oo(3,"span",25),Eo())}let Dv=(()=>{class t{constructor(t,e,n,i,r){this.usmerjevalnik=t,this.avtentikacijaStoritev=e,this.povezavaStoritev=n,this.zgodovinaStoritev=i,this.zunanjiApiStoritev=r,this.uspesnoObvestilo=!1,this.registracijskiPodatki={_id:"",uporabniskoIme:"",ePosta:"",novoGeslo:"",ponoviNovoGeslo:"",naslov:"Tesni naslov 12345667889a",posta:"1000",kraj:"Lublana",jeAdmin:!1,jePotrjen:!1},this.glava={naslov:"REGISTRACIJA UPORABNIKA",podnaslov:""}}nastaviNapako(t,e){this.napakaNaObrazcu=e,this.napaka=t}pridobiKraj(){""!=this.registracijskiPodatki.posta&&this.zunanjiApiStoritev.vrniKraj(this.registracijskiPodatki.posta).then(t=>{var e=JSON.parse(JSON.stringify(t));this.registracijskiPodatki.kraj=e.kraj,this.napakaNaObrazcu=""}).catch(t=>{this.registracijskiPodatki.posta="",this.registracijskiPodatki.kraj="",this.napakaNaObrazcu=t})}posiljanjePodatkov(){if(this.nastaviNapako("",""),this.jePovezava())if(""!=this.registracijskiPodatki.uporabniskoIme&&""!=this.registracijskiPodatki.ePosta&&""!=this.registracijskiPodatki.novoGeslo&&""!=this.registracijskiPodatki.ponoviNovoGeslo&&""!=this.registracijskiPodatki.naslov&&""!=this.registracijskiPodatki.posta&&""!=this.registracijskiPodatki.kraj)if(!new RegExp(/^\d{4}$/).test(this.registracijskiPodatki.posta)||parseInt(this.registracijskiPodatki.posta)<1e3)this.nastaviNapako("\u0160tiri \u0161tevke!"," Po\u0161ta je sestavljena iz \u0161tiri \u0161tevk od 1000 do 9999.");else if(new RegExp("[a-z]{2}[0-9]{4}@student.uni-lj.si").test(this.registracijskiPodatki.ePosta))if(new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@\u20ac#$%^&*])(?=.{8,})").test(this.registracijskiPodatki.novoGeslo)&&this.registracijskiPodatki.novoGeslo==this.registracijskiPodatki.ponoviNovoGeslo){var t=this.registracijskiPodatki.naslov,e=this.registracijskiPodatki.kraj,n=this.registracijskiPodatki.uporabniskoIme;new RegExp(/<\/?[a-z][\s\S]*>/i).test(t)||new RegExp(/<\/?[a-z][\s\S]*>/i).test(e)||new RegExp(/<\/?[a-z][\s\S]*>/i).test(n)||""==e?this.nastaviNapako("Nedovoljeni znaki!"," Uporabni\u0161ko ime, naslov ali kraj vsebuje nedovoljene znake!"):""==this.napakaNaObrazcu&&this.izvediRegistracijo()}else this.nastaviNapako("Geslo ni vredu!"," Geslo mora ustrezati naslednjim kriterijem: Geslo more vsebovati vsaj eno veliko in eno majhno \u010drko. Geslo mora vsebovati vsaj eno \u0161tevilko in biti dolgo 8 znakov, hkrati pa naj vsebuje specialni znak glej regex (^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@\u20ac#$%^&*])(?=.{8,})). Prav tako poskrbi, da bo v obe polji vpisano isto geslo.");else this.nastaviNapako("Preveri e-po\u0161to!"," Zahtevana je po\u0161ta od \u0161tudentskega UL ra\u010duna.");else this.nastaviNapako("Manjkajo\u010di podatki!","Preveri manjkajo\u010de podatke in jih izpolni.");else this.nastaviNapako("Ni povezave","Vzpostavi povezavo z internetom.")}izvediRegistracijo(){this.avtentikacijaStoritev.registracija(this.registracijskiPodatki).then(()=>{this.usmerjevalnik.navigateByUrl(this.zgodovinaStoritev.vrniPredhodnjeUrlNasloveBrezIzbranih()),this.uspesnoObvestilo=!0}).catch(t=>this.napakaNaObrazcu=t)}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(nv),Co(Iv),Co(Tv),Co(Nv),Co(Rv))},t.\u0275cmp=qt({type:t,selectors:[["app-registracija"]],decls:41,vars:12,consts:[[1,"content","bg-dark","p-3"],[1,"formtitle"],["autocomplete","on","id","forma",3,"submit"],[1,"form-row","col-md-12"],[1,"form-group","col-md-6"],["for","inputEmail4"],[1,"required"],["type","text","id","userName","name","uporabniskoIme","placeholder","Uporabni\u0161ko ime","required","","autofocus","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","email","id","exampleInputEmail1","aria-describedby","emailHelp","name","ePosta","placeholder","Vnesi email","autocomplete","on","pattern","[a-z]{2}[0-9]{4}@student.uni-lj.si","title","Vnesi e-po\u0161tni naslov, ki si ga prejel s strani Univerze v Ljubljani. Primer: jn0000@student.uni-lj.si","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["for","exampleInputPassword1"],["type","password","id","exampleInputPassword1","name","novoGesko","placeholder","Geslo","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["for","repeatPassword"],["type","password","id","repeatPassword","placeholder","Ponovi geslo","name","ponoviNovoGeslo","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],[1,"form-group","col-md-12"],[1,"form-check","col-md-6"],["for","gridRadios3",1,"form-check-label"],["routerLink","/splosniPogoji"],["type","submit","id","submit",1,"btn","btn-primary",3,"disabled"],["class","alert alert-danger fade show col-md-12","role","alert",4,"ngIf"],["class","alert alert-success fade show col-md-12","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger","fade","show","col-md-12"],["id","danger-strong"],["id","danger-navadno"],["role","alert",1,"alert","alert-success","fade","show","col-md-12"],["id","success-strong"],["id","success-navadno"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h2",1),oa(2),Eo(),Oo(3,"br"),xo(4,"form",2),Ro("submit",function(){return e.posiljanjePodatkov()}),xo(5,"div",3),xo(6,"div",4),xo(7,"label",5),oa(8,"UPORABNI\u0160KO IME "),xo(9,"em",6),oa(10,"*"),Eo(),Eo(),xo(11,"input",7),Ro("ngModelChange",function(t){return e.registracijskiPodatki.uporabniskoIme=t}),Eo(),Eo(),xo(12,"div",4),xo(13,"label",5),oa(14,"E-PO\u0160TA "),xo(15,"em",6),oa(16,"*"),Eo(),Eo(),xo(17,"input",8),Ro("ngModelChange",function(t){return e.registracijskiPodatki.ePosta=t}),Eo(),Eo(),xo(18,"div",4),xo(19,"label",9),oa(20,"GESLO "),xo(21,"em",6),oa(22,"*"),Eo(),Eo(),xo(23,"input",10),Ro("ngModelChange",function(t){return e.registracijskiPodatki.novoGeslo=t}),Eo(),Eo(),xo(24,"div",4),xo(25,"label",11),oa(26,"POTRDITEV GESLA "),xo(27,"em",6),oa(28,"*"),Eo(),Eo(),xo(29,"input",12),Ro("ngModelChange",function(t){return e.registracijskiPodatki.ponoviNovoGeslo=t}),Eo(),Eo(),Eo(),xo(30,"div",13),xo(31,"div",14),xo(32,"label",15),oa(33," Z uporabo strani se strinja\u0161 s "),xo(34,"a",16),oa(35,"splo\u0161nimi pogoji."),Eo(),Eo(),Eo(),Oo(36,"br"),xo(37,"button",17),oa(38," Registriraj se"),Eo(),ko(39,Mv,5,2,"div",18),ko(40,Vv,4,0,"div",19),Eo(),Eo(),Eo()),2&t&&(Br(2),aa(e.glava.naslov),Br(9),So("ngModel",e.registracijskiPodatki.uporabniskoIme)("disabled",!e.jePovezava()),Br(6),So("ngModel",e.registracijskiPodatki.ePosta)("disabled",!e.jePovezava()),Br(6),So("ngModel",e.registracijskiPodatki.novoGeslo)("disabled",!e.jePovezava()),Br(6),So("ngModel",e.registracijskiPodatki.ponoviNovoGeslo)("disabled",!e.jePovezava()),Br(8),So("disabled",!e.jePovezava()),Br(2),So("ngIf",e.napakaNaObrazcu),Br(1),So("ngIf",e.uspesnoObvestilo))},directives:[Sp,tp,wp,Rh,Vp,Xh,Cp,Up,rv,ad],styles:[""]}),t})();function Uv(t,e){if(1&t&&(xo(0,"small",17),oa(1,"\u0160e nisi registriran? Registriraj se "),xo(2,"a",18),oa(3,"tu"),Eo(),oa(4,"."),Eo()),2&t){const t=Do();Br(2),So("disabled",!t.jePovezava())}}function Lv(t,e){if(1&t&&(xo(0,"small",19),oa(1,"Pozabljeno geslo? Obnovi\u0161 ga lahko na "),xo(2,"a",20),oa(3,"naslednji povezavi"),Eo(),oa(4,"."),Eo()),2&t){const t=Do();Br(2),So("disabled",!t.jePovezava())}}function Fv(t,e){1&t&&(xo(0,"div",21),oa(1," Ni povezave z internetom! "),Eo())}function $v(t,e){if(1&t&&(xo(0,"div",22),xo(1,"strong",23),oa(2),Eo(),xo(3,"span",24),oa(4),Eo(),Eo()),2&t){const t=Do();Br(2),aa(t.napaka),Br(2),aa(t.napakaNaObrazcu)}}function Hv(t,e){1&t&&(xo(0,"div",25),xo(1,"strong",26),oa(2,"Prijava uspe\u0161na!"),Eo(),Oo(3,"span",27),Eo())}let Bv=(()=>{class t{constructor(t,e,n,i){this.usmerjevalnik=t,this.avtentikacijaStoritev=e,this.povezavaStoritev=n,this.zgodovinaStoritev=i,this.uspesnoObvestilo=!1,this.href="",this.prijavniPodatki={ePosta:"",geslo:""},this.glava={naslov:"PRIJAVA UPORABNIKA",podnaslov:""}}nastaviNapako(t,e){this.napakaNaObrazcu=e,this.napaka=t}posiljanjePodatkov(){this.nastaviNapako("",""),this.jePovezava()?""!=this.prijavniPodatki.ePosta&&""!=this.prijavniPodatki.geslo?new RegExp("[a-z]{2}[0-9]{4}@student.uni-lj.si").test(this.prijavniPodatki.ePosta)?new RegExp(/<\/?[a-z][\s\S]*>/i).test(this.prijavniPodatki.geslo)||new RegExp(/<\/?[a-z][\s\S]*>/i).test(this.prijavniPodatki.ePosta)?this.nastaviNapako("Nedovoljeni znaki!"," Uporabnisko ime ali geslo vsebuje nedovoljene znake"):this.izvediPrijavo():this.nastaviNapako("Preveri e-po\u0161to!"," Zahtevana je po\u0161ta od \u0161tudentskega UL ra\u010duna."):this.nastaviNapako("Manjkajo\u010di podatki!","Preveri manjkajo\u010de podatke in jih izpolni."):this.nastaviNapako("Ni povezave","Vzpostavi povezavo z internetom.")}izvediPrijavo(){this.avtentikacijaStoritev.prijava(this.prijavniPodatki).then(()=>{this.uspesnoObvestilo=!0,this.usmerjevalnik.navigateByUrl(this.zgodovinaStoritev.vrniPredhodnjeUrlNasloveBrezIzbranih())}).catch(t=>this.napakaNaObrazcu=t)}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(nv),Co(Iv),Co(Tv),Co(Nv))},t.\u0275cmp=qt({type:t,selectors:[["app-prijava"]],decls:29,vars:11,consts:[[1,"content","bg-dark","p-3"],[1,"formtitle"],["id","forma",3,"submit"],[1,"form-row","col-md-12"],[1,"form-group","col-md-6"],["for","exampleInputEmail1"],[1,"required"],["type","email","id","exampleInputEmail1","aria-describedby","emailHelp","placeholder","Vnesi email","required","","name","ePosta","autocomplete","on","pattern","[a-z]{2}[0-9]{4}@student.uni-lj.si","title","Vnesi e-po\u0161tni naslov, ki si ga prejel s strani Univerze v Ljubljani. Primer: jn0000@student.uni-lj.si",1,"form-control",3,"ngModel","disabled","ngModelChange"],["id","emailHelp","class","form-text text-muted",4,"ngIf"],["for","exampleInputPassword1"],["type","password","id","exampleInputPassword1","placeholder","Geslo","name","trenutnoGeslo","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["id","passwordHelp","class","form-text text-muted",4,"ngIf"],[1,"form-group","col-md-12"],["type","submit","id","submit",1,"btn","btn-primary",3,"disabled"],["class","alert alert-info fade show col-md-12","role","alert",4,"ngIf"],["class","alert alert-danger fade show col-md-12","role","alert",4,"ngIf"],["class","alert alert-success fade show col-md-12","role","alert",4,"ngIf"],["id","emailHelp",1,"form-text","text-muted"],["routerLink","/registracija",3,"disabled"],["id","passwordHelp",1,"form-text","text-muted"],["routerLink","/obnoviGeslo",3,"disabled"],["role","alert",1,"alert","alert-info","fade","show","col-md-12"],["role","alert",1,"alert","alert-danger","fade","show","col-md-12"],["id","danger-strong"],["id","danger-navadno"],["role","alert",1,"alert","alert-success","fade","show","col-md-12"],["id","success-strong"],["id","success-navadno"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h2",1),oa(2),Eo(),Oo(3,"br"),xo(4,"form",2),Ro("submit",function(){return e.posiljanjePodatkov()}),xo(5,"div",3),xo(6,"div",4),xo(7,"label",5),oa(8,"E-PO\u0160TA "),xo(9,"em",6),oa(10,"*"),Eo(),Eo(),xo(11,"input",7),Ro("ngModelChange",function(t){return e.prijavniPodatki.ePosta=t}),Eo(),ko(12,Uv,5,1,"small",8),Eo(),Oo(13,"br"),xo(14,"div",4),xo(15,"label",9),oa(16,"GESLO "),xo(17,"em",6),oa(18,"*"),Eo(),Eo(),xo(19,"input",10),Ro("ngModelChange",function(t){return e.prijavniPodatki.geslo=t}),Eo(),ko(20,Lv,5,1,"small",11),Eo(),Eo(),xo(21,"div",12),Oo(22,"br"),xo(23,"button",13),oa(24,"Prijavi se"),Eo(),Eo(),Oo(25,"br"),ko(26,Fv,2,0,"div",14),ko(27,$v,5,2,"div",15),ko(28,Hv,4,0,"div",16),Eo(),Eo()),2&t&&(Br(2),aa(e.glava.naslov),Br(9),So("ngModel",e.prijavniPodatki.ePosta)("disabled",!e.jePovezava()),Br(1),So("ngIf",e.jePovezava()),Br(7),So("ngModel",e.prijavniPodatki.geslo)("disabled",!e.jePovezava()),Br(1),So("ngIf",e.jePovezava()),Br(3),So("disabled",!e.jePovezava()),Br(3),So("ngIf",!e.jePovezava()),Br(1),So("ngIf",e.napakaNaObrazcu),Br(1),So("ngIf",e.uspesnoObvestilo))},directives:[Sp,tp,wp,Rh,Vp,Up,Xh,Cp,ad,rv],styles:[""]}),t})();function Gv(t,e){1&t&&(xo(0,"div",16),oa(1," Ni povezave z internetom! "),Eo())}function qv(t,e){if(1&t&&(xo(0,"div",17),xo(1,"strong",18),oa(2),Eo(),xo(3,"span",19),oa(4),Eo(),Eo()),2&t){const t=Do();Br(2),aa(t.napaka),Br(2),aa(t.napakaNaObrazcu)}}function Wv(t,e){1&t&&(xo(0,"div",20),xo(1,"strong"),oa(2,"Geslo je bilo uspe\u0161no ponastavljeno! Lahko se vrne\u0161 na "),xo(3,"a",21),oa(4,"prijavo in se prijavi\u0161!"),Eo(),Eo(),Eo())}let Zv=(()=>{class t{constructor(t,e,n,i){this.povezavaStoritev=t,this.usmerjevalnik=e,this.uporabnikPodatkiStoritev=n,this.pot=i,this.uspesnoObvestilo=!1,this.noviPodatki={ePosta:"",zetonZaPosodobitev:"",novoGeslo:"",ponoviNovoGeslo:""},this.glava={naslov:"VNOS NOVEGA GESLA IN \u017dETONA",podnaslov:""}}ngOnInit(){this.pot.paramMap.subscribe(t=>{this.noviPodatki.ePosta=t.get("eposta")})}nastaviNapako(t,e){this.napakaNaObrazcu=e,this.napaka=t}posljiPodatke(){this.nastaviNapako("",""),this.jePovezava()?""!=this.noviPodatki.zetonZaPosodobitev&&""!=this.noviPodatki.ePosta&&""!=this.noviPodatki.novoGeslo&&""!=this.noviPodatki.ponoviNovoGeslo?new RegExp("[a-z]{2}[0-9]{4}@student.uni-lj.si").test(this.noviPodatki.ePosta)?new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@\u20ac#$%^&*])(?=.{8,})").test(this.noviPodatki.novoGeslo)&&this.noviPodatki.novoGeslo==this.noviPodatki.ponoviNovoGeslo?new RegExp("[A-Za-z0-9]{40}").test(this.noviPodatki.zetonZaPosodobitev)?this.uporabnikPodatkiStoritev.obnoviGeslo(this.noviPodatki).then(()=>{this.uspesnoObvestilo=!0}).catch(t=>this.napakaNaObrazcu=t):this.nastaviNapako("Napa\u010den format \u017eetona!"," Vnesi \u017eeton pravilnega formata, ki je presumably prispel na tvoj mail!"):this.nastaviNapako("Geslo ni vredu!"," Geslo mora ustrezati naslednjim kriterijem: Geslo more vsebovati vsaj eno veliko in eno majhno \u010drko. Geslo mora vsebovati vsaj eno \u0161tevilko in biti dolgo 8 znakov, hkrati pa naj vsebuje specialni znak glej regex (^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@\u20ac#$%^&*])(?=.{8,})). Prav tako poskrbi, da bo v obe polji vpisano isto geslo."):this.nastaviNapako("Preveri e-po\u0161to!"," Zahtevana je po\u0161ta od \u0161tudentskega UL ra\u010duna."):this.nastaviNapako("Manjkajo\u010di podatki!"," Preveri manjkajo\u010de podatke in jih izpolni."):this.nastaviNapako("Ni povezave","Vzpostavi povezavo z internetom.")}jePovezava(){return this.povezavaStoritev.jePovezava}}return t.\u0275fac=function(e){return new(e||t)(Co(Tv),Co(nv),Co(Ov),Co(Vm))},t.\u0275cmp=qt({type:t,selectors:[["app-vnesi-novo-geslo"]],decls:31,vars:10,consts:[[1,"content","bg-dark","p-3"],[1,"formtitle"],[3,"submit"],[1,"form-row","col-sm-12","col-md-12","col-lg-12"],[1,"form-group","col-md-6","col-lg-12"],["for","exampleInputPassword1"],[1,"required"],["type","text","id","InputPassword","placeholder","Zeton poslan na mail","name","zeton","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","password","id","InputPassword","placeholder","Geslo","name","novoGeslo","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["for","repeatPassword"],["type","password","id","repeatPassword","placeholder","Ponovi geslo","name","potrdiNovoGeslo","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],[1,"form-group","col-md-2","col-lg-6"],["type","submit","id","submit",1,"btn","btn-primary",3,"disabled"],["class","alert alert-info fade show col-md-12","role","alert",4,"ngIf"],["class","alert alert-danger alert-dismissible fade show","role","alert",4,"ngIf"],["class","alert alert-success alert-dismissible fade show","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-info","fade","show","col-md-12"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show"],["id","danger-strong"],["id","danger-navadno"],["role","alert",1,"alert","alert-success","alert-dismissible","fade","show"],["routerLink","/prijava"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h2",1),oa(2,"VNOS NOVEGA GESLA"),Eo(),Oo(3,"br"),xo(4,"form",2),Ro("submit",function(){return e.posljiPodatke()}),xo(5,"div",3),xo(6,"div",4),xo(7,"label",5),oa(8,"\u017dETON "),xo(9,"em",6),oa(10,"*"),Eo(),Eo(),xo(11,"input",7),Ro("ngModelChange",function(t){return e.noviPodatki.zetonZaPosodobitev=t}),Eo(),Eo(),xo(12,"div",4),xo(13,"label",5),oa(14,"NOVO GESLO "),xo(15,"em",6),oa(16,"*"),Eo(),Eo(),xo(17,"input",8),Ro("ngModelChange",function(t){return e.noviPodatki.novoGeslo=t}),Eo(),Eo(),xo(18,"div",4),xo(19,"label",9),oa(20,"POTRDI GESLO "),xo(21,"em",6),oa(22,"*"),Eo(),Eo(),xo(23,"input",10),Ro("ngModelChange",function(t){return e.noviPodatki.ponoviNovoGeslo=t}),Eo(),Eo(),Eo(),xo(24,"div",11),xo(25,"button",12),oa(26,"Ponastavi!"),Eo(),Eo(),ko(27,Gv,2,0,"div",13),Oo(28,"br"),ko(29,qv,5,2,"div",14),ko(30,Wv,5,0,"div",15),Eo(),Eo()),2&t&&(Br(11),So("ngModel",e.noviPodatki.zetonZaPosodobitev)("disabled",!e.jePovezava()),Br(6),So("ngModel",e.noviPodatki.novoGeslo)("disabled",!e.jePovezava()),Br(6),So("ngModel",e.noviPodatki.ponoviNovoGeslo)("disabled",!e.jePovezava()),Br(2),So("disabled",!e.jePovezava()),Br(2),So("ngIf",!e.jePovezava()),Br(2),So("ngIf",e.napakaNaObrazcu),Br(1),So("ngIf",e.uspesnoObvestilo))},directives:[Sp,tp,wp,Rh,Vp,Xh,Cp,ad,rv],styles:[""]}),t})();function Kv(t,e){1&t&&(xo(0,"div",11),oa(1," Ni povezave z internetom! "),Eo())}function Qv(t,e){if(1&t&&(xo(0,"div",12),xo(1,"strong",13),oa(2),Eo(),xo(3,"span",14),oa(4),Eo(),Eo()),2&t){const t=Do();Br(2),aa(t.napaka),Br(2),aa(t.napakaNaObrazcu)}}function Jv(t,e){1&t&&(xo(0,"div",15),xo(1,"strong",16),oa(2,"Navodila za ponastavitev gesla so bila poslana!"),Eo(),Oo(3,"span",17),Eo())}let Yv=(()=>{class t{constructor(t,e,n){this.usmerjevalnik=t,this.povezavaStoritev=e,this.uporabnikPodatkiStoritev=n,this.uspesnoObvestilo=!1,this.glava={naslov:"PONASTAVITEV GESLA",podnaslov:""},this.obnovitveniPodatki={ePosta:""}}ngOnInit(){}nastaviNapako(t,e){this.napakaNaObrazcu=e,this.napaka=t}posiljanjePodatkov(){this.nastaviNapako("",""),this.jePovezava()?""!=this.obnovitveniPodatki.ePosta&&new RegExp("[a-z]{2}[0-9]{4}@student.uni-lj.si").test(this.obnovitveniPodatki.ePosta)?this.uporabnikPodatkiStoritev.posljiObnovitvenoZahtevo(this.obnovitveniPodatki).then(()=>{this.uspesnoObvestilo=!0,this.usmerjevalnik.navigateByUrl("vnesiNovoGeslo/"+this.obnovitveniPodatki.ePosta)}).catch(t=>this.napakaNaObrazcu=t):this.nastaviNapako("Manjo\u010da ali napa\u010dna e-po\u0161ta!"," Preveri manjkajo\u010do e-po\u0161to in njen format!"):this.nastaviNapako("Ni povezave","Vzpostavi povezavo z internetom.")}jePovezava(){return this.povezavaStoritev.jePovezava}}return t.\u0275fac=function(e){return new(e||t)(Co(nv),Co(Tv),Co(Ov))},t.\u0275cmp=qt({type:t,selectors:[["app-obnovi-geslo"]],decls:19,vars:7,consts:[[1,"content","bg-dark","p-3"],[1,"formtitle"],["role","form",3,"submit"],["id","enterEmailForgetPassword",1,"form-group","col-md-12"],["for","exampleInputEmail1"],[1,"required"],["type","email","id","exampleInputEmail1","aria-describedby","emailHelp","placeholder","Vnesi e-po\u0161tni naslov za ponastavitev gesla","required","","name","ePosta","autocomplete","on","pattern","[a-z]{2}[0-9]{4}@student.uni-lj.si","title","Vnesi e-po\u0161tni naslov, ki si ga prejel s strani Univerze v Ljubljani. Primer: jn0000@student.uni-lj.si",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","submit","id","submit",1,"btn","btn-primary",3,"disabled"],["class","alert alert-info fade show col-md-12","role","alert",4,"ngIf"],["class","alert alert-danger alert-dismissible fade show col-md-12","role","alert",4,"ngIf"],["class","alert alert-success alert-dismissible fade show ","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-info","fade","show","col-md-12"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show","col-md-12"],["id","danger-strong"],["id","danger-navadno"],["role","alert",1,"alert","alert-success","alert-dismissible","fade","show"],["id","success-strong"],["id","success-navadno"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h2",1),oa(2),Eo(),Oo(3,"br"),xo(4,"form",2),Ro("submit",function(){return e.posiljanjePodatkov()}),xo(5,"div",3),xo(6,"label",4),oa(7,"E-PO\u0160TA "),xo(8,"em",5),oa(9,"*"),Eo(),Eo(),xo(10,"input",6),Ro("ngModelChange",function(t){return e.obnovitveniPodatki.ePosta=t}),Eo(),Oo(11,"br"),xo(12,"button",7),oa(13,"Ponastavi geslo!"),Eo(),Eo(),Oo(14,"br"),ko(15,Kv,2,0,"div",8),Oo(16,"br"),ko(17,Qv,5,2,"div",9),ko(18,Jv,4,0,"div",10),Eo(),Eo()),2&t&&(Br(2),aa(e.glava.naslov),Br(8),So("ngModel",e.obnovitveniPodatki.ePosta)("disabled",!e.jePovezava()),Br(2),So("disabled",!e.jePovezava()),Br(3),So("ngIf",!e.jePovezava()),Br(2),So("ngIf",e.napakaNaObrazcu),Br(1),So("ngIf",e.uspesnoObvestilo))},directives:[Sp,tp,wp,Rh,Vp,Up,Xh,Cp,ad],styles:[""]}),t})();class Xv{}class tb{}let eb=(()=>{class t{constructor(t,e){this.http=t,this.shramba=e,this.apiUrl=Ev}httpLastnosti(){return{headers:new Yd({Authorization:`Bearer ${this.shramba.getItem("karjola-zeton")}`})}}pridobiOsebje(){return this.http.get(`${this.apiUrl}/osebje`).toPromise().then(t=>t).catch(this.obdelajNapako)}dodajOsebje(t){return this.http.post(`${this.apiUrl}/osebje/`,t,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}posodobiOsebje(t,e){return this.http.put(`${this.apiUrl}/osebje/${e}`,t,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}izbrisiOsebje(t){return this.http.delete(`${this.apiUrl}/osebje/${t}`,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}pridobiPredmete(){return this.http.get(`${this.apiUrl}/predmeti`).toPromise().then(t=>t).catch(this.obdelajNapako)}dodajPredmet(t){return this.http.post(`${this.apiUrl}/predmeti/`,t,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}posodobiPredmet(t,e){return this.http.put(`${this.apiUrl}/predmeti/${e}`,t,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}izbrisiPredmet(t){return this.http.delete(`${this.apiUrl}/predmeti/${t}`,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}pridobiModule(){return this.http.get(`${this.apiUrl}/moduli`).toPromise().then(t=>t).catch(this.obdelajNapako)}dodajModul(t){return this.http.post(`${this.apiUrl}/moduli/`,t,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}posodobiModul(t,e){return this.http.put(`${this.apiUrl}/moduli/${e}`,t,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}izbrisiModul(t){return this.http.delete(`${this.apiUrl}/moduli/${t}`,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}obdelajNapako(t){let e=t.message;return null!=t.error&&null!=t.error.sporocilo?e=t.error.sporocilo:null!=t.error&&null!=t.error.sporo\u010dilo&&(e=t.error.sporo\u010dilo),console.error("Pri\u0161lo je do napake",t),Promise.reject(e)}idArrayIntoObjectArray(t,e,n){for(var i=Object.assign({},t),r=[],s=[],o=[],a=0;ae._id===t.profesorji[a]);if(n)r.push(n);else{const t=new Xv;t._id="-1",t.ime_priimek="deleted",r.push(t)}}for(a=0;ae._id===t.asistenti[a]);if(n)s.push(n);else{const t=new Xv;t._id="-1",t.ime_priimek="deleted",s.push(t)}}for(a=0;ae._id===t.moduli[a]);if(e)o.push(e);else{const t=new tb;t._id="-1",t.ime="deleted",o.push(t)}}return i.profesorji=r,i.asistenti=s,i.moduli=o,i}}return t.\u0275fac=function(e){return new(e||t)(vi(hh),vi(xv))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class nb extends d{constructor(t,e){super()}schedule(t,e=0){return this}}class ib extends nb{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let rb=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class sb extends rb{constructor(t,e=rb.now){super(t,()=>sb.delegate&&sb.delegate!==this?sb.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return sb.delegate&&sb.delegate!==this?sb.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const ob=new sb(ib);function ab(t){return!l(t)&&t-parseFloat(t)+1>=0}function lb(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}class cb{call(t,e){return e.subscribe(new ub(t))}}class ub extends Bp{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let n=0;nthis.index}hasCompleted(){return this.array.length===this.index}}class vb extends D{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[A](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return U(this.observable,new V(this))}}function bb(t){return e=>e.lift(new yb(t))}class yb{constructor(t){this.notifier=t}call(t,e){const n=new _b(t),i=U(this.notifier,new V(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class _b extends D{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function wb(...t){return e=>{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new kb(t,n))}}class kb{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new jb(t,this.observables,this.project))}}class jb extends Bp{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const i=e.length;this.values=new Array(i);for(let r=0;r0){const t=i.indexOf(n);-1!==t&&i.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function Cb(t,e){return new b(e?n=>e.schedule(Sb,0,{error:t,subscriber:n}):e=>e.error(t))}function Sb({error:t,subscriber:e}){e.error(t)}let Pb=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Gd(this.value);case"E":return Cb(this.error);case"C":return Xp()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class xb{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Eb(t,this.delay,this.scheduler))}}class Eb extends f{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,r=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Eb.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new Ob(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Pb.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Pb.createComplete()),this.unsubscribe()}}class Ob{constructor(t,e){this.time=t,this.notification=e}}const Ib=["*"],Ab=["dialog"];function zb(t,e){1&t&&(xo(0,"span",8),Qa(1,9),Eo())}function Tb(t,e){1&t&&(xo(0,"span",8),Qa(1,10),Eo())}function Nb(t,e){1&t&&(xo(0,"span",8),Qa(1,11),Eo())}function Rb(t,e){1&t&&(xo(0,"span",8),Qa(1,12),Eo())}function Mb(t,e){1&t&&oa(0,"...")}function Vb(t,e){1&t&&(xo(0,"span",14),oa(1,"(current)"),Eo())}function Db(t,e){if(1&t&&(oa(0),ko(1,Vb,2,0,"span",13)),2&t){const t=e.$implicit,n=e.currentPage;la(" ",t," "),Br(1),So("ngIf",t===n)}}function Ub(t,e){}const Lb=function(t,e){return{disabled:t,currentPage:e}};function Fb(t,e){if(1&t){const t=zo();xo(0,"li",15),xo(1,"a",16),Ro("click",function(e){return Ve(t),Do().selectPage(1),e.preventDefault()}),ko(2,Ub,0,0,"ng-template",17),Eo(),Eo()}if(2&t){const t=Do(),e=jo(1);Zo("disabled",t.previousDisabled()),Br(1),yo("tabindex",t.previousDisabled()?"-1":null)("aria-disabled",t.previousDisabled()?"true":null),Br(1),So("ngTemplateOutlet",(null==t.tplFirst?null:t.tplFirst.templateRef)||e)("ngTemplateOutletContext",hc(6,Lb,t.previousDisabled(),t.page))}}function $b(t,e){}const Hb=function(t){return{disabled:t}};function Bb(t,e){if(1&t){const t=zo();xo(0,"li",15),xo(1,"a",18),Ro("click",function(e){Ve(t);const n=Do();return n.selectPage(n.page-1),e.preventDefault()}),ko(2,$b,0,0,"ng-template",17),Eo(),Eo()}if(2&t){const t=Do(),e=jo(3);Zo("disabled",t.previousDisabled()),Br(1),yo("tabindex",t.previousDisabled()?"-1":null)("aria-disabled",t.previousDisabled()?"true":null),Br(1),So("ngTemplateOutlet",(null==t.tplPrevious?null:t.tplPrevious.templateRef)||e)("ngTemplateOutletContext",dc(6,Hb,t.previousDisabled()))}}function Gb(t,e){}const qb=function(t){return{disabled:!0,currentPage:t}};function Wb(t,e){if(1&t&&(xo(0,"a",21),ko(1,Gb,0,0,"ng-template",17),Eo()),2&t){const t=Do(2),e=jo(9);Br(1),So("ngTemplateOutlet",(null==t.tplEllipsis?null:t.tplEllipsis.templateRef)||e)("ngTemplateOutletContext",dc(2,qb,t.page))}}function Zb(t,e){}const Kb=function(t,e,n){return{disabled:t,$implicit:e,currentPage:n}};function Qb(t,e){if(1&t){const t=zo();xo(0,"a",22),Ro("click",function(e){Ve(t);const n=Do().$implicit;return Do().selectPage(n),e.preventDefault()}),ko(1,Zb,0,0,"ng-template",17),Eo()}if(2&t){const t=Do().$implicit,e=Do(),l=jo(11);yo("tabindex",e.disabled?"-1":null)("aria-disabled",e.disabled?"true":null),Br(1),So("ngTemplateOutlet",(null==e.tplNumber?null:e.tplNumber.templateRef)||l)("ngTemplateOutletContext",(n=4,i=Kb,r=e.disabled,s=t,o=e.page,function(t,e,n,i,r,s,o,a){const l=e+n;return function(t,e,n,i,r){const s=bo(t,e,n,i);return vo(t,e+2,r)||s}(t,l,r,s,o)?go(t,l+3,a?i.call(a,r,s,o):i(r,s,o)):pc(t,l+3)}(Re(),qe(),n,i,r,s,o,a)))}var n,i,r,s,o,a}function Jb(t,e){if(1&t&&(xo(0,"li",15),ko(1,Wb,2,4,"a",19),ko(2,Qb,2,8,"a",20),Eo()),2&t){const t=e.$implicit,n=Do();Zo("active",t===n.page)("disabled",n.isEllipsis(t)||n.disabled),yo("aria-current",t===n.page?"page":null),Br(1),So("ngIf",n.isEllipsis(t)),Br(1),So("ngIf",!n.isEllipsis(t))}}function Yb(t,e){}function Xb(t,e){if(1&t){const t=zo();xo(0,"li",15),xo(1,"a",23),Ro("click",function(e){Ve(t);const n=Do();return n.selectPage(n.page+1),e.preventDefault()}),ko(2,Yb,0,0,"ng-template",17),Eo(),Eo()}if(2&t){const t=Do(),e=jo(5);Zo("disabled",t.nextDisabled()),Br(1),yo("tabindex",t.nextDisabled()?"-1":null)("aria-disabled",t.nextDisabled()?"true":null),Br(1),So("ngTemplateOutlet",(null==t.tplNext?null:t.tplNext.templateRef)||e)("ngTemplateOutletContext",hc(6,Lb,t.nextDisabled(),t.page))}}function ty(t,e){}function ey(t,e){if(1&t){const t=zo();xo(0,"li",15),xo(1,"a",24),Ro("click",function(e){Ve(t);const n=Do();return n.selectPage(n.pageCount),e.preventDefault()}),ko(2,ty,0,0,"ng-template",17),Eo(),Eo()}if(2&t){const t=Do(),e=jo(7);Zo("disabled",t.nextDisabled()),Br(1),yo("tabindex",t.nextDisabled()?"-1":null)("aria-disabled",t.nextDisabled()?"true":null),Br(1),So("ngTemplateOutlet",(null==t.tplLast?null:t.tplLast.templateRef)||e)("ngTemplateOutletContext",hc(6,Lb,t.nextDisabled(),t.page))}}function ny(t){return!isNaN(function(t){return parseInt(`${t}`,10)}(t))}function iy(t){return null!=t}function ry(t){return(t||document.body).offsetHeight}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});const sy={animation:!0,transitionTimerDelayMs:5};let oy=(()=>{class t{constructor(){this.animation=sy.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({factory:function(){return new t},token:t,providedIn:"root"}),t})();const ay=()=>{},{transitionTimerDelayMs:ly}=sy,cy=new Map,uy=(t,e,n,i)=>{let r=i.context||{};const s=cy.get(e);if(s)switch(i.runningTransition){case"continue":return Yp;case"stop":t.run(()=>s.transition$.complete()),r=Object.assign(s.context,r),cy.delete(e)}const o=n(e,i.animation,r)||ay;if(!i.animation||"none"===window.getComputedStyle(e).transitionProperty)return t.run(()=>o()),Gd(void 0).pipe(function(t){return e=>new b(n=>e.subscribe(e=>t.run(()=>n.next(e)),e=>t.run(()=>n.error(e)),()=>t.run(()=>n.complete())))}(t));const a=new j,c=new j,u=a.pipe(function(...t){return e=>Jp(e,Gd(...t))}(!0));cy.set(e,{transition$:a,complete:()=>{c.next(),c.complete()},context:r});const d=function(t){const{transitionDelay:e,transitionDuration:n}=window.getComputedStyle(t);return 1e3*(parseFloat(e)+parseFloat(n))}(e);return t.runOutsideAngular(()=>{const n=Av(e,"transitionend").pipe(bb(u),Wd(({target:t})=>t===e));(function(...t){if(1===t.length){if(!l(t[0]))return t[0];t=t[0]}return B(t,void 0).lift(new cb)})(function(t=0,e,n){let i=-1;return ab(e)?i=Number(e)<1?1:Number(e):S(e)&&(n=e),S(n)||(n=ob),new b(e=>{const r=ab(t)?t:+t-n.now();return n.schedule(lb,r,{index:0,period:i,subscriber:e})})}(d+ly).pipe(bb(u)),n,c).pipe(bb(u)).subscribe(()=>{cy.delete(e),t.run(()=>{o(),a.next(),a.complete()})})}),a.asObservable()};let dy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),hy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),py=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})(),fy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),my=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})();var gy=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",t}({});"undefined"!=typeof navigator&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const vy=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function by(t){const e=Array.from(t.querySelectorAll(vy)).filter(t=>-1!==t.tabIndex);return[e[0],e[e.length-1]]}new class{getAllStyles(t){return window.getComputedStyle(t)}getStyle(t,e){return this.getAllStyles(t)[e]}isStaticPositioned(t){return"static"===(this.getStyle(t,"position")||"static")}offsetParent(t){let e=t.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(t,e=!0){let n,i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n=t.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const e=this.offsetParent(t);n=this.offset(t,!1),e!==document.documentElement&&(i=this.offset(e,!1)),i.top+=e.clientTop,i.left+=e.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(t,e=!0){const n=t.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,r=window.pageXOffset-document.documentElement.clientLeft;let s={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+r,right:n.right+r};return e&&(s.height=Math.round(s.height),s.width=Math.round(s.width),s.top=Math.round(s.top),s.bottom=Math.round(s.bottom),s.left=Math.round(s.left),s.right=Math.round(s.right)),s}positionElements(t,e,n,i){const[r="top",s="center"]=n.split("-"),o=i?this.offset(t,!1):this.position(t,!1),a=this.getAllStyles(e),l=parseFloat(a.marginTop),c=parseFloat(a.marginBottom),u=parseFloat(a.marginLeft),d=parseFloat(a.marginRight);let h=0,p=0;switch(r){case"top":h=o.top-(e.offsetHeight+l+c);break;case"bottom":h=o.top+o.height;break;case"left":p=o.left-(e.offsetWidth+u+d);break;case"right":p=o.left+o.width}switch(s){case"top":h=o.top;break;case"bottom":h=o.top+o.height-e.offsetHeight;break;case"left":p=o.left;break;case"right":p=o.left+o.width-e.offsetWidth;break;case"center":"top"===r||"bottom"===r?p=o.left+o.width/2-e.offsetWidth/2:h=o.top+o.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(p)}px, ${Math.round(h)}px)`;const f=e.getBoundingClientRect(),m=document.documentElement,g=window.innerHeight||m.clientHeight,v=window.innerWidth||m.clientWidth;return f.left>=0&&f.top>=0&&f.right<=v&&f.bottom<=g}},new Date(1882,10,12),new Date(2174,10,25);let yy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd,Fp]]}),t})(),_y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Yt({type:t,selectors:[["",8,"navbar"]]}),t})(),wy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})(),ky=(()=>{class t{constructor(t){this._ngbConfig=t,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return t.\u0275fac=function(e){return new(e||t)(vi(oy))},t.\u0275prov=ft({factory:function(){return new t(vi(oy))},token:t,providedIn:"root"}),t})();class jy{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}const Cy=()=>{};let Sy=(()=>{class t{constructor(t){this._document=t}compensate(){const t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):Cy}_adjustBody(t){const e=this._document.body,n=e.style.paddingRight,i=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=`${i+t}px`,()=>e.style["padding-right"]=n}_isPresent(t){const e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}_getWidth(){const t=this._document.createElement("div");t.className="modal-scrollbar-measure";const e=this._document.body;e.appendChild(t);const n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n}}return t.\u0275fac=function(e){return new(e||t)(vi(Ru))},t.\u0275prov=ft({factory:function(){return new t(vi(Ru))},token:t,providedIn:"root"}),t})(),Py=(()=>{class t{constructor(t,e){this._el=t,this._zone=e}ngOnInit(){this._zone.onStable.asObservable().pipe(of(1)).subscribe(()=>{uy(this._zone,this._el.nativeElement,(t,e)=>{e&&ry(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return uy(this._zone,this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(Co(dl),Co(iu))},t.\u0275cmp=qt({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(t,e){2&t&&(Ko("modal-backdrop"+(e.backdropClass?" "+e.backdropClass:"")),Zo("show",!e.animation)("fade",e.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})();class xy{close(t){}dismiss(t){}}class Ey{constructor(t,e,n,i){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,this._beforeDismiss=i,this._closed=new j,this._dismissed=new j,this._hidden=new j,t.instance.dismissEvent.subscribe(t=>{this.dismiss(t)}),this.result=new Promise((t,e)=>{this._resolve=t,this._reject=e}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(bb(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(bb(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(e=>{!1!==e&&this._dismiss(t)},()=>{}):!1!==e&&this._dismiss(t)}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Gd(void 0);t.subscribe(()=>{const{nativeElement:t}=this._windowCmptRef.location;t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:t}=this._backdropCmptRef.location;t.parentNode.removeChild(t),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),hb(t,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Oy=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}({});let Iy=(()=>{class t{constructor(t,e,n){this._document=t,this._elRef=e,this._zone=n,this._closed$=new j,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new vc,this.shown=new j,this.hidden=new j}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){this._show()}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,e={animation:this.animation,runningTransition:"stop"},n=hb(uy(this._zone,t,()=>t.classList.remove("show"),e),uy(this._zone,this._dialogEl.nativeElement,()=>{},e));return n.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),n}_show(){const t={animation:this.animation,runningTransition:"continue"};hb(uy(this._zone,this._elRef.nativeElement,(t,e)=>{e&&ry(t),t.classList.add("show")},t),uy(this._zone,this._dialogEl.nativeElement,()=>{},t)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{Av(t,"keydown").pipe(bb(this._closed$),Wd(t=>t.which===gy.Escape)).subscribe(t=>{this.keyboard?requestAnimationFrame(()=>{t.defaultPrevented||this._zone.run(()=>this.dismiss(Oy.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let e=!1;Av(this._dialogEl.nativeElement,"mousedown").pipe(bb(this._closed$),xf(()=>e=!1),ef(()=>Av(t,"mouseup").pipe(bb(this._closed$),of(1))),Wd(({target:e})=>t===e)).subscribe(()=>{e=!0}),Av(t,"click").pipe(bb(this._closed$)).subscribe(({target:n})=>{t===n&&("static"===this.backdrop?this._bumpBackdrop():!0!==this.backdrop||e||this._zone.run(()=>this.dismiss(Oy.BACKDROP_CLICK))),e=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const e=t.querySelector("[ngbAutofocus]"),n=by(t)[0];(e||n||t).focus()}}_restoreFocus(){const t=this._document.body,e=this._elWithFocus;let n;n=e&&e.focus&&t.contains(e)?e:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&uy(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(Co(Ru),Co(dl),Co(iu))},t.\u0275cmp=qt({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(t,e){if(1&t&&function(t,e,n){const i=Me();i.firstCreatePass&&(Tc(i,new kc(t,3,void 0),-1),i.staticViewQueries=!0),zc(i,Re(),3)}(Ab),2&t){let t;Oc(t=Ac())&&(e._dialogEl=t.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,e){2&t&&(yo("aria-modal",!0)("aria-labelledby",e.ariaLabelledBy)("aria-describedby",e.ariaDescribedBy),Ko("modal d-block"+(e.windowClass?" "+e.windowClass:"")),Zo("fade",e.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:Ib,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,e){1&t&&(function(t){const e=Re()[16][6];if(!e.projection){const t=e.projection=oi(1,null),n=t.slice();let i=e.child;for(;null!==i;){const e=0;null!==e&&(n[e]?n[e].projectionNext=i:t[e]=i,n[e]=i),i=i.next}}}(),xo(0,"div",0,1),xo(2,"div",2),function(t,e=0,n){const i=Re(),r=Me(),s=ts(r,ne+t,16,null,n||null);null===s.projection&&(s.projection=e),He(),64!=(64&s.flags)&&function(t,e,n){Or(e[11],0,e,n,hr(t,n,e),br(n.parent||e[6],n,e))}(r,i,s)}(3),Eo(),Eo()),2&t&&Ko("modal-dialog"+(e.size?" modal-"+e.size:"")+(e.centered?" modal-dialog-centered":"")+(e.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{-ms-flex-direction:column;display:-ms-flexbox;display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),Ay=(()=>{class t{constructor(t,e,n,i,r,s){this._applicationRef=t,this._injector=e,this._document=n,this._scrollBar=i,this._rendererFactory=r,this._ngZone=s,this._activeWindowCmptHasChanged=new j,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new vc,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const t=this._windowCmpts[this._windowCmpts.length-1];((t,e,n,i=!1)=>{this._ngZone.runOutsideAngular(()=>{const t=Av(e,"focusin").pipe(bb(n),P(t=>t.target));Av(e,"keydown").pipe(bb(n),Wd(t=>t.which===gy.Tab),wb(t)).subscribe(([t,n])=>{const[i,r]=by(e);n!==i&&n!==e||!t.shiftKey||(r.focus(),t.preventDefault()),n!==r||t.shiftKey||(i.focus(),t.preventDefault())}),i&&Av(e,"click").pipe(bb(n),wb(t),P(t=>t[1])).subscribe(t=>t.focus())})})(0,t.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(t.location.nativeElement)}})}open(t,e,n,i){const r=i.container instanceof HTMLElement?i.container:iy(i.container)?this._document.querySelector(i.container):this._document.body,s=this._rendererFactory.createRenderer(null,null),o=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!r)throw new Error(`The specified modal container "${i.container||"body"}" was not found in the DOM.`);const l=new xy,c=this._getContentRef(t,i.injector||e,n,l,i);let u=!1!==i.backdrop?this._attachBackdrop(t,r):void 0,d=this._attachWindowComponent(t,r,c),h=new Ey(d,c,u,i.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(d),h.result.then(o,o),h.result.then(a,a),l.close=t=>{h.close(t)},l.dismiss=t=>{h.dismiss(t)},this._applyWindowOptions(d.instance,i),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&this._applyBackdropOptions(u.instance,i),h}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(e=>e.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,e){let n=t.resolveComponentFactory(Py).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}_attachWindowComponent(t,e,n){let i=t.resolveComponentFactory(Iy).create(this._injector,n.nodes);return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_applyWindowOptions(t,e){this._windowAttributes.forEach(n=>{iy(e[n])&&(t[n]=e[n])})}_applyBackdropOptions(t,e){this._backdropAttributes.forEach(n=>{iy(e[n])&&(t[n]=e[n])})}_getContentRef(t,e,n,i,r){return n?n instanceof $l?this._createFromTemplateRef(n,i):"string"==typeof n?this._createFromString(n):this._createFromComponent(t,e,n,i,r):new jy([])}_createFromTemplateRef(t,e){const n=t.createEmbeddedView({$implicit:e,close(t){e.close(t)},dismiss(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new jy([n.rootNodes],n)}_createFromString(t){const e=this._document.createTextNode(`${t}`);return new jy([[e]])}_createFromComponent(t,e,n,i,r){const s=t.resolveComponentFactory(n),o=io.create({providers:[{provide:xy,useValue:i}],parent:e}),a=s.create(o),l=a.location.nativeElement;return r.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new jy([[l]],a.hostView,a)}_setAriaHidden(t){const e=t.parentElement;e&&t!==this._document.body&&(Array.from(e.children).forEach(e=>{e!==t&&"SCRIPT"!==e.nodeName&&(this._ariaHiddenValues.set(e,e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}),this._setAriaHidden(e))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const e=()=>{const e=this._modalRefs.indexOf(t);e>-1&&(this._modalRefs.splice(e,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(e,e)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const e=this._windowCmpts.indexOf(t);e>-1&&(this._windowCmpts.splice(e,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(vi(ju),vi(io),vi(Ru),vi(Sy),vi(pl),vi(iu))},t.\u0275prov=ft({factory:function(){return new t(vi(ju),vi(Fs),vi(Ru),vi(Sy),vi(pl),vi(iu))},token:t,providedIn:"root"}),t})(),zy=(()=>{class t{constructor(t,e,n,i){this._moduleCFR=t,this._injector=e,this._modalStack=n,this._config=i}open(t,e={}){const n=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(vi(al),vi(io),vi(Ay),vi(ky))},t.\u0275prov=ft({factory:function(){return new t(vi(al),vi(Fs),vi(Ay),vi(ky))},token:t,providedIn:"root"}),t})(),Ty=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[zy]}),t})(),Ny=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),Ry=(()=>{class t{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({factory:function(){return new t},token:t,providedIn:"root"}),t})(),My=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Co($l))},t.\u0275dir=Yt({type:t,selectors:[["ng-template","ngbPaginationEllipsis",""]]}),t})(),Vy=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Co($l))},t.\u0275dir=Yt({type:t,selectors:[["ng-template","ngbPaginationFirst",""]]}),t})(),Dy=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Co($l))},t.\u0275dir=Yt({type:t,selectors:[["ng-template","ngbPaginationLast",""]]}),t})(),Uy=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Co($l))},t.\u0275dir=Yt({type:t,selectors:[["ng-template","ngbPaginationNext",""]]}),t})(),Ly=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Co($l))},t.\u0275dir=Yt({type:t,selectors:[["ng-template","ngbPaginationNumber",""]]}),t})(),Fy=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Co($l))},t.\u0275dir=Yt({type:t,selectors:[["ng-template","ngbPaginationPrevious",""]]}),t})(),$y=(()=>{class t{constructor(t){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new vc(!0),this.disabled=t.disabled,this.boundaryLinks=t.boundaryLinks,this.directionLinks=t.directionLinks,this.ellipses=t.ellipses,this.maxSize=t.maxSize,this.pageSize=t.pageSize,this.rotate=t.rotate,this.size=t.size}hasPrevious(){return this.page>1}hasNext(){return this.page0&&(t>2?this.pages.unshift(-1):2===t&&this.pages.unshift(2),this.pages.unshift(1)),e0&&this.pageCount>this.maxSize){let t=0,e=this.pageCount;[t,e]=this.rotate?this._applyRotation():this._applyPagination(),this.pages=this.pages.slice(t,e),this._applyEllipses(t,e)}}}return t.\u0275fac=function(e){return new(e||t)(Co(Ry))},t.\u0275cmp=qt({type:t,selectors:[["ngb-pagination"]],contentQueries:function(t,e,n){if(1&t&&(Ic(n,My,1),Ic(n,Vy,1),Ic(n,Dy,1),Ic(n,Uy,1),Ic(n,Ly,1),Ic(n,Fy,1)),2&t){let t;Oc(t=Ac())&&(e.tplEllipsis=t.first),Oc(t=Ac())&&(e.tplFirst=t.first),Oc(t=Ac())&&(e.tplLast=t.first),Oc(t=Ac())&&(e.tplNext=t.first),Oc(t=Ac())&&(e.tplNumber=t.first),Oc(t=Ac())&&(e.tplPrevious=t.first)}},hostAttrs:["role","navigation"],inputs:{page:"page",disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",maxSize:"maxSize",pageSize:"pageSize",rotate:"rotate",size:"size",collectionSize:"collectionSize"},outputs:{pageChange:"pageChange"},features:[he],decls:18,vars:7,consts:function(){let t,e,n,i,r,s,o,a;return t=$localize`:@@ngb.pagination.first␟656506dfd46380956a655f919f1498d018f75ca0␟6867721956102594380:««`,e=$localize`:@@ngb.pagination.previous␟6e52b6ee77a4848d899dd21b591c6fd499e3aef3␟6479320895410098858:«`,n=$localize`:@@ngb.pagination.next␟ba9cbb4ff311464308a3627e4f1c3345d9fe6d7d␟5458177150283468089:»`,i=$localize`:@@ngb.pagination.last␟49f27a460bc97e7e00be5b37098bfa79884fc7d9␟5277020320267646988:»»`,r=$localize`:@@ngb.pagination.first-aria␟f2f852318759c6396b5d3d17031d53817d7b38cc␟2241508602425256033:First`,s=$localize`:@@ngb.pagination.previous-aria␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`,o=$localize`:@@ngb.pagination.next-aria␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`,a=$localize`:@@ngb.pagination.last-aria␟5c729788ba138508aca1bec050b610f7bf81db3e␟4882268002141858767:Last`,[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["class","page-item",3,"disabled",4,"ngIf"],["class","page-item",3,"active","disabled",4,"ngFor","ngForOf"],["aria-hidden","true"],t,e,n,i,["class","sr-only",4,"ngIf"],[1,"sr-only"],[1,"page-item"],["aria-label",r,"href","",1,"page-link",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-label",s,"href","",1,"page-link",3,"click"],["class","page-link","tabindex","-1","aria-disabled","true",4,"ngIf"],["class","page-link","href","",3,"click",4,"ngIf"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",o,"href","",1,"page-link",3,"click"],["aria-label",a,"href","",1,"page-link",3,"click"]]},template:function(t,e){1&t&&(ko(0,zb,2,0,"ng-template",null,0,Rc),ko(2,Tb,2,0,"ng-template",null,1,Rc),ko(4,Nb,2,0,"ng-template",null,2,Rc),ko(6,Rb,2,0,"ng-template",null,3,Rc),ko(8,Mb,1,0,"ng-template",null,4,Rc),ko(10,Db,2,2,"ng-template",null,5,Rc),xo(12,"ul"),ko(13,Fb,3,9,"li",6),ko(14,Bb,3,8,"li",6),ko(15,Jb,3,7,"li",7),ko(16,Xb,3,9,"li",6),ko(17,ey,3,9,"li",6),Eo()),2&t&&(Br(12),Ko("pagination"+(e.size?" pagination-"+e.size:"")),Br(1),So("ngIf",e.boundaryLinks),Br(1),So("ngIf",e.directionLinks),Br(1),So("ngForOf",e.pages),Br(1),So("ngIf",e.directionLinks),Br(1),So("ngIf",e.boundaryLinks))},directives:[ad,sd,ud],encapsulation:2,changeDetection:0}),t})(),Hy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),By=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),Gy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),qy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),Wy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),Zy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})(),Ky=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({}),t})();new Xn("live announcer delay",{providedIn:"root",factory:function(){return 100}});let Qy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd]]}),t})();const Jy=[dy,hy,py,fy,my,yy,wy,Ty,Ny,Hy,By,Gy,qy,Wy,Zy,Ky,Qy];let Yy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[Jy,dy,hy,py,fy,my,yy,wy,Ty,Ny,Hy,By,Gy,qy,Wy,Zy,Ky,Qy]}),t})(),Xy=(()=>{class t{constructor(t,e,n){this.adminPodatkiStoritev=t,this.pot=e,this.activeModal=n,this.profesorAsistent={_id:"",ime_priimek:"",akademskiNaziv:"",izobrazba:"",e_mail:"",opis:""}}ngOnInit(){this.pot.paramMap.pipe(ef(t=>(this.idOseba=this.idInput,this.adminPodatkiStoritev.pridobiOsebje()))).subscribe(t=>{this.osebje=t;const e=t.find(t=>t._id===this.idOseba);this.profesorAsistent._id=e._id,this.profesorAsistent.ime_priimek=e.ime_priimek,this.profesorAsistent.akademskiNaziv=e.akademskiNaziv,this.profesorAsistent.izobrazba=e.izobrazba,this.profesorAsistent.e_mail=e.e_mail,this.profesorAsistent.opis=e.opis})}}return t.\u0275fac=function(e){return new(e||t)(Co(eb),Co(Vm),Co(xy))},t.\u0275cmp=qt({type:t,selectors:[["app-osebje"]],inputs:{idInput:"idInput"},decls:30,vars:7,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close","text-white",3,"click"],["aria-hidden","true"],[1,"form-moduli"],[1,"form-group","col-12"],[1,"d-flex"],[1,"flex-fill"],["type","button","ngbAutofocus","",1,"btn","btn-danger","btn-block","my-3",3,"click"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h4",1),oa(2),mc(3,"uppercase"),Eo(),xo(4,"button",2),Ro("click",function(){return e.activeModal.dismiss("Cross click")}),xo(5,"span",3),oa(6,"\xd7"),Eo(),Eo(),Eo(),xo(7,"div"),xo(8,"div",4),xo(9,"div",5),xo(10,"p"),xo(11,"b"),oa(12,"AKADEMSKI NAZIV:"),Eo(),oa(13),Eo(),xo(14,"p"),xo(15,"b"),oa(16,"IZOBRAZBA: "),Eo(),oa(17),Eo(),xo(18,"p"),xo(19,"b"),oa(20,"E-MAIL:"),Eo(),oa(21),Eo(),xo(22,"p"),xo(23,"b"),oa(24,"OPIS:"),Eo(),oa(25),Eo(),xo(26,"div",6),xo(27,"span",7),xo(28,"button",8),Ro("click",function(){return e.activeModal.dismiss("Prekli\u010di click")}),oa(29,"Zapri"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo()),2&t&&(Br(2),aa(gc(3,5,e.profesorAsistent.ime_priimek)),Br(11),la(" ",e.profesorAsistent.akademskiNaziv,""),Br(4),la(" ",e.profesorAsistent.izobrazba,""),Br(4),la(" ",e.profesorAsistent.e_mail,""),Br(4),la(" ",e.profesorAsistent.opis,""))},pipes:[dd],styles:[".card-naslov[_ngcontent-%COMP%]{color:#000;background-color:#b2d39c;margin-bottom:10px}.card-elementi[_ngcontent-%COMP%], .list-group-item[_ngcontent-%COMP%]{background-color:#4e555b}.card[_ngcontent-%COMP%]{border-radius:25px}"]}),t})(),t_=(()=>{class t{constructor(t){this.http=t,this.apiUrl=Ev}generirajUrlZaPoizvedbo(t,e,n,i,r){let s=new eh;return s=s.set("iskalniIzraz",t),s=s.set("predmeti",e.toString()),s=s.set("osebje",n.toString()),s=s.set("limit",i.toString()),s=s.set("offset",r.toString()),s.toString()}pridobiZadetke(t){return this.http.get(`${this.apiUrl}/iskanje?`+t).toPromise().then(t=>t).catch(this.obdelajNapako)}obdelajNapako(t){let e=t.message;return null!=t.error&&null!=t.error.sporocilo?e=t.error.sporocilo:null!=t.error&&null!=t.error.sporo\u010dilo&&(e=t.error.sporo\u010dilo),console.error("Pri\u0161lo je do napake",t),Promise.reject(e)}}return t.\u0275fac=function(e){return new(e||t)(vi(hh))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function e_(t,e){if(1&t&&(xo(0,"div",20),oa(1),Eo()),2&t){const t=Do().$implicit;Br(1),aa(t.ime)}}function n_(t,e){if(1&t&&(xo(0,"div",21),oa(1),Eo()),2&t){const t=Do().$implicit;Lo("routerLink","../predmeti/",t._id,""),Br(1),aa(t.ime)}}function i_(t,e){if(1&t){const t=zo();xo(0,"div",22),Ro("click",function(){Ve(t);const e=Do().$implicit;return Do().openOsebje(e._id)}),oa(1),Eo()}if(2&t){const t=Do().$implicit;Br(1),aa(t.ime_priimek)}}function r_(t,e){if(1&t&&(xo(0,"div"),ko(1,e_,2,1,"div",17),ko(2,n_,2,2,"div",18),ko(3,i_,2,1,"div",19),Eo()),2&t){const t=e.$implicit;Br(1),So("ngIf","gradivo"==t.tip),Br(1),So("ngIf","predmet"==t.tip),Br(1),So("ngIf","osebje"==t.tip)}}function s_(t,e){if(1&t){const t=zo();xo(0,"ngb-pagination",23),Ro("pageChange",function(e){return Ve(t),Do().page=e})("pageChange",function(){Ve(t);const e=Do();return e.onPageChange(e.page)}),Eo()}if(2&t){const t=Do();So("collectionSize",t.vseh)("page",t.page)("ellipses",!1)("boundaryLinks",!0)}}function o_(t,e){1&t&&(xo(0,"p"),oa(1,"Za ta iskalni niz ni rezultatov"),Eo())}const a_=function(){return{standalone:!0}},l_=function(t,e){return{"btn-predmet":t,"btn-predmet-outline":e}},c_=function(t,e){return{"btn-osebje":t,"btn-osebje-outline":e}};let u_=(()=>{class t{constructor(t,e,n,i,r,s){this.pot=t,this.iskanjeStoritev=e,this.modalService=n,this.povezavaStoritev=i,this.location=r,this.router=s,this.predmetiFilter=!0,this.osebjeFilter=!0,this.page=1,this.pageSize=10,this.zadetki=[]}openOsebje(t){this.modalService.open(Xy,{centered:!0,size:"md"}).componentInstance.idInput=t}jePovezava(){return this.povezavaStoritev.jePovezava}onPageChange(t){this.page=t,this.iskanje()}iskanje(){var t=this.generirajUrl();this.iskanjeStoritev.pridobiZadetke(t).then(e=>{this.zadetki=e.zadetki,this.vseh=e.vseh,this.location.go("iskanje?"+t),console.log(e)}).catch(t=>this.sporociloNapaka=t)}generirajUrl(){return this.iskanjeStoritev.generirajUrlZaPoizvedbo(this.iskalniIzraz,this.predmetiFilter,this.osebjeFilter,this.pageSize,(this.page-1)*this.pageSize)}ngOnInit(){this.pot.queryParams.subscribe(t=>{this.iskalniIzraz=t.iskalniIzraz,this.iskalniIzraz||(this.iskalniIzraz=""),this.iskanje()})}}return t.\u0275fac=function(e){return new(e||t)(Co(Vm),Co(t_),Co(zy),Co(Tv),Co(Qu),Co(nv))},t.\u0275cmp=qt({type:t,selectors:[["app-iskanje"]],decls:24,vars:19,consts:[[1,"col-md-12","col-lg-12"],[1,"col-sm-12","col-md-9","col-xl-9"],["action","/iskanje","method","get",1,"d-inline"],[1,"input-group"],["type","text","placeholder","Iskanje",1,"form-control",3,"ngModel","ngModelOptions","disabled","ngModelChange"],[1,"input-group-append"],[1,"btn","btn-secondary",3,"disabled","click"],[1,"fa","fa-search"],[1,"float-left","mt-4"],[1,"ml-3"],[1,"btn","m-3",3,"ngClass","click"],[1,"ena-vrstica","mb-3","py-2","col-sm-12","col-md-9","col-xl-9","text-center"],[1,"alert","alert-warning","col-sm-12","col-md-9","col-xl-9",2,"margin-left","10px",3,"hidden"],[4,"ngFor","ngForOf"],[1,"m-3","col-sm-12","col-md-9","col-xl-9"],["class","",3,"collectionSize","page","ellipses","boundaryLinks","pageChange",4,"ngIf"],[4,"ngIf"],["class","ena-vrstica-gradivo col-sm-12 col-md-9 col-xl-9 text-center hoverNoLink",4,"ngIf"],["class","ena-vrstica-predmet col-sm-12 col-md-9 col-xl-9 text-center hoverNoLink",3,"routerLink",4,"ngIf"],["class","ena-vrstica-osebje col-sm-12 col-md-9 col-xl-9 text-center hoverNoLink",3,"click",4,"ngIf"],[1,"ena-vrstica-gradivo","col-sm-12","col-md-9","col-xl-9","text-center","hoverNoLink"],[1,"ena-vrstica-predmet","col-sm-12","col-md-9","col-xl-9","text-center","hoverNoLink",3,"routerLink"],[1,"ena-vrstica-osebje","col-sm-12","col-md-9","col-xl-9","text-center","hoverNoLink",3,"click"],[1,"",3,"collectionSize","page","ellipses","boundaryLinks","pageChange"]],template:function(t,e){1&t&&(xo(0,"main",0),xo(1,"div",1),xo(2,"form",2),xo(3,"div",3),xo(4,"input",4),Ro("ngModelChange",function(t){return e.iskalniIzraz=t}),Eo(),xo(5,"div",5),xo(6,"button",6),Ro("click",function(){return e.iskanje()}),Oo(7,"i",7),Eo(),Eo(),Eo(),Eo(),Eo(),xo(8,"span"),xo(9,"span",8),xo(10,"p",9),oa(11,"filtriranje rezultatov:"),Eo(),Eo(),xo(12,"button",10),Ro("click",function(){return e.predmetiFilter=!e.predmetiFilter}),oa(13,"predmeti"),Eo(),xo(14,"button",10),Ro("click",function(){return e.osebjeFilter=!e.osebjeFilter}),oa(15,"osebje"),Eo(),Eo(),xo(16,"div",11),oa(17),Eo(),xo(18,"div",12),oa(19),Eo(),ko(20,r_,4,3,"div",13),xo(21,"div",14),ko(22,s_,1,4,"ngb-pagination",15),Eo(),ko(23,o_,2,0,"p",16),Eo()),2&t&&(Br(4),So("ngModel",e.iskalniIzraz)("ngModelOptions",uc(12,a_))("disabled",!e.jePovezava()),Br(2),So("disabled",!e.jePovezava()),Br(6),So("ngClass",hc(13,l_,e.predmetiFilter,!e.predmetiFilter)),Br(2),So("ngClass",hc(16,c_,e.osebjeFilter,!e.osebjeFilter)),Br(3),la('Rezultati iskanja za: "',e.iskalniIzraz,'"'),Br(1),So("hidden",!e.sporociloNapaka),Br(1),aa(e.sporociloNapaka),Br(1),So("ngForOf",e.zadetki),Br(2),So("ngIf",e.vseh>10),Br(1),So("ngIf",0==(null==e.zadetki?null:e.zadetki.length)))},directives:[Sp,tp,wp,Rh,Xh,Cp,id,sd,ad,iv,$y],styles:[""]}),t})(),d_=(()=>{class t{constructor(t,e){this.http=t,this.shramba=e,this.apiUrl=Ev,this.url="db"}vnesiPodatke(){const t={headers:new Yd({Authorization:`Bearer ${this.shramba.getItem("karjola-zeton")}`})};return this.http.post(`${this.apiUrl}/${this.url}`,"",t).toPromise().then(t=>t).catch(this.obdelajNapako)}izbrisiPodatke(){const t={headers:new Yd({Authorization:`Bearer ${this.shramba.getItem("karjola-zeton")}`})};return this.http.delete(`${this.apiUrl}/${this.url}`,t).toPromise().then(t=>t).catch(this.obdelajNapako)}obdelajNapako(t){return console.error("Pri\u0161lo je do napake",t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t),Promise.reject(t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t)}}return t.\u0275fac=function(e){return new(e||t)(vi(hh),vi(xv))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function h_(t,e){1&t&&(xo(0,"div",7),oa(1," Brisanje baze je na voljo le administratorju. "),Eo())}function p_(t,e){1&t&&(xo(0,"div",7),oa(1," Ni niti ni povezave, da bi kaj smiselnega naredil. :D "),Eo())}function f_(t,e){if(1&t){const t=zo();xo(0,"form",8),Ro("submit",function(){return Ve(t),Do().vnesiPodatke()}),xo(1,"button",9),oa(2,"Vnos za\u010detnih podatkov"),Eo(),Eo()}if(2&t){const t=Do();Br(1),So("disabled",!t.jePovezava())}}function m_(t,e){if(1&t){const t=zo();xo(0,"form",8),Ro("submit",function(){return Ve(t),Do().izbrisiPodatke()}),xo(1,"button",10),oa(2,"Izbris vsebine podatkovne baze"),Eo(),Eo()}if(2&t){const t=Do();Br(1),So("disabled",!t.jePovezava())}}function g_(t,e){if(1&t&&(xo(0,"div",11),oa(1),Eo()),2&t){const t=Do();Br(1),la(" ",t.napakaNaObrazcu," ")}}function v_(t,e){1&t&&(xo(0,"div",12),oa(1," Operacija uspe\u0161no narejena! "),Eo())}let b_=(()=>{class t{constructor(t,e,n,i,r){this.avtentikacijaStoritev=t,this.podatkovnaBazaStoritev=e,this.povezavaStoritev=n,this.usmerjevalnik=i,this.zgodovinaStoritev=r,this.jeVnosViden=!0,this.jeIzbrisViden=!0,this.uspesnoObvestilo=!1}ngOnInit(){}vnesiPodatke(){this.uspesnoObvestilo=!1,this.napakaNaObrazcu="",this.podatkovnaBazaStoritev.vnesiPodatke().then(()=>{this.uspesnoObvestilo=!0,this.jeVnosViden=!1,this.jeIzbrisViden=!0}).catch(t=>{this.napakaNaObrazcu=t,this.uspesnoObvestilo=!1})}izbrisiPodatke(){this.napakaNaObrazcu="",this.uspesnoObvestilo=!1,this.podatkovnaBazaStoritev.izbrisiPodatke().then(()=>{this.uspesnoObvestilo=!0,this.jeIzbrisViden=!1,this.jeVnosViden=!0}).catch(t=>{this.napakaNaObrazcu=t,this.uspesnoObvestilo=!1})}jeAdmin(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return!!t&&t.jeAdmin}jePrijavljen(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return!!t&&t.jeAdmin}jePovezava(){return this.povezavaStoritev.jePovezava}}return t.\u0275fac=function(e){return new(e||t)(Co(Iv),Co(d_),Co(Tv),Co(nv),Co(Nv))},t.\u0275cmp=qt({type:t,selectors:[["app-podatkovna-baza"]],decls:15,vars:6,consts:[[1,"content","bg-dark","p-3"],[1,"content","p-3"],[1,"formtitle"],["class","alert alert-info","role","alert",4,"ngIf"],[3,"submit",4,"ngIf"],["class","alert alert-danger","role","alert",4,"ngIf"],["class","alert alert-success","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-info"],[3,"submit"],["type","submit","id","izbris",1,"btn","btn-success","pb",3,"disabled"],["type","submit","id","izbris",1,"btn","btn-danger","pb",3,"disabled"],["role","alert",1,"alert","alert-danger"],["role","alert",1,"alert","alert-success"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"div",1),xo(2,"h2",2),oa(3,"Vnos za\u010detnih podatkov"),Eo(),Oo(4,"br"),ko(5,h_,2,0,"div",3),ko(6,p_,2,0,"div",3),ko(7,f_,3,1,"form",4),Oo(8,"br"),Oo(9,"br"),ko(10,m_,3,1,"form",4),Oo(11,"br"),ko(12,g_,2,1,"div",5),Oo(13,"br"),ko(14,v_,2,0,"div",6),Eo(),Eo()),2&t&&(Br(5),So("ngIf",!e.jeAdmin()),Br(1),So("ngIf",!e.jePovezava()),Br(1),So("ngIf",e.jeVnosViden&&e.jePovezava()),Br(3),So("ngIf",e.jeAdmin()&&e.jeIzbrisViden&&e.jePovezava()),Br(2),So("ngIf",e.napakaNaObrazcu),Br(2),So("ngIf",e.uspesnoObvestilo))},directives:[ad,Sp,tp,wp],styles:[""]}),t})(),y_=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qt({type:t,selectors:[["app-splosni-pogoji"]],decls:9,vars:0,consts:[[1,"content","bg-dark"],[1,"p-3"],[1,"h3","p-3"],[1,"content","bg-darkerBg","p-3","my-3"],[1,"h4"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"div",1),xo(2,"p",2),oa(3,"SPLO\u0160NI POGOJI"),Eo(),xo(4,"div",3),xo(5,"p",4),oa(6,"PRAVICE IN DOL\u017dNOSTI"),Eo(),xo(7,"p"),oa(8,"Lorem ipsum"),Eo(),Eo(),Eo(),Eo())},styles:[""]}),t})(),__=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qt({type:t,selectors:[["app-potrditev-obnove-gesla"]],decls:2,vars:0,template:function(t,e){1&t&&(xo(0,"p"),oa(1," potrditev-obnove-gesla works!\n"),Eo())},styles:[""]}),t})();function w_(t,e){if(1&t&&(xo(0,"div"),xo(1,"strong",3),oa(2),Eo(),xo(3,"span",4),oa(4,"Nisi prijavljen ali ni povezave!"),Eo(),Eo()),2&t){const t=Do();Br(2),aa(t.napaka)}}function k_(t,e){if(1&t&&(xo(0,"p"),oa(1),Eo()),2&t){const t=Do(2);Br(1),la("UPORABNI\u0160KO IME: ",t.uporabnik.ime,"")}}function j_(t,e){if(1&t&&(xo(0,"p"),oa(1),Eo()),2&t){const t=Do(2);Br(1),la("E-PO\u0160TNI NASLOV: ",t.uporabnik.ePosta,"")}}function C_(t,e){if(1&t){const t=zo();xo(0,"form",11),Ro("submit",function(){return Ve(t),Do(2).nastaviNovoGeslo()}),Oo(1,"input",12),xo(2,"div",13),xo(3,"label",14),oa(4,"TRENUTNO GESLO"),Eo(),xo(5,"input",15),Ro("ngModelChange",function(e){return Ve(t),Do(2).uporabniskiPodatki.trenutnoGeslo=e}),Eo(),Eo(),xo(6,"div",13),xo(7,"label",14),oa(8,"NOVO GESLO"),Eo(),xo(9,"input",16),Ro("ngModelChange",function(e){return Ve(t),Do(2).uporabniskiPodatki.novoGeslo=e}),Eo(),Eo(),xo(10,"div",13),xo(11,"label",14),oa(12,"POTRDITEV GESLA"),Eo(),xo(13,"input",17),Ro("ngModelChange",function(e){return Ve(t),Do(2).uporabniskiPodatki.potrdiNovoGeslo=e}),Eo(),Eo(),xo(14,"button",18),oa(15,"Spremeni geslo"),Eo(),Eo()}if(2&t){const t=Do(2);Br(5),So("ngModel",t.uporabniskiPodatki.trenutnoGeslo)("disabled",!t.jePovezava()),Br(4),So("ngModel",t.uporabniskiPodatki.novoGeslo)("disabled",!t.jePovezava()),Br(4),So("ngModel",t.uporabniskiPodatki.potrdiNovoGeslo)("disabled",!t.jePovezava()),Br(1),So("disabled",!t.jePovezava())}}function S_(t,e){if(1&t){const t=zo();xo(0,"form",19),Ro("submit",function(){return Ve(t),Do(2).odjava()}),xo(1,"button",20),oa(2),Eo(),Eo()}if(2&t){const t=Do(2);Br(1),So("disabled",!t.jePovezava()&&t.jeTrenutni()),Br(1),la('Odjavi se "',t.uporabnik.ime,'"')}}function P_(t,e){if(1&t){const t=zo();xo(0,"form",19),Ro("submit",function(){return Ve(t),Do(2).izbrisiUporabnika()}),xo(1,"button",20),oa(2),Eo(),Eo()}if(2&t){const t=Do(2);Br(1),So("disabled",!t.jePovezava()),Br(1),la('Izbris uporabnika "',t.uporabnik.ime,'" ')}}function x_(t,e){if(1&t&&(xo(0,"div",21),xo(1,"strong",3),oa(2),Eo(),xo(3,"span",4),oa(4),Eo(),Eo()),2&t){const t=Do(2);Br(2),aa(t.napaka),Br(2),aa(t.napakaNaObrazcu)}}function E_(t,e){if(1&t&&(xo(0,"div",22),xo(1,"strong",3),oa(2),Eo(),Oo(3,"span",4),Eo()),2&t){const t=Do(2);Br(2),aa(t.sporocilo)}}function O_(t,e){if(1&t&&(xo(0,"div",5),xo(1,"p",6),oa(2,"UPORABNI\u0160KE NASTAVITVE"),Eo(),ko(3,k_,2,1,"p",1),ko(4,j_,2,1,"p",1),ko(5,C_,16,7,"form",7),ko(6,S_,3,2,"form",8),Oo(7,"br"),ko(8,P_,3,2,"form",8),Oo(9,"br"),ko(10,x_,5,2,"div",9),ko(11,E_,4,1,"div",10),Eo()),2&t){const t=Do();Br(3),So("ngIf",(t.jeTrenutni()||t.jeAdmin())&&t.obstaja),Br(1),So("ngIf",(t.jeTrenutni()||t.jeAdmin())&&t.obstaja),Br(1),So("ngIf",t.jeTrenutni()),Br(1),So("ngIf",t.jeTrenutni()),Br(2),So("ngIf",t.jeTrenutni()&&t.jePovezava()),Br(2),So("ngIf",t.napakaNaObrazcu),Br(1),So("ngIf",t.uspesnoObvestilo)}}let I_=(()=>{class t{constructor(t,e,n,i,r,s){this.avtentikacijaStoritev=t,this.povezavaStoritev=e,this.uporabnikPodatkiStoritev=n,this.zgodovinaStoritev=i,this.usmerjevalnik=r,this.pot=s,this.uporabnik={ime:"Ta id te je pripeljal na neobstoje\u010dega uporabnika.",ePosta:"Preveri id in/ali se obrni admine."},this.uspesnoObvestilo=!1,this.obstaja=!1,this.uporabniskiPodatki={trenutnoGeslo:"",novoGeslo:"",potrdiNovoGeslo:"",idUporabnika:""}}nastaviNapako(t,e){this.napakaNaObrazcu=e,this.napaka=t}pridobiUporabnika(t){this.uspesnoObvestilo=!1,this.sporocilo=" Pridobivam uporabnika.",this.uporabnikPodatkiStoritev.pridobiUporabnika(t).then(t=>{this.obstaja=!0,this.uporabnik.ime=t.uporabniskoIme,this.uporabnik.ePosta=t.ePosta,this.sporocilo="Zdravo!",this.uspesnoObvestilo=!0}).catch(t=>{this.napakaNaObrazcu=t,this.obstaja=!1})}ngOnInit(){for(;!this.jePovezava(););this.pot.paramMap.subscribe(t=>{this.id=t.get("idUporabnika")}),this.pridobiUporabnika(this.id)}odjava(){this.avtentikacijaStoritev.odjava(),this.sporocilo="Odjava uspe\u0161na. Navigiraj na naslednjo stran!",this.usmerjevalnik.navigateByUrl(this.zgodovinaStoritev.vrniPredhodnjeUrlNasloveBrezIzbranih())}jePrijavljen(){return this.avtentikacijaStoritev.jePrijavljen()}vrniUporabnika(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return t?t.uporabniskoIme:"Anonimen uporabnik"}vrniEposto(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return t?t.ePosta:"Ni elektronske po\u0161te"}vrniId(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return t?t._id:"Ni identitete"}jeTrenutni(){return this.id==this.vrniId()}jeAdmin(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return!!t&&t.jeAdmin}jePovezava(){return this.povezavaStoritev.jePovezava}nastaviNovoGeslo(){this.sporocilo="",this.uspesnoObvestilo=!1,this.nastaviNapako("",""),this.jePovezava()?""!=this.uporabniskiPodatki.trenutnoGeslo&&""!=this.uporabniskiPodatki.novoGeslo&&""!=this.uporabniskiPodatki.potrdiNovoGeslo?new RegExp(/<\/?[a-z][\s\S]*>/i).test(this.uporabniskiPodatki.trenutnoGeslo)||new RegExp(/<\/?[a-z][\s\S]*>/i).test(this.uporabniskiPodatki.novoGeslo)?this.nastaviNapako("Nedovoljeni znaki!"," Uporabnisko ime, naslov ali kraj vsebuje nedovoljene znake"):new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@\u20ac#$%^&*])(?=.{8,})").test(this.uporabniskiPodatki.novoGeslo)&&this.uporabniskiPodatki.novoGeslo==this.uporabniskiPodatki.potrdiNovoGeslo?(this.uporabniskiPodatki.idUporabnika=this.vrniId(),this.uporabnikPodatkiStoritev.spremeniGeslo(this.uporabniskiPodatki).then(()=>{this.uspesnoObvestilo=!0,this.sporocilo="Sprememba gesla uspe\u0161na!",this.uporabniskiPodatki.trenutnoGeslo="",this.uporabniskiPodatki.novoGeslo="",this.uporabniskiPodatki.potrdiNovoGeslo=""}).catch(t=>this.napakaNaObrazcu=t)):this.nastaviNapako("Geslo ni vredu!"," Geslo mora ustrezati naslednjim kriterijem: Geslo more vsebovati vsaj eno veliko in eno majhno \u010drko. Geslo mora vsebovati vsaj eno \u0161tevilko in biti dolgo 8 znakov, hkrati pa naj vsebuje specialni znak glej regex (^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@\u20ac#$%^&*])(?=.{8,})). Prav tako poskrbi, da bo v obe polji vpisano isto geslo."):this.nastaviNapako("Manjkajo\u010di podatki!"," Preveri manjkajo\u010de podatke in jih izpolni."):this.nastaviNapako("Ni povezave","Vzpostavi povezavo z internetom.")}izbrisiUporabnika(){this.uspesnoObvestilo=!1,this.sporocilo="",this.jePovezava()?this.uporabnikPodatkiStoritev.izbrisiUporabnika(this.id).then(()=>{this.avtentikacijaStoritev.odjava(),this.uspesnoObvestilo=!0,this.sporocilo="Uporabnik uspe\u0161no izbrisan!",this.usmerjevalnik.navigateByUrl(this.zgodovinaStoritev.vrniPredhodnjeUrlNasloveBrezIzbranih())}).catch(t=>this.napakaNaObrazcu=t):this.nastaviNapako("Ni povezave","Vzpostavi povezavo z internetom.")}}return t.\u0275fac=function(e){return new(e||t)(Co(Iv),Co(Tv),Co(Ov),Co(Nv),Co(nv),Co(Vm))},t.\u0275cmp=qt({type:t,selectors:[["app-uporabnik"]],decls:3,vars:2,consts:[[1,"content","bg-dark","p-3"],[4,"ngIf"],["class","container",4,"ngIf"],["id","danger-strong"],["id","danger-navadno"],[1,"container"],[1,"h3","py-3"],["id","changePasswordForm","class","mb-3",3,"submit",4,"ngIf"],[3,"submit",4,"ngIf"],["class","alert alert-danger alert-dismissible fade show","role","alert",4,"ngIf"],["class","alert alert-success alert-dismissible fade show","role","alert",4,"ngIf"],["id","changePasswordForm",1,"mb-3",3,"submit"],["type","hidden","name","obrazec","value","posodobiGeslo"],[1,"form-group"],["for","currentPassword"],["type","password","name","trenutnoGeslo","id","currentPassword","placeholder","Trenutno geslo","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","password","name","novoGeslo","id","currentPassword","placeholder","Novo geslo","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","password","name","potrdiNovoGeslo","id","currentPassword","placeholder","Novo geslo","required","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["id","changePasswordSubmit","type","submit",1,"btn","btn-primary",3,"disabled"],[3,"submit"],["id","changePasswordSubmit","type","submit",1,"btn","btn-danger",3,"disabled"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show"],["role","alert",1,"alert","alert-success","alert-dismissible","fade","show"]],template:function(t,e){1&t&&(xo(0,"div",0),ko(1,w_,5,1,"div",1),ko(2,O_,12,7,"div",2),Eo()),2&t&&(Br(1),So("ngIf",!e.jePovezava()||!e.jePrijavljen()),Br(1),So("ngIf",e.jePrijavljen()&&e.jePovezava()))},directives:[ad,Sp,tp,wp,Rh,Vp,Xh,Cp],styles:[""]}),t})();function A_(t,e){if(1&t&&(xo(0,"option",24),oa(1),Eo()),2&t){const t=e.$implicit;So("ngValue",t),Br(1),aa(t)}}function z_(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"div",25),oa(2," Izpolniti je potrebno vsa polja. "),xo(3,"button",26),Ro("click",function(){return Ve(t),Do(2).formWarning=!1}),xo(4,"span",3),oa(5,"\xd7"),Eo(),Eo(),Eo(),Eo()}if(2&t){const t=Do(2);Br(3),So("disabled",!t.jePovezava())}}function T_(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"div",27),oa(2," Dodajanje je bilo uspe\u0161no! "),xo(3,"button",26),Ro("click",function(){return Ve(t),Do(2).formSuccess=!1}),xo(4,"span",3),oa(5,"\xd7"),Eo(),Eo(),Eo(),Eo()}if(2&t){const t=Do(2);Br(3),So("disabled",!t.jePovezava())}}function N_(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"div",8),xo(2,"div",5),xo(3,"label",9),oa(4,"AKADEMSKI NAZIV"),Eo(),xo(5,"select",10),Ro("ngModelChange",function(e){return Ve(t),Do().novoOsebje.akademskiNaziv=e}),ko(6,A_,2,2,"option",11),Eo(),Eo(),xo(7,"div",5),xo(8,"label",12),oa(9,"IZOBRAZBA"),Eo(),xo(10,"input",13),Ro("ngModelChange",function(e){return Ve(t),Do().novoOsebje.izobrazba=e}),Eo(),Eo(),xo(11,"div",5),xo(12,"label",14),oa(13,"IME IN PRIIMEK"),Eo(),xo(14,"input",15),Ro("ngModelChange",function(e){return Ve(t),Do().novoOsebje.ime_priimek=e}),Eo(),Eo(),xo(15,"div",5),xo(16,"label"),oa(17,"E-MAIL"),Eo(),xo(18,"input",16),Ro("ngModelChange",function(e){return Ve(t),Do().novoOsebje.e_mail=e}),Eo(),Eo(),xo(19,"div",5),xo(20,"label",17),oa(21,"OPIS"),Eo(),xo(22,"textarea",18),Ro("ngModelChange",function(e){return Ve(t),Do().novoOsebje.opis=e}),Eo(),Eo(),xo(23,"div",19),xo(24,"span",20),xo(25,"button",21),Ro("click",function(){Ve(t);const e=Do();return e.izvediAkcijo(e.modalTitle)}),oa(26),Eo(),Eo(),xo(27,"span",22),xo(28,"button",23),Ro("click",function(){return Ve(t),Do().activeModal.dismiss("Prekli\u010di click")}),oa(29,"Prekli\u010di"),Eo(),Eo(),Eo(),Eo(),ko(30,z_,6,1,"div",6),ko(31,T_,6,1,"div",6),Eo()}if(2&t){const t=Do();Br(5),So("ngModel",t.novoOsebje.akademskiNaziv)("disabled",!t.jePovezava()),Br(1),So("ngForOf",t.akademskiNazivi),Br(4),So("ngModel",t.novoOsebje.izobrazba)("disabled",!t.jePovezava()),Br(4),So("ngModel",t.novoOsebje.ime_priimek)("disabled",!t.jePovezava()),Br(4),So("ngModel",t.novoOsebje.e_mail),Br(4),So("ngModel",t.novoOsebje.opis),Br(3),So("disabled",!t.jePovezava()),Br(1),aa(t.submitButton),Br(2),So("disabled",!t.jePovezava()),Br(2),So("ngIf",t.formWarning),Br(1),So("ngIf",t.formSuccess)}}function R_(t,e){if(1&t&&(xo(0,"option",24),oa(1),Eo()),2&t){const t=e.$implicit;So("ngValue",t),Br(1),aa(t)}}function M_(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"div",25),oa(2," Izpolniti je potrebno vsa polja. "),xo(3,"button",26),Ro("click",function(){return Ve(t),Do(2).formWarning=!1}),xo(4,"span",3),oa(5,"\xd7"),Eo(),Eo(),Eo(),Eo()}if(2&t){const t=Do(2);Br(3),So("disabled",!t.jePovezava())}}function V_(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"div",27),oa(2," Oseba je uspe\u0161no posodobljena! "),xo(3,"button",26),Ro("click",function(){return Ve(t),Do(2).formSuccess=!1}),xo(4,"span",3),oa(5,"\xd7"),Eo(),Eo(),Eo(),Eo()}if(2&t){const t=Do(2);Br(3),So("disabled",!t.jePovezava())}}function D_(t,e){if(1&t){const t=zo();xo(0,"div",5),xo(1,"div",8),xo(2,"div",5),xo(3,"label",9),oa(4,"AKADEMSKI NAZIV"),Eo(),xo(5,"select",28),Ro("ngModelChange",function(e){return Ve(t),Do().inputOseba.akademskiNaziv=e}),ko(6,R_,2,2,"option",11),Eo(),Eo(),xo(7,"div",5),xo(8,"label",12),oa(9,"IZOBRAZBA"),Eo(),xo(10,"input",29),Ro("ngModelChange",function(e){return Ve(t),Do().inputOseba.izobrazba=e}),Eo(),Eo(),xo(11,"div",5),xo(12,"label",14),oa(13,"IME IN PRIIMEK"),Eo(),xo(14,"input",30),Ro("ngModelChange",function(e){return Ve(t),Do().inputOseba.ime_priimek=e}),Eo(),Eo(),xo(15,"div",5),xo(16,"label"),oa(17,"E-MAIL"),Eo(),xo(18,"input",31),Ro("ngModelChange",function(e){return Ve(t),Do().inputOseba.e_mail=e}),Eo(),Eo(),xo(19,"div",5),xo(20,"label",17),oa(21,"OPIS"),Eo(),xo(22,"textarea",32),Ro("ngModelChange",function(e){return Ve(t),Do().inputOseba.opis=e}),Eo(),Eo(),xo(23,"div",19),xo(24,"span",20),xo(25,"button",33),Ro("click",function(){Ve(t);const e=Do();return e.izvediAkcijo(e.modalTitle)}),oa(26),Eo(),Eo(),xo(27,"span",22),xo(28,"button",34),Ro("click",function(){return Ve(t),Do().activeModal.dismiss("Prekli\u010di click")}),oa(29,"Prekli\u010di"),Eo(),Eo(),Eo(),ko(30,M_,6,1,"div",6),ko(31,V_,6,1,"div",6),Eo(),Eo()}if(2&t){const t=Do();Br(5),So("ngModel",t.inputOseba.akademskiNaziv)("disabled",!t.jePovezava()),Br(1),So("ngForOf",t.akademskiNazivi),Br(4),So("ngModel",t.inputOseba.izobrazba)("disabled",!t.jePovezava()),Br(4),So("ngModel",t.inputOseba.ime_priimek)("disabled",!t.jePovezava()),Br(4),So("ngModel",t.inputOseba.e_mail)("disabled",!t.jePovezava()),Br(4),So("ngModel",t.inputOseba.opis),Br(4),aa(t.submitButton),Br(4),So("ngIf",t.formWarningUpdate),Br(1),So("ngIf",t.formSuccessUpdate)}}function U_(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"div",27),oa(2," Brisanje je bilo uspe\u0161no! "),xo(3,"button",26),Ro("click",function(){return Ve(t),Do(2).formSuccess=!1}),xo(4,"span",3),oa(5,"\xd7"),Eo(),Eo(),Eo(),Eo()}if(2&t){const t=Do(2);Br(3),So("disabled",!t.jePovezava())}}function L_(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"div",5),xo(2,"p"),oa(3,"Oseba "),xo(4,"b"),oa(5),Eo(),oa(6," bo izbrisana."),Eo(),xo(7,"p"),oa(8,"\u017delite nadaljevati?"),Eo(),xo(9,"div",19),xo(10,"span",20),xo(11,"button",35),Ro("click",function(){Ve(t);const e=Do();return e.izvediAkcijo(e.modalTitle)}),oa(12),Eo(),Eo(),xo(13,"span",22),xo(14,"button",36),Ro("click",function(){return Ve(t),Do().activeModal.dismiss("Prekli\u010di click")}),oa(15,"Prekli\u010di"),Eo(),Eo(),Eo(),ko(16,U_,6,1,"div",6),Eo(),Eo()}if(2&t){const t=Do();Br(5),aa(t.inputOseba.ime_priimek),Br(6),So("disabled",!t.jePovezava()),Br(1),aa(t.submitButton),Br(2),So("disabled",!t.jePovezava()),Br(2),So("ngIf",t.formSuccess)}}let F_=(()=>{class t{constructor(t,e,n){this.adminPodatkiStoritev=t,this.activeModal=e,this.povezavaStoritev=n,this.formWarning=!1,this.formSuccess=!1,this.deleteNotification=!1,this.formWarningUpdate=!1,this.formSuccessUpdate=!1,this.akademskiNazivi=["brez","asistent","docent","profesor"],this.novoOsebje={_id:"",ime_priimek:"",akademskiNaziv:"",izobrazba:"",e_mail:"",opis:""}}dodajNovoOsebo(){""===this.novoOsebje.akademskiNaziv||""===this.novoOsebje.izobrazba||""===this.novoOsebje.ime_priimek||""===this.novoOsebje.e_mail||""===this.novoOsebje.opis?this.formWarning=!0:this.adminPodatkiStoritev.dodajOsebje(this.novoOsebje).then(t=>{this.novoOsebje._id=t._id,console.log("dodano osebje ",this.novoOsebje),this.osebje.push(this.novoOsebje),this.formSuccess=!0,setTimeout(()=>{this.activeModal.close()},1e3)})}izbrisiOsebo(){console.log("izbrisi osebo"),this.adminPodatkiStoritev.izbrisiOsebje(this.inputOseba._id).then(t=>{console.log("uspesno brisanje osebe: ",this.inputOseba.ime_priimek),this.formSuccess=!0,this.formSuccessText=`Oseba ${this.inputOseba.ime_priimek} je bila uspe\u0161no izbrisana.`,this.osebje.splice(this.inputOsebaIx,1),this.inputOsebaIx=-1,setTimeout(()=>{this.activeModal.close()},1e3)})}posodobiOsebo(){""===this.inputOseba.akademskiNaziv||""===this.inputOseba.izobrazba||""===this.inputOseba.ime_priimek||""===this.inputOseba.e_mail||""===this.inputOseba.opis?this.formWarningUpdate=!0:this.adminPodatkiStoritev.posodobiOsebje(this.inputOseba,this.inputOseba._id).then(t=>{this.osebje[this.inputOsebaIx]=this.inputOseba,console.log("Oseba posodobljena ",this.osebje[this.inputOsebaIx]),this.formSuccessUpdate=!0,setTimeout(()=>{this.activeModal.close()},1e3)})}izvediAkcijo(t){switch(t){case"Dodajanje osebe":this.dodajNovoOsebo();break;case"Brisanje osebe":this.izbrisiOsebo();break;case"Posodabljanje osebe":this.posodobiOsebo()}}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(eb),Co(xy),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-modal-osebje"]],inputs:{modalTitle:"modalTitle",osebje:"osebje",new:"new",delete:"delete",update:"update",submitButton:"submitButton",inputOseba:"inputOseba",inputOsebaIx:"inputOsebaIx"},decls:12,vars:4,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close","text-white",3,"click"],["aria-hidden","true"],[1,"form-moduli"],[1,"form-group","col-12"],[4,"ngIf"],["class","form-group col-12",4,"ngIf"],[1,"form-prof-asist"],["for","formAkademskiNazivInput"],["id","formAkademskiNazivInput","name","akademskiNaziv",1,"form-control",3,"ngModel","disabled","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],["for","formIzobrazbaCustomInput"],["type","text","id","formIzobrazbaCustomInput","name","izobrazba","placeholder","npr. dipl. in\u017e. ra\u010d. mat.",1,"form-control",3,"ngModel","disabled","ngModelChange"],["for","formImeInPriimekInput"],["type","text","id","formImeInPriimekInput","name","ime_priimek","placeholder","Ime Priimek",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","text","placeholder","ime.priimek@fri.uni-lj.si",1,"form-control",3,"ngModel","ngModelChange"],["for","formOpis"],["id","formOpis","name","opis","rows","4","placeholder","Kratek opis izobrazbe, dela, podro\u010dij raziskovanja.",1,"form-control",3,"ngModel","ngModelChange"],[1,"d-flex"],[1,"flex-fill","mr-3"],["type","submit",1,"btn","btn-primary","btn-block","my-3",3,"disabled","click"],[1,"flex-fill"],["type","button","ngbAutofocus","",1,"btn","btn-danger","btn-block","my-3",3,"disabled","click"],[3,"ngValue"],["role","alert",1,"alert","alert-warning","alert-dismissible","fade","show",2,"margin-top","10px"],["type","button",1,"close",3,"disabled","click"],["role","alert",1,"alert","alert-success","alert-dismissible","fade","show",2,"margin-top","10px"],["name","akademskiNaziv",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","text","name","izobrazba","placeholder","npr. dipl. in\u017e. ra\u010d. mat.",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","text","name","ime_priimek","placeholder","Ime Priimek",1,"form-control",3,"ngModel","disabled","ngModelChange"],["type","text","placeholder","ime.priimek@fri.uni-lj.si",1,"form-control",3,"ngModel","disabled","ngModelChange"],["name","opis","rows","4","placeholder","Kratek opis izobrazbe, dela, podro\u010dij raziskovanja.",1,"form-control",3,"ngModel","ngModelChange"],["type","submit",1,"btn","btn-primary","btn-block","my-3",3,"click"],["type","button","ngbAutofocus","",1,"btn","btn-danger","btn-block","my-3",3,"click"],["type","submit","aria-label","Posodobi osebje",1,"btn","btn-primary","btn-block","my-3",3,"disabled","click"],["type","button","ngbAutofocus","","aria-label","Prekli\u010di",1,"btn","btn-danger","btn-block","my-3",3,"disabled","click"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h4",1),oa(2),Eo(),xo(3,"button",2),Ro("click",function(){return e.activeModal.dismiss("Cross click")}),xo(4,"span",3),oa(5,"\xd7"),Eo(),Eo(),Eo(),xo(6,"div"),xo(7,"div",4),xo(8,"div",5),ko(9,N_,32,14,"div",6),Eo(),ko(10,D_,32,13,"div",7),ko(11,L_,17,5,"div",6),Eo(),Eo()),2&t&&(Br(2),aa(e.modalTitle),Br(7),So("ngIf",e.new),Br(1),So("ngIf",e.update),Br(1),So("ngIf",e.delete))},directives:[ad,Ip,Xh,Cp,sd,Rh,Ap,Rp],styles:[""]}),t})();function $_(t,e){if(1&t){const t=zo();xo(0,"div",1),xo(1,"div",9),xo(2,"p"),xo(3,"span",10),xo(4,"b"),oa(5),Eo(),Eo(),xo(6,"span",11),xo(7,"button",12),Ro("click",function(){Ve(t);const n=e.$implicit,i=e.index;return Do().openModal("update",n,i)}),oa(8,"Uredi osebo"),Eo(),xo(9,"button",13),Ro("click",function(){Ve(t);const n=e.$implicit,i=e.index;return Do().openModal("delete",n,i)}),Oo(10,"i",14),Eo(),Eo(),Eo(),Eo(),Eo()}if(2&t){const t=e.$implicit,n=Do();Br(5),aa(t.ime_priimek),Br(2),So("disabled",!n.jePovezava()),Br(2),So("disabled",!n.jePovezava()),Br(1),So("disabled",!n.jePovezava())}}let H_=(()=>{class t{constructor(t,e,n){this.adminPodatkiStoritev=t,this.modalService=e,this.povezavaStoritev=n,this.formWarning=!1,this.formSuccess=!1,this.deleteNotification=!1,this.akademskiNazivi=["brez","asistent","docent","profesor"],this.novoOsebje={_id:"",ime_priimek:"",akademskiNaziv:"",izobrazba:"",e_mail:"",opis:""}}openModal(t,e,n){var i=this.modalService.open(F_,{centered:!0,size:"md"}).componentInstance;switch(i.osebje=this.osebje,t){case"new":i.modalTitle="Dodajanje osebe",i.new=!0,i.submitButton="Ustvari osebo";break;case"delete":i.modalTitle="Brisanje osebe",i.delete=!0,i.inputOseba=e,i.inputOsebaIx=n,i.submitButton="Izbri\u0161i osebo";break;case"update":const t=JSON.parse(JSON.stringify(e));i.modalTitle="Posodabljanje osebe",i.update=!0,i.inputOseba=t,i.inputOsebaIx=n,i.submitButton="Posodobi osebo";break;default:console.log("Ta akcija za modalno okno pri osebju ne obstaja")}}dodajNovoOsebje(){""==this.novoOsebje.ime_priimek||""==this.novoOsebje.akademskiNaziv||""==this.novoOsebje.izobrazba||""==this.novoOsebje.opis?this.formWarning=!0:(console.log("vse ok"),this.adminPodatkiStoritev.dodajOsebje(this.novoOsebje).then(t=>{console.log("dodano osebje ",t);let e=this.osebje.slice(0);e.push(t),this.osebje=e,this.formSuccess=!0}))}izbrisiOsebje(t,e){this.adminPodatkiStoritev.izbrisiOsebje(t).then(t=>{this.izbrisani=this.osebje[e].ime_priimek,this.deleteNotification=!0;let n=this.osebje.slice(0);n.splice(e,1),this.osebje=n})}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(eb),Co(zy),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-admin-osebje"]],inputs:{osebje:"osebje"},decls:12,vars:2,consts:[[1,"section-prof-asist"],[1,"row"],[1,"naslov-sekcije","col-sm-11","col-md-11","col-xl-11"],[1,"float-left"],[1,"text-dark"],[1,"float-left","ml-4","mb-2"],[1,"btn","btn-dark","btn-admin","px-5",3,"disabled","click"],[1,"podsekcije"],["class","row",4,"ngFor","ngForOf"],[1,"ena-vrstica","col-sm-10","col-md-9","col-xl-9"],[2,"float","left"],[2,"float","right"],[1,"btn","btn-dark","btn-admin","mx-2","my-0",3,"disabled","click"],["aria-label","Izbri\u0161i osebo.",1,"btn","btn-danger","btn-admin","text-dark","mx-2",3,"disabled","click"],[1,"far","fa-trash-alt","fa-lg",2,"color","black",3,"disabled"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"div",1),xo(2,"div",2),xo(3,"span",3),xo(4,"p",4),xo(5,"b"),oa(6,"OSEBJE"),Eo(),Eo(),Eo(),xo(7,"span",5),xo(8,"button",6),Ro("click",function(){return e.openModal("new")}),oa(9,"Dodaj osebo"),Eo(),Eo(),Eo(),Eo(),xo(10,"div",7),ko(11,$_,11,4,"div",8),Eo(),Eo()),2&t&&(Br(8),So("disabled",!e.jePovezava()),Br(3),So("ngForOf",e.osebje))},directives:[sd],styles:[""]}),t})(),B_=(()=>{class t{transform(t,...e){return 1===t?"1. letnik":2===t?"2. letnik":3===t?"3. letnik":"Ni v letniku"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Xt({name:"formatirajLetnik",type:t,pure:!0}),t})(),G_=(()=>{class t{transform(t,...e){return 1===t?"Zimski semester":2===t?"Poletni semester":"Napaka"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Xt({name:"formatirajSemester",type:t,pure:!0}),t})(),q_=(()=>{class t{transform(t,...e){return 1===t?"Splo\u0161ni izbirni predmet":2===t?"Strokovni izbirni predmet":"Ni izbirni predmet"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Xt({name:"formatirajTipIzbirnega",type:t,pure:!0}),t})();function W_(t,e){1&t&&Oo(0,"option",42),2&t&&Uo("value",e.$implicit.ime_priimek)}function Z_(t,e){if(1&t){const t=zo();xo(0,"div",43),Ro("click",function(){Ve(t);const n=e.index;return Do(2).izbrisiElement(n,0)}),oa(1),xo(2,"span",44),Oo(3,"i",45),Eo(),Eo()}if(2&t){const t=e.$implicit;Br(1),aa(t.ime_priimek)}}function K_(t,e){1&t&&Oo(0,"option",42),2&t&&Uo("value",e.$implicit.ime_priimek)}function Q_(t,e){if(1&t){const t=zo();xo(0,"div",43),Ro("click",function(){Ve(t);const n=e.index;return Do(2).izbrisiElement(n,1)}),oa(1),xo(2,"span",44),Oo(3,"i",45),Eo(),Eo()}if(2&t){const t=e.$implicit;Br(1),aa(t.ime_priimek)}}function J_(t,e){1&t&&Oo(0,"option",42),2&t&&Uo("value",e.$implicit.ime)}function Y_(t,e){if(1&t){const t=zo();xo(0,"div",43),Ro("click",function(){Ve(t);const n=e.index;return Do(2).izbrisiElement(n,2)}),oa(1),xo(2,"span",44),Oo(3,"i",45),Eo(),Eo()}if(2&t){const t=e.$implicit;Br(1),aa(t.ime)}}function X_(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"label",13),oa(2,"Ime predmeta"),Eo(),xo(3,"input",14),Ro("ngModelChange",function(e){return Ve(t),Do().noviPredmet.ime=e}),Eo(),xo(4,"div",15),xo(5,"label",16),oa(6,"Letnik"),Eo(),xo(7,"div",17),xo(8,"button",18),oa(9),mc(10,"formatirajLetnik"),Eo(),xo(11,"ul",19),xo(12,"li",20),Ro("click",function(){return Ve(t),Do().nastaviLetnik(1)}),xo(13,"a",21),oa(14,"1. letnik"),Eo(),Eo(),xo(15,"li",20),Ro("click",function(){return Ve(t),Do().nastaviLetnik(2)}),xo(16,"a",21),oa(17,"2. letnik"),Eo(),Eo(),xo(18,"li",20),Ro("click",function(){return Ve(t),Do().nastaviLetnik(3)}),xo(19,"a",21),oa(20,"3. letnik"),Eo(),Eo(),xo(21,"li",20),Ro("click",function(){return Ve(t),Do().nastaviLetnik(0)}),xo(22,"a",21),oa(23,"Ni v letniku"),Eo(),Eo(),Eo(),Eo(),xo(24,"label",22),oa(25,"Semester"),Eo(),xo(26,"div",17),xo(27,"button",23),oa(28),mc(29,"formatirajSemester"),Eo(),xo(30,"ul",24),xo(31,"li",20),Ro("click",function(){return Ve(t),Do().nastaviSemester(1)}),xo(32,"a",21),oa(33,"Zimski semester"),Eo(),Eo(),xo(34,"li",20),Ro("click",function(){return Ve(t),Do().nastaviSemester(2)}),xo(35,"a",21),oa(36,"Poletni semester"),Eo(),Eo(),Eo(),Eo(),xo(37,"label",25),oa(38,"Tip"),Eo(),xo(39,"div",17),xo(40,"button",26),oa(41),mc(42,"formatirajTipIzbirnega"),Eo(),xo(43,"ul",27),xo(44,"li",20),Ro("click",function(){return Ve(t),Do().nastaviTip(2)}),xo(45,"a",21),oa(46,"Strokovni izbirni predmet"),Eo(),Eo(),xo(47,"li",20),Ro("click",function(){return Ve(t),Do().nastaviTip(1)}),xo(48,"a",21),oa(49,"Splo\u0161ni izbirni predmet"),Eo(),Eo(),xo(50,"li",20),Ro("click",function(){return Ve(t),Do().nastaviTip(0)}),xo(51,"a",21),oa(52,"Ni izbirni predmet"),Eo(),Eo(),Eo(),Eo(),Eo(),xo(53,"label",28),oa(54,"PROFESORJI"),Eo(),xo(55,"div",29),xo(56,"input",30),Ro("change",function(e){return Ve(t),Do().dodajElement(e,0)}),Eo(),xo(57,"datalist",31),ko(58,W_,1,1,"option",32),Eo(),Eo(),xo(59,"div",33),ko(60,Z_,4,1,"div",34),Eo(),xo(61,"label",35),oa(62,"ASISTENTI"),Eo(),xo(63,"div",29),xo(64,"input",30),Ro("change",function(e){return Ve(t),Do().dodajElement(e,1)}),Eo(),xo(65,"datalist",31),ko(66,K_,1,1,"option",32),Eo(),Eo(),xo(67,"div",33),ko(68,Q_,4,1,"div",34),Eo(),xo(69,"label",36),oa(70,"Moduli"),Eo(),xo(71,"div",29),xo(72,"input",37),Ro("change",function(e){return Ve(t),Do().dodajElement(e,2)}),Eo(),xo(73,"datalist",38),ko(74,J_,1,1,"option",32),Eo(),Eo(),xo(75,"div",33),ko(76,Y_,4,1,"div",34),Eo(),xo(77,"div",39),xo(78,"label",40),oa(79,"OPIS"),Eo(),xo(80,"textarea",41),Ro("ngModelChange",function(e){return Ve(t),Do().noviPredmet.opis=e}),Eo(),Eo(),Eo()}if(2&t){const t=Do();Br(3),So("ngModel",t.noviPredmet.ime)("disabled",!t.jePovezava()),Br(5),So("disabled",!t.jePovezava()),Br(1),aa(gc(10,19,t.noviPredmet.letnik)),Br(18),So("disabled",!t.jePovezava()),Br(1),aa(gc(29,21,t.noviPredmet.semester)),Br(12),So("disabled",!t.jePovezava()),Br(1),aa(gc(42,23,t.noviPredmet.vrstaIzbirnega)),Br(15),So("disabled",!t.jePovezava()),Br(2),So("ngForOf",t.osebje),Br(2),So("ngForOf",t.noviPredmet.profesorji),Br(4),So("disabled",!t.jePovezava()),Br(2),So("ngForOf",t.osebje),Br(2),So("ngForOf",t.noviPredmet.asistenti),Br(4),So("disabled",!t.jePovezava()),Br(2),So("ngForOf",t.moduli),Br(2),So("ngForOf",t.noviPredmet.moduli),Br(4),So("ngModel",t.noviPredmet.opis)("disabled",!t.jePovezava())}}function tw(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"p"),oa(2,"Predmet "),xo(3,"b",46),oa(4),Eo(),oa(5," in vsa gradiva ter komentarji tega predmeta bodo izbrisani."),Eo(),xo(6,"p"),oa(7,"\u010ce \u017eelite nadaljevati prepi\u0161ite ime predmeta in potrdite izbris."),Eo(),xo(8,"input",14),Ro("ngModelChange",function(e){return Ve(t),Do().noviPredmet.ime=e}),Eo(),Eo()}if(2&t){const t=Do();Br(4),aa(t.inputPredmet.ime),Br(4),So("ngModel",t.noviPredmet.ime)("disabled",!t.jePovezava())}}function ew(t,e){if(1&t){const t=zo();xo(0,"div",5),xo(1,"div",47),oa(2),xo(3,"button",48),Ro("click",function(){return Ve(t),Do().formWarning=!1}),xo(4,"span",3),oa(5,"\xd7"),Eo(),Eo(),Eo(),Eo()}if(2&t){const t=Do();Br(2),la(" ",t.formWarningText," "),Br(1),So("disabled",!t.jePovezava())}}function nw(t,e){if(1&t){const t=zo();xo(0,"div",5),xo(1,"div",49),oa(2),xo(3,"button",48),Ro("click",function(){return Ve(t),Do().formSuccess=!1}),xo(4,"span",50),oa(5,"\xd7"),Eo(),Eo(),Eo(),Eo()}if(2&t){const t=Do();Br(2),la(" ",t.formSuccessText," "),Br(1),So("disabled",!t.jePovezava())}}let iw=(()=>{class t{constructor(t,e,n){this.adminPodatkiStoritev=t,this.activeModal=e,this.povezavaStoritev=n,this.noviPredmet={_id:"",ime:"",opis:"",letnik:0,semester:1,profesorji:[],asistenti:[],moduli:[],vrstaIzbirnega:0,gradiva:[]},this.formWarning=!1,this.formSuccess=!1}izvediAkcijo(t){switch(t){case"Dodajanje predmeta":this.dodajNovPredmet();break;case"Brisanje predmeta":this.izbrisiPredmet();break;case"Posodabljanje predmeta":this.posodobiPredmet()}}dodajNovPredmet(){const t=this.imeZasedeno(this.noviPredmet.ime);""==this.noviPredmet.ime||0==this.noviPredmet.profesorji.length||t?(this.formWarning=!0,this.formWarningText=t?`Predmet z imenom ${this.noviPredmet.ime} \u017ee obstaja`:"Ime predmeta in profesor sta zahtevana podatka."):this.adminPodatkiStoritev.dodajPredmet(this.noviPredmet).then(t=>{console.log("dodan predmet ",t),this.predmeti.push(t),this.formSuccess=!0,this.formSuccessText=`Predmet ${this.noviPredmet.ime} je bil uspe\u0161no dodan.`,setTimeout(()=>{this.activeModal.close()},1e3)})}posodobiPredmet(){""==this.noviPredmet.ime||0==this.noviPredmet.profesorji.length?(this.formWarning=!0,this.formWarningText="Ime predmeta in profesor sta zahtevana podatka."):this.vsebujeDeleted(this.noviPredmet.profesorji)||this.vsebujeDeleted(this.noviPredmet.asistenti)||this.vsebujeDeleted(this.noviPredmet.moduli)?(this.formWarning=!0,this.formWarningText='"deleted" ozna\u010duje profesorja oz. modul ki ne obstaja ve\u010d. Pred posodobitvijo je potrebno to referenco ro\u010dno odstraniti.'):this.adminPodatkiStoritev.posodobiPredmet(this.noviPredmet,this.noviPredmet._id).then(t=>{if(console.log("Predmet posodobljen ",t),this.inputPredmetIx&&(this.predmeti[this.inputPredmetIx]=t),this.referencaNaStariPredmet)for(var e in this.referencaNaStariPredmet)this.referencaNaStariPredmet[e]=this.noviPredmet[e];this.formSuccess=!0,this.formSuccessText=`Predmet ${this.noviPredmet.ime} je bil uspe\u0161no posodobljen.`,setTimeout(()=>{this.activeModal.close()},1e3)})}izbrisiPredmet(){-1!=this.inputPredmetIx&&this.noviPredmet.ime==this.inputPredmet.ime?this.adminPodatkiStoritev.izbrisiPredmet(this.inputPredmet._id).then(t=>{console.log("uspesno brisanje predmeta: ",this.inputPredmet.ime),this.formSuccess=!0,this.formSuccessText=`Predmet ${this.inputPredmet.ime} je bil uspe\u0161no izbrisan.`,this.predmeti.splice(this.inputPredmetIx,1),this.inputPredmetIx=-1,setTimeout(()=>{this.activeModal.close()},1e3)}):(this.formWarningText=-1==this.inputPredmetIx?`Predmet z imenom ${this.inputPredmet.ime} ne obstaja.`:"Vne\u0161eno ime predmeta se ne ujema.",this.formWarning=!0)}dodajElement(t,e){if(e<0||e>2)return;let n=this.checkIfInListAndReturn(t.target.value,0==e||1==e?this.osebje:this.moduli,this.mapTipIntoAttribute(e));n&&(0==e?this.noviPredmet.profesorji.push(n):1==e?this.noviPredmet.asistenti.push(n):this.noviPredmet.moduli.push(n))}izbrisiElement(t,e){e<0||e>2||(0==e?this.noviPredmet.profesorji.splice(t,1):1==e?this.noviPredmet.asistenti.splice(t,1):this.noviPredmet.moduli.splice(t,1))}mapTipIntoAttribute(t){return 0==t||1==t?"ime_priimek":2==t?"ime":null}checkIfInListAndReturn(t,e,n){for(var i=0;ie.ime===t)}vsebujeDeleted(t){return!!t.find(t=>"-1"===t._id)}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){this.predmeti||this.pridobiPredmete(),this.osebje||this.pridobiOsebje(),this.moduli||this.pridobiModule()}pridobiOsebje(){this.adminPodatkiStoritev.pridobiOsebje().then(t=>{this.osebje=t})}pridobiModule(){this.adminPodatkiStoritev.pridobiModule().then(t=>this.moduli=t)}pridobiPredmete(){this.adminPodatkiStoritev.pridobiPredmete().then(t=>this.predmeti=t)}}return t.\u0275fac=function(e){return new(e||t)(Co(eb),Co(xy),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-modal-predmeti"]],inputs:{modalTitle:"modalTitle",new:"new",delete:"delete",update:"update",submitButton:"submitButton",inputPredmet:"inputPredmet",inputPredmetIx:"inputPredmetIx",referencaNaStariPredmet:"referencaNaStariPredmet"},decls:20,vars:8,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close","text-white",3,"click"],["aria-hidden","true"],[1,"form-moduli"],[1,"form-group","col-12"],[4,"ngIf"],[1,"d-flex"],[1,"flex-fill","mr-3"],["type","submit","aria-label","Posodobi predmet",1,"btn","btn-primary","btn-block","my-3",3,"disabled","click"],[1,"flex-fill"],["type","button","ngbAutofocus","","aria-label","Prekli\u010di",1,"btn","btn-danger","btn-block","my-3",3,"disabled","click"],["class","form-group col-12",4,"ngIf"],["for","formImeModulaInput",1,""],["type","text","name","ime","ngbAutofocus","",1,"form-control",3,"ngModel","disabled","ngModelChange"],[1,"form-group","mt-3"],["for","izberiLetnik"],[1,"dropdown"],["type","button","id","izberiLetnik","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","dropdown-toggle","btn-block",3,"disabled"],["id","letnikDropdown","name","letnik",1,"dropdown-menu","btn-block"],[3,"click"],[1,"dropdown-item","hoverNoLink"],["for","izberiSemester"],["type","button","id","izberiSemester","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","dropdown-toggle","btn-block",3,"disabled"],["id","semesterDropdown","name","semester",1,"dropdown-menu","btn-block"],["for","izberiTip"],["type","button","id","izberiTip","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","dropdown-toggle","btn-block",3,"disabled"],["id","tipDropdown","name","vrstaIzbirnega",1,"dropdown-menu","btn-block"],["for","izberiProf",1,"form-predmeti"],[1,"input-group","form-group"],["list","osebje","placeholder","Osebje",1,"form-datalist",3,"disabled","change"],["id","osebje"],[3,"value",4,"ngFor","ngForOf"],[1,"ml-3"],["class","btn btn-warning rounded m-1",3,"click",4,"ngFor","ngForOf"],[1,"form-predmeti"],["for","izberiModul",1,"form-predmeti"],["list","moduli","placeholder","Moduli",1,"form-datalist",3,"disabled","change"],["id","moduli"],[1,"form-group"],["for","formOpisPredmetaInput"],["type","text","rows","5","name","opis","id","formOpisPredmetaInput",1,"form-control",3,"ngModel","disabled","ngModelChange"],[3,"value"],[1,"btn","btn-warning","rounded","m-1",3,"click"],[1,"btn-label"],[1,"fa","fa-times","ml-2"],[1,"unclickable"],["role","alert",1,"alert","alert-warning",2,"margin-top","10px"],["type","button",1,"close","close-warning",3,"disabled","click"],["role","alert",1,"alert","alert-success",2,"margin-top","10px"],["aria-hidden","true",1,"text-dark"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h4",1),oa(2),Eo(),xo(3,"button",2),Ro("click",function(){return e.activeModal.dismiss("Cross click")}),xo(4,"span",3),oa(5,"\xd7"),Eo(),Eo(),Eo(),xo(6,"div"),xo(7,"div",4),xo(8,"div",5),ko(9,X_,81,25,"div",6),ko(10,tw,9,3,"div",6),xo(11,"div",7),xo(12,"span",8),xo(13,"button",9),Ro("click",function(){return e.izvediAkcijo(e.modalTitle)}),oa(14),Eo(),Eo(),xo(15,"span",10),xo(16,"button",11),Ro("click",function(){return e.activeModal.dismiss("Prekli\u010di click")}),oa(17,"Prekli\u010di"),Eo(),Eo(),Eo(),Eo(),ko(18,ew,6,2,"div",12),ko(19,nw,6,2,"div",12),Eo(),Eo()),2&t&&(Br(2),aa(e.modalTitle),Br(7),So("ngIf",e.new||e.update),Br(1),So("ngIf",e.delete),Br(3),So("disabled",!e.jePovezava()),Br(1),aa(e.submitButton),Br(2),So("disabled",!e.jePovezava()),Br(2),So("ngIf",e.formWarning),Br(1),So("ngIf",e.formSuccess))},directives:[ad,Rh,Xh,Cp,sd,Ap,Rp],pipes:[B_,G_,q_],encapsulation:2}),t})();function rw(t,e){if(1&t){const t=zo();xo(0,"div",1),xo(1,"div",9),xo(2,"p"),xo(3,"span",10),xo(4,"b"),oa(5),Eo(),Eo(),xo(6,"span",11),xo(7,"button",12),Ro("click",function(){Ve(t);const n=e.$implicit,i=e.index;return Do().openModal("update",n,i)}),oa(8,"Uredi predmet"),Eo(),xo(9,"button",13),Ro("click",function(){Ve(t);const n=e.$implicit,i=e.index;return Do().openModal("delete",n,i)}),Oo(10,"i",14),Eo(),Eo(),Eo(),Eo(),Eo()}if(2&t){const t=e.$implicit,n=Do();Br(5),aa(t.ime),Br(2),So("disabled",!n.jePovezava()),Br(2),So("disabled",!n.jePovezava())}}let sw=(()=>{class t{constructor(t,e,n){this.modalService=t,this.adminPodatkiStoritev=e,this.povezavaStoritev=n}openModal(t,e,n){var i=this.modalService.open(iw,{centered:!0,size:"md"}).componentInstance;switch(i.predmeti=this.predmeti,t){case"new":i.modalTitle="Dodajanje predmeta",i.new=!0,i.osebje=this.osebje,i.moduli=this.moduli,i.submitButton="Ustvari predmet";break;case"delete":i.modalTitle="Brisanje predmeta",i.delete=!0,i.inputPredmet=e,i.inputPredmetIx=n,i.submitButton="Potrdi";break;case"update":i.modalTitle="Posodabljanje predmeta",i.update=!0,i.osebje=this.osebje,i.moduli=this.moduli,i.noviPredmet=this.adminPodatkiStoritev.idArrayIntoObjectArray(e,this.osebje,this.moduli),i.inputPredmetIx=n,i.submitButton="Posodobi predmet";break;default:console.log("Ta akcija za modalno okno pri predmetih ne obstaja")}}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(zy),Co(eb),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-admin-predmeti"]],inputs:{predmeti:"predmeti",osebje:"osebje",moduli:"moduli"},decls:12,vars:2,consts:[[1,"section-predmeti"],[1,"row"],[1,"naslov-sekcije","col-sm-11","col-md-11","col-xl-11"],[1,"float-left"],[1,"text-dark"],[1,"float-left","ml-4","mb-2"],[1,"btn","btn-dark","btn-admin","px-5",3,"disabled","click"],[1,"podsekcije"],["class","row",4,"ngFor","ngForOf"],[1,"ena-vrstica","col-sm-10","col-md-9","col-xl-9"],[2,"float","left"],[2,"float","right"],[1,"btn","btn-dark","btn-admin","mx-2","my-0",3,"disabled","click"],["aria-label","Izbri\u0161i element.",1,"btn","btn-danger","btn-admin","text-dark","mx-2",3,"disabled","click"],[1,"far","fa-trash-alt","fa-lg",2,"color","black"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"div",1),xo(2,"div",2),xo(3,"span",3),xo(4,"p",4),xo(5,"b"),oa(6,"PREDMETI"),Eo(),Eo(),Eo(),xo(7,"span",5),xo(8,"button",6),Ro("click",function(){return e.openModal("new")}),oa(9,"Dodaj predmet"),Eo(),Eo(),Eo(),Eo(),xo(10,"div",7),ko(11,rw,11,3,"div",8),Eo(),Eo()),2&t&&(Br(8),So("disabled",!e.jePovezava()),Br(3),So("ngForOf",e.predmeti))},directives:[sd],styles:[""]}),t})();function ow(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"label",13),oa(2,"Ime modula"),Eo(),xo(3,"input",14),Ro("ngModelChange",function(e){return Ve(t),Do().noviModul.ime=e}),Eo(),Eo()}if(2&t){const t=Do();Br(3),So("ngModel",t.noviModul.ime)("disabled",!t.jePovezava())}}function aw(t,e){if(1&t){const t=zo();xo(0,"div"),xo(1,"label",13),oa(2,"Novo ime za modul "),xo(3,"b"),oa(4),Eo(),oa(5,"."),Eo(),xo(6,"input",14),Ro("ngModelChange",function(e){return Ve(t),Do().noviModul.ime=e}),Eo(),Eo()}if(2&t){const t=Do();Br(4),aa(t.inputModul.ime),Br(2),So("ngModel",t.noviModul.ime)("disabled",!t.jePovezava())}}function lw(t,e){if(1&t&&(xo(0,"div"),xo(1,"p"),oa(2,"Modul "),xo(3,"b"),oa(4),Eo(),oa(5," in vse pripadnosti predmetov temu modulu bodo izbrisane."),Eo(),Eo()),2&t){const t=Do();Br(4),aa(t.inputModul.ime)}}function cw(t,e){if(1&t){const t=zo();xo(0,"div",5),xo(1,"div",15),oa(2),xo(3,"button",16),Ro("click",function(){return Ve(t),Do().formWarning=!1}),xo(4,"span",3),oa(5,"\xd7"),Eo(),Eo(),Eo(),Eo()}if(2&t){const t=Do();Br(2),la(" ",t.formWarningText," "),Br(1),So("disabled",!t.jePovezava())}}function uw(t,e){if(1&t){const t=zo();xo(0,"div",5),xo(1,"div",17),oa(2),xo(3,"button",16),Ro("click",function(){return Ve(t),Do().formSuccess=!1}),xo(4,"span",18),oa(5,"\xd7"),Eo(),Eo(),Eo(),Eo()}if(2&t){const t=Do();Br(2),la(" ",t.formSuccessText," "),Br(1),So("disabled",!t.jePovezava())}}let dw=(()=>{class t{constructor(t,e,n){this.adminPodatkiStoritev=t,this.activeModal=e,this.povezavaStoritev=n,this.noviModul={_id:"",ime:""},this.formWarning=!1,this.formSuccess=!1}jePovezava(){return this.povezavaStoritev.jePovezava}dodajNovModul(){""==this.noviModul.ime||this.imeZasedeno(this.noviModul.ime)?(this.formWarning=!0,this.formWarningText=""==this.noviModul.ime?"Ime modula je obvezen parameter":`Modul z imenom ${this.noviModul.ime} \u017ee obstaja.`):this.adminPodatkiStoritev.dodajModul(this.noviModul).then(t=>{console.log("dodan modul ",t),this.moduli.push(t),this.formSuccess=!0,this.formSuccessText=`Modul ${this.noviModul.ime} je bil uspe\u0161no dodan.`,setTimeout(()=>{this.activeModal.close()},1e3)})}posodobiModul(){""==this.noviModul.ime||this.noviModul.ime==this.inputModul.ime?(this.formWarning=!0,this.formWarningText=""==this.noviModul.ime?"Novo ime modula je obvezen parameter":"Novo ime mora biti razli\u010dno od obstoje\u010dega"):this.adminPodatkiStoritev.posodobiModul(this.noviModul,this.inputModul._id).then(t=>{console.log("Modul posodobljen ",t),this.moduli[this.inputModulIx].ime=this.noviModul.ime,this.formSuccess=!0,this.formSuccessText="Modul je bil uspe\u0161no posodobljen.",setTimeout(()=>{this.activeModal.close()},1e3)})}izbrisiModul(){-1!=this.inputModulIx?this.adminPodatkiStoritev.izbrisiModul(this.inputModul._id).then(t=>{console.log("uspesno brisanje modula: ",this.inputModul.ime),this.formSuccess=!0,this.formSuccessText=`Modul ${this.inputModul.ime} je bil uspe\u0161no izbrisan.`,this.moduli.splice(this.inputModulIx,1),this.inputModulIx=-1,setTimeout(()=>{this.activeModal.close()},1e3)}):(this.formWarning=!0,this.formWarningText=`Modul z imenom ${this.inputModul.ime} ne obstaja.`)}izvediAkcijo(t){switch(t){case"Dodajanje modula":this.dodajNovModul();break;case"Brisanje modula":this.izbrisiModul();break;case"Posodabljanje modula":this.posodobiModul()}}imeZasedeno(t){return!!this.moduli.some(e=>e.ime===t)}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(eb),Co(xy),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-modal-moduli"]],inputs:{modalTitle:"modalTitle",moduli:"moduli",new:"new",delete:"delete",update:"update",submitButton:"submitButton",inputModul:"inputModul",inputModulIx:"inputModulIx"},decls:22,vars:9,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close","text-white",3,"click"],["aria-hidden","true"],[1,"form-moduli"],[1,"form-group","col-12"],[4,"ngIf"],[1,"d-flex"],[1,"flex-fill","mr-3"],["type","submit","id","objavi-modul","aria-label","Posodobi modul",1,"btn","btn-primary","btn-block","my-3",3,"disabled","click"],[1,"flex-fill"],["type","button","ngbAutofocus","","aria-label","Prekli\u010di",1,"btn","btn-danger","btn-block","my-3",3,"disabled","click"],["class","form-group col-12",4,"ngIf"],["for","formImeModulaInput",1,""],["type","text","id","formImeModulaInput","name","ime","ngbAutofocus","",1,"form-control",3,"ngModel","disabled","ngModelChange"],["role","alert",1,"alert","alert-warning",2,"margin-top","10px"],["type","button",1,"close","close-warning",3,"disabled","click"],["role","alert",1,"alert","alert-success",2,"margin-top","10px"],["aria-hidden","true",1,"text-dark"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"h4",1),oa(2),Eo(),xo(3,"button",2),Ro("click",function(){return e.activeModal.dismiss("Cross click")}),xo(4,"span",3),oa(5,"\xd7"),Eo(),Eo(),Eo(),xo(6,"div"),xo(7,"form"),xo(8,"div",4),xo(9,"div",5),ko(10,ow,4,2,"div",6),ko(11,aw,7,3,"div",6),ko(12,lw,6,1,"div",6),xo(13,"div",7),xo(14,"span",8),xo(15,"button",9),Ro("click",function(){return e.izvediAkcijo(e.modalTitle)}),oa(16),Eo(),Eo(),xo(17,"span",10),xo(18,"button",11),Ro("click",function(){return e.activeModal.dismiss("Prekli\u010di click")}),oa(19,"Prekli\u010di"),Eo(),Eo(),Eo(),Eo(),ko(20,cw,6,2,"div",12),ko(21,uw,6,2,"div",12),Eo(),Eo(),Eo()),2&t&&(Br(2),aa(e.modalTitle),Br(8),So("ngIf",e.new),Br(1),So("ngIf",e.update),Br(1),So("ngIf",e.delete),Br(3),So("disabled",!e.jePovezava()),Br(1),aa(e.submitButton),Br(2),So("disabled",!e.jePovezava()),Br(2),So("ngIf",e.formWarning),Br(1),So("ngIf",e.formSuccess))},directives:[Sp,tp,wp,ad,Rh,Xh,Cp],encapsulation:2}),t})();function hw(t,e){if(1&t){const t=zo();xo(0,"div",1),xo(1,"div",9),xo(2,"span",3),xo(3,"b"),oa(4),Eo(),Eo(),xo(5,"span",10),xo(6,"button",11),Ro("click",function(){Ve(t);const n=e.$implicit,i=e.index;return Do().openModal("update",n,i)}),oa(7,"Uredi ime"),Eo(),xo(8,"button",12),Ro("click",function(){Ve(t);const n=e.$implicit,i=e.index;return Do().openModal("delete",n,i)}),Oo(9,"i",13),Eo(),Eo(),Eo(),Eo()}if(2&t){const t=e.$implicit,n=Do();Br(4),aa(t.ime),Br(2),So("disabled",!n.jePovezava()),Br(2),So("disabled",!n.jePovezava())}}let pw=(()=>{class t{constructor(t,e){this.modalService=t,this.povezavaStoritev=e}openModal(t,e,n){var i=this.modalService.open(dw,{centered:!0,size:"md"}).componentInstance;switch(i.moduli=this.moduli,t){case"new":i.modalTitle="Dodajanje modula",i.new=!0,i.submitButton="Ustvari modul";break;case"delete":i.modalTitle="Brisanje modula",i.delete=!0,i.inputModul=e,i.inputModulIx=n,i.submitButton="Izbri\u0161i modul";break;case"update":i.modalTitle="Posodabljanje modula",i.update=!0,i.inputModul=e,i.inputModulIx=n,i.submitButton="Posodobi modul";break;default:console.log("Ta akcija za modalno okno pri modulih ne obstaja")}}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(zy),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-admin-moduli"]],inputs:{moduli:"moduli"},decls:12,vars:2,consts:[[1,"section-moduli"],[1,"row"],[1,"naslov-sekcije","col-sm-11","col-md-11","col-xl-11"],[1,"float-left"],[1,"text-dark"],[1,"float-left","ml-4","mb-2"],[1,"btn","btn-dark","btn-admin","px-5",3,"disabled","click"],[1,"podsekcije"],["class","row",4,"ngFor","ngForOf"],[1,"ena-vrstica","col-sm-10","col-md-9","col-xl-9"],[1,"float-right"],[1,"btn","btn-dark","btn-admin","mx-2","my-0",3,"disabled","click"],["aria-label","Izbri\u0161i modul.",1,"btn","btn-danger","btn-admin","text-dark","mx-2",3,"disabled","click"],[1,"far","fa-trash-alt","fa-lg",2,"color","black"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"div",1),xo(2,"div",2),xo(3,"span",3),xo(4,"p",4),xo(5,"b"),oa(6,"MODULI"),Eo(),Eo(),Eo(),xo(7,"span",5),xo(8,"button",6),Ro("click",function(){return e.openModal("new")}),oa(9,"Dodaj modul"),Eo(),Eo(),Eo(),Eo(),xo(10,"div",7),ko(11,hw,10,3,"div",8),Eo(),Eo()),2&t&&(Br(8),So("disabled",!e.jePovezava()),Br(3),So("ngForOf",e.moduli))},directives:[sd],styles:[""]}),t})();function fw(t,e){if(1&t&&(xo(0,"div",2),xo(1,"div",3),oa(2),Eo(),xo(3,"h4"),oa(4,"ADMIN MANAGEMENT"),Eo(),Oo(5,"app-admin-osebje",4),Oo(6,"app-admin-predmeti",5),Oo(7,"app-admin-moduli",6),Eo()),2&t){const t=Do();Br(1),So("hidden",!t.sporociloNapaka),Br(1),aa(t.sporociloNapaka),Br(3),So("osebje",t.osebje),Br(1),So("predmeti",t.predmeti)("osebje",t.osebje)("moduli",t.moduli),Br(1),So("moduli",t.moduli)}}function mw(t,e){1&t&&(xo(0,"h3",7),oa(1,"Administratorska opravila so na voljo le administratorjem."),Oo(2,"br"),oa(3,"Lp in lep pozdrav"),Eo())}let gw=(()=>{class t{constructor(t,e,n){this.adminPodatkiStoritev=t,this.avtentikacijaStoritev=e,this.povezavaStoritev=n}jeAdmin(){this.admin=this.avtentikacijaStoritev.jeAdmin()}pridobiOsebje(){this.adminPodatkiStoritev.pridobiOsebje().then(t=>{this.osebje=t}).catch(t=>this.sporociloNapaka=t)}pridobiPredmete(){this.adminPodatkiStoritev.pridobiPredmete().then(t=>this.predmeti=t).catch(t=>this.sporociloNapaka=t)}pridobiModule(){this.adminPodatkiStoritev.pridobiModule().then(t=>this.moduli=t).catch(t=>this.sporociloNapaka=t)}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){this.jeAdmin(),this.admin&&(this.pridobiOsebje(),this.pridobiPredmete(),this.pridobiModule())}}return t.\u0275fac=function(e){return new(e||t)(Co(eb),Co(Iv),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-admin"]],decls:2,vars:2,consts:[["class","p-5 content bg-dark","id","admin_managment",4,"ngIf"],["class","m-3",4,"ngIf"],["id","admin_managment",1,"p-5","content","bg-dark"],[1,"alert","alert-warning",3,"hidden"],[3,"osebje"],[3,"predmeti","osebje","moduli"],[3,"moduli"],[1,"m-3"]],template:function(t,e){1&t&&(ko(0,fw,8,7,"div",0),ko(1,mw,4,0,"h3",1)),2&t&&(So("ngIf",e.admin),Br(1),So("ngIf",!e.admin))},directives:[ad,H_,sw,pw],styles:[""]}),t})(),vw=(()=>{class t{constructor(t,e){this.http=t,this.authStoritev=e,this.apiUrl=Ev}httpLastnosti(){return{headers:new Yd({Authorization:`Bearer ${this.authStoritev.vrniZeton()}`})}}pretvoriRezultat(t){var e=t;return e.komentarji=[],e}naloziGradivo(t){var e=new FormData;return t.datoteka?e.set("datoteka",t.datoteka):t.povezava&&e.set("povezava",t.povezava.toString()),this.http.post(`${this.apiUrl}/predmeti/${t.predmet}/gradivo`,e,this.httpLastnosti()).toPromise().then(t=>this.pretvoriRezultat(t)).catch(t=>{throw this.obdelajNapako(t),t})}prijaviGradivo(t){return this.http.post(`${this.apiUrl}/gradivo/${t}/prijava`,{}).toPromise().then(t=>this.pretvoriRezultat(t)).catch(this.obdelajNapako)}izbrisiGradivo(t){return this.http.delete(`${this.apiUrl}/gradivo/${t}`,this.httpLastnosti()).toPromise().catch(this.obdelajNapako)}preklopiVidljivostGradiva(t){return this.http.post(`${this.apiUrl}/gradivo/${t}/preklopiVidljivost`,{},this.httpLastnosti()).toPromise().then(t=>this.pretvoriRezultat(t)).catch(this.obdelajNapako)}objaviKomentar(t,e){return this.http.post(`${this.apiUrl}/gradivo/${t}/komentar`,e,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}prijaviKomentar(t,e){return this.http.post(`${this.apiUrl}/gradivo/${t}/komentar/${e}/prijava`,{}).toPromise().then(t=>t).catch(this.obdelajNapako)}izbrisiKomentar(t,e){return this.http.delete(`${this.apiUrl}/gradivo/${t}/komentar/${e}`,this.httpLastnosti()).toPromise().catch(this.obdelajNapako)}obdelajNapako(t){return console.error("Pri\u0161lo je do napake",t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t),Promise.reject(t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t)}}return t.\u0275fac=function(e){return new(e||t)(vi(hh),vi(Iv))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bw=(()=>{class t{transform(t,...e){var n=new Date(Date.parse(t)),i=new Date,r=Math.abs(Math.floor((Date.UTC(i.getFullYear(),i.getMonth(),i.getDate())-Date.UTC(n.getFullYear(),n.getMonth(),n.getDate()))/864e5));return 0==r?"Danes":1==r?"V\u010deraj":r<=30?`Pred ${r} dnevi`:"Ve\u010d kot mesec nazaj"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Xt({name:"casOddaje",type:t,pure:!0}),t})();function yw(t,e){1&t&&(xo(0,"span"),oa(1,"(Anonimno)"),Eo())}function _w(t,e){if(1&t&&(xo(0,"span"),oa(1),ko(2,yw,2,0,"span",1),Eo()),2&t){const t=Do();Br(1),la("",t.komentar.avtor.uporabniskoIme," "),Br(1),So("ngIf",t.komentar.anonimnost)}}function ww(t,e){1&t&&(xo(0,"span"),oa(1,"Anonimen uporabnik"),Eo())}function kw(t,e){if(1&t){const t=zo();Io(0),xo(1,"p",4),oa(2),Eo(),xo(3,"button",5),Ro("click",function(){Ve(t);const e=Do();return e.izbrisiKomentar(e.komentar)}),Oo(4,"i",6),Eo(),Ao()}if(2&t){const t=Do();Br(2),la("\u0160t. prijav: ",t.komentar.stPrijav,"")}}function jw(t,e){if(1&t){const t=zo();xo(0,"button",5),Ro("click",function(){return Ve(t),Do(2).izbrisiKomentar()}),Oo(1,"i",6),Eo()}}function Cw(t,e){if(1&t){const t=zo();xo(0,"button",9),Ro("click",function(){return Ve(t),Do(2).prijaviKomentar()}),oa(1,"Prijavi komentar"),Eo()}}function Sw(t,e){if(1&t&&(Io(0),ko(1,jw,2,0,"button",7),ko(2,Cw,2,0,"button",8),Ao()),2&t){const t=Do();Br(1),So("ngIf",t.jeAvtor),Br(1),So("ngIf",!t.jeAvtor)}}let Pw=(()=>{class t{constructor(t,e){this.gradivoStoritev=t,this.authStoritev=e,this.izbrisi=new vc,this.prijavi=new vc}ngOnInit(){console.log(this.komentar),this.jePrijavljen=this.authStoritev.jePrijavljen(),this.jeAdmin=this.authStoritev.jeAdmin();var t=this.authStoritev.vrniTrenutnegaUporabnika();this.jeAvtor=!!t&&this.komentar.avtor&&t._id==this.komentar.avtor._id}prijaviKomentar(){return Pv(this,void 0,void 0,function*(){this.komentar=yield this.gradivoStoritev.prijaviKomentar(this.gradivo._id,this.komentar._id),this.prijavi.emit(this.komentar)})}izbrisiKomentar(){return Pv(this,void 0,void 0,function*(){yield this.gradivoStoritev.izbrisiKomentar(this.gradivo._id,this.komentar._id),this.izbrisi.emit(this.komentar)})}}return t.\u0275fac=function(e){return new(e||t)(Co(vw),Co(Iv))},t.\u0275cmp=qt({type:t,selectors:[["app-komentar"]],inputs:{gradivo:"gradivo",komentar:"komentar"},outputs:{izbrisi:"izbrisi",prijavi:"prijavi"},decls:10,vars:8,consts:[[1,"h5","ml-3","d-inline"],[4,"ngIf"],[1,"h6","ml-3"],[1,"p-3"],[1,"px-3","text-danger"],[1,"btn","btn-secondary","mx-3","mb-3",3,"click"],[1,"fa","fa-trash-alt","mx-3"],["class","btn btn-secondary mx-3 mb-3",3,"click",4,"ngIf"],["class","btn btn-secondary mx-2 mb-3 p-1",3,"click",4,"ngIf"],[1,"btn","btn-secondary","mx-2","mb-3","p-1",3,"click"]],template:function(t,e){1&t&&(xo(0,"p",0),ko(1,_w,3,2,"span",1),ko(2,ww,2,0,"span",1),Eo(),xo(3,"p",2),oa(4),mc(5,"casOddaje"),Eo(),xo(6,"p",3),oa(7),Eo(),ko(8,kw,5,1,"ng-container",1),ko(9,Sw,3,2,"ng-container",1)),2&t&&(Br(1),So("ngIf",e.komentar.avtor),Br(1),So("ngIf",!e.komentar.avtor),Br(2),aa(gc(5,6,e.komentar.datum)),Br(3),aa(e.komentar.besedilo),Br(1),So("ngIf",e.jeAdmin),Br(1),So("ngIf",!e.jeAdmin))},directives:[ad],pipes:[bw],styles:[""]}),t})();function xw(t,e){1&t&&(xo(0,"div",7),xo(1,"div",8),xo(2,"strong"),oa(3,"Praznega komentarja ne more\u0161 oddati!"),Eo(),Eo(),Eo())}let Ew=(()=>{class t{constructor(t,e){this.podatkiStoritev=t,this.authStoritev=e,this.objavi=new vc}ngOnInit(){this.prazenKomentar=!1,this.komentar={gradivo:this.gradivo._id,avtor:this.authStoritev.vrniTrenutnegaUporabnika()._id,anonimno:!1,komentar:""}}posodobiBesedilo(t){this.komentar.komentar=t}objaviKomentar(){""==this.komentar.komentar?this.prazenKomentar=!0:(this.prazenKomentar=!1,this.podatkiStoritev.objaviKomentar(this.gradivo._id,this.komentar).then(t=>{this.komentar.komentar="",this.objavi.emit(t)}))}}return t.\u0275fac=function(e){return new(e||t)(Co(vw),Co(Iv))},t.\u0275cmp=qt({type:t,selectors:[["app-nov-komentar"]],inputs:{gradivo:"gradivo"},outputs:{objavi:"objavi"},decls:9,vars:3,consts:[[1,"form-group","mt-3","ml-3"],["rows","3","placeholder","Vpi\u0161i svoj komentar",1,"komentar","text-dark","form-control",3,"ngModel","ngModelChange","input"],[1,"form-check","m-1"],["type","checkbox",1,"form-check-input",3,"ngModel","ngModelChange"],["for","anonimno",1,"form-check-label"],[1,"btn","gradivoOptions","my-2",3,"click"],["class","alerts col-md-12 d-block",4,"ngIf"],[1,"alerts","col-md-12","d-block"],["role","alert",1,"alert","alert-danger"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"textarea",1),Ro("ngModelChange",function(t){return e.komentar.komentar=t})("input",function(t){return e.posodobiBesedilo(t.target.value)}),Eo(),xo(2,"div",2),xo(3,"input",3),Ro("ngModelChange",function(t){return e.komentar.anonimno=t}),Eo(),xo(4,"label",4),oa(5,"Komentiraj anonimno"),Eo(),Eo(),xo(6,"button",5),Ro("click",function(){return e.objaviKomentar()}),oa(7,"ODDAJ KOMENTAR"),Eo(),ko(8,xw,4,0,"div",6),Eo()),2&t&&(Br(1),So("ngModel",e.komentar.komentar),Br(2),So("ngModel",e.komentar.anonimno),Br(5),So("ngIf",e.prazenKomentar))},directives:[Rh,Xh,Cp,zh,ad],styles:[""]}),t})();function Ow(t,e){1&t&&Oo(0,"i",16)}function Iw(t,e){1&t&&Oo(0,"i",17)}function Aw(t,e){if(1&t){const t=zo();Io(0),xo(1,"button",12),Ro("click",function(){return Ve(t),Do(2).preklopiVidljivost()}),ko(2,Ow,1,0,"i",13),ko(3,Iw,1,0,"i",14),Eo(),xo(4,"button",12),Ro("click",function(){return Ve(t),Do(2).izbrisiGradivo()}),Oo(5,"i",15),Eo(),Ao()}if(2&t){const t=Do(2);Br(2),So("ngIf",t.vidno),Br(1),So("ngIf",!t.vidno)}}function zw(t,e){1&t&&(xo(0,"p"),oa(1,"Komentarji"),Eo())}function Tw(t,e){if(1&t){const t=zo();xo(0,"div",18),xo(1,"app-komentar",19),Ro("izbrisi",function(e){return Ve(t),Do(2).izbrisiKomentar(e)}),Eo(),Eo()}if(2&t){const t=e.$implicit,n=Do(2);Br(1),So("gradivo",n.gradivo)("komentar",t)}}function Nw(t,e){if(1&t){const t=zo();xo(0,"app-nov-komentar",20),Ro("objavi",function(e){return Ve(t),Do(2).objaviKomentar(e)}),Eo()}2&t&&So("gradivo",Do(2).gradivo)}function Rw(t,e){if(1&t){const t=zo();xo(0,"div",2),xo(1,"p",3),oa(2),Eo(),ko(3,Aw,6,2,"ng-container",4),xo(4,"button",5),Ro("click",function(){return Ve(t),Do().prijaviGradivo()}),Oo(5,"i",6),Eo(),xo(6,"button",7),xo(7,"a",8),Ro("click",function(){return Ve(t),Do().odpri()}),Eo(),Eo(),xo(8,"div",9),ko(9,zw,2,0,"p",4),ko(10,Tw,2,2,"div",10),ko(11,Nw,1,1,"app-nov-komentar",11),Eo(),Eo()}if(2&t){const t=Do();Br(2),la("\u0160t. prijav gradiva: ",t.gradivo.stPrijav,""),Br(1),So("ngIf",t.jeAdmin),Br(6),So("ngIf",t.gradivo.komentarji.length>0),Br(1),So("ngForOf",t.gradivo.komentarji),Br(1),So("ngIf",t.jePrijavljen)}}let Mw=(()=>{class t{constructor(t,e){this.gradivoStoritev=t,this.authStoritev=e,this.gradivoChange=new vc,this.izbrisi=new vc,this.prikaziInfo=!1}ngOnInit(){this.jePrijavljen=this.authStoritev.jePrijavljen(),this.jeAdmin=this.authStoritev.jeAdmin(),this.vidno=this.gradivo.vidno}togglePrikaziInfo(){this.prikaziInfo=!this.prikaziInfo}prijaviGradivo(){return Pv(this,void 0,void 0,function*(){this.gradivo=yield this.gradivoStoritev.prijaviGradivo(this.gradivo._id),this.gradivoChange.emit(this.gradivo)})}izbrisiGradivo(){return Pv(this,void 0,void 0,function*(){yield this.gradivoStoritev.izbrisiGradivo(this.gradivo._id),this.izbrisi.emit(this.gradivo)})}preklopiVidljivost(){return Pv(this,void 0,void 0,function*(){this.gradivo=yield this.gradivoStoritev.preklopiVidljivostGradiva(this.gradivo._id),this.vidno=this.gradivo.vidno,this.gradivoChange.emit(this.gradivo)})}objaviKomentar(t){this.gradivo.komentarji.push(t),this.gradivoChange.emit(this.gradivo)}izbrisiKomentar(t){this.gradivo.komentarji=this.gradivo.komentarji.filter(e=>e._id!=t._id),this.gradivoChange.emit(this.gradivo)}odpri(){window.open(`${Ev}/gradivo/${this.gradivo._id}`,"_blank")}}return t.\u0275fac=function(e){return new(e||t)(Co(vw),Co(Iv))},t.\u0275cmp=qt({type:t,selectors:[["app-gradivo"]],inputs:{gradivo:"gradivo",gradivoChange:"gradivoChange"},outputs:{izbrisi:"izbrisi"},decls:3,vars:2,consts:[[1,"btn","predmet-btn","dropdown-toggle","my-2","pl-3",3,"click"],["class","pl-2",4,"ngIf"],[1,"pl-2"],[1,"px-3","text-danger"],[4,"ngIf"],[1,"btn","btn-secondary","gradivoOptions","ml-3",3,"click"],[1,"fa","fa-exclamation-triangle","black","d-inline","mx-1","mt-1"],[1,"btn","gradivoOptions","ml-3"],[1,"fa","fa-download","black","d-inline","mx-1","mt-1",3,"click"],[1,"mt-2","ml-3"],["class","komentar text-dark my-2",4,"ngFor","ngForOf"],[3,"gradivo","objavi",4,"ngIf"],[1,"btn","gradivoOptions","ml-3",3,"click"],["class","fa fa-eye-slash black d-inline mx-1 mt-1",4,"ngIf"],["class","fa fa-eye black d-inline mx-1 mt-1",4,"ngIf"],[1,"fa","fa-trash-alt","black","d-inline","mx-1","mt-1"],[1,"fa","fa-eye-slash","black","d-inline","mx-1","mt-1"],[1,"fa","fa-eye","black","d-inline","mx-1","mt-1"],[1,"komentar","text-dark","my-2"],[3,"gradivo","komentar","izbrisi"],[3,"gradivo","objavi"]],template:function(t,e){1&t&&(xo(0,"button",0),Ro("click",function(){return e.togglePrikaziInfo()}),oa(1),Eo(),ko(2,Rw,12,5,"div",1)),2&t&&(Br(1),aa(e.gradivo.ime),Br(1),So("ngIf",e.prikaziInfo))},directives:[ad,sd,Pw,Ew],styles:[""]}),t})(),Vw=(()=>{class t{constructor(t,e){this.http=t,this.authStoritev=e,this.apiUrl=Ev}httpLastnosti(){return this.authStoritev.vrniZeton()?{headers:new Yd({Authorization:`Bearer ${this.authStoritev.vrniZeton()}`})}:{headers:null}}pridobiPredmetById(t){return this.http.get(`${this.apiUrl}/predmeti/${t}`,this.httpLastnosti()).toPromise().then(t=>t).catch(this.obdelajNapako)}obdelajNapako(t){return console.error("Pri\u0161lo je do napake",t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t),Promise.reject(t.error["sporo\u010dilo"]||t.error.errmsg||t.message||t)}}return t.\u0275fac=function(e){return new(e||t)(vi(hh),vi(Iv))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Dw=(()=>{class t{transform(t,...e){return Math.round(t/Math.pow(1024,2)*100)/100+" MB"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Xt({name:"velikostDatoteke",type:t,pure:!0}),t})();function Uw(t,e){1&t&&(xo(0,"label",13),oa(1,"Izberi datoteko (max 16 Mb)"),Eo())}function Lw(t,e){if(1&t&&(xo(0,"label",13),oa(1),mc(2,"velikostDatoteke"),Eo()),2&t){const t=Do();Br(1),ca("",t.datoteka.name," (",gc(2,2,t.datoteka.size),")")}}function Fw(t,e){1&t&&(xo(0,"div",14),xo(1,"strong"),oa(2,"Gradivo dodano!"),Eo(),Eo())}function $w(t,e){1&t&&(xo(0,"div",15),xo(1,"strong"),oa(2,"Nalaganje gradiva ni uspelo."),Eo(),Eo())}let Hw=(()=>{class t{constructor(t){this.gradivoPodatkiService=t,this.gradivoDodano=!1,this.obaPrisotna=!1,this.uploadNapaka=!1,this.nalozi=new vc,this.datoteka=null}ngOnInit(){}getFile(t){(!t||t.length>0)&&(this.datoteka=null),this.datoteka=t[0]}preveriPravilnost(){this.obaPrisotna=!(!this.datoteka||!this.povezava)}naloziGradivo(){var t;this.preveriPravilnost(),this.obaPrisotna||(t=this.datoteka?{predmet:this.predmet._id,datoteka:this.datoteka}:{predmet:this.predmet._id,povezava:new URL(this.povezava)},this.datoteka=null,this.povezava="",this.gradivoPodatkiService.naloziGradivo(t).then(t=>this.nalozi.emit(t)).catch(t=>this.uploadNapaka=!0))}}return t.\u0275fac=function(e){return new(e||t)(Co(vw))},t.\u0275cmp=qt({type:t,selectors:[["app-gradivo-upload"]],inputs:{predmet:"predmet"},outputs:{nalozi:"nalozi"},decls:18,vars:5,consts:[[1,"h4","m-3"],[1,"form-group","mt-3","ml-3"],["rows","1","placeholder","Link do gradiva","pattern","https?:\\/\\/[-a-zA-Z0-9@:%._\\+~#=]+\\.[a-zA-Z0-9()]+\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)",1,"form-control",3,"ngModel","ngModelChange","input"],[1,"input-group","mb-3"],[1,"custom-file","ml-3"],["type","file",1,"custom-file-input",3,"input"],["class","custom-file-label",4,"ngIf"],[1,"alerts","col-md-12"],["class","alert alert-success d-block","role","alert",4,"ngIf"],["class","alert alert-danger d-block","role","alert",4,"ngIf"],[1,"gradivoOptions","btn","btn-block","m-2",3,"click"],[1,"fa","fa-upload","black","mt-2"],[1,"ml-1"],[1,"custom-file-label"],["role","alert",1,"alert","alert-success","d-block"],["role","alert",1,"alert","alert-danger","d-block"]],template:function(t,e){1&t&&(xo(0,"p",0),oa(1,"Povezava"),Eo(),xo(2,"div",1),xo(3,"textarea",2),Ro("ngModelChange",function(t){return e.povezava=t})("input",function(){return e.preveriPravilnost()}),Eo(),Eo(),xo(4,"p",0),oa(5,"Nalo\u017ei datoteko"),Eo(),xo(6,"div",3),xo(7,"div",4),xo(8,"input",5),Ro("input",function(t){return e.getFile(t.target.files)}),Eo(),ko(9,Uw,2,0,"label",6),ko(10,Lw,3,4,"label",6),Eo(),Eo(),xo(11,"div",7),ko(12,Fw,3,0,"div",8),ko(13,$w,3,0,"div",9),Eo(),xo(14,"button",10),Ro("click",function(){return e.naloziGradivo()}),Oo(15,"i",11),xo(16,"b",12),oa(17,"Dodaj"),Eo(),Eo()),2&t&&(Br(3),So("ngModel",e.povezava),Br(6),So("ngIf",!e.datoteka),Br(1),So("ngIf",e.datoteka),Br(2),So("ngIf",e.gradivoDodano),Br(1),So("ngIf",e.uploadNapaka))},directives:[Rh,Up,Xh,Cp,ad],pipes:[Dw],styles:[""]}),t})();function Bw(t,e){1&t&&(xo(0,"div",5),xo(1,"p",6),oa(2,"Predmet \u0161e nima objavljenega gradiva :("),Oo(3,"br"),oa(4,"Bodi car in ga dodaj!"),Eo(),Eo())}function Gw(t,e){if(1&t){const t=zo();xo(0,"app-gradivo",7),Ro("izbrisi",function(e){return Ve(t),Do().izbrisiGradivo(e)}),Eo()}2&t&&So("gradivo",e.$implicit)}function qw(t,e){if(1&t){const t=zo();Io(0),xo(1,"div",8),xo(2,"p",9),oa(3,"Dodaj novo gradivo"),Eo(),Eo(),xo(4,"app-gradivo-upload",10),Ro("nalozi",function(e){return Ve(t),Do().naloziGradivo(e)}),Eo(),Ao()}if(2&t){const t=Do();Br(4),So("predmet",t.predmet)}}let Ww=(()=>{class t{constructor(t){this.authStoritev=t}ngOnInit(){this.jePrijavljen=this.authStoritev.jePrijavljen()}izbrisiGradivo(t){this.predmet.gradiva=this.predmet.gradiva.filter(e=>e._id!=t._id)}naloziGradivo(t){this.predmet.gradiva.push(t)}}return t.\u0275fac=function(e){return new(e||t)(Co(Iv))},t.\u0275cmp=qt({type:t,selectors:[["app-predmet-gradiva"]],inputs:{predmet:"predmet"},decls:6,vars:3,consts:[[1,"content","bg-darkerBg","p-3","mb-3"],[1,"h4"],["class","pl-2 pt-3",4,"ngIf"],[3,"gradivo","izbrisi",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"pl-2","pt-3"],[1,"text-info"],[3,"gradivo","izbrisi"],[1,"content","bg-default","mt-5","p-3"],[1,"h4","black","mx-3","text-center"],[3,"predmet","nalozi"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"p",1),oa(2,"DOKUMENTI IN POVEZAVE"),Eo(),ko(3,Bw,5,0,"div",2),ko(4,Gw,1,1,"app-gradivo",3),ko(5,qw,5,1,"ng-container",4),Eo()),2&t&&(Br(3),So("ngIf",!e.predmet.gradiva||0==e.predmet.gradiva.length),Br(1),So("ngForOf",e.predmet.gradiva),Br(1),So("ngIf",e.jePrijavljen))},directives:[ad,sd,Mw,Hw],styles:[""]}),t})();function Zw(t,e){if(1&t){const t=zo();xo(0,"a",12),Ro("click",function(){Ve(t);const e=Do(2);return e.openModal("update",e.predmet)}),xo(1,"button",13),oa(2,"Uredi "),Oo(3,"i",14),Eo(),Eo()}}function Kw(t,e){if(1&t){const t=zo();xo(0,"a",15),Ro("click",function(){Ve(t);const n=e.$implicit;return Do(2).openOsebje(n._id)}),oa(1),Oo(2,"i",16),Eo()}if(2&t){const t=e.$implicit;Br(1),la("Profesor | ",t.ime_priimek,"")}}function Qw(t,e){if(1&t){const t=zo();xo(0,"a",17),Ro("click",function(){Ve(t);const n=e.$implicit;return Do(2).openOsebje(n._id)}),oa(1),Oo(2,"i",16),Eo()}if(2&t){const t=e.$implicit;Br(1),la("Asistent | ",t.ime_priimek,"")}}function Jw(t,e){if(1&t){const t=zo();xo(0,"div",2),xo(1,"div",3),xo(2,"p",4),oa(3),Eo(),ko(4,Zw,4,0,"a",5),xo(5,"div",6),xo(6,"p",7),oa(7,"Vsebina"),Eo(),xo(8,"p",8),oa(9),Eo(),xo(10,"div"),ko(11,Kw,3,1,"a",9),ko(12,Qw,3,1,"a",10),Eo(),Eo(),xo(13,"app-predmet-gradiva",11),Ro("predmetChange",function(e){return Ve(t),Do().predmet=e}),Eo(),Eo(),Eo()}if(2&t){const t=Do();Br(3),aa(t.predmet.ime),Br(1),So("ngIf",t.jeAdmin),Br(5),aa(t.predmet.opis),Br(2),So("ngForOf",t.predmet.profesorji),Br(1),So("ngForOf",t.predmet.asistenti),Br(1),So("predmet",t.predmet)}}function Yw(t,e){1&t&&(xo(0,"div",18),oa(1," Nalagam predmet "),Eo())}const Xw=[{path:"",component:Sv},{path:"registracija",component:Dv},{path:"prijava",component:Bv},{path:"obnoviGeslo",component:Yv},{path:"vnesiNovoGeslo/:eposta",component:Zv},{path:"db",component:b_},{path:"splosniPogoji",component:y_},{path:"potrditevObnoveGesla",component:__},{path:"uporabniki/:idUporabnika",component:I_},{path:"admin",component:gw},{path:"admin/osebje",component:H_},{path:"gradivo/:idGradiva",component:Mw},{path:"predmeti/:idPredmeta",component:(()=>{class t{constructor(t,e,n,i,r){this.predmetPodatkiService=t,this.adminPodatkiStoritev=e,this.authStoritev=n,this.modalService=i,this.pot=r}pridobiPredmetNaTemNaslovu(){this.pot.paramMap.pipe(ef(t=>{let e=t.get("idPredmeta");return this.predmetPodatkiService.pridobiPredmetById(e)})).subscribe(t=>{this.predmet=t,console.log(this.predmet)})}openModal(t,e,n){const i=JSON.parse(JSON.stringify(e));var r=this.modalService.open(iw,{centered:!0,size:"md"}).componentInstance;switch(t){case"update":r.modalTitle="Posodabljanje predmeta",r.update=!0,r.noviPredmet=i,r.referencaNaStariPredmet=e,r.submitButton="Posodobi predmet";break;default:console.log("Ta akcija za modalno okno pri modulih ne obstaja")}}openOsebje(t){this.modalService.open(Xy,{centered:!0,size:"md"}).componentInstance.idInput=t}ngOnInit(){this.jeAdmin=this.authStoritev.jeAdmin(),this.pridobiPredmetNaTemNaslovu()}}return t.\u0275fac=function(e){return new(e||t)(Co(Vw),Co(eb),Co(Iv),Co(zy),Co(Vm))},t.\u0275cmp=qt({type:t,selectors:[["app-predmet"]],decls:3,vars:2,consts:[["class","content bg-dark",4,"ngIf","ngIfElse"],["niPredmeta",""],[1,"content","bg-dark"],[1,"p-3"],[1,"h1","p-3"],[3,"click",4,"ngIf"],[1,"content","bg-darkerBg","p-3","my-3"],[1,"h4"],[1,"mt-3","ml-1"],["class","btn btn-profesor rounded m-1",3,"click",4,"ngFor","ngForOf"],["class","btn btn-asistent rounded m-1",3,"click",4,"ngFor","ngForOf"],[3,"predmet","predmetChange"],[3,"click"],[1,"btn","btn-secondary","ml-3"],[1,"fa","fa-edit","d-inline","p-3"],[1,"btn","btn-profesor","rounded","m-1",3,"click"],[1,"fas","fa-external-link-alt","ml-2"],[1,"btn","btn-asistent","rounded","m-1",3,"click"],["role","alert",1,"alert","alert-warning",2,"margin-top","10px"]],template:function(t,e){if(1&t&&(ko(0,Jw,14,6,"div",0),ko(1,Yw,2,0,"ng-template",null,1,Rc)),2&t){const t=jo(2);So("ngIf",e.predmet)("ngIfElse",t)}},directives:[ad,sd,Ww],styles:[""]}),t})()},{path:"osebje/:idOseba/nastavitve",component:(()=>{class t{constructor(t,e,n){this.adminPodatkiStoritev=t,this.pot=e,this.povezavaStoritev=n,this.naslov="NASTAVITVE OSEBJA",this.profesorAsistent={_id:"",ime_priimek:"",akademskiNaziv:"",izobrazba:"",opis:""}}ngOnInit(){this.pot.paramMap.pipe(ef(t=>(this.idOseba=t.get("idOseba"),this.adminPodatkiStoritev.pridobiOsebje()))).subscribe(t=>{this.osebje=t;const e=t.find(t=>t._id===this.idOseba);this.profesorAsistent._id=e._id,this.profesorAsistent.ime_priimek=e.ime_priimek,this.profesorAsistent.akademskiNaziv=e.akademskiNaziv,this.profesorAsistent.izobrazba=e.izobrazba,this.profesorAsistent.opis=e.opis})}jePovezava(){return this.povezavaStoritev.jePovezava}}return t.\u0275fac=function(e){return new(e||t)(Co(eb),Co(Vm),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-osebje-nastavitve"]],decls:64,vars:16,consts:[[1,"p-5","content","bg-dark"],[1,"h3","p-3"],["id","idOseba",1,"hidden"],[1,"vsebina"],["action","#"],[1,"form-group","col-11"],["for","formAkademskiNazivInput"],["id","formAkademskiNazivInput",1,"form-control",3,"disabled"],["hidden",""],["for","formIzobrazbaInput"],["type","text","id","formIzobrazbaInput","placeholder","npr. dipl. in\u017e. ra\u010d. mat.",1,"form-control",3,"value","disabled"],["for","formImeInPriimekInput"],["type","text","id","formImeInPriimekInput","placeholder","Ime Priimek",1,"form-control",3,"value","disabled"],["for","textAreaOpis"],["id","textAreaOpis","rows","4","placeholder","Kratek opis izobrazbe, dela, podro\u010dij raziskovanja.",1,"form-control",3,"disabled"],[1,"btn-objavi"],["id","zelen-gumb","type","submit",1,"btn","btn-success",3,"disabled"],["id","rdec-gumb","type","submit",1,"btn","btn-danger",3,"disabled"],["id","alert-izobrazba","role","alert",1,"alert","alert-warning","alert-dismissible","fade","show"],["type","button","data-dismiss","alert","aria-label","Close",1,"close",3,"disabled"],["aria-hidden","true"],["id","alert-ime-priimek","role","alert",1,"alert","alert-warning","alert-dismissible","fade","show"],["id","alert-ni-slike","role","alert",1,"alert","alert-warning","alert-dismissible","fade","show"],["id","alert-empty-polja","role","alert",1,"alert","alert-warning","alert-dismissible","fade","show"],["id","alert-oseba-posodobljena","role","alert",1,"alert","alert-success","alert-dismissible","fade","show"],["type","button","data-dismiss","alert","aria-label","Close",1,"close"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"p",1),oa(2),Eo(),xo(3,"p",2),oa(4),Eo(),xo(5,"div",3),xo(6,"form",4),xo(7,"div",5),xo(8,"label",6),oa(9,"AKADEMSKI NAZIV"),Eo(),xo(10,"select",7),xo(11,"option",8),oa(12),Eo(),xo(13,"option"),oa(14,"brez"),Eo(),xo(15,"option"),oa(16,"asistent"),Eo(),xo(17,"option"),oa(18,"docent"),Eo(),xo(19,"option"),oa(20,"profesor"),Eo(),Eo(),Eo(),xo(21,"div",5),xo(22,"label",9),oa(23,"IZOBRAZBA"),Eo(),Oo(24,"input",10),Eo(),xo(25,"div",5),xo(26,"label",11),oa(27,"IME IN PRIIMEK"),Eo(),Oo(28,"input",12),Eo(),xo(29,"div",5),xo(30,"label",13),oa(31,"OPIS"),Eo(),xo(32,"textarea",14),oa(33),Eo(),xo(34,"div",15),xo(35,"button",16),oa(36,"Shrani"),Eo(),xo(37,"button",17),oa(38,"Izbri\u0161i"),Eo(),Eo(),Eo(),Eo(),Eo(),Eo(),xo(39,"div",18),oa(40," Vpi\u0161ite ustrezno izobrazbo. "),xo(41,"button",19),xo(42,"span",20),oa(43,"\xd7"),Eo(),Eo(),Eo(),xo(44,"div",21),oa(45," Vpi\u0161ite ustrezno ime in priimek. "),xo(46,"button",19),xo(47,"span",20),oa(48,"\xd7"),Eo(),Eo(),Eo(),xo(49,"div",22),oa(50," Nalo\u017eiti je potrebno tudi sliko. "),xo(51,"button",19),xo(52,"span",20),oa(53,"\xd7"),Eo(),Eo(),Eo(),xo(54,"div",23),oa(55," Izpolniti je potrebno vsa polja. "),xo(56,"button",19),xo(57,"span",20),oa(58,"\xd7"),Eo(),Eo(),Eo(),xo(59,"div",24),oa(60," Oseba je uspe\u0161no posodobljena! "),xo(61,"button",25),xo(62,"span",20),oa(63,"\xd7"),Eo(),Eo(),Eo()),2&t&&(Br(2),aa(e.naslov),Br(2),aa(e.profesorAsistent._id),Br(6),So("disabled",!e.jePovezava()),Br(2),aa(e.profesorAsistent.akademskiNaziv),Br(12),Uo("value",e.profesorAsistent.izobrazba),So("disabled",!e.jePovezava()),Br(4),Uo("value",e.profesorAsistent.ime_priimek),So("disabled",!e.jePovezava()),Br(4),So("disabled",!e.jePovezava()),Br(1),aa(e.profesorAsistent.opis),Br(2),So("disabled",!e.jePovezava()),Br(2),So("disabled",!e.jePovezava()),Br(4),So("disabled",!e.jePovezava()),Br(5),So("disabled",!e.jePovezava()),Br(5),So("disabled",!e.jePovezava()),Br(5),So("disabled",!e.jePovezava()))},directives:[Sp,tp,wp,Ap,Rp],styles:["#zelen-gumb[_ngcontent-%COMP%]{margin-right:10px}.alert[_ngcontent-%COMP%]{margin-top:10px;display:none}"]}),t})()},{path:"osebje/:idOseba",component:Xy},{path:"iskanje",component:u_},{path:"**",redirectTo:"/"}];let tk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({imports:[[hd,gv.forRoot(Xw)],gv]}),t})();function ek(t,e){1&t&&(xo(0,"div",15),xo(1,"a",16),oa(2,"Admin panel"),Eo(),Eo()),2&t&&So("disabled",!Do().jePovezava())}function nk(t,e){if(1&t&&(xo(0,"div",17),xo(1,"a",18),oa(2,"Prijava"),Eo(),Eo()),2&t){const t=Do();Br(1),So("disabled",!t.jePovezava())}}function ik(t,e){if(1&t&&(xo(0,"div",17),xo(1,"a",19),oa(2,"Registracija"),Eo(),Eo()),2&t){const t=Do();Br(1),So("disabled",!t.jePovezava())}}function rk(t,e){1&t&&(xo(0,"div",17),xo(1,"a",20),oa(2,"Offline na\u010din - vzpostavi internetno povezavo"),Eo(),Eo()),2&t&&(Br(1),So("disabled",!0))}function sk(t,e){1&t&&(xo(0,"a",29),oa(1,"Admin panel"),Eo()),2&t&&So("disabled",!Do(2).jePovezava())}function ok(t,e){if(1&t){const t=zo();xo(0,"div",21),Oo(1,"a",22),xo(2,"div",23),xo(3,"p",24),xo(4,"b"),oa(5),Eo(),Eo(),Oo(6,"div",25),xo(7,"a",26),oa(8,"Uporabni\u0161ke nastavitve"),Eo(),ko(9,sk,2,1,"a",27),Oo(10,"div",25),xo(11,"a",28),Ro("click",function(){return Ve(t),Do().odjava()}),oa(12,"Odjava"),Eo(),Eo(),Eo()}if(2&t){const t=Do();Br(5),aa(t.vrniUporabnika()),Br(2),Lo("routerLink","uporabniki/",t.vrniId(),""),So("disabled",!t.jePovezava()),Br(2),So("ngIf",t.jeAdmin()),Br(2),So("disabled",!t.jePovezava())}}const ak=function(){return{standalone:!0}},lk=function(t){return{iskalniIzraz:t}};let ck=(()=>{class t{constructor(t,e,n){this.avtentikacijaStoritev=t,this.zgodovinaStoritev=e,this.povezavaStoritev=n}odjava(){this.avtentikacijaStoritev.odjava()}jePrijavljen(){return this.avtentikacijaStoritev.jePrijavljen()}vrniUporabnika(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return t?t.uporabniskoIme:"Anonimen uporabnik"}vrniId(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return t?t._id:""}jeAdmin(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return!!t&&t.jeAdmin}jePovezava(){return this.povezavaStoritev.jePovezava}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(Iv),Co(Nv),Co(Tv))},t.\u0275cmp=qt({type:t,selectors:[["app-glava"]],decls:20,vars:13,consts:[[1,"navbar","navbar-expand-lg","navbar-dark","bg-dark","sticky-top"],["routerLink","/",1,"navbar-brand","mx-3","h1","mb-0","pr-5"],["src","/assets/public/img/Logo.png","width","50","height","50","alt",""],["type","button","data-toggle","collapse","aria-label","Odpri meni","data-target","#toggleNavBar",1,"navbar-toggler","navbar-toggler-icon"],["id","toggleNavBar",1,"collapse","navbar-collapse"],["class","nav-item my-2",3,"disabled",4,"ngIf"],["class","nav-item my-2",4,"ngIf"],[1,"nav-item","ml-auto","my-2"],["action","/iskanje","method","get",1,"d-inline"],[1,"input-group"],["type","text","placeholder","I\u0161\u010di gradivo",1,"form-control",3,"ngModel","ngModelOptions","disabled","ngModelChange"],[1,"input-group-append"],["type","submit","routerLink","/iskanje","aria-label","I\u0161\u010di literaturo & predmete in osebje.",1,"btn","btn-secondary",3,"queryParams","disabled"],[1,"fa","fa-search"],["class","nav-item navbar-nav dropdown",4,"ngIf"],[1,"nav-item","my-2",3,"disabled"],["routerLink","admin",1,"nav-link","btn","btn-info","py-1","ml-auto","mr-2","px-2"],[1,"nav-item","my-2"],["routerLink","prijava",1,"nav-link","btn","btn-secondary","py-1","ml-auto","mr-2","px-2",3,"disabled"],["routerLink","registracija",1,"nav-link","btn","btn-success","py-1","ml-auto","mr-2","px-2",3,"disabled"],[1,"nav-link","btn","btn-danger","py-1","ml-auto","mr-2","px-2",3,"disabled"],[1,"nav-item","navbar-nav","dropdown"],["data-toggle","dropdown",1,"nav-link","fas","fa-user","fa-2x","mx-3","d-flex","justify-content-center"],[1,"dropdown-menu","dropdown-menu-right"],[1,"dropdown-header","text-info"],[1,"dropdown-divider"],[1,"dropdown-item",3,"routerLink","disabled"],["class","dropdown-item","routerLink","admin",3,"disabled",4,"ngIf"],["routerLink","/",1,"dropdown-item","text-danger",3,"disabled","click"],["routerLink","admin",1,"dropdown-item",3,"disabled"]],template:function(t,e){1&t&&(xo(0,"nav",0),xo(1,"a",1),xo(2,"span"),xo(3,"b"),oa(4,"Karjola"),Eo(),Eo(),Oo(5,"img",2),Eo(),Oo(6,"button",3),xo(7,"div",4),ko(8,ek,3,1,"div",5),ko(9,nk,3,1,"div",6),ko(10,ik,3,1,"div",6),ko(11,rk,3,1,"div",6),xo(12,"div",7),xo(13,"form",8),xo(14,"div",9),xo(15,"input",10),Ro("ngModelChange",function(t){return e.iskalniIzraz=t}),Eo(),xo(16,"div",11),xo(17,"button",12),Oo(18,"i",13),Eo(),Eo(),Eo(),Eo(),Eo(),ko(19,ok,13,5,"div",14),Eo(),Eo()),2&t&&(Br(8),So("ngIf",e.jePrijavljen()&&e.jeAdmin()&&e.jePovezava()),Br(1),So("ngIf",!e.jePrijavljen()&&e.jePovezava()),Br(1),So("ngIf",!e.jePrijavljen()&&e.jePovezava()),Br(1),So("ngIf",!e.jePovezava()),Br(4),So("ngModel",e.iskalniIzraz)("ngModelOptions",uc(10,ak))("disabled",!e.jePovezava()),Br(2),So("queryParams",dc(11,lk,e.iskalniIzraz))("disabled",!e.jePovezava()),Br(2),So("ngIf",e.jePrijavljen()))},directives:[_y,rv,ad,Sp,tp,wp,Rh,Xh,Cp,iv],styles:[""]}),t})();class uk{constructor({naziv:t,fields:e}){this.naziv=t,this.final=!1,this.fields=e,this.id=""}}class dk{constructor({id:t,naziv:e}){this.id=t,this.naziv=e,this.final=!0,this.fields=[]}}let hk=(()=>{class t{constructor(t){this.adminPodatkiStoritev=t}pridobiSidebar(){return Promise.all([this.adminPodatkiStoritev.pridobiPredmete(),this.adminPodatkiStoritev.pridobiModule()]).then(t=>this.generirajSidebar(t[0],t[1]))}najdiLetnike(t){var e=[];for(let n of t){let t=e.find(t=>t.zaporednaSt==n.letnik);t?t.predmeti.push(n):n.letnik&&n.letnik>0&&e.push({zaporednaSt:n.letnik,predmeti:[n]})}return e}napolniModule(t,e){console.log(t),console.log(e);var n=e.map(t=>({id:t._id,ime:t.ime,predmeti:[]}));for(let i of t)if(i.moduli){let t=n.find(t=>i.moduli.some(e=>e==t.id));t&&t.predmeti.push(i)}return n}sidebarPredmet(t){return new dk({id:t._id,naziv:t.ime})}sidebarModul(t){var e=this.sidebarSemester(t.predmeti,1),n=this.sidebarSemester(t.predmeti,2),i=[];return e&&i.push(e),n&&i.push(n),new uk({naziv:t.ime,fields:i})}sidebarLetnik(t){var e=this.sidebarSemester(t.predmeti,1),n=this.sidebarSemester(t.predmeti,2),i=[];return e&&i.push(e),n&&i.push(n),new uk({naziv:`${t.zaporednaSt}. letnik`,fields:i})}sidebarIzbirni(t,e){var n=t.filter(t=>t.vrstaIzbirnega==e),i=this.sidebarSemester(n,1),r=this.sidebarSemester(n,2),s=[];return i&&s.push(i),r&&s.push(r),s}sidebarSemester(t,e){var n=t.filter(t=>t.semester==e);return n.length>0?new uk({naziv:`${e}. semester`,fields:n.map(t=>this.sidebarPredmet(t))}):null}generirajSidebar(t,e){var n=[],i=this.najdiLetnike(t).sort((t,e)=>t.zaporednaSt-e.zaporednaSt),r=this.napolniModule(t,e).filter(t=>t.predmeti.length>0),s=i.map(t=>this.sidebarLetnik(t));s.length>0&&n.push(...s);var o=r.map(t=>this.sidebarModul(t));o.length>0&&n.push(new uk({naziv:"Moduli",fields:o}));var a=this.sidebarIzbirni(t,1);a.length>0&&n.push(new uk({naziv:"Splo\u0161ni izbirni predmeti",fields:a}));var l=this.sidebarIzbirni(t,2);return l.length>0&&n.push(new uk({naziv:"Strokovni izbirni predmeti",fields:l})),n}}return t.\u0275fac=function(e){return new(e||t)(vi(eb))},t.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function pk(t,e){if(1&t&&(xo(0,"a",2),oa(1),Eo()),2&t){const t=Do();Lo("routerLink","/predmeti/",t.data.id,""),Br(1),aa(t.data.naziv)}}function fk(t,e){if(1&t&&Oo(0,"app-side-bar-gumbi",5),2&t){const t=e.$implicit,n=Do(3);Fo("ngClass","ml-",n.level," mr-",n.level,""),So("data",t)("level",n.level+1)}}function mk(t,e){if(1&t&&(xo(0,"span"),ko(1,fk,1,4,"app-side-bar-gumbi",4),Eo()),2&t){const t=Do(2);Br(1),So("ngForOf",t.data.fields)}}function gk(t,e){if(1&t){const t=zo();xo(0,"span"),xo(1,"button",3),Ro("click",function(){Ve(t);const e=Do();return e.prikaziPodmeni=!e.prikaziPodmeni}),oa(2),Eo(),ko(3,mk,2,1,"span",1),Eo()}if(2&t){const t=Do();Br(1),"dropdown-btn dropdown-lvl-",n=t.level," btn btn-secondary mr-2 my-1",Jo(ai,Qo,_o(Re(),"dropdown-btn dropdown-lvl-",n," btn btn-secondary mr-2 my-1"),!0),Br(1),aa(t.data.naziv),Br(1),So("ngIf",t.prikaziPodmeni)}var n}let vk=(()=>{class t{constructor(){this.prikaziPodmeni=!1}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qt({type:t,selectors:[["app-side-bar-gumbi"]],inputs:{data:"data",level:"level"},decls:2,vars:2,consts:[["class","dropdown-btn dropdown-lvl-4 btn btn-secondary mr-2 my-1",3,"routerLink",4,"ngIf"],[4,"ngIf"],[1,"dropdown-btn","dropdown-lvl-4","btn","btn-secondary","mr-2","my-1",3,"routerLink"],[3,"click"],[3,"data","level","ngClass",4,"ngFor","ngForOf"],[3,"data","level","ngClass"]],template:function(t,e){1&t&&(ko(0,pk,2,2,"a",0),ko(1,gk,4,5,"span",1)),2&t&&(So("ngIf",e.data.final),Br(1),So("ngIf",e.data.fields.length>0))},directives:[ad,rv,sd,t,id],styles:[""]}),t})();function bk(t,e){1&t&&Oo(0,"app-side-bar-gumbi",5),2&t&&So("data",e.$implicit)("level",1)}let yk=(()=>{class t{constructor(t){this.sidebarPodatkiStoritev=t}ngOnInit(){this.sidebarPodatkiStoritev.pridobiSidebar().then(t=>{this.podatki=t}).catch(t=>this.podatki=[])}}return t.\u0275fac=function(e){return new(e||t)(Co(hk))},t.\u0275cmp=qt({type:t,selectors:[["app-side-bar"]],decls:5,vars:1,consts:[[1,"content","bg-dark","p-4"],["data-toggle","collapse","data-target","#sidebarMenu",1,"menu-icon","mb-1"],[1,"fas","fa-bars"],["id","sidebarMenu",1,"collapse","show"],[3,"data","level",4,"ngFor","ngForOf"],[3,"data","level"]],template:function(t,e){1&t&&(xo(0,"div",0),xo(1,"div",1),Oo(2,"span",2),Eo(),xo(3,"div",3),ko(4,bk,1,2,"app-side-bar-gumbi",4),Eo(),Eo()),2&t&&(Br(4),So("ngForOf",e.podatki))},directives:[sd,vk],styles:[""]}),t})(),_k=(()=>{class t{constructor(t){this.avtentikacijaStoritev=t}odjava(){this.avtentikacijaStoritev.odjava()}jePrijavljen(){return this.avtentikacijaStoritev.jePrijavljen()}vrniUporabnika(){const t=this.avtentikacijaStoritev.vrniTrenutnegaUporabnika();return t?t.uporabniskoIme:"Anonimen uporabnik"}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Co(Iv))},t.\u0275cmp=qt({type:t,selectors:[["app-ogrodje"]],decls:6,vars:0,consts:[[1,"row","m-0","mt-2"],[1,"col-sm-12","col-md-6","col-lg-3","m-0","px-md-2","mt-3"],[1,"col-sm-12","col-md-6","col-lg-9","mt-3"]],template:function(t,e){1&t&&(Oo(0,"app-glava"),xo(1,"div",0),xo(2,"aside",1),Oo(3,"app-side-bar"),Eo(),xo(4,"main",2),Oo(5,"router-outlet"),Eo(),Eo())},directives:[ck,yk,ov],styles:[""]}),t})();const wk="Service workers are disabled or not supported by this browser";class kk{constructor(t){if(this.serviceWorker=t,t){const e=Av(t,"controllerchange").pipe(P(()=>t.controller)),n=Jp(tf(()=>Gd(t.controller)),e);this.worker=n.pipe(Wd(t=>!!t)),this.registration=this.worker.pipe(ef(()=>t.getRegistration()));const i=Av(t,"message").pipe(P(t=>t.data)).pipe(Wd(t=>t&&t.type)).pipe(Y(new j));i.connect(),this.events=i}else this.worker=this.events=this.registration=tf(()=>Cb(new Error("Service workers are disabled or not supported by this browser")))}postMessage(t,e){return this.worker.pipe(of(1),xf(n=>{n.postMessage(Object.assign({action:t},e))})).toPromise().then(()=>{})}postMessageWithStatus(t,e,n){const i=this.waitForStatus(n),r=this.postMessage(t,e);return Promise.all([i,r]).then(()=>{})}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(t){return this.events.pipe(Wd(e=>e.type===t))}nextEventOfType(t){return this.eventsOfType(t).pipe(of(1))}waitForStatus(t){return this.eventsOfType("STATUS").pipe(Wd(e=>e.nonce===t),of(1),P(t=>{if(!t.status)throw new Error(t.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let jk=(()=>{class t{constructor(t){if(this.sw=t,this.subscriptionChanges=new j,!t.isEnabled)return this.messages=db,this.notificationClicks=db,void(this.subscription=db);this.messages=this.sw.eventsOfType("PUSH").pipe(P(t=>t.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(P(t=>t.data)),this.pushManager=this.sw.registration.pipe(P(t=>t.pushManager));const e=this.pushManager.pipe(ef(t=>t.getSubscription()));this.subscription=G(e,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(t){if(!this.sw.isEnabled)return Promise.reject(new Error(wk));const e={userVisibleOnly:!0};let n=this.decodeBase64(t.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),i=new Uint8Array(new ArrayBuffer(n.length));for(let r=0;rt.subscribe(e)),of(1)).toPromise().then(t=>(this.subscriptionChanges.next(t),t))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(of(1),ef(t=>{if(null===t)throw new Error("Not subscribed to push notifications.");return t.unsubscribe().then(t=>{if(!t)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(wk))}decodeBase64(t){return atob(t)}}return t.\u0275fac=function(e){return new(e||t)(vi(kk))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})(),Ck=(()=>{class t{constructor(t){if(this.sw=t,!t.isEnabled)return this.available=db,this.activated=db,void(this.unrecoverable=db);this.available=this.sw.eventsOfType("UPDATE_AVAILABLE"),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(wk));const t=this.sw.generateNonce();return this.sw.postMessageWithStatus("CHECK_FOR_UPDATES",{statusNonce:t},t)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(wk));const t=this.sw.generateNonce();return this.sw.postMessageWithStatus("ACTIVATE_UPDATE",{statusNonce:t},t)}}return t.\u0275fac=function(e){return new(e||t)(vi(kk))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t})();class Sk{}const Pk=new Xn("NGSW_REGISTER_SCRIPT");function xk(t,e,n,i){return()=>{if(!pd(i)||!("serviceWorker"in navigator)||!1===n.enabled)return;let r;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof n.registrationStrategy)r=n.registrationStrategy();else{const[e,...i]=(n.registrationStrategy||"registerWhenStable:30000").split(":");switch(e){case"registerImmediately":r=Gd(null);break;case"registerWithDelay":r=Ek(+i[0]||0);break;case"registerWhenStable":r=i[0]?G(Ok(t),Ek(+i[0])):Ok(t);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}t.get(iu).runOutsideAngular(()=>r.pipe(of(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:n.scope}).catch(t=>console.error("Service worker registration failed with:",t))))}}function Ek(t){return Gd(null).pipe(function(t,e=ob){var n;const i=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new xb(i,e))}(t))}function Ok(t){return t.get(ju).isStable.pipe(Wd(t=>t))}function Ik(t,e){return new kk(pd(e)&&!1!==t.enabled?navigator.serviceWorker:void 0)}let Ak=(()=>{class t{static register(e,n={}){return{ngModule:t,providers:[{provide:Pk,useValue:e},{provide:Sk,useValue:n},{provide:kk,useFactory:Ik,deps:[Sk,$c]},{provide:Mc,useFactory:xk,deps:[io,Pk,Sk,$c],multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t}),t.\u0275inj=mt({providers:[jk,Ck]}),t})(),zk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Qt({type:t,bootstrap:[_k]}),t.\u0275inj=mt({providers:[],imports:[[Bd,xh,Fp,$p,tk,Yy,Ak.register("ngsw-worker.js",{enabled:!0})]]}),t})();(function(){if(gu)throw new Error("Cannot enable prod mode after platform setup.");mu=!1})(),$d().bootstrapModule(zk).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/app_public/build/ngsw.json b/app_public/build/ngsw.json index 6ccd41d..f9afcd8 100644 --- a/app_public/build/ngsw.json +++ b/app_public/build/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1619179177055, + "timestamp": 1622284841060, "index": "/index.html", "assetGroups": [ { @@ -13,7 +13,7 @@ "urls": [ "/favicon.ico", "/index.html", - "/main.a65e3802f5f8c574907e.js", + "/main.fff48111f6a5eeb47220.js", "/manifest.webmanifest", "/polyfills.48c2cf7043c03bf6ac83.js", "/runtime.7b63b9fd40098a2e8207.js", @@ -139,8 +139,8 @@ "/assets/public/webfonts/fa-solid-900.woff": "3b86a0ce15d8d534b65e98560e321a933d310688", "/assets/public/webfonts/fa-solid-900.woff2": "9b592048b9062b00f0b2dd782d70a95b7dc69b83", "/favicon.ico": "22f6a4a3bcaafafb0254e0f2fa4ceb89e505e8b2", - "/index.html": "7867487ea2782e419c667a587af76727dbdcbeab", - "/main.a65e3802f5f8c574907e.js": "6df35b9a2bd2c61935b900b513c883c96048e90b", + "/index.html": "38212a5144b99018ca406c261e415f3fc21e636c", + "/main.fff48111f6a5eeb47220.js": "70b0a6ba22ca02bd254c0e112957f8b2c8edb171", "/manifest.webmanifest": "fc5e93aeedf24480fda7d301467626b930dca61a", "/polyfills.48c2cf7043c03bf6ac83.js": "2116a5df20eec4ad4ed41ec4b01aa93e3af1eda4", "/runtime.7b63b9fd40098a2e8207.js": "a9aafcf49f49145093fc831efd9b8e2f6c71bb9c", diff --git a/app_public/src/app/skupno/komponente/predmet/predmet.component.html b/app_public/src/app/skupno/komponente/predmet/predmet.component.html index 1e1a33c..9105a25 100644 --- a/app_public/src/app/skupno/komponente/predmet/predmet.component.html +++ b/app_public/src/app/skupno/komponente/predmet/predmet.component.html @@ -15,26 +15,13 @@

{{predmet.opis}}

Profesor | {{profesor.ime_priimek}} - Asistent | {{asistent.ime_priimek}} - -
Letnik | {{predmet.letnik | formatirajLetnik}}
- -
Semester | {{predmet.semester | formatirajSemester}}
- -
Tip | {{predmet.vrstaIzbirnega | formatirajTipIzbirnega}}
- -
Tip | Obvezni predmet
-
Tip | Modulski predmet
-
- -
Modul | {{modul.ime}}
-
+ Asistent | {{asistent.ime_priimek}} + -