Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/multiphp-manager-ng7/vendor-89d5c698.js
"use strict";(self.webpackChunkmultiphp_manager_ng7=self.webpackChunkmultiphp_manager_ng7||[]).push([[538],{4412:(Q,D,s)=>{s.d(D,{t:()=>_});var e=s(1413);class _ extends e.B{constructor(E){super(),this._value=E}get value(){return this.getValue()}_subscribe(E){const m=super._subscribe(E);return!m.closed&&E.next(this._value),m}getValue(){const{hasError:E,thrownError:m,_value:S}=this;if(E)throw m;return this._throwIfClosed(),S}next(E){super.next(this._value=E)}}},1985:(Q,D,s)=>{s.d(D,{c:()=>O});var e=s(7707),_=s(8359),b=s(3494),E=s(1203),m=s(1026),S=s(8071),A=s(9786);let O=(()=>{class f{constructor(x){x&&(this._subscribe=x)}lift(x){const d=new f;return d.source=this,d.operator=x,d}subscribe(x,d,F){const N=function T(f){return f&&f instanceof e.vU||function h(f){return f&&(0,S.T)(f.next)&&(0,S.T)(f.error)&&(0,S.T)(f.complete)}(f)&&(0,_.Uv)(f)}(x)?x:new e.Ms(x,d,F);return(0,A.Y)(()=>{const{operator:J,source:te}=this;N.add(J?J.call(N,te):te?this._subscribe(N):this._trySubscribe(N))}),N}_trySubscribe(x){try{return this._subscribe(x)}catch(d){x.error(d)}}forEach(x,d){return new(d=w(d))((F,N)=>{const J=new e.Ms({next:te=>{try{x(te)}catch(De){N(De),J.unsubscribe()}},error:N,complete:F});this.subscribe(J)})}_subscribe(x){var d;return null===(d=this.source)||void 0===d?void 0:d.subscribe(x)}[b.s](){return this}pipe(...x){return(0,E.m)(x)(this)}toPromise(x){return new(x=w(x))((d,F)=>{let N;this.subscribe(J=>N=J,J=>F(J),()=>d(N))})}}return f.create=R=>new f(R),f})();function w(f){var R;return null!==(R=f??m.$.Promise)&&void 0!==R?R:Promise}},1413:(Q,D,s)=>{s.d(D,{B:()=>A});var e=s(1985),_=s(8359);const E=(0,s(1853).L)(w=>function(){w(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var m=s(7908),S=s(9786);let A=(()=>{class w extends e.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(T){const f=new O(this,this);return f.operator=T,f}_throwIfClosed(){if(this.closed)throw new E}next(T){(0,S.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const f of this.currentObservers)f.next(T)}})}error(T){(0,S.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=T;const{observers:f}=this;for(;f.length;)f.shift().error(T)}})}complete(){(0,S.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:T}=this;for(;T.length;)T.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var T;return(null===(T=this.observers)||void 0===T?void 0:T.length)>0}_trySubscribe(T){return this._throwIfClosed(),super._trySubscribe(T)}_subscribe(T){return this._throwIfClosed(),this._checkFinalizedStatuses(T),this._innerSubscribe(T)}_innerSubscribe(T){const{hasError:f,isStopped:R,observers:x}=this;return f||R?_.Kn:(this.currentObservers=null,x.push(T),new _.yU(()=>{this.currentObservers=null,(0,m.o)(x,T)}))}_checkFinalizedStatuses(T){const{hasError:f,thrownError:R,isStopped:x}=this;f?T.error(R):x&&T.complete()}asObservable(){const T=new e.c;return T.source=this,T}}return w.create=(h,T)=>new O(h,T),w})();class O extends A{constructor(h,T){super(),this.destination=h,this.source=T}next(h){var T,f;null===(f=null===(T=this.destination)||void 0===T?void 0:T.next)||void 0===f||f.call(T,h)}error(h){var T,f;null===(f=null===(T=this.destination)||void 0===T?void 0:T.error)||void 0===f||f.call(T,h)}complete(){var h,T;null===(T=null===(h=this.destination)||void 0===h?void 0:h.complete)||void 0===T||T.call(h)}_subscribe(h){var T,f;return null!==(f=null===(T=this.source)||void 0===T?void 0:T.subscribe(h))&&void 0!==f?f:_.Kn}}},7707:(Q,D,s)=>{s.d(D,{Ms:()=>F,vU:()=>f});var e=s(8071),_=s(8359),b=s(1026),E=s(5334),m=s(5343);const S=w("C",void 0,void 0);function w(ne,Z,re){return{kind:ne,value:Z,error:re}}var h=s(9270),T=s(9786);class f extends _.yU{constructor(Z){super(),this.isStopped=!1,Z?(this.destination=Z,(0,_.Uv)(Z)&&Z.add(this)):this.destination=De}static create(Z,re,z){return new F(Z,re,z)}next(Z){this.isStopped?te(function O(ne){return w("N",ne,void 0)}(Z),this):this._next(Z)}error(Z){this.isStopped?te(function A(ne){return w("E",void 0,ne)}(Z),this):(this.isStopped=!0,this._error(Z))}complete(){this.isStopped?te(S,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Z){this.destination.next(Z)}_error(Z){try{this.destination.error(Z)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const R=Function.prototype.bind;function x(ne,Z){return R.call(ne,Z)}class d{constructor(Z){this.partialObserver=Z}next(Z){const{partialObserver:re}=this;if(re.next)try{re.next(Z)}catch(z){N(z)}}error(Z){const{partialObserver:re}=this;if(re.error)try{re.error(Z)}catch(z){N(z)}else N(Z)}complete(){const{partialObserver:Z}=this;if(Z.complete)try{Z.complete()}catch(re){N(re)}}}class F extends f{constructor(Z,re,z){let ie;if(super(),(0,e.T)(Z)||!Z)ie={next:Z??void 0,error:re??void 0,complete:z??void 0};else{let g;this&&b.$.useDeprecatedNextContext?(g=Object.create(Z),g.unsubscribe=()=>this.unsubscribe(),ie={next:Z.next&&x(Z.next,g),error:Z.error&&x(Z.error,g),complete:Z.complete&&x(Z.complete,g)}):ie=Z}this.destination=new d(ie)}}function N(ne){b.$.useDeprecatedSynchronousErrorHandling?(0,T.l)(ne):(0,E.m)(ne)}function te(ne,Z){const{onStoppedNotification:re}=b.$;re&&h.f.setTimeout(()=>re(ne,Z))}const De={closed:!0,next:m.l,error:function J(ne){throw ne},complete:m.l}},8359:(Q,D,s)=>{s.d(D,{Kn:()=>S,yU:()=>m,Uv:()=>A});var e=s(8071);const b=(0,s(1853).L)(w=>function(T){w(this),this.message=T?`${T.length} errors occurred during unsubscription:\n${T.map((f,R)=>`${R+1}) ${f.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=T});var E=s(7908);class m{constructor(h){this.initialTeardown=h,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let h;if(!this.closed){this.closed=!0;const{_parentage:T}=this;if(T)if(this._parentage=null,Array.isArray(T))for(const x of T)x.remove(this);else T.remove(this);const{initialTeardown:f}=this;if((0,e.T)(f))try{f()}catch(x){h=x instanceof b?x.errors:[x]}const{_finalizers:R}=this;if(R){this._finalizers=null;for(const x of R)try{O(x)}catch(d){h=h??[],d instanceof b?h=[...h,...d.errors]:h.push(d)}}if(h)throw new b(h)}}add(h){var T;if(h&&h!==this)if(this.closed)O(h);else{if(h instanceof m){if(h.closed||h._hasParent(this))return;h._addParent(this)}(this._finalizers=null!==(T=this._finalizers)&&void 0!==T?T:[]).push(h)}}_hasParent(h){const{_parentage:T}=this;return T===h||Array.isArray(T)&&T.includes(h)}_addParent(h){const{_parentage:T}=this;this._parentage=Array.isArray(T)?(T.push(h),T):T?[T,h]:h}_removeParent(h){const{_parentage:T}=this;T===h?this._parentage=null:Array.isArray(T)&&(0,E.o)(T,h)}remove(h){const{_finalizers:T}=this;T&&(0,E.o)(T,h),h instanceof m&&h._removeParent(this)}}m.EMPTY=(()=>{const w=new m;return w.closed=!0,w})();const S=m.EMPTY;function A(w){return w instanceof m||w&&"closed"in w&&(0,e.T)(w.remove)&&(0,e.T)(w.add)&&(0,e.T)(w.unsubscribe)}function O(w){(0,e.T)(w)?w():w.unsubscribe()}},1026:(Q,D,s)=>{s.d(D,{$:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(Q,D,s)=>{s.d(D,{G:()=>S});var e=s(1985),_=s(8359),b=s(9898),E=s(4360),m=s(9974);class S extends e.c{constructor(O,w){super(),this.source=O,this.subjectFactory=w,this._subject=null,this._refCount=0,this._connection=null,(0,m.S)(O)&&(this.lift=O.lift)}_subscribe(O){return this.getSubject().subscribe(O)}getSubject(){const O=this._subject;return(!O||O.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:O}=this;this._subject=this._connection=null,O?.unsubscribe()}connect(){let O=this._connection;if(!O){O=this._connection=new _.yU;const w=this.getSubject();O.add(this.source.subscribe((0,E._)(w,void 0,()=>{this._teardown(),w.complete()},h=>{this._teardown(),w.error(h)},()=>this._teardown()))),O.closed&&(this._connection=null,O=_.yU.EMPTY)}return O}refCount(){return(0,b.B)()(this)}}},4572:(Q,D,s)=>{s.d(D,{z:()=>h});var e=s(1985),_=s(3073),b=s(6648),E=s(3669),m=s(6450),S=s(9326),A=s(8496),O=s(4360),w=s(5225);function h(...R){const x=(0,S.lI)(R),d=(0,S.ms)(R),{args:F,keys:N}=(0,_.D)(R);if(0===F.length)return(0,b.H)([],x);const J=new e.c(function T(R,x,d=E.D){return F=>{f(x,()=>{const{length:N}=R,J=new Array(N);let te=N,De=N;for(let ne=0;ne<N;ne++)f(x,()=>{const Z=(0,b.H)(R[ne],x);let re=!1;Z.subscribe((0,O._)(F,z=>{J[ne]=z,re||(re=!0,De--),De||F.next(d(J.slice()))},()=>{--te||F.complete()}))},F)},F)}}(F,x,N?te=>(0,A.e)(N,te):E.D));return d?J.pipe((0,m.I)(d)):J}function f(R,x,d){R?(0,w.N)(d,R,x):x()}},8793:(Q,D,s)=>{s.d(D,{x:()=>m});var e=s(6365),b=s(9326),E=s(6648);function m(...S){return function _(){return(0,e.U)(1)}()((0,E.H)(S,(0,b.lI)(S)))}},9030:(Q,D,s)=>{s.d(D,{v:()=>b});var e=s(1985),_=s(8750);function b(E){return new e.c(m=>{(0,_.Tg)(E()).subscribe(m)})}},983:(Q,D,s)=>{s.d(D,{w:()=>_});const _=new(s(1985).c)(m=>m.complete())},7468:(Q,D,s)=>{s.d(D,{p:()=>O});var e=s(1985),_=s(3073),b=s(8750),E=s(9326),m=s(4360),S=s(6450),A=s(8496);function O(...w){const h=(0,E.ms)(w),{args:T,keys:f}=(0,_.D)(w),R=new e.c(x=>{const{length:d}=T;if(!d)return void x.complete();const F=new Array(d);let N=d,J=d;for(let te=0;te<d;te++){let De=!1;(0,b.Tg)(T[te]).subscribe((0,m._)(x,ne=>{De||(De=!0,J--),F[te]=ne},()=>N--,void 0,()=>{(!N||!De)&&(J||x.next(f?(0,A.e)(f,F):F),x.complete())}))}});return h?R.pipe((0,S.I)(h)):R}},6648:(Q,D,s)=>{s.d(D,{H:()=>z});var e=s(8750),_=s(5225),b=s(9974),E=s(4360);function m(ie,g=0){return(0,b.N)((W,p)=>{W.subscribe((0,E._)(p,L=>(0,_.N)(p,ie,()=>p.next(L),g),()=>(0,_.N)(p,ie,()=>p.complete(),g),L=>(0,_.N)(p,ie,()=>p.error(L),g)))})}function S(ie,g=0){return(0,b.N)((W,p)=>{p.add(ie.schedule(()=>W.subscribe(p),g))})}var w=s(1985),T=s(4761),f=s(8071);function x(ie,g){if(!ie)throw new Error("Iterable cannot be null");return new w.c(W=>{(0,_.N)(W,g,()=>{const p=ie[Symbol.asyncIterator]();(0,_.N)(W,g,()=>{p.next().then(L=>{L.done?W.complete():W.next(L.value)})},0,!0)})})}var d=s(5055),F=s(9858),N=s(7441),J=s(5397),te=s(7953),De=s(591),ne=s(5196);function z(ie,g){return g?function re(ie,g){if(null!=ie){if((0,d.l)(ie))return function A(ie,g){return(0,e.Tg)(ie).pipe(S(g),m(g))}(ie,g);if((0,N.X)(ie))return function h(ie,g){return new w.c(W=>{let p=0;return g.schedule(function(){p===ie.length?W.complete():(W.next(ie[p++]),W.closed||this.schedule())})})}(ie,g);if((0,F.y)(ie))return function O(ie,g){return(0,e.Tg)(ie).pipe(S(g),m(g))}(ie,g);if((0,te.T)(ie))return x(ie,g);if((0,J.x)(ie))return function R(ie,g){return new w.c(W=>{let p;return(0,_.N)(W,g,()=>{p=ie[T.l](),(0,_.N)(W,g,()=>{let L,U;try{({value:L,done:U}=p.next())}catch(K){return void W.error(K)}U?W.complete():W.next(L)},0,!0)}),()=>(0,f.T)(p?.return)&&p.return()})}(ie,g);if((0,ne.U)(ie))return function Z(ie,g){return x((0,ne.C)(ie),g)}(ie,g)}throw(0,De.L)(ie)}(ie,g):(0,e.Tg)(ie)}},3726:(Q,D,s)=>{s.d(D,{R:()=>h});var e=s(8750),_=s(1985),b=s(1397),E=s(7441),m=s(8071),S=s(6450);const A=["addListener","removeListener"],O=["addEventListener","removeEventListener"],w=["on","off"];function h(d,F,N,J){if((0,m.T)(N)&&(J=N,N=void 0),J)return h(d,F,N).pipe((0,S.I)(J));const[te,De]=function x(d){return(0,m.T)(d.addEventListener)&&(0,m.T)(d.removeEventListener)}(d)?O.map(ne=>Z=>d[ne](F,Z,N)):function f(d){return(0,m.T)(d.addListener)&&(0,m.T)(d.removeListener)}(d)?A.map(T(d,F)):function R(d){return(0,m.T)(d.on)&&(0,m.T)(d.off)}(d)?w.map(T(d,F)):[];if(!te&&(0,E.X)(d))return(0,b.Z)(ne=>h(ne,F,N))((0,e.Tg)(d));if(!te)throw new TypeError("Invalid event target");return new _.c(ne=>{const Z=(...re)=>ne.next(1<re.length?re:re[0]);return te(Z),()=>De(Z)})}function T(d,F){return N=>J=>d[N](F,J)}},8750:(Q,D,s)=>{s.d(D,{Tg:()=>R});var e=s(5215),_=s(7441),b=s(9858),E=s(1985),m=s(5055),S=s(7953),A=s(591),O=s(5397),w=s(5196),h=s(8071),T=s(5334),f=s(3494);function R(ne){if(ne instanceof E.c)return ne;if(null!=ne){if((0,m.l)(ne))return function x(ne){return new E.c(Z=>{const re=ne[f.s]();if((0,h.T)(re.subscribe))return re.subscribe(Z);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ne);if((0,_.X)(ne))return function d(ne){return new E.c(Z=>{for(let re=0;re<ne.length&&!Z.closed;re++)Z.next(ne[re]);Z.complete()})}(ne);if((0,b.y)(ne))return function F(ne){return new E.c(Z=>{ne.then(re=>{Z.closed||(Z.next(re),Z.complete())},re=>Z.error(re)).then(null,T.m)})}(ne);if((0,S.T)(ne))return J(ne);if((0,O.x)(ne))return function N(ne){return new E.c(Z=>{for(const re of ne)if(Z.next(re),Z.closed)return;Z.complete()})}(ne);if((0,w.U)(ne))return function te(ne){return J((0,w.C)(ne))}(ne)}throw(0,A.L)(ne)}function J(ne){return new E.c(Z=>{(function De(ne,Z){var re,z,ie,g;return(0,e.sH)(this,void 0,void 0,function*(){try{for(re=(0,e.xN)(ne);!(z=yield re.next()).done;)if(Z.next(z.value),Z.closed)return}catch(W){ie={error:W}}finally{try{z&&!z.done&&(g=re.return)&&(yield g.call(re))}finally{if(ie)throw ie.error}}Z.complete()})})(ne,Z).catch(re=>Z.error(re))})}},605:(Q,D,s)=>{s.d(D,{Y:()=>b});var e=s(3236),_=s(1584);function b(E=0,m=e.E){return E<0&&(E=0),(0,_.O)(E,E,m)}},7786:(Q,D,s)=>{s.d(D,{h:()=>S});var e=s(6365),_=s(8750),b=s(983),E=s(9326),m=s(6648);function S(...A){const O=(0,E.lI)(A),w=(0,E.R0)(A,1/0),h=A;return h.length?1===h.length?(0,_.Tg)(h[0]):(0,e.U)(w)((0,m.H)(h,O)):b.w}},7673:(Q,D,s)=>{s.d(D,{of:()=>b});var e=s(9326),_=s(6648);function b(...E){const m=(0,e.lI)(E);return(0,_.H)(E,m)}},8810:(Q,D,s)=>{s.d(D,{$:()=>b});var e=s(1985),_=s(8071);function b(E,m){const S=(0,_.T)(E)?E:()=>E,A=O=>O.error(S());return new e.c(m?O=>m.schedule(A,0,O):A)}},1584:(Q,D,s)=>{s.d(D,{O:()=>m});var e=s(1985),_=s(3236),b=s(9470);function m(S=0,A,O=_.b){let w=-1;return null!=A&&((0,b.m)(A)?O=A:w=A),new e.c(h=>{let T=function E(S){return S instanceof Date&&!isNaN(S)}(S)?+S-O.now():S;T<0&&(T=0);let f=0;return O.schedule(function(){h.closed||(h.next(f++),0<=w?this.schedule(void 0,w):h.complete())},T)})}},4360:(Q,D,s)=>{s.d(D,{_:()=>_});var e=s(7707);function _(E,m,S,A,O){return new b(E,m,S,A,O)}class b extends e.vU{constructor(m,S,A,O,w,h){super(m),this.onFinalize=w,this.shouldUnsubscribe=h,this._next=S?function(T){try{S(T)}catch(f){m.error(f)}}:super._next,this._error=O?function(T){try{O(T)}catch(f){m.error(f)}finally{this.unsubscribe()}}:super._error,this._complete=A?function(){try{A()}catch(T){m.error(T)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var m;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:S}=this;super.unsubscribe(),!S&&(null===(m=this.onFinalize)||void 0===m||m.call(this))}}}},9437:(Q,D,s)=>{s.d(D,{W:()=>E});var e=s(8750),_=s(4360),b=s(9974);function E(m){return(0,b.N)((S,A)=>{let h,O=null,w=!1;O=S.subscribe((0,_._)(A,void 0,void 0,T=>{h=(0,e.Tg)(m(T,E(m)(S))),O?(O.unsubscribe(),O=null,h.subscribe(A)):w=!0})),w&&(O.unsubscribe(),O=null,h.subscribe(A))})}},274:(Q,D,s)=>{s.d(D,{H:()=>b});var e=s(1397),_=s(8071);function b(E,m){return(0,_.T)(m)?(0,e.Z)(E,m,1):(0,e.Z)(E,1)}},152:(Q,D,s)=>{s.d(D,{B:()=>E});var e=s(3236),_=s(9974),b=s(4360);function E(m,S=e.E){return(0,_.N)((A,O)=>{let w=null,h=null,T=null;const f=()=>{if(w){w.unsubscribe(),w=null;const x=h;h=null,O.next(x)}};function R(){const x=T+m,d=S.now();if(d<x)return w=this.schedule(void 0,x-d),void O.add(w);f()}A.subscribe((0,b._)(O,x=>{h=x,T=S.now(),w||(w=S.schedule(R,m),O.add(w))},()=>{f(),O.complete()},void 0,()=>{h=w=null}))})}},9901:(Q,D,s)=>{s.d(D,{U:()=>b});var e=s(9974),_=s(4360);function b(E){return(0,e.N)((m,S)=>{let A=!1;m.subscribe((0,_._)(S,O=>{A=!0,S.next(O)},()=>{A||S.next(E),S.complete()}))})}},3294:(Q,D,s)=>{s.d(D,{F:()=>E});var e=s(3669),_=s(9974),b=s(4360);function E(S,A=e.D){return S=S??m,(0,_.N)((O,w)=>{let h,T=!0;O.subscribe((0,b._)(w,f=>{const R=A(f);(T||!S(h,R))&&(T=!1,h=R,w.next(f))}))})}function m(S,A){return S===A}},5964:(Q,D,s)=>{s.d(D,{p:()=>b});var e=s(9974),_=s(4360);function b(E,m){return(0,e.N)((S,A)=>{let O=0;S.subscribe((0,_._)(A,w=>E.call(m,w,O++)&&A.next(w)))})}},980:(Q,D,s)=>{s.d(D,{j:()=>_});var e=s(9974);function _(b){return(0,e.N)((E,m)=>{try{E.subscribe(m)}finally{m.add(b)}})}},1594:(Q,D,s)=>{s.d(D,{$:()=>A});var e=s(9350),_=s(5964),b=s(6697),E=s(9901),m=s(3774),S=s(3669);function A(O,w){const h=arguments.length>=2;return T=>T.pipe(O?(0,_.p)((f,R)=>O(f,R,T)):S.D,(0,b.s)(1),h?(0,E.U)(w):(0,m.v)(()=>new e.G))}},7018:(Q,D,s)=>{s.d(D,{H:()=>A});var e=s(9350),_=s(5964),b=s(5109),E=s(3774),m=s(9901),S=s(3669);function A(O,w){const h=arguments.length>=2;return T=>T.pipe(O?(0,_.p)((f,R)=>O(f,R,T)):S.D,(0,b.o)(1),h?(0,m.U)(w):(0,E.v)(()=>new e.G))}},6354:(Q,D,s)=>{s.d(D,{T:()=>b});var e=s(9974),_=s(4360);function b(E,m){return(0,e.N)((S,A)=>{let O=0;S.subscribe((0,_._)(A,w=>{A.next(E.call(m,w,O++))}))})}},3703:(Q,D,s)=>{s.d(D,{u:()=>_});var e=s(6354);function _(b){return(0,e.T)(()=>b)}},6365:(Q,D,s)=>{s.d(D,{U:()=>b});var e=s(1397),_=s(3669);function b(E=1/0){return(0,e.Z)(_.D,E)}},1397:(Q,D,s)=>{s.d(D,{Z:()=>O});var e=s(6354),_=s(8750),b=s(9974),E=s(5225),m=s(4360),A=s(8071);function O(w,h,T=1/0){return(0,A.T)(h)?O((f,R)=>(0,e.T)((x,d)=>h(f,x,R,d))((0,_.Tg)(w(f,R))),T):("number"==typeof h&&(T=h),(0,b.N)((f,R)=>function S(w,h,T,f,R,x,d,F){const N=[];let J=0,te=0,De=!1;const ne=()=>{De&&!N.length&&!J&&h.complete()},Z=z=>J<f?re(z):N.push(z),re=z=>{x&&h.next(z),J++;let ie=!1;(0,_.Tg)(T(z,te++)).subscribe((0,m._)(h,g=>{R?.(g),x?Z(g):h.next(g)},()=>{ie=!0},void 0,()=>{if(ie)try{for(J--;N.length&&J<f;){const g=N.shift();d?(0,E.N)(h,d,()=>re(g)):re(g)}ne()}catch(g){h.error(g)}}))};return w.subscribe((0,m._)(h,Z,()=>{De=!0,ne()})),()=>{F?.()}}(f,R,w,T)))}},9898:(Q,D,s)=>{s.d(D,{B:()=>b});var e=s(9974),_=s(4360);function b(){return(0,e.N)((E,m)=>{let S=null;E._refCount++;const A=(0,_._)(m,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(S=null);const O=E._connection,w=S;S=null,O&&(!w||O===w)&&O.unsubscribe(),m.unsubscribe()});E.subscribe(A),A.closed||(S=E.connect())})}},2816:(Q,D,s)=>{s.d(D,{S:()=>E});var e=s(9974),_=s(4360);function E(m,S){return(0,e.N)(function b(m,S,A,O,w){return(h,T)=>{let f=A,R=S,x=0;h.subscribe((0,_._)(T,d=>{const F=x++;R=f?m(R,d,F):(f=!0,d),O&&T.next(R)},w&&(()=>{f&&T.next(R),T.complete()})))}}(m,S,arguments.length>=2,!0))}},9172:(Q,D,s)=>{s.d(D,{Z:()=>E});var e=s(8793),_=s(9326),b=s(9974);function E(...m){const S=(0,_.lI)(m);return(0,b.N)((A,O)=>{(S?(0,e.x)(m,A,S):(0,e.x)(m,A)).subscribe(O)})}},5558:(Q,D,s)=>{s.d(D,{n:()=>E});var e=s(8750),_=s(9974),b=s(4360);function E(m,S){return(0,_.N)((A,O)=>{let w=null,h=0,T=!1;const f=()=>T&&!w&&O.complete();A.subscribe((0,b._)(O,R=>{w?.unsubscribe();let x=0;const d=h++;(0,e.Tg)(m(R,d)).subscribe(w=(0,b._)(O,F=>O.next(S?S(R,F,d,x++):F),()=>{w=null,f()}))},()=>{T=!0,f()}))})}},6697:(Q,D,s)=>{s.d(D,{s:()=>E});var e=s(983),_=s(9974),b=s(4360);function E(m){return m<=0?()=>e.w:(0,_.N)((S,A)=>{let O=0;S.subscribe((0,b._)(A,w=>{++O<=m&&(A.next(w),m<=O&&A.complete())}))})}},5109:(Q,D,s)=>{s.d(D,{o:()=>E});var e=s(983),_=s(9974),b=s(4360);function E(m){return m<=0?()=>e.w:(0,_.N)((S,A)=>{let O=[];S.subscribe((0,b._)(A,w=>{O.push(w),m<O.length&&O.shift()},()=>{for(const w of O)A.next(w);A.complete()},void 0,()=>{O=null}))})}},6977:(Q,D,s)=>{s.d(D,{Q:()=>m});var e=s(9974),_=s(4360),b=s(8750),E=s(5343);function m(S){return(0,e.N)((A,O)=>{(0,b.Tg)(S).subscribe((0,_._)(O,()=>O.complete(),E.l)),!O.closed&&A.subscribe(O)})}},8141:(Q,D,s)=>{s.d(D,{M:()=>m});var e=s(8071),_=s(9974),b=s(4360),E=s(3669);function m(S,A,O){const w=(0,e.T)(S)||A||O?{next:S,error:A,complete:O}:S;return w?(0,_.N)((h,T)=>{var f;null===(f=w.subscribe)||void 0===f||f.call(w);let R=!0;h.subscribe((0,b._)(T,x=>{var d;null===(d=w.next)||void 0===d||d.call(w,x),T.next(x)},()=>{var x;R=!1,null===(x=w.complete)||void 0===x||x.call(w),T.complete()},x=>{var d;R=!1,null===(d=w.error)||void 0===d||d.call(w,x),T.error(x)},()=>{var x,d;R&&(null===(x=w.unsubscribe)||void 0===x||x.call(w)),null===(d=w.finalize)||void 0===d||d.call(w)}))}):E.D}},3774:(Q,D,s)=>{s.d(D,{v:()=>E});var e=s(9350),_=s(9974),b=s(4360);function E(S=m){return(0,_.N)((A,O)=>{let w=!1;A.subscribe((0,b._)(O,h=>{w=!0,O.next(h)},()=>w?O.complete():O.error(S())))})}function m(){return new e.G}},6780:(Q,D,s)=>{s.d(D,{R:()=>m});var e=s(8359);class _ extends e.yU{constructor(A,O){super()}schedule(A,O=0){return this}}const b={setInterval(S,A,...O){const{delegate:w}=b;return w?.setInterval?w.setInterval(S,A,...O):setInterval(S,A,...O)},clearInterval(S){const{delegate:A}=b;return(A?.clearInterval||clearInterval)(S)},delegate:void 0};var E=s(7908);class m extends _{constructor(A,O){super(A,O),this.scheduler=A,this.work=O,this.pending=!1}schedule(A,O=0){var w;if(this.closed)return this;this.state=A;const h=this.id,T=this.scheduler;return null!=h&&(this.id=this.recycleAsyncId(T,h,O)),this.pending=!0,this.delay=O,this.id=null!==(w=this.id)&&void 0!==w?w:this.requestAsyncId(T,this.id,O),this}requestAsyncId(A,O,w=0){return b.setInterval(A.flush.bind(A,this),w)}recycleAsyncId(A,O,w=0){if(null!=w&&this.delay===w&&!1===this.pending)return O;null!=O&&b.clearInterval(O)}execute(A,O){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const w=this._execute(A,O);if(w)return w;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(A,O){let h,w=!1;try{this.work(A)}catch(T){w=!0,h=T||new Error("Scheduled action threw falsy error")}if(w)return this.unsubscribe(),h}unsubscribe(){if(!this.closed){const{id:A,scheduler:O}=this,{actions:w}=O;this.work=this.state=this.scheduler=null,this.pending=!1,(0,E.o)(w,this),null!=A&&(this.id=this.recycleAsyncId(O,A,null)),this.delay=null,super.unsubscribe()}}}},3604:(Q,D,s)=>{s.d(D,{q:()=>b});const e={now:()=>(e.delegate||Date).now(),delegate:void 0};class _{constructor(m,S=_.now){this.schedulerActionCtor=m,this.now=S}schedule(m,S=0,A){return new this.schedulerActionCtor(this,m).schedule(A,S)}}_.now=e.now;class b extends _{constructor(m,S=_.now){super(m,S),this.actions=[],this._active=!1}flush(m){const{actions:S}=this;if(this._active)return void S.push(m);let A;this._active=!0;do{if(A=m.execute(m.state,m.delay))break}while(m=S.shift());if(this._active=!1,A){for(;m=S.shift();)m.unsubscribe();throw A}}}},536:(Q,D,s)=>{s.d(D,{X:()=>A});var e=s(6780),_=s(8359);const b={schedule(w){let h=requestAnimationFrame,T=cancelAnimationFrame;const{delegate:f}=b;f&&(h=f.requestAnimationFrame,T=f.cancelAnimationFrame);const R=h(x=>{T=void 0,w(x)});return new _.yU(()=>T?.(R))},requestAnimationFrame(...w){const{delegate:h}=b;return(h?.requestAnimationFrame||requestAnimationFrame)(...w)},cancelAnimationFrame(...w){const{delegate:h}=b;return(h?.cancelAnimationFrame||cancelAnimationFrame)(...w)},delegate:void 0};var m=s(3604);const A=new class S extends m.q{flush(h){this._active=!0;const T=this._scheduled;this._scheduled=void 0;const{actions:f}=this;let R;h=h||f.shift();do{if(R=h.execute(h.state,h.delay))break}while((h=f[0])&&h.id===T&&f.shift());if(this._active=!1,R){for(;(h=f[0])&&h.id===T&&f.shift();)h.unsubscribe();throw R}}}(class E extends e.R{constructor(h,T){super(h,T),this.scheduler=h,this.work=T}requestAsyncId(h,T,f=0){return null!==f&&f>0?super.requestAsyncId(h,T,f):(h.actions.push(this),h._scheduled||(h._scheduled=b.requestAnimationFrame(()=>h.flush(void 0))))}recycleAsyncId(h,T,f=0){var R;if(null!=f?f>0:this.delay>0)return super.recycleAsyncId(h,T,f);const{actions:x}=h;null!=T&&(null===(R=x[x.length-1])||void 0===R?void 0:R.id)!==T&&(b.cancelAnimationFrame(T),h._scheduled=void 0)}})},3236:(Q,D,s)=>{s.d(D,{E:()=>b,b:()=>E});var e=s(6780);const b=new(s(3604).q)(e.R),E=b},9270:(Q,D,s)=>{s.d(D,{f:()=>e});const e={setTimeout(_,b,...E){const{delegate:m}=e;return m?.setTimeout?m.setTimeout(_,b,...E):setTimeout(_,b,...E)},clearTimeout(_){const{delegate:b}=e;return(b?.clearTimeout||clearTimeout)(_)},delegate:void 0}},4761:(Q,D,s)=>{s.d(D,{l:()=>_});const _=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Q,D,s)=>{s.d(D,{s:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Q,D,s)=>{s.d(D,{G:()=>_});const _=(0,s(1853).L)(b=>function(){b(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Q,D,s)=>{s.d(D,{R0:()=>S,lI:()=>m,ms:()=>E});var e=s(8071),_=s(9470);function b(A){return A[A.length-1]}function E(A){return(0,e.T)(b(A))?A.pop():void 0}function m(A){return(0,_.m)(b(A))?A.pop():void 0}function S(A,O){return"number"==typeof b(A)?A.pop():O}},3073:(Q,D,s)=>{s.d(D,{D:()=>m});const{isArray:e}=Array,{getPrototypeOf:_,prototype:b,keys:E}=Object;function m(A){if(1===A.length){const O=A[0];if(e(O))return{args:O,keys:null};if(function S(A){return A&&"object"==typeof A&&_(A)===b}(O)){const w=E(O);return{args:w.map(h=>O[h]),keys:w}}}return{args:A,keys:null}}},7908:(Q,D,s)=>{function e(_,b){if(_){const E=_.indexOf(b);0<=E&&_.splice(E,1)}}s.d(D,{o:()=>e})},1853:(Q,D,s)=>{function e(_){const E=_(m=>{Error.call(m),m.stack=(new Error).stack});return E.prototype=Object.create(Error.prototype),E.prototype.constructor=E,E}s.d(D,{L:()=>e})},8496:(Q,D,s)=>{function e(_,b){return _.reduce((E,m,S)=>(E[m]=b[S],E),{})}s.d(D,{e:()=>e})},9786:(Q,D,s)=>{s.d(D,{Y:()=>b,l:()=>E});var e=s(1026);let _=null;function b(m){if(e.$.useDeprecatedSynchronousErrorHandling){const S=!_;if(S&&(_={errorThrown:!1,error:null}),m(),S){const{errorThrown:A,error:O}=_;if(_=null,A)throw O}}else m()}function E(m){e.$.useDeprecatedSynchronousErrorHandling&&_&&(_.errorThrown=!0,_.error=m)}},5225:(Q,D,s)=>{function e(_,b,E,m=0,S=!1){const A=b.schedule(function(){E(),S?_.add(this.schedule(null,m)):this.unsubscribe()},m);if(_.add(A),!S)return A}s.d(D,{N:()=>e})},3669:(Q,D,s)=>{function e(_){return _}s.d(D,{D:()=>e})},7441:(Q,D,s)=>{s.d(D,{X:()=>e});const e=_=>_&&"number"==typeof _.length&&"function"!=typeof _},7953:(Q,D,s)=>{s.d(D,{T:()=>_});var e=s(8071);function _(b){return Symbol.asyncIterator&&(0,e.T)(b?.[Symbol.asyncIterator])}},8071:(Q,D,s)=>{function e(_){return"function"==typeof _}s.d(D,{T:()=>e})},5055:(Q,D,s)=>{s.d(D,{l:()=>b});var e=s(3494),_=s(8071);function b(E){return(0,_.T)(E[e.s])}},5397:(Q,D,s)=>{s.d(D,{x:()=>b});var e=s(4761),_=s(8071);function b(E){return(0,_.T)(E?.[e.l])}},4402:(Q,D,s)=>{s.d(D,{A:()=>b});var e=s(1985),_=s(8071);function b(E){return!!E&&(E instanceof e.c||(0,_.T)(E.lift)&&(0,_.T)(E.subscribe))}},9858:(Q,D,s)=>{s.d(D,{y:()=>_});var e=s(8071);function _(b){return(0,e.T)(b?.then)}},5196:(Q,D,s)=>{s.d(D,{C:()=>b,U:()=>E});var e=s(5215),_=s(8071);function b(m){return(0,e.AQ)(this,arguments,function*(){const A=m.getReader();try{for(;;){const{value:O,done:w}=yield(0,e.N3)(A.read());if(w)return yield(0,e.N3)(void 0);yield yield(0,e.N3)(O)}}finally{A.releaseLock()}})}function E(m){return(0,_.T)(m?.getReader)}},9470:(Q,D,s)=>{s.d(D,{m:()=>_});var e=s(8071);function _(b){return b&&(0,e.T)(b.schedule)}},9974:(Q,D,s)=>{s.d(D,{N:()=>b,S:()=>_});var e=s(8071);function _(E){return(0,e.T)(E?.lift)}function b(E){return m=>{if(_(m))return m.lift(function(S){try{return E(S,this)}catch(A){this.error(A)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Q,D,s)=>{s.d(D,{I:()=>E});var e=s(6354);const{isArray:_}=Array;function E(m){return(0,e.T)(S=>function b(m,S){return _(S)?m(...S):m(S)}(m,S))}},5343:(Q,D,s)=>{function e(){}s.d(D,{l:()=>e})},1203:(Q,D,s)=>{s.d(D,{F:()=>_,m:()=>b});var e=s(3669);function _(...E){return b(E)}function b(E){return 0===E.length?e.D:1===E.length?E[0]:function(S){return E.reduce((A,O)=>O(A),S)}}},5334:(Q,D,s)=>{s.d(D,{m:()=>b});var e=s(1026),_=s(9270);function b(E){_.f.setTimeout(()=>{const{onUnhandledError:m}=e.$;if(!m)throw E;m(E)})}},591:(Q,D,s)=>{function e(_){return new TypeError(`You provided ${null!==_&&"object"==typeof _?"an invalid object":`'${_}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}s.d(D,{L:()=>e})},6935:()=>{const Q=globalThis;function D(v){return(Q.__Zone_symbol_prefix||"__zone_symbol__")+v}const _=Object.getOwnPropertyDescriptor,b=Object.defineProperty,E=Object.getPrototypeOf,m=Object.create,S=Array.prototype.slice,A="addEventListener",O="removeEventListener",w=D(A),h=D(O),T="true",f="false",R=D("");function x(v,P){return Zone.current.wrap(v,P)}function d(v,P,j,C,B){return Zone.current.scheduleMacroTask(v,P,j,C,B)}const F=D,N=typeof window<"u",J=N?window:void 0,te=N&&J||globalThis,De="removeAttribute";function ne(v,P){for(let j=v.length-1;j>=0;j--)"function"==typeof v[j]&&(v[j]=x(v[j],P+"_"+j));return v}function re(v){return!v||!1!==v.writable&&!("function"==typeof v.get&&typeof v.set>"u")}const z=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,ie=!("nw"in te)&&typeof te.process<"u"&&"[object process]"===te.process.toString(),g=!ie&&!z&&!(!N||!J.HTMLElement),W=typeof te.process<"u"&&"[object process]"===te.process.toString()&&!z&&!(!N||!J.HTMLElement),p={},L=F("enable_beforeunload"),U=function(v){if(!(v=v||te.event))return;let P=p[v.type];P||(P=p[v.type]=F("ON_PROPERTY"+v.type));const j=this||v.target||te,C=j[P];let B;return g&&j===J&&"error"===v.type?(B=C&&C.call(this,v.message,v.filename,v.lineno,v.colno,v.error),!0===B&&v.preventDefault()):(B=C&&C.apply(this,arguments),"beforeunload"===v.type&&te[L]&&"string"==typeof B?v.returnValue=B:null!=B&&!B&&v.preventDefault()),B};function K(v,P,j){let C=_(v,P);if(!C&&j&&_(j,P)&&(C={enumerable:!0,configurable:!0}),!C||!C.configurable)return;const B=F("on"+P+"patched");if(v.hasOwnProperty(B)&&v[B])return;delete C.writable,delete C.value;const q=C.get,ae=C.set,ue=P.slice(2);let fe=p[ue];fe||(fe=p[ue]=F("ON_PROPERTY"+ue)),C.set=function(ye){let ee=this;!ee&&v===te&&(ee=te),ee&&("function"==typeof ee[fe]&&ee.removeEventListener(ue,U),ae&&ae.call(ee,null),ee[fe]=ye,"function"==typeof ye&&ee.addEventListener(ue,U,!1))},C.get=function(){let ye=this;if(!ye&&v===te&&(ye=te),!ye)return null;const ee=ye[fe];if(ee)return ee;if(q){let me=q.call(this);if(me)return C.set.call(this,me),"function"==typeof ye[De]&&ye.removeAttribute(P),me}return null},b(v,P,C),v[B]=!0}function $(v,P,j){if(P)for(let C=0;C<P.length;C++)K(v,"on"+P[C],j);else{const C=[];for(const B in v)"on"==B.slice(0,2)&&C.push(B);for(let B=0;B<C.length;B++)K(v,C[B],j)}}const G=F("originalInstance");function Te(v){const P=te[v];if(!P)return;te[F(v)]=P,te[v]=function(){const B=ne(arguments,v);switch(B.length){case 0:this[G]=new P;break;case 1:this[G]=new P(B[0]);break;case 2:this[G]=new P(B[0],B[1]);break;case 3:this[G]=new P(B[0],B[1],B[2]);break;case 4:this[G]=new P(B[0],B[1],B[2],B[3]);break;default:throw new Error("Arg list too long.")}},ge(te[v],P);const j=new P(function(){});let C;for(C in j)"XMLHttpRequest"===v&&"responseBlob"===C||function(B){"function"==typeof j[B]?te[v].prototype[B]=function(){return this[G][B].apply(this[G],arguments)}:b(te[v].prototype,B,{set:function(q){"function"==typeof q?(this[G][B]=x(q,v+"."+B),ge(this[G][B],q)):this[G][B]=q},get:function(){return this[G][B]}})}(C);for(C in P)"prototype"!==C&&P.hasOwnProperty(C)&&(te[v][C]=P[C])}function Pe(v,P,j){let C=v;for(;C&&!C.hasOwnProperty(P);)C=E(C);!C&&v[P]&&(C=v);const B=F(P);let q=null;if(C&&(!(q=C[B])||!C.hasOwnProperty(B))&&(q=C[B]=C[P],re(C&&_(C,P)))){const ue=j(q,B,P);C[P]=function(){return ue(this,arguments)},ge(C[P],q)}return q}function Ke(v,P,j){let C=null;function B(q){const ae=q.data;return ae.args[ae.cbIdx]=function(){q.invoke.apply(this,arguments)},C.apply(ae.target,ae.args),q}C=Pe(v,P,q=>function(ae,ue){const fe=j(ae,ue);return fe.cbIdx>=0&&"function"==typeof ue[fe.cbIdx]?d(fe.name,ue[fe.cbIdx],fe,B):q.apply(ae,ue)})}function ge(v,P){v[F("OriginalDelegate")]=P}let He=!1,$e=!1;function Ye(){if(He)return $e;He=!0;try{const v=J.navigator.userAgent;(-1!==v.indexOf("MSIE ")||-1!==v.indexOf("Trident/")||-1!==v.indexOf("Edge/"))&&($e=!0)}catch{}return $e}function Qe(v){return"function"==typeof v}function et(v){return"number"==typeof v}let ze=!1;if(typeof window<"u")try{const v=Object.defineProperty({},"passive",{get:function(){ze=!0}});window.addEventListener("test",v,v),window.removeEventListener("test",v,v)}catch{ze=!1}const lt={useG:!0},Xe={},st={},nt=new RegExp("^"+R+"(\\w+)(true|false)$"),at=F("propagationStopped");function ut(v,P){const j=(P?P(v):v)+f,C=(P?P(v):v)+T,B=R+j,q=R+C;Xe[v]={},Xe[v][f]=B,Xe[v][T]=q}function mt(v,P,j,C){const B=C&&C.add||A,q=C&&C.rm||O,ae=C&&C.listeners||"eventListeners",ue=C&&C.rmAll||"removeAllListeners",fe=F(B),ye="."+B+":",ee="prependListener",me="."+ee+":",Oe=function(pe,se,Ie){if(pe.isRemoved)return;const ke=pe.callback;let Fe;"object"==typeof ke&&ke.handleEvent&&(pe.callback=de=>ke.handleEvent(de),pe.originalDelegate=ke);try{pe.invoke(pe,se,[Ie])}catch(de){Fe=de}const Le=pe.options;return Le&&"object"==typeof Le&&Le.once&&se[q].call(se,Ie.type,pe.originalDelegate?pe.originalDelegate:pe.callback,Le),Fe};function Se(pe,se,Ie){if(!(se=se||v.event))return;const ke=pe||se.target||v,Fe=ke[Xe[se.type][Ie?T:f]];if(Fe){const Le=[];if(1===Fe.length){const de=Oe(Fe[0],ke,se);de&&Le.push(de)}else{const de=Fe.slice();for(let xe=0;xe<de.length&&(!se||!0!==se[at]);xe++){const Ee=Oe(de[xe],ke,se);Ee&&Le.push(Ee)}}if(1===Le.length)throw Le[0];for(let de=0;de<Le.length;de++){const xe=Le[de];P.nativeScheduleMicroTask(()=>{throw xe})}}}const Be=function(pe){return Se(this,pe,!1)},We=function(pe){return Se(this,pe,!0)};function je(pe,se){if(!pe)return!1;let Ie=!0;se&&void 0!==se.useG&&(Ie=se.useG);const ke=se&&se.vh;let Fe=!0;se&&void 0!==se.chkDup&&(Fe=se.chkDup);let Le=!1;se&&void 0!==se.rt&&(Le=se.rt);let de=pe;for(;de&&!de.hasOwnProperty(B);)de=E(de);if(!de&&pe[B]&&(de=pe),!de||de[fe])return!1;const xe=se&&se.eventNameToString,Ee={},ve=de[fe]=de[B],_e=de[F(q)]=de[q],be=de[F(ae)]=de[ae],Ge=de[F(ue)]=de[ue];let Me;se&&se.prepend&&(Me=de[F(se.prepend)]=de[se.prepend]);const M=Ie?function(t){if(!Ee.isExisting)return ve.call(Ee.target,Ee.eventName,Ee.capture?We:Be,Ee.options)}:function(t){return ve.call(Ee.target,Ee.eventName,t.invoke,Ee.options)},k=Ie?function(t){if(!t.isRemoved){const o=Xe[t.eventName];let c;o&&(c=o[t.capture?T:f]);const y=c&&t.target[c];if(y)for(let I=0;I<y.length;I++)if(y[I]===t){y.splice(I,1),t.isRemoved=!0,t.removeAbortListener&&(t.removeAbortListener(),t.removeAbortListener=null),0===y.length&&(t.allRemoved=!0,t.target[c]=null);break}}if(t.allRemoved)return _e.call(t.target,t.eventName,t.capture?We:Be,t.options)}:function(t){return _e.call(t.target,t.eventName,t.invoke,t.options)},H=se&&se.diff?se.diff:function(t,o){const c=typeof o;return"function"===c&&t.callback===o||"object"===c&&t.originalDelegate===o},X=Zone[F("UNPATCHED_EVENTS")],oe=v[F("PASSIVE_EVENTS")],a=function(t,o,c,y,I=!1,Y=!1){return function(){const he=this||v;let ce=arguments[0];se&&se.transferEventName&&(ce=se.transferEventName(ce));let Ae=arguments[1];if(!Ae)return t.apply(this,arguments);if(ie&&"uncaughtException"===ce)return t.apply(this,arguments);let we=!1;if("function"!=typeof Ae){if(!Ae.handleEvent)return t.apply(this,arguments);we=!0}if(ke&&!ke(t,Ae,he,arguments))return;const Ve=ze&&!!oe&&-1!==oe.indexOf(ce),Ze=function l(t){if("object"==typeof t&&null!==t){const o={...t};return t.signal&&(o.signal=t.signal),o}return t}(function Ce(t,o){return!ze&&"object"==typeof t&&t?!!t.capture:ze&&o?"boolean"==typeof t?{capture:t,passive:!0}:t?"object"==typeof t&&!1!==t.passive?{...t,passive:!0}:t:{passive:!0}:t}(arguments[2],Ve)),bt=Ze?.signal;if(bt?.aborted)return;if(X)for(let tt=0;tt<X.length;tt++)if(ce===X[tt])return Ve?t.call(he,ce,Ae,Ze):t.apply(this,arguments);const St=!!Ze&&("boolean"==typeof Ze||Ze.capture),It=!(!Ze||"object"!=typeof Ze)&&Ze.once,xt=Zone.current;let Mt=Xe[ce];Mt||(ut(ce,xe),Mt=Xe[ce]);const kt=Mt[St?T:f];let At,Tt=he[kt],Rt=!1;if(Tt){if(Rt=!0,Fe)for(let tt=0;tt<Tt.length;tt++)if(H(Tt[tt],Ae))return}else Tt=he[kt]=[];const Lt=he.constructor.name,Ft=st[Lt];Ft&&(At=Ft[ce]),At||(At=Lt+o+(xe?xe(ce):ce)),Ee.options=Ze,It&&(Ee.options.once=!1),Ee.target=he,Ee.capture=St,Ee.eventName=ce,Ee.isExisting=Rt;const Pt=Ie?lt:void 0;Pt&&(Pt.taskData=Ee),bt&&(Ee.options.signal=void 0);const qe=xt.scheduleEventTask(At,Ae,Pt,c,y);if(bt){Ee.options.signal=bt;const tt=()=>qe.zone.cancelTask(qe);t.call(bt,"abort",tt,{once:!0}),qe.removeAbortListener=()=>bt.removeEventListener("abort",tt)}return Ee.target=null,Pt&&(Pt.taskData=null),It&&(Ee.options.once=!0),!ze&&"boolean"==typeof qe.options||(qe.options=Ze),qe.target=he,qe.capture=St,qe.eventName=ce,we&&(qe.originalDelegate=Ae),Y?Tt.unshift(qe):Tt.push(qe),I?he:void 0}};return de[B]=a(ve,ye,M,k,Le),Me&&(de[ee]=a(Me,me,function(t){return Me.call(Ee.target,Ee.eventName,t.invoke,Ee.options)},k,Le,!0)),de[q]=function(){const t=this||v;let o=arguments[0];se&&se.transferEventName&&(o=se.transferEventName(o));const c=arguments[2],y=!!c&&("boolean"==typeof c||c.capture),I=arguments[1];if(!I)return _e.apply(this,arguments);if(ke&&!ke(_e,I,t,arguments))return;const Y=Xe[o];let he;Y&&(he=Y[y?T:f]);const ce=he&&t[he];if(ce)for(let Ae=0;Ae<ce.length;Ae++){const we=ce[Ae];if(H(we,I))return ce.splice(Ae,1),we.isRemoved=!0,0!==ce.length||(we.allRemoved=!0,t[he]=null,y||"string"!=typeof o)||(t[R+"ON_PROPERTY"+o]=null),we.zone.cancelTask(we),Le?t:void 0}return _e.apply(this,arguments)},de[ae]=function(){const t=this||v;let o=arguments[0];se&&se.transferEventName&&(o=se.transferEventName(o));const c=[],y=ct(t,xe?xe(o):o);for(let I=0;I<y.length;I++){const Y=y[I];c.push(Y.originalDelegate?Y.originalDelegate:Y.callback)}return c},de[ue]=function(){const t=this||v;let o=arguments[0];if(o){se&&se.transferEventName&&(o=se.transferEventName(o));const c=Xe[o];if(c){const Y=t[c[f]],he=t[c[T]];if(Y){const ce=Y.slice();for(let Ae=0;Ae<ce.length;Ae++){const we=ce[Ae];this[q].call(this,o,we.originalDelegate?we.originalDelegate:we.callback,we.options)}}if(he){const ce=he.slice();for(let Ae=0;Ae<ce.length;Ae++){const we=ce[Ae];this[q].call(this,o,we.originalDelegate?we.originalDelegate:we.callback,we.options)}}}}else{const c=Object.keys(t);for(let y=0;y<c.length;y++){const Y=nt.exec(c[y]);let he=Y&&Y[1];he&&"removeListener"!==he&&this[ue].call(this,he)}this[ue].call(this,"removeListener")}if(Le)return this},ge(de[B],ve),ge(de[q],_e),Ge&&ge(de[ue],Ge),be&&ge(de[ae],be),!0}let Ne=[];for(let pe=0;pe<j.length;pe++)Ne[pe]=je(j[pe],C);return Ne}function ct(v,P){if(!P){const q=[];for(let ae in v){const ue=nt.exec(ae);let fe=ue&&ue[1];if(fe&&(!P||fe===P)){const ye=v[ae];if(ye)for(let ee=0;ee<ye.length;ee++)q.push(ye[ee])}}return q}let j=Xe[P];j||(ut(P),j=Xe[P]);const C=v[j[f]],B=v[j[T]];return C?B?C.concat(B):C.slice():B?B.slice():[]}function it(v,P){const j=v.Event;j&&j.prototype&&P.patchMethod(j.prototype,"stopImmediatePropagation",C=>function(B,q){B[at]=!0,C&&C.apply(B,q)})}const Re=F("zoneTask");function Je(v,P,j,C){let B=null,q=null;j+=C;const ae={};function ue(ye){const ee=ye.data;ee.args[0]=function(){return ye.invoke.apply(this,arguments)};const me=B.apply(v,ee.args);return et(me)?ee.handleId=me:(ee.handle=me,ee.isRefreshable=Qe(me.refresh)),ye}function fe(ye){const{handle:ee,handleId:me}=ye.data;return q.call(v,ee??me)}B=Pe(v,P+=C,ye=>function(ee,me){if(Qe(me[0])){const Oe={isRefreshable:!1,isPeriodic:"Interval"===C,delay:"Timeout"===C||"Interval"===C?me[1]||0:void 0,args:me},Se=me[0];me[0]=function(){try{return Se.apply(this,arguments)}finally{const{handle:Ie,handleId:ke,isPeriodic:Fe,isRefreshable:Le}=Oe;!Fe&&!Le&&(ke?delete ae[ke]:Ie&&(Ie[Re]=null))}};const Be=d(P,me[0],Oe,ue,fe);if(!Be)return Be;const{handleId:We,handle:je,isRefreshable:Ne,isPeriodic:pe}=Be.data;if(We)ae[We]=Be;else if(je&&(je[Re]=Be,Ne&&!pe)){const se=je.refresh;je.refresh=function(){const{zone:Ie,state:ke}=Be;return"notScheduled"===ke?(Be._state="scheduled",Ie._updateTaskCount(Be,1)):"running"===ke&&(Be._state="scheduling"),se.call(this)}}return je??We??Be}return ye.apply(v,me)}),q=Pe(v,j,ye=>function(ee,me){const Oe=me[0];let Se;et(Oe)?(Se=ae[Oe],delete ae[Oe]):(Se=Oe?.[Re],Se?Oe[Re]=null:Se=Oe),Se?.type?Se.cancelFn&&Se.zone.cancelTask(Se):ye.apply(v,me)})}function ft(v,P,j){if(!j||0===j.length)return P;const C=j.filter(q=>q.target===v);if(!C||0===C.length)return P;const B=C[0].ignoreProperties;return P.filter(q=>-1===B.indexOf(q))}function Et(v,P,j,C){v&&$(v,ft(v,P,j),C)}function ot(v){return Object.getOwnPropertyNames(v).filter(P=>P.startsWith("on")&&P.length>2).map(P=>P.substring(2))}function Dt(v,P,j,C,B){const q=Zone.__symbol__(C);if(P[q])return;const ae=P[q]=P[C];P[C]=function(ue,fe,ye){return fe&&fe.prototype&&B.forEach(function(ee){const me=`${j}.${C}::`+ee,Oe=fe.prototype;try{if(Oe.hasOwnProperty(ee)){const Se=v.ObjectGetOwnPropertyDescriptor(Oe,ee);Se&&Se.value?(Se.value=v.wrapWithCurrentZone(Se.value,me),v._redefineProperty(fe.prototype,ee,Se)):Oe[ee]&&(Oe[ee]=v.wrapWithCurrentZone(Oe[ee],me))}else Oe[ee]&&(Oe[ee]=v.wrapWithCurrentZone(Oe[ee],me))}catch{}}),ae.call(P,ue,fe,ye)},v.attachOriginToPatched(P[C],ae)}const _t=function e(){const v=globalThis,P=!0===v[D("forceDuplicateZoneCheck")];if(v.Zone&&(P||"function"!=typeof v.Zone.__symbol__))throw new Error("Zone already loaded.");return v.Zone??=function s(){const v=Q.performance;function P(Ce){v&&v.mark&&v.mark(Ce)}function j(Ce,le){v&&v.measure&&v.measure(Ce,le)}P("Zone");let C=(()=>{class Ce{static#e=this.__symbol__=D;static assertZonePatched(){if(Q.Promise!==Ee.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let n=Ce.current;for(;n.parent;)n=n.parent;return n}static get current(){return _e.zone}static get currentTask(){return be}static __load_patch(n,i,r=!1){if(Ee.hasOwnProperty(n)){const u=!0===Q[D("forceDuplicateZoneCheck")];if(!r&&u)throw Error("Already loaded patch: "+n)}else if(!Q["__Zone_disable_"+n]){const u="Zone:"+n;P(u),Ee[n]=i(Q,Ce,ve),j(u,u)}}get parent(){return this._parent}get name(){return this._name}constructor(n,i){this._parent=n,this._name=i?i.name||"unnamed":"<root>",this._properties=i&&i.properties||{},this._zoneDelegate=new q(this,this._parent&&this._parent._zoneDelegate,i)}get(n){const i=this.getZoneWith(n);if(i)return i._properties[n]}getZoneWith(n){let i=this;for(;i;){if(i._properties.hasOwnProperty(n))return i;i=i._parent}return null}fork(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}wrap(n,i){if("function"!=typeof n)throw new Error("Expecting function got: "+n);const r=this._zoneDelegate.intercept(this,n,i),u=this;return function(){return u.runGuarded(r,this,arguments,i)}}run(n,i,r,u){_e={parent:_e,zone:this};try{return this._zoneDelegate.invoke(this,n,i,r,u)}finally{_e=_e.parent}}runGuarded(n,i=null,r,u){_e={parent:_e,zone:this};try{try{return this._zoneDelegate.invoke(this,n,i,r,u)}catch(M){if(this._zoneDelegate.handleError(this,M))throw M}}finally{_e=_e.parent}}runTask(n,i,r){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||je).name+"; Execution: "+this.name+")");const u=n,{type:M,data:{isPeriodic:k=!1,isRefreshable:V=!1}={}}=n;if(n.state===Ne&&(M===xe||M===de))return;const H=n.state!=Ie;H&&u._transitionTo(Ie,se);const X=be;be=u,_e={parent:_e,zone:this};try{M==de&&n.data&&!k&&!V&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,u,i,r)}catch(oe){if(this._zoneDelegate.handleError(this,oe))throw oe}}finally{const oe=n.state;if(oe!==Ne&&oe!==Fe)if(M==xe||k||V&&oe===pe)H&&u._transitionTo(se,Ie,pe);else{const l=u._zoneDelegates;this._updateTaskCount(u,-1),H&&u._transitionTo(Ne,Ie,Ne),V&&(u._zoneDelegates=l)}_e=_e.parent,be=X}}scheduleTask(n){if(n.zone&&n.zone!==this){let r=this;for(;r;){if(r===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);r=r.parent}}n._transitionTo(pe,Ne);const i=[];n._zoneDelegates=i,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(r){throw n._transitionTo(Fe,pe,Ne),this._zoneDelegate.handleError(this,r),r}return n._zoneDelegates===i&&this._updateTaskCount(n,1),n.state==pe&&n._transitionTo(se,pe),n}scheduleMicroTask(n,i,r,u){return this.scheduleTask(new ae(Le,n,i,r,u,void 0))}scheduleMacroTask(n,i,r,u,M){return this.scheduleTask(new ae(de,n,i,r,u,M))}scheduleEventTask(n,i,r,u,M){return this.scheduleTask(new ae(xe,n,i,r,u,M))}cancelTask(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||je).name+"; Execution: "+this.name+")");if(n.state===se||n.state===Ie){n._transitionTo(ke,se,Ie);try{this._zoneDelegate.cancelTask(this,n)}catch(i){throw n._transitionTo(Fe,ke),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(n,-1),n._transitionTo(Ne,ke),n.runCount=-1,n}}_updateTaskCount(n,i){const r=n._zoneDelegates;-1==i&&(n._zoneDelegates=null);for(let u=0;u<r.length;u++)r[u]._updateTaskCount(n.type,i)}}return Ce})();const B={name:"",onHasTask:(Ce,le,n,i)=>Ce.hasTask(n,i),onScheduleTask:(Ce,le,n,i)=>Ce.scheduleTask(n,i),onInvokeTask:(Ce,le,n,i,r,u)=>Ce.invokeTask(n,i,r,u),onCancelTask:(Ce,le,n,i)=>Ce.cancelTask(n,i)};class q{get zone(){return this._zone}constructor(le,n,i){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=le,this._parentDelegate=n,this._forkZS=i&&(i&&i.onFork?i:n._forkZS),this._forkDlgt=i&&(i.onFork?n:n._forkDlgt),this._forkCurrZone=i&&(i.onFork?this._zone:n._forkCurrZone),this._interceptZS=i&&(i.onIntercept?i:n._interceptZS),this._interceptDlgt=i&&(i.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=i&&(i.onIntercept?this._zone:n._interceptCurrZone),this._invokeZS=i&&(i.onInvoke?i:n._invokeZS),this._invokeDlgt=i&&(i.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=i&&(i.onInvoke?this._zone:n._invokeCurrZone),this._handleErrorZS=i&&(i.onHandleError?i:n._handleErrorZS),this._handleErrorDlgt=i&&(i.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=i&&(i.onHandleError?this._zone:n._handleErrorCurrZone),this._scheduleTaskZS=i&&(i.onScheduleTask?i:n._scheduleTaskZS),this._scheduleTaskDlgt=i&&(i.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=i&&(i.onScheduleTask?this._zone:n._scheduleTaskCurrZone),this._invokeTaskZS=i&&(i.onInvokeTask?i:n._invokeTaskZS),this._invokeTaskDlgt=i&&(i.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=i&&(i.onInvokeTask?this._zone:n._invokeTaskCurrZone),this._cancelTaskZS=i&&(i.onCancelTask?i:n._cancelTaskZS),this._cancelTaskDlgt=i&&(i.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=i&&(i.onCancelTask?this._zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const r=i&&i.onHasTask;(r||n&&n._hasTaskZS)&&(this._hasTaskZS=r?i:B,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,i.onScheduleTask||(this._scheduleTaskZS=B,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this._zone),i.onInvokeTask||(this._invokeTaskZS=B,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this._zone),i.onCancelTask||(this._cancelTaskZS=B,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this._zone))}fork(le,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,le,n):new C(le,n)}intercept(le,n,i){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,le,n,i):n}invoke(le,n,i,r,u){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,le,n,i,r,u):n.apply(i,r)}handleError(le,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,le,n)}scheduleTask(le,n){let i=n;if(this._scheduleTaskZS)this._hasTaskZS&&i._zoneDelegates.push(this._hasTaskDlgtOwner),i=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,le,n),i||(i=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=Le)throw new Error("Task is missing scheduleFn.");Be(n)}return i}invokeTask(le,n,i,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,le,n,i,r):n.callback.apply(i,r)}cancelTask(le,n){let i;if(this._cancelTaskZS)i=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,le,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");i=n.cancelFn(n)}return i}hasTask(le,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,le,n)}catch(i){this.handleError(le,i)}}_updateTaskCount(le,n){const i=this._taskCounts,r=i[le],u=i[le]=r+n;if(u<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=u||this.hasTask(this._zone,{microTask:i.microTask>0,macroTask:i.macroTask>0,eventTask:i.eventTask>0,change:le})}}class ae{constructor(le,n,i,r,u,M){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=le,this.source=n,this.data=r,this.scheduleFn=u,this.cancelFn=M,!i)throw new Error("callback is not defined");this.callback=i;const k=this;this.invoke=le===xe&&r&&r.useG?ae.invokeTask:function(){return ae.invokeTask.call(Q,k,this,arguments)}}static invokeTask(le,n,i){le||(le=this),Ge++;try{return le.runCount++,le.zone.runTask(le,n,i)}finally{1==Ge&&We(),Ge--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Ne,pe)}_transitionTo(le,n,i){if(this._state!==n&&this._state!==i)throw new Error(`${this.type} '${this.source}': can not transition to '${le}', expecting state '${n}'${i?" or '"+i+"'":""}, was '${this._state}'.`);this._state=le,le==Ne&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const ue=D("setTimeout"),fe=D("Promise"),ye=D("then");let Oe,ee=[],me=!1;function Se(Ce){if(Oe||Q[fe]&&(Oe=Q[fe].resolve(0)),Oe){let le=Oe[ye];le||(le=Oe.then),le.call(Oe,Ce)}else Q[ue](Ce,0)}function Be(Ce){0===Ge&&0===ee.length&&Se(We),Ce&&ee.push(Ce)}function We(){if(!me){for(me=!0;ee.length;){const Ce=ee;ee=[];for(let le=0;le<Ce.length;le++){const n=Ce[le];try{n.zone.runTask(n,null,null)}catch(i){ve.onUnhandledError(i)}}}ve.microtaskDrainDone(),me=!1}}const je={name:"NO ZONE"},Ne="notScheduled",pe="scheduling",se="scheduled",Ie="running",ke="canceling",Fe="unknown",Le="microTask",de="macroTask",xe="eventTask",Ee={},ve={symbol:D,currentZoneFrame:()=>_e,onUnhandledError:Me,microtaskDrainDone:Me,scheduleMicroTask:Be,showUncaughtError:()=>!C[D("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:Me,patchMethod:()=>Me,bindArguments:()=>[],patchThen:()=>Me,patchMacroTask:()=>Me,patchEventPrototype:()=>Me,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>Me,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>Me,wrapWithCurrentZone:()=>Me,filterProperties:()=>[],attachOriginToPatched:()=>Me,_redefineProperty:()=>Me,patchCallbacks:()=>Me,nativeScheduleMicroTask:Se};let _e={parent:null,zone:new C(null,null)},be=null,Ge=0;function Me(){}return j("Zone","Zone"),C}(),v.Zone}();(function rt(v){(function vt(v){v.__load_patch("ZoneAwarePromise",(P,j,C)=>{const B=Object.getOwnPropertyDescriptor,q=Object.defineProperty,ue=C.symbol,fe=[],ye=!1!==P[ue("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],ee=ue("Promise"),me=ue("then"),Oe="__creationTrace__";C.onUnhandledError=l=>{if(C.showUncaughtError()){const a=l&&l.rejection;a?console.error("Unhandled Promise rejection:",a instanceof Error?a.message:a,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",a,a instanceof Error?a.stack:void 0):console.error(l)}},C.microtaskDrainDone=()=>{for(;fe.length;){const l=fe.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(a){Be(a)}}};const Se=ue("unhandledPromiseRejectionHandler");function Be(l){C.onUnhandledError(l);try{const a=j[Se];"function"==typeof a&&a.call(this,l)}catch{}}function We(l){return l&&l.then}function je(l){return l}function Ne(l){return k.reject(l)}const pe=ue("state"),se=ue("value"),Ie=ue("finally"),ke=ue("parentPromiseValue"),Fe=ue("parentPromiseState"),Le="Promise.then",de=null,xe=!0,Ee=!1,ve=0;function _e(l,a){return t=>{try{Ce(l,a,t)}catch(o){Ce(l,!1,o)}}}const be=function(){let l=!1;return function(t){return function(){l||(l=!0,t.apply(null,arguments))}}},Ge="Promise resolved with itself",Me=ue("currentTaskTrace");function Ce(l,a,t){const o=be();if(l===t)throw new TypeError(Ge);if(l[pe]===de){let c=null;try{("object"==typeof t||"function"==typeof t)&&(c=t&&t.then)}catch(y){return o(()=>{Ce(l,!1,y)})(),l}if(a!==Ee&&t instanceof k&&t.hasOwnProperty(pe)&&t.hasOwnProperty(se)&&t[pe]!==de)n(t),Ce(l,t[pe],t[se]);else if(a!==Ee&&"function"==typeof c)try{c.call(t,o(_e(l,a)),o(_e(l,!1)))}catch(y){o(()=>{Ce(l,!1,y)})()}else{l[pe]=a;const y=l[se];if(l[se]=t,l[Ie]===Ie&&a===xe&&(l[pe]=l[Fe],l[se]=l[ke]),a===Ee&&t instanceof Error){const I=j.currentTask&&j.currentTask.data&&j.currentTask.data[Oe];I&&q(t,Me,{configurable:!0,enumerable:!1,writable:!0,value:I})}for(let I=0;I<y.length;)i(l,y[I++],y[I++],y[I++],y[I++]);if(0==y.length&&a==Ee){l[pe]=ve;let I=t;try{throw new Error("Uncaught (in promise): "+function ae(l){return l&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l)}(t)+(t&&t.stack?"\n"+t.stack:""))}catch(Y){I=Y}ye&&(I.throwOriginal=!0),I.rejection=t,I.promise=l,I.zone=j.current,I.task=j.currentTask,fe.push(I),C.scheduleMicroTask()}}}return l}const le=ue("rejectionHandledHandler");function n(l){if(l[pe]===ve){try{const a=j[le];a&&"function"==typeof a&&a.call(this,{rejection:l[se],promise:l})}catch{}l[pe]=Ee;for(let a=0;a<fe.length;a++)l===fe[a].promise&&fe.splice(a,1)}}function i(l,a,t,o,c){n(l);const y=l[pe],I=y?"function"==typeof o?o:je:"function"==typeof c?c:Ne;a.scheduleMicroTask(Le,()=>{try{const Y=l[se],he=!!t&&Ie===t[Ie];he&&(t[ke]=Y,t[Fe]=y);const ce=a.run(I,void 0,he&&I!==Ne&&I!==je?[]:[Y]);Ce(t,!0,ce)}catch(Y){Ce(t,!1,Y)}},t)}const u=function(){},M=P.AggregateError;class k{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(a){return a instanceof k?a:Ce(new this(null),xe,a)}static reject(a){return Ce(new this(null),Ee,a)}static withResolvers(){const a={};return a.promise=new k((t,o)=>{a.resolve=t,a.reject=o}),a}static any(a){if(!a||"function"!=typeof a[Symbol.iterator])return Promise.reject(new M([],"All promises were rejected"));const t=[];let o=0;try{for(let I of a)o++,t.push(k.resolve(I))}catch{return Promise.reject(new M([],"All promises were rejected"))}if(0===o)return Promise.reject(new M([],"All promises were rejected"));let c=!1;const y=[];return new k((I,Y)=>{for(let he=0;he<t.length;he++)t[he].then(ce=>{c||(c=!0,I(ce))},ce=>{y.push(ce),o--,0===o&&(c=!0,Y(new M(y,"All promises were rejected")))})})}static race(a){let t,o,c=new this((Y,he)=>{t=Y,o=he});function y(Y){t(Y)}function I(Y){o(Y)}for(let Y of a)We(Y)||(Y=this.resolve(Y)),Y.then(y,I);return c}static all(a){return k.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof k?this:k).allWithCallback(a,{thenCallback:o=>({status:"fulfilled",value:o}),errorCallback:o=>({status:"rejected",reason:o})})}static allWithCallback(a,t){let o,c,y=new this((ce,Ae)=>{o=ce,c=Ae}),I=2,Y=0;const he=[];for(let ce of a){We(ce)||(ce=this.resolve(ce));const Ae=Y;try{ce.then(we=>{he[Ae]=t?t.thenCallback(we):we,I--,0===I&&o(he)},we=>{t?(he[Ae]=t.errorCallback(we),I--,0===I&&o(he)):c(we)})}catch(we){c(we)}I++,Y++}return I-=2,0===I&&o(he),y}constructor(a){const t=this;if(!(t instanceof k))throw new Error("Must be an instanceof Promise.");t[pe]=de,t[se]=[];try{const o=be();a&&a(o(_e(t,xe)),o(_e(t,Ee)))}catch(o){Ce(t,!1,o)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return k}then(a,t){let o=this.constructor?.[Symbol.species];(!o||"function"!=typeof o)&&(o=this.constructor||k);const c=new o(u),y=j.current;return this[pe]==de?this[se].push(y,c,a,t):i(this,y,c,a,t),c}catch(a){return this.then(null,a)}finally(a){let t=this.constructor?.[Symbol.species];(!t||"function"!=typeof t)&&(t=k);const o=new t(u);o[Ie]=Ie;const c=j.current;return this[pe]==de?this[se].push(c,o,a,a):i(this,c,o,a,a),o}}k.resolve=k.resolve,k.reject=k.reject,k.race=k.race,k.all=k.all;const V=P[ee]=P.Promise;P.Promise=k;const H=ue("thenPatched");function X(l){const a=l.prototype,t=B(a,"then");if(t&&(!1===t.writable||!t.configurable))return;const o=a.then;a[me]=o,l.prototype.then=function(c,y){return new k((Y,he)=>{o.call(this,Y,he)}).then(c,y)},l[H]=!0}return C.patchThen=X,V&&(X(V),Pe(P,"fetch",l=>function oe(l){return function(a,t){let o=l.apply(a,t);if(o instanceof k)return o;let c=o.constructor;return c[H]||X(c),o}}(l))),Promise[j.__symbol__("uncaughtPromiseErrors")]=fe,k})})(v),function Ot(v){v.__load_patch("toString",P=>{const j=Function.prototype.toString,C=F("OriginalDelegate"),B=F("Promise"),q=F("Error"),ae=function(){if("function"==typeof this){const ee=this[C];if(ee)return"function"==typeof ee?j.call(ee):Object.prototype.toString.call(ee);if(this===Promise){const me=P[B];if(me)return j.call(me)}if(this===Error){const me=P[q];if(me)return j.call(me)}}return j.call(this)};ae[C]=j,Function.prototype.toString=ae;const ue=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":ue.call(this)}})}(v),function wt(v){v.__load_patch("util",(P,j,C)=>{const B=ot(P);C.patchOnProperties=$,C.patchMethod=Pe,C.bindArguments=ne,C.patchMacroTask=Ke;const q=j.__symbol__("BLACK_LISTED_EVENTS"),ae=j.__symbol__("UNPATCHED_EVENTS");P[ae]&&(P[q]=P[ae]),P[q]&&(j[q]=j[ae]=P[q]),C.patchEventPrototype=it,C.patchEventTarget=mt,C.isIEOrEdge=Ye,C.ObjectDefineProperty=b,C.ObjectGetOwnPropertyDescriptor=_,C.ObjectCreate=m,C.ArraySlice=S,C.patchClass=Te,C.wrapWithCurrentZone=x,C.filterProperties=ft,C.attachOriginToPatched=ge,C._redefineProperty=Object.defineProperty,C.patchCallbacks=Dt,C.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:Xe,eventNames:B,isBrowser:g,isMix:W,isNode:ie,TRUE_STR:T,FALSE_STR:f,ZONE_SYMBOL_PREFIX:R,ADD_EVENT_LISTENER_STR:A,REMOVE_EVENT_LISTENER_STR:O})})}(v)})(_t),function Ct(v){v.__load_patch("legacy",P=>{const j=P[v.__symbol__("legacyPatch")];j&&j()}),v.__load_patch("timers",P=>{const j="set",C="clear";Je(P,j,C,"Timeout"),Je(P,j,C,"Interval"),Je(P,j,C,"Immediate")}),v.__load_patch("requestAnimationFrame",P=>{Je(P,"request","cancel","AnimationFrame"),Je(P,"mozRequest","mozCancel","AnimationFrame"),Je(P,"webkitRequest","webkitCancel","AnimationFrame")}),v.__load_patch("blocking",(P,j)=>{const C=["alert","prompt","confirm"];for(let B=0;B<C.length;B++)Pe(P,C[B],(ae,ue,fe)=>function(ye,ee){return j.current.run(ae,P,ee,fe)})}),v.__load_patch("EventTarget",(P,j,C)=>{(function gt(v,P){P.patchEventPrototype(v,P)})(P,C),function dt(v,P){if(Zone[P.symbol("patchEventTarget")])return;const{eventNames:j,zoneSymbolEventNames:C,TRUE_STR:B,FALSE_STR:q,ZONE_SYMBOL_PREFIX:ae}=P.getGlobalObjects();for(let fe=0;fe<j.length;fe++){const ye=j[fe],Oe=ae+(ye+q),Se=ae+(ye+B);C[ye]={},C[ye][q]=Oe,C[ye][B]=Se}const ue=v.EventTarget;ue&&ue.prototype&&P.patchEventTarget(v,P,[ue&&ue.prototype])}(P,C);const B=P.XMLHttpRequestEventTarget;B&&B.prototype&&C.patchEventTarget(P,C,[B.prototype])}),v.__load_patch("MutationObserver",(P,j,C)=>{Te("MutationObserver"),Te("WebKitMutationObserver")}),v.__load_patch("IntersectionObserver",(P,j,C)=>{Te("IntersectionObserver")}),v.__load_patch("FileReader",(P,j,C)=>{Te("FileReader")}),v.__load_patch("on_property",(P,j,C)=>{!function pt(v,P){if(ie&&!W||Zone[v.symbol("patchEvents")])return;const j=P.__Zone_ignore_on_properties;let C=[];if(g){const B=window;C=C.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const q=function Ue(){try{const v=J.navigator.userAgent;if(-1!==v.indexOf("MSIE ")||-1!==v.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:B,ignoreProperties:["error"]}]:[];Et(B,ot(B),j&&j.concat(q),E(B))}C=C.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let B=0;B<C.length;B++){const q=P[C[B]];q&&q.prototype&&Et(q.prototype,ot(q.prototype),j)}}(C,P)}),v.__load_patch("customElements",(P,j,C)=>{!function ht(v,P){const{isBrowser:j,isMix:C}=P.getGlobalObjects();(j||C)&&v.customElements&&"customElements"in v&&P.patchCallbacks(P,v.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(P,C)}),v.__load_patch("XHR",(P,j)=>{!function ye(ee){const me=ee.XMLHttpRequest;if(!me)return;const Oe=me.prototype;let Be=Oe[w],We=Oe[h];if(!Be){const ve=ee.XMLHttpRequestEventTarget;if(ve){const _e=ve.prototype;Be=_e[w],We=_e[h]}}const je="readystatechange",Ne="scheduled";function pe(ve){const _e=ve.data,be=_e.target;be[ae]=!1,be[fe]=!1;const Ge=be[q];Be||(Be=be[w],We=be[h]),Ge&&We.call(be,je,Ge);const Me=be[q]=()=>{if(be.readyState===be.DONE)if(!_e.aborted&&be[ae]&&ve.state===Ne){const le=be[j.__symbol__("loadfalse")];if(0!==be.status&&le&&le.length>0){const n=ve.invoke;ve.invoke=function(){const i=be[j.__symbol__("loadfalse")];for(let r=0;r<i.length;r++)i[r]===ve&&i.splice(r,1);!_e.aborted&&ve.state===Ne&&n.call(ve)},le.push(ve)}else ve.invoke()}else!_e.aborted&&!1===be[ae]&&(be[fe]=!0)};return Be.call(be,je,Me),be[C]||(be[C]=ve),xe.apply(be,_e.args),be[ae]=!0,ve}function se(){}function Ie(ve){const _e=ve.data;return _e.aborted=!0,Ee.apply(_e.target,_e.args)}const ke=Pe(Oe,"open",()=>function(ve,_e){return ve[B]=0==_e[2],ve[ue]=_e[1],ke.apply(ve,_e)}),Le=F("fetchTaskAborting"),de=F("fetchTaskScheduling"),xe=Pe(Oe,"send",()=>function(ve,_e){if(!0===j.current[de]||ve[B])return xe.apply(ve,_e);{const be={target:ve,url:ve[ue],isPeriodic:!1,args:_e,aborted:!1},Ge=d("XMLHttpRequest.send",se,be,pe,Ie);ve&&!0===ve[fe]&&!be.aborted&&Ge.state===Ne&&Ge.invoke()}}),Ee=Pe(Oe,"abort",()=>function(ve,_e){const be=function Se(ve){return ve[C]}(ve);if(be&&"string"==typeof be.type){if(null==be.cancelFn||be.data&&be.data.aborted)return;be.zone.cancelTask(be)}else if(!0===j.current[Le])return Ee.apply(ve,_e)})}(P);const C=F("xhrTask"),B=F("xhrSync"),q=F("xhrListener"),ae=F("xhrScheduled"),ue=F("xhrURL"),fe=F("xhrErrorBeforeScheduled")}),v.__load_patch("geolocation",P=>{P.navigator&&P.navigator.geolocation&&function Z(v,P){const j=v.constructor.name;for(let C=0;C<P.length;C++){const B=P[C],q=v[B];if(q){if(!re(_(v,B)))continue;v[B]=(ue=>{const fe=function(){return ue.apply(this,ne(arguments,j+"."+B))};return ge(fe,ue),fe})(q)}}}(P.navigator.geolocation,["getCurrentPosition","watchPosition"])}),v.__load_patch("PromiseRejectionEvent",(P,j)=>{function C(B){return function(q){ct(P,B).forEach(ue=>{const fe=P.PromiseRejectionEvent;if(fe){const ye=new fe(B,{promise:q.promise,reason:q.rejection});ue.invoke(ye)}})}}P.PromiseRejectionEvent&&(j[F("unhandledPromiseRejectionHandler")]=C("unhandledrejection"),j[F("rejectionHandledHandler")]=C("rejectionhandled"))}),v.__load_patch("queueMicrotask",(P,j,C)=>{!function yt(v,P){P.patchMethod(v,"queueMicrotask",j=>function(C,B){Zone.current.scheduleMicroTask("queueMicrotask",B[0])})}(P,C)})}(_t)},5215:(Q,D,s)=>{function O(p,L,U,K){return new(U||(U=Promise))(function(G,Te){function Pe(He){try{ge(K.next(He))}catch($e){Te($e)}}function Ke(He){try{ge(K.throw(He))}catch($e){Te($e)}}function ge(He){He.done?G(He.value):function $(G){return G instanceof U?G:new U(function(Te){Te(G)})}(He.value).then(Pe,Ke)}ge((K=K.apply(p,L||[])).next())})}function N(p){return this instanceof N?(this.v=p,this):new N(p)}function J(p,L,U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $,K=U.apply(p,L||[]),G=[];return $={},Te("next"),Te("throw"),Te("return"),$[Symbol.asyncIterator]=function(){return this},$;function Te(Ue){K[Ue]&&($[Ue]=function(Ye){return new Promise(function(Qe,et){G.push([Ue,Ye,Qe,et])>1||Pe(Ue,Ye)})})}function Pe(Ue,Ye){try{!function Ke(Ue){Ue.value instanceof N?Promise.resolve(Ue.value.v).then(ge,He):$e(G[0][2],Ue)}(K[Ue](Ye))}catch(Qe){$e(G[0][3],Qe)}}function ge(Ue){Pe("next",Ue)}function He(Ue){Pe("throw",Ue)}function $e(Ue,Ye){Ue(Ye),G.shift(),G.length&&Pe(G[0][0],G[0][1])}}function De(p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var U,L=p[Symbol.asyncIterator];return L?L.call(p):(p=function f(p){var L="function"==typeof Symbol&&Symbol.iterator,U=L&&p[L],K=0;if(U)return U.call(p);if(p&&"number"==typeof p.length)return{next:function(){return p&&K>=p.length&&(p=void 0),{value:p&&p[K++],done:!p}}};throw new TypeError(L?"Object is not iterable.":"Symbol.iterator is not defined.")}(p),U={},K("next"),K("throw"),K("return"),U[Symbol.asyncIterator]=function(){return this},U);function K(G){U[G]=p[G]&&function(Te){return new Promise(function(Pe,Ke){!function $(G,Te,Pe,Ke){Promise.resolve(Ke).then(function(ge){G({value:ge,done:Pe})},Te)}(Pe,Ke,(Te=p[G](Te)).done,Te.value)})}}}s.d(D,{AQ:()=>J,N3:()=>N,sH:()=>O,xN:()=>De})},7013:(Q,D,s)=>{s.d(D,{vr:()=>X,MQ:()=>oe,BW:()=>xe});var e=s(3953),_=s(9417),b=s(6977),E=s(3236),m=s(9974),S=s(8750),A=s(4360),w=s(1584);var T=s(9172),f=s(8141),R=s(152),x=s(5964),d=s(6354),F=s(536),N=s(6780);let te,J=1;const De={};function ne(l){return l in De&&(delete De[l],!0)}const Z={setImmediate(l){const a=J++;return De[a]=!0,te||(te=Promise.resolve()),te.then(()=>ne(a)&&l()),a},clearImmediate(l){ne(l)}},{setImmediate:z,clearImmediate:ie}=Z,g={setImmediate(...l){const{delegate:a}=g;return(a?.setImmediate||z)(...l)},clearImmediate(l){const{delegate:a}=g;return(a?.clearImmediate||ie)(l)},delegate:void 0};var p=s(3604);const U=new class L extends p.q{flush(a){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:o}=this;let c;a=a||o.shift();do{if(c=a.execute(a.state,a.delay))break}while((a=o[0])&&a.id===t&&o.shift());if(this._active=!1,c){for(;(a=o[0])&&a.id===t&&o.shift();)a.unsubscribe();throw c}}}(class W extends N.R{constructor(a,t){super(a,t),this.scheduler=a,this.work=t}requestAsyncId(a,t,o=0){return null!==o&&o>0?super.requestAsyncId(a,t,o):(a.actions.push(this),a._scheduled||(a._scheduled=g.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,t,o=0){var c;if(null!=o?o>0:this.delay>0)return super.recycleAsyncId(a,t,o);const{actions:y}=a;null!=t&&(null===(c=y[y.length-1])||void 0===c?void 0:c.id)!==t&&(g.clearImmediate(t),a._scheduled=void 0)}});var $=s(1413),G=s(3726),Te=s(7786),Pe=s(177);const Ke=["content"],ge=["scroll"],He=["padding"],$e=["*"],Ue=l=>({searchTerm:l});function Ye(l,a){if(1&l&&(e.j41(0,"div",3),e.eu8(1,6),e.k0s()),2&l){const t=e.XpG();e.R7$(),e.Y8G("ngTemplateOutlet",t.headerTemplate)("ngTemplateOutletContext",e.eq3(2,Ue,t.filterValue))}}function Qe(l,a){if(1&l&&(e.j41(0,"div",5),e.eu8(1,6),e.k0s()),2&l){const t=e.XpG();e.R7$(),e.Y8G("ngTemplateOutlet",t.footerTemplate)("ngTemplateOutletContext",e.eq3(2,Ue,t.filterValue))}}const et=["searchInput"],ze=["clearButton"],lt=(l,a,t)=>({item:l,clear:a,label:t}),Xe=(l,a)=>({items:l,clear:a}),st=(l,a,t,o)=>({item:l,item$:a,index:t,searchTerm:o});function nt(l,a){if(1&l&&(e.j41(0,"div",20),e.EFF(1),e.k0s()),2&l){const t=e.XpG(2);e.R7$(),e.JRh(t.placeholder)}}function at(l,a){}function ut(l,a){if(1&l&&e.DNE(0,nt,2,1,"ng-template",null,1,e.C5r)(2,at,0,0,"ng-template",19),2&l){const t=e.sdS(1),o=e.XpG();e.R7$(2),e.Y8G("ngTemplateOutlet",o.placeholderTemplate||t)}}function mt(l,a){if(1&l){const t=e.RV6();e.j41(0,"span",23),e.bIt("click",function(){e.eBV(t);const c=e.XpG().$implicit,y=e.XpG(2);return e.Njj(y.unselect(c))}),e.EFF(1,"\xd7"),e.k0s(),e.nrm(2,"span",24)}if(2&l){const t=e.XpG().$implicit,o=e.XpG(2);e.R7$(2),e.Y8G("ngItemLabel",t.label)("escape",o.escapeHTML)}}function ct(l,a){}function it(l,a){if(1&l&&(e.j41(0,"div",22),e.DNE(1,mt,3,2,"ng-template",null,2,e.C5r)(3,ct,0,0,"ng-template",12),e.k0s()),2&l){const t=a.$implicit,o=e.sdS(2),c=e.XpG(2);e.AVh("ng-value-disabled",t.disabled),e.R7$(3),e.Y8G("ngTemplateOutlet",c.labelTemplate||o)("ngTemplateOutletContext",e.sMw(4,lt,t.value,c.clearItem,t.label))}}function yt(l,a){if(1&l&&e.Z7z(0,it,4,8,"div",21,e.BUC().trackByOption,!0),2&l){const t=e.XpG();e.Dyx(t.selectedItems)}}function Re(l,a){}function Je(l,a){if(1&l&&e.DNE(0,Re,0,0,"ng-template",12),2&l){const t=e.XpG();e.Y8G("ngTemplateOutlet",t.multiLabelTemplate)("ngTemplateOutletContext",e.l_i(2,Xe,t.selectedValues,t.clearItem))}}function ht(l,a){1&l&&e.nrm(0,"div",25)}function dt(l,a){}function gt(l,a){if(1&l&&e.DNE(0,ht,1,0,"ng-template",null,3,e.C5r)(2,dt,0,0,"ng-template",19),2&l){const t=e.sdS(1),o=e.XpG();e.R7$(2),e.Y8G("ngTemplateOutlet",o.loadingSpinnerTemplate||t)}}function ft(l,a){if(1&l&&(e.j41(0,"span",15,4)(2,"span",26),e.EFF(3,"\xd7"),e.k0s()()),2&l){const t=e.XpG();e.FS9("title",t.clearAllText)}}function Et(l,a){if(1&l&&e.nrm(0,"span",31),2&l){const t=e.XpG().$implicit,o=e.XpG(2);e.Y8G("ngItemLabel",t.label)("escape",o.escapeHTML)}}function ot(l,a){}function pt(l,a){if(1&l){const t=e.RV6();e.j41(0,"div",30),e.bIt("click",function(){const c=e.eBV(t).$implicit,y=e.XpG(2);return e.Njj(y.toggleItem(c))})("mouseover",function(){const c=e.eBV(t).$implicit,y=e.XpG(2);return e.Njj(y.onItemHover(c))}),e.DNE(1,Et,1,2,"ng-template",null,5,e.C5r)(3,ot,0,0,"ng-template",12),e.k0s()}if(2&l){const t=a.$implicit,o=e.sdS(2),c=e.XpG(2);e.AVh("ng-option-disabled",t.disabled)("ng-option-selected",t.selected)("ng-optgroup",t.children)("ng-option",!t.children)("ng-option-child",!!t.parent)("ng-option-marked",t===c.itemsList.markedItem),e.BMQ("role",t.children?"group":"option")("aria-selected",t.selected)("id",null==t?null:t.htmlId),e.R7$(3),e.Y8G("ngTemplateOutlet",t.children?c.optgroupTemplate||o:c.optionTemplate||o)("ngTemplateOutletContext",e.ziG(17,st,t.value,t,t.index,c.searchTerm))}}function Ct(l,a){if(1&l&&(e.j41(0,"span")(1,"span",33),e.EFF(2),e.k0s(),e.EFF(3),e.k0s()),2&l){const t=e.XpG(3);e.R7$(2),e.JRh(t.addTagText),e.R7$(),e.SpI('"',t.searchTerm,'"')}}function vt(l,a){}function Ot(l,a){if(1&l){const t=e.RV6();e.j41(0,"div",32),e.bIt("mouseover",function(){e.eBV(t);const c=e.XpG(2);return e.Njj(c.itemsList.unmarkItem())})("click",function(){e.eBV(t);const c=e.XpG(2);return e.Njj(c.selectTag())}),e.DNE(1,Ct,4,2,"ng-template",null,6,e.C5r)(3,vt,0,0,"ng-template",12),e.k0s()}if(2&l){const t=e.sdS(2),o=e.XpG(2);e.AVh("ng-option-marked",!o.itemsList.markedItem),e.R7$(3),e.Y8G("ngTemplateOutlet",o.tagTemplate||t)("ngTemplateOutletContext",e.eq3(4,Ue,o.searchTerm))}}function Dt(l,a){if(1&l&&(e.j41(0,"div",34),e.EFF(1),e.k0s()),2&l){const t=e.XpG(3);e.R7$(),e.JRh(t.notFoundText)}}function wt(l,a){}function rt(l,a){if(1&l&&e.DNE(0,Dt,2,1,"ng-template",null,7,e.C5r)(2,wt,0,0,"ng-template",12),2&l){const t=e.sdS(1),o=e.XpG(2);e.R7$(2),e.Y8G("ngTemplateOutlet",o.notFoundTemplate||t)("ngTemplateOutletContext",e.eq3(2,Ue,o.searchTerm))}}function _t(l,a){if(1&l&&(e.j41(0,"div",34),e.EFF(1),e.k0s()),2&l){const t=e.XpG(3);e.R7$(),e.JRh(t.typeToSearchText)}}function v(l,a){}function P(l,a){if(1&l&&e.DNE(0,_t,2,1,"ng-template",null,8,e.C5r)(2,v,0,0,"ng-template",19),2&l){const t=e.sdS(1),o=e.XpG(2);e.R7$(2),e.Y8G("ngTemplateOutlet",o.typeToSearchTemplate||t)}}function j(l,a){if(1&l&&(e.j41(0,"div",34),e.EFF(1),e.k0s()),2&l){const t=e.XpG(3);e.R7$(),e.JRh(t.loadingText)}}function C(l,a){}function B(l,a){if(1&l&&e.DNE(0,j,2,1,"ng-template",null,9,e.C5r)(2,C,0,0,"ng-template",12),2&l){const t=e.sdS(1),o=e.XpG(2);e.R7$(2),e.Y8G("ngTemplateOutlet",o.loadingTextTemplate||t)("ngTemplateOutletContext",e.eq3(2,Ue,o.searchTerm))}}function q(l,a){if(1&l){const t=e.RV6();e.j41(0,"ng-dropdown-panel",27),e.bIt("update",function(c){e.eBV(t);const y=e.XpG();return e.Njj(y.viewPortItems=c)})("scroll",function(c){e.eBV(t);const y=e.XpG();return e.Njj(y.scroll.emit(c))})("scrollToEnd",function(c){e.eBV(t);const y=e.XpG();return e.Njj(y.scrollToEnd.emit(c))})("outsideClick",function(){e.eBV(t);const c=e.XpG();return e.Njj(c.close())}),e.qex(1),e.Z7z(2,pt,4,22,"div",28,e.BUC().trackByOption,!0),e.DNE(4,Ot,4,6,"div",29),e.bVm(),e.DNE(5,rt,3,4)(6,P,3,1)(7,B,3,4),e.k0s()}if(2&l){const t=e.XpG();e.AVh("ng-select-multiple",t.multiple),e.Y8G("virtualScroll",t.virtualScroll)("bufferAmount",t.bufferAmount)("appendTo",t.appendTo)("position",t.dropdownPosition)("headerTemplate",t.headerTemplate)("footerTemplate",t.footerTemplate)("filterValue",t.searchTerm)("items",t.itemsList.filteredItems)("markedItem",t.itemsList.markedItem)("ngClass",t.appendTo?t.ngClass?t.ngClass:t.classes:null)("id",t.dropdownId),e.R7$(2),e.Dyx(t.viewPortItems),e.R7$(2),e.vxM(t.showAddTag?4:-1),e.R7$(),e.vxM(t.showNoItemsFound()?5:-1),e.R7$(),e.vxM(t.showTypeToSearch()?6:-1),e.R7$(),e.vxM(t.loading&&0===t.itemsList.filteredItems.length?7:-1)}}const ae=/[&<>"']/g,ue=RegExp(ae.source),fe={"&":"&","<":"<",">":">",'"':""","'":"'"};function ee(l){return null!=l}function me(l){return"object"==typeof l&&ee(l)}function Se(l){return l instanceof Function}let Be=(()=>{class l{constructor(t){this.element=t,this.escape=!0}ngOnChanges(t){this.element.nativeElement.innerHTML=this.escape?function ye(l){return l&&ue.test(l)?l.replace(ae,a=>fe[a]):l}(this.ngItemLabel):this.ngItemLabel}static#e=this.\u0275fac=function(o){return new(o||l)(e.rXU(e.aKT))};static#t=this.\u0275dir=e.FsC({type:l,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},standalone:!0,features:[e.OA$]})}return l})(),We=(()=>{class l{constructor(t){this.template=t}static#e=this.\u0275fac=function(o){return new(o||l)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:l,selectors:[["","ng-option-tmp",""]],standalone:!0})}return l})(),je=(()=>{class l{constructor(t){this.template=t}static#e=this.\u0275fac=function(o){return new(o||l)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:l,selectors:[["","ng-optgroup-tmp",""]],standalone:!0})}return l})(),Ne=(()=>{class l{constructor(t){this.template=t}static#e=this.\u0275fac=function(o){return new(o||l)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:l,selectors:[["","ng-label-tmp",""]],standalone:!0})}return l})(),pe=(()=>{class l{constructor(t){this.template=t}static#e=this.\u0275fac=function(o){return new(o||l)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:l,selectors:[["","ng-multi-label-tmp",""]],standalone:!0})}return l})(),se=(()=>{class l{constructor(t){this.template=t}static#e=this.\u0275fac=function(o){return new(o||l)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:l,selectors:[["","ng-header-tmp",""]],standalone:!0})}return l})(),Ie=(()=>{class l{constructor(t){this.template=t}static#e=this.\u0275fac=function(o){return new(o||l)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:l,selectors:[["","ng-footer-tmp",""]],standalone:!0})}return l})(),ke=(()=>{class l{constructor(t){this.template=t}static#e=this.\u0275fac=function(o){return new(o||l)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:l,selectors:[["","ng-notfound-tmp",""]],standalone:!0})}return l})(),Fe=(()=>{class l{constructor(t){this.template=t}static#e=this.\u0275fac=function(o){return new(o||l)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:l,selectors:[["","ng-placeholder-tmp",""]],standalone:!0})}return l})(),Le=(()=>{class l{constructor(t){this.template=t}static#e=this.\u0275fac=function(o){return new(o||l)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:l,selectors:[["","ng-typetosearch-tmp",""]],standalone:!0})}return l})(),de=(()=>{class l{constructor(t){this.template=t}static#e=this.\u0275fac=function(o){return new(o||l)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:l,selectors:[["","ng-loadingtext-tmp",""]],standalone:!0})}return l})(),xe=(()=>{class l{constructor(t){this.template=t}static#e=this.\u0275fac=function(o){return new(o||l)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:l,selectors:[["","ng-tag-tmp",""]],standalone:!0})}return l})(),Ee=(()=>{class l{constructor(t){this.template=t}static#e=this.\u0275fac=function(o){return new(o||l)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:l,selectors:[["","ng-loadingspinner-tmp",""]],standalone:!0})}return l})();function ve(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const _e={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function be(l){return l.replace(/[^\u0000-\u007E]/g,t=>_e[t]||t)}class Ge{constructor(a,t){this._ngSelect=a,this._selectionModel=t,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let a=this.selectedItems.length-1;for(;a>=0;a--){const t=this.selectedItems[a];if(!t.disabled)return t}return null}setItems(a){this._items=a.map((t,o)=>this.mapItem(t,o)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(a){if(a.selected||this.maxItemsSelected)return;const t=this._ngSelect.multiple;t||this.clearSelected(),this._selectionModel.select(a,t,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(a)}unselect(a){a.selected&&(this._selectionModel.unselect(a,this._ngSelect.multiple),this._ngSelect.hideSelected&&ee(a.index)&&this._ngSelect.multiple&&this._showSelected(a))}findItem(a){let t;return t=this._ngSelect.compareWith?o=>this._ngSelect.compareWith(o.value,a):this._ngSelect.bindValue?o=>!o.children&&this.resolveNested(o.value,this._ngSelect.bindValue)===a:o=>o.value===a||!o.children&&o.label&&o.label===this.resolveNested(a,this._ngSelect.bindLabel),this._items.find(o=>t(o))}addItem(a){const t=this.mapItem(a,this._items.length);return this._items.push(t),this._filteredItems.push(t),t}clearSelected(a=!1){this._selectionModel.clear(a),this._items.forEach(t=>{t.selected=a&&t.selected&&t.disabled,t.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(a){return a=be(a).toLocaleLowerCase(),this.filteredItems.find(t=>be(t.label).toLocaleLowerCase().substr(0,a.length)===a)}filter(a){if(!a)return void this.resetFilteredItems();this._filteredItems=[],a=this._ngSelect.searchFn?a:be(a).toLocaleLowerCase();const t=this._ngSelect.searchFn||this._defaultSearchFn,o=this._ngSelect.hideSelected;for(const c of Array.from(this._groups.keys())){const y=[];for(const I of this._groups.get(c))o&&(I.parent&&I.parent.selected||I.selected)||t(a,this._ngSelect.searchFn?I.value:I)&&y.push(I);if(y.length>0){const[I]=y.slice(-1);if(I.parent){const Y=this._items.find(he=>he===I.parent);this._filteredItems.push(Y)}this._filteredItems.push(...y)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(a=>!a.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(a){this._markedIndex=this._filteredItems.indexOf(a)}markSelectedOrDefault(a){if(0===this._filteredItems.length)return;const t=this._getLastMarkedIndex();this._markedIndex=t>-1?t:a?this.filteredItems.findIndex(o=>!o.disabled):-1}resolveNested(a,t){if(!me(a))return a;if(-1===t.indexOf("."))return a[t];{const o=t.split(".");let c=a;for(let y=0,I=o.length;y<I;++y){if(null==c)return null;c=c[o[y]]}return c}}mapItem(a,t){const o=ee(a.$ngOptionLabel)?a.$ngOptionLabel:this.resolveNested(a,this._ngSelect.bindLabel),c=ee(a.$ngOptionValue)?a.$ngOptionValue:a;return{index:t,label:ee(o)?o.toString():"",value:c,disabled:a.disabled,htmlId:`${this._ngSelect.dropdownId}-${t}`}}mapSelectedItems(){const a=this._ngSelect.multiple;for(const t of this.selectedItems){const o=this._ngSelect.bindValue?this.resolveNested(t.value,this._ngSelect.bindValue):t.value,c=ee(o)?this.findItem(o):null;this._selectionModel.unselect(t,a),this._selectionModel.select(c||t,a,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(t=>-1===this.selectedItems.indexOf(t)))}_showSelected(a){if(this._filteredItems.push(a),a.parent){const t=a.parent;this._filteredItems.find(c=>c===t)||this._filteredItems.push(t)}else if(a.children)for(const t of a.children)t.selected=!1,this._filteredItems.push(t);this._filteredItems=[...this._filteredItems.sort((t,o)=>t.index-o.index)]}_hideSelected(a){this._filteredItems=this._filteredItems.filter(t=>t!==a),a.parent?a.parent.children.every(o=>o.selected)&&(this._filteredItems=this._filteredItems.filter(o=>o!==a.parent)):a.children&&(this._filteredItems=this.filteredItems.filter(t=>t.parent!==a))}_defaultSearchFn(a,t){return be(t.label).toLocaleLowerCase().indexOf(a)>-1}_getNextItemIndex(a){return a>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(a){0===this._filteredItems.length||this._filteredItems.every(t=>t.disabled)||(this._markedIndex=this._getNextItemIndex(a),this.markedItem.disabled&&this._stepToItem(a))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const a=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&a<0?-1:Math.max(this.markedIndex,a)}_groupBy(a,t){const o=new Map;if(0===a.length)return o;if(Array.isArray(a[0].value[t])){for(const I of a){const Y=(I.value[t]||[]).map((he,ce)=>this.mapItem(he,ce));o.set(I,Y)}return o}const c=Se(this._ngSelect.groupBy),y=I=>{const Y=c?t(I.value):I.value[t];return ee(Y)?Y:void 0};for(const I of a){const Y=y(I),he=o.get(Y);he?he.push(I):o.set(Y,[I])}return o}_flatten(a){const t=Se(this._ngSelect.groupBy),o=[];for(const c of Array.from(a.keys())){let y=o.length;if(void 0===c){const we=a.get(void 0)||[];o.push(...we.map(Ve=>(Ve.index=y++,Ve)));continue}const I=me(c),Y={label:I?"":String(c),children:void 0,parent:null,index:y++,disabled:!this._ngSelect.selectableGroup,htmlId:ve()},he=t?this._ngSelect.bindLabel:this._ngSelect.groupBy,ce=this._ngSelect.groupValue||(()=>I?c.value:{[he]:c}),Ae=a.get(c).map(we=>(we.parent=Y,we.children=void 0,we.index=y++,we));Y.children=Ae,Y.value=ce(c,Ae.map(we=>we.value)),o.push(Y),o.push(...Ae)}return o}}var Me=function(l){return l[l.Tab=9]="Tab",l[l.Enter=13]="Enter",l[l.Esc=27]="Esc",l[l.Space=32]="Space",l[l.ArrowUp=38]="ArrowUp",l[l.ArrowDown=40]="ArrowDown",l[l.Backspace=8]="Backspace",l}(Me||{});let Ce=(()=>{class l{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(t,o,c){const y=this._dimensions,I=y.itemHeight*o,he=Math.max(0,t)/I*o;let ce=Math.min(o,Math.ceil(he)+(y.itemsPerViewport+1));const we=Math.max(0,ce-y.itemsPerViewport);let Ve=Math.min(we,Math.floor(he)),Ze=y.itemHeight*Math.ceil(Ve)-y.itemHeight*Math.min(Ve,c);return Ze=isNaN(Ze)?0:Ze,Ve=isNaN(Ve)?-1:Ve,ce=isNaN(ce)?-1:ce,Ve-=c,Ve=Math.max(0,Ve),ce+=c,ce=Math.min(o,ce),{topPadding:Ze,scrollHeight:I,start:Ve,end:ce}}setDimensions(t,o){const c=Math.max(1,Math.floor(o/t));this._dimensions={itemHeight:t,panelHeight:o,itemsPerViewport:c}}getScrollTo(t,o,c){const{panelHeight:y}=this.dimensions,I=t+o,he=c+y;return y>=I&&c===t?null:I>he?c+I-he:t<=c?t:null}static#e=this.\u0275fac=function(o){return new(o||l)};static#t=this.\u0275prov=e.jDH({token:l,factory:l.\u0275fac})}return l})();const le=["top","right","bottom","left"],n=typeof requestAnimationFrame<"u"?F.X:U;let i=(()=>{class l{constructor(t,o,c,y,I){this._renderer=t,this._zone=o,this._panelService=c,this._document=I,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new e.bkB,this.scroll=new e.bkB,this.scrollToEnd=new e.bkB,this.outsideClick=new e.bkB,this._destroy$=new $.B,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=y.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(t){t!==this._itemsLength&&(this._itemsLength=t,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:t,panelHeight:o}=this._panelService.dimensions,c=this.markedItem.index*t;return o>c?0:c}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(t){if(t.items){const o=t.items;this._onItemsChange(o.currentValue,o.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(t,o=!1){if(!t)return;const c=this.items.indexOf(t);if(c<0||c>=this.itemsLength)return;let y;if(this.virtualScroll){const I=this._panelService.dimensions.itemHeight;y=this._panelService.getScrollTo(c*I,I,this._lastScrollPosition)}else{const I=this._dropdown.querySelector(`#${t.htmlId}`);y=this._panelService.getScrollTo(I.offsetTop,I.clientHeight,o?I.offsetTop:this._lastScrollPosition)}ee(y)&&(this._scrollablePanel.scrollTop=y)}scrollToTag(){const t=this._scrollablePanel;t.scrollTop=t.scrollHeight-t.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),le.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(t){le.forEach(c=>{const y=`ng-select-${c}`;this._renderer.removeClass(this._dropdown,y),this._renderer.removeClass(this._select,y)});const o=`ng-select-${t}`;this._renderer.addClass(this._dropdown,o),this._renderer.addClass(this._select,o)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,G.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,b.Q)(this._destroy$),function h(l,a=E.E){return function O(l){return(0,m.N)((a,t)=>{let o=!1,c=null,y=null,I=!1;const Y=()=>{if(y?.unsubscribe(),y=null,o){o=!1;const ce=c;c=null,t.next(ce)}I&&t.complete()},he=()=>{y=null,I&&t.complete()};a.subscribe((0,A._)(t,ce=>{o=!0,c=ce,y||(0,S.Tg)(l(ce)).subscribe(y=(0,A._)(t,Y,he))},()=>{I=!0,(!o||!y||y.closed)&&t.complete()}))})}(()=>(0,w.O)(l,a))}(0,n)).subscribe(t=>{const o=t.path||t.composedPath&&t.composedPath();o&&(0!==o.length||t.target)&&this._onContentScrolled(o&&0!==o.length?o[0].scrollTop:t.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,Te.h)((0,G.R)(this._document,"touchstart",{capture:!0}),(0,G.R)(this._document,"click",{capture:!0})).pipe((0,b.Q)(this._destroy$)).subscribe(t=>this._checkToClose(t))})}_checkToClose(t){if(this._select.contains(t.target)||this._dropdown.contains(t.target))return;const o=t.path||t.composedPath&&t.composedPath();t.target&&t.target.shadowRoot&&o&&o[0]&&this._select.contains(o[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(t,o){this.items=t||[],this._scrollToEndFired=!1,this.itemsLength=t.length,this.virtualScroll?this._updateItemsRange(o):(this._setVirtualHeight(),this._updateItems(o))}_updateItems(t){this.update.emit(this.items),!1!==t&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,t)})})}_updateItemsRange(t){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{t?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(t){this.virtualScroll&&this._renderItemsRange(t),this._lastScrollPosition=t,this._fireScrollToEnd(t)}_updateVirtualHeight(t){this._updateScrollHeight&&(this._virtualPadding.style.height=`${t}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(t=null){if(t&&this._lastScrollPosition===t)return;const o=this._panelService.calculateItems(t=t||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(o.scrollHeight),this._contentPanel.style.transform=`translateY(${o.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(o.start,o.end)),this.scroll.emit({start:o.start,end:o.end})}),ee(t)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=t,this._lastScrollPosition=t)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[t]=this.items;return this.update.emit([t]),Promise.resolve().then(()=>{const c=this._dropdown.querySelector(`#${t.htmlId}`).clientHeight;return this._virtualPadding.style.height=c*this.itemsLength+"px",this._panelService.setDimensions(c,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(t){this._scrollToEndFired||0===t||t+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(t){if("auto"!==this.position)return this.position;const o=this._select.getBoundingClientRect(),c=document.documentElement.scrollTop||document.body.scrollTop;return o.top+window.pageYOffset+o.height+t.getBoundingClientRect().height>c+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const t=this._select.getBoundingClientRect(),o=this._parent.getBoundingClientRect();this._dropdown.style.left=t.left-o.left+"px",this._dropdown.style.width=t.width+"px",this._dropdown.style.minWidth=t.width+"px"}_updateYPosition(){const t=this._select.getBoundingClientRect(),o=this._parent.getBoundingClientRect(),c=t.height;"top"===this._currentPosition?(this._dropdown.style.bottom=o.bottom-t.bottom+c+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=t.top-o.top+c+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,G.R)(this._dropdown,"mousedown").pipe((0,b.Q)(this._destroy$)).subscribe(t=>{"INPUT"!==t.target.tagName&&t.preventDefault()})})}static#e=this.\u0275fac=function(o){return new(o||l)(e.rXU(e.sFG),e.rXU(e.SKi),e.rXU(Ce),e.rXU(e.aKT),e.rXU(Pe.qQ,8))};static#t=this.\u0275cmp=e.VBU({type:l,selectors:[["ng-dropdown-panel"]],viewQuery:function(o,c){if(1&o&&(e.GBs(Ke,7,e.aKT),e.GBs(ge,7,e.aKT),e.GBs(He,7,e.aKT)),2&o){let y;e.mGM(y=e.lsd())&&(c.contentElementRef=y.first),e.mGM(y=e.lsd())&&(c.scrollElementRef=y.first),e.mGM(y=e.lsd())&&(c.paddingElementRef=y.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",e.L39],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},standalone:!0,features:[e.GFd,e.OA$,e.aNF],ngContentSelectors:$e,decls:9,vars:6,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,c){1&o&&(e.NAR(),e.DNE(0,Ye,2,4,"div",3),e.j41(1,"div",4,0),e.nrm(3,"div",null,1),e.j41(5,"div",null,2),e.SdG(7),e.k0s()(),e.DNE(8,Qe,2,4,"div",5)),2&o&&(e.vxM(c.headerTemplate?0:-1),e.R7$(3),e.AVh("total-padding",c.virtualScroll),e.R7$(2),e.AVh("scrollable-content",c.virtualScroll&&c.items.length),e.R7$(3),e.vxM(c.footerTemplate?8:-1))},dependencies:[Pe.T3],encapsulation:2,changeDetection:0})}return l})(),r=(()=>{class l{constructor(t){this.elementRef=t,this.disabled=!1,this.stateChange$=new $.B}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(t){t.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}static#e=this.\u0275fac=function(o){return new(o||l)(e.rXU(e.aKT))};static#t=this.\u0275cmp=e.VBU({type:l,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",e.L39]},standalone:!0,features:[e.GFd,e.OA$,e.aNF],ngContentSelectors:$e,decls:1,vars:0,template:function(o,c){1&o&&(e.NAR(),e.SdG(0))},encapsulation:2,changeDetection:0})}return l})();function u(){return new M}class M{constructor(){this._selected=[]}get value(){return this._selected}select(a,t,o){if(a.selected=!0,(!a.children||!t&&o)&&this._selected.push(a),t)if(a.parent){const c=a.parent.children.length,y=a.parent.children.filter(I=>I.selected).length;a.parent.selected=c===y}else a.children&&(this._setChildrenSelectedState(a.children,!0),this._removeChildren(a),this._selected=o&&this._activeChildren(a)?[...this._selected.filter(c=>c.parent!==a),a]:[...this._selected,...a.children.filter(c=>!c.disabled)])}unselect(a,t){if(this._selected=this._selected.filter(o=>o!==a),a.selected=!1,t)if(a.parent&&a.parent.selected){const o=a.parent.children;this._removeParent(a.parent),this._removeChildren(a.parent),this._selected.push(...o.filter(c=>c!==a&&!c.disabled)),a.parent.selected=!1}else a.children&&(this._setChildrenSelectedState(a.children,!1),this._removeChildren(a))}clear(a){this._selected=a?this._selected.filter(t=>t.disabled):[]}_setChildrenSelectedState(a,t){for(const o of a)o.disabled||(o.selected=t)}_removeChildren(a){this._selected=[...this._selected.filter(t=>t.parent!==a),...a.children.filter(t=>t.parent===a&&t.disabled&&t.selected)]}_removeParent(a){this._selected=this._selected.filter(t=>t!==a)}_activeChildren(a){return a.children.every(t=>!t.disabled||t.selected)}}let k=(()=>{class l{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static#e=this.\u0275fac=function(o){return new(o||l)};static#t=this.\u0275prov=e.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),V=(()=>{class l{warn(t){console.warn(t)}static#e=this.\u0275fac=function(o){return new(o||l)};static#t=this.\u0275prov=e.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();const H=new e.nKC("ng-select-selection-model");let X=(()=>{class l{constructor(t,o,c,y,I,Y,he){this.classes=t,this.autoFocus=o,this.config=c,this._cd=Y,this._console=he,this.markFirst=!0,this.fixedPlaceholder=!0,this.preventToggleOnRightClick=!1,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.ngClass=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new e.bkB,this.focusEvent=new e.bkB,this.changeEvent=new e.bkB,this.openEvent=new e.bkB,this.closeEvent=new e.bkB,this.searchEvent=new e.bkB,this.clearEvent=new e.bkB,this.addEvent=new e.bkB,this.removeEvent=new e.bkB,this.scroll=new e.bkB,this.scrollToEnd=new e.bkB,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=ve(),this.escapeHTML=!0,this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new $.B,this._keyPress$=new $.B,this._items=[],this.keyDownFn=ce=>!0,this.clearItem=ce=>{const Ae=this.selectedItems.find(we=>we.value===ce);this.unselect(Ae)},this.trackByOption=(ce,Ae)=>this.trackByFn?this.trackByFn(Ae.value):Ae,this._onChange=ce=>{},this._onTouched=()=>{},this._mergeGlobalConfig(c),this.itemsList=new Ge(this,y?y():u()),this.element=I.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get items(){return this._items}set items(t){this._itemsAreUsed=!0,this._items=t??[]}get disabled(){return this.readonly||this._disabled}get compareWith(){return this._compareWith}set compareWith(t){if(null!=t&&!Se(t))throw Error("`compareWith` must be a function.");this._compareWith=t}get clearSearchOnAdd(){return ee(this._clearSearchOnAdd)?this._clearSearchOnAdd:ee(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(t){this._clearSearchOnAdd=t}get deselectOnClick(){return ee(this._deselectOnClick)?this._deselectOnClick:ee(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(t){this._deselectOnClick=t}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(t=>t.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}get showAddTag(){if(!this._validTerm)return!1;const t=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(o=>o.label.toLowerCase()===t)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(o=>o.label.toLowerCase()===t))&&!this.loading}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const t=this.searchTerm&&this.searchTerm.trim();return t&&t.length>=this.minTermLength}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(t){t.multiple&&this.itemsList.clearSelected(),t.items&&this._setItems(t.items.currentValue||[]),t.isOpen&&(this._manualOpen=ee(t.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),ee(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(t){if(Me[t.which]){if(!1===this.keyDownFn(t))return;this.handleKeyCode(t)}else t.key&&1===t.key.length&&this._keyPress$.next(t.key.toLocaleLowerCase())}handleKeyCode(t){this.clearButton&&this.clearButton.nativeElement===t.target?this.handleKeyCodeClear(t):this.handleKeyCodeInput(t)}handleKeyCodeInput(t){switch(t.which){case Me.ArrowDown:this._handleArrowDown(t);break;case Me.ArrowUp:this._handleArrowUp(t);break;case Me.Space:this._handleSpace(t);break;case Me.Enter:this._handleEnter(t);break;case Me.Tab:this._handleTab(t);break;case Me.Esc:this.close(),t.preventDefault();break;case Me.Backspace:this._handleBackspace()}}handleKeyCodeClear(t){t.which===Me.Enter&&(this.handleClearClick(),t.preventDefault())}handleMousedown(t){if(this.preventToggleOnRightClick&&2===t.button)return!1;const o=t.target;"INPUT"!==o.tagName&&t.preventDefault(),o.classList.contains("ng-clear-wrapper")?this.handleClearClick():o.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():o.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(t){this.itemsList.clearSelected(),this._handleWriteValue(t),this._cd.markForCheck()}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._disabled=t,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(t){!t||t.disabled||this.disabled||(this.deselectOnClick&&t.selected?this.unselect(t):this.select(t),this._editableSearchTerm&&this._setSearchTermFromItems())}select(t){t.selected||(this.itemsList.select(t),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(t.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(t){t&&(this.itemsList.unselect(t),this.focus(),this._updateNgModel(),this.removeEvent.emit(t.value),this._onSelectionChanged())}selectTag(){let t;t=Se(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const o=c=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(c,null):this.itemsList.addItem(c);!function Oe(l){return l instanceof Promise}(t)?t&&this.select(o(t)):t.then(c=>this.select(o(c))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}showNoItemsFound(){const t=0===this.itemsList.filteredItems.length;return(t&&!this._isTypeahead&&!this.loading||t&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(t){this._isComposing=!1,!this.searchWhileComposing&&this.filter(t)}filter(t){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=t,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(t),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:t,items:this.itemsList.filteredItems.map(o=>o.value)}),this.open())}onInputFocus(t){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(t),this.focused=!0)}onInputBlur(t){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(t),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(t){t.disabled||this.itemsList.markItem(t)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const t=this.selectedItems&&this.selectedItems[0];this.searchTerm=t&&t.label||null}_setItems(t){const o=t[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=ee(o)?!me(o):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(t),t.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&ee(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const t=c=>{this.items=c.map(y=>({$ngOptionValue:y.value,$ngOptionLabel:y.elementRef.nativeElement.innerHTML,disabled:y.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},o=()=>{const c=(0,Te.h)(this.ngOptions.changes,this._destroy$);(0,Te.h)(...this.ngOptions.map(y=>y.stateChange$)).pipe((0,b.Q)(c)).subscribe(y=>{const I=this.itemsList.findItem(y.value);I.disabled=y.disabled,I.label=y.label||I.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,T.Z)(this.ngOptions),(0,b.Q)(this._destroy$)).subscribe(c=>{this.bindLabel=this._defaultLabel,t(c),o()})}_isValidWriteValue(t){if(!ee(t)||this.multiple&&""===t||Array.isArray(t)&&0===t.length)return!1;const o=c=>!(!ee(this.compareWith)&&me(c)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(c)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(t)?t.every(c=>o(c)):(this._console.warn("Multiple select ngModel should be array."),!1):o(t)}_handleWriteValue(t){if(!this._isValidWriteValue(t))return;const o=c=>{let y=this.itemsList.findItem(c);if(y)this.itemsList.select(y);else{const I=me(c);I||!I&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(c,null)):this.bindValue&&(y={[this.bindLabel]:null,[this.bindValue]:c},this.itemsList.select(this.itemsList.mapItem(y,null)))}};this.multiple?t.forEach(c=>o(c)):o(t)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,b.Q)(this._destroy$),(0,f.M)(t=>this._pressedKeys.push(t)),(0,R.B)(200),(0,x.p)(()=>this._pressedKeys.length>0),(0,d.T)(()=>this._pressedKeys.join(""))).subscribe(t=>{const o=this.itemsList.findByLabel(t);o&&(this.isOpen?(this.itemsList.markItem(o),this._scrollToMarked(),this._cd.markForCheck()):this.select(o)),this._pressedKeys=[]})}_setInputAttributes(){const t=this.searchInput.nativeElement,o={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const c of Object.keys(o))t.setAttribute(c,o[c])}_updateNgModel(){const t=[];for(const c of this.selectedItems)if(this.bindValue){let y=null;y=c.children?c.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(c.value,this.bindValue),t.push(y)}else t.push(c.value);const o=this.selectedItems.map(c=>c.value);this.multiple?(this._onChange(t),this.changeEvent.emit(o)):(this._onChange(ee(t[0])?t[0]:null),this.changeEvent.emit(o[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(t){this.searchTerm=t,this._isTypeahead&&this.typeahead.next(t)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(t){if(!1===this.isOpen)if(this.showClear()&&!t.shiftKey)this.focusOnClear(),t.preventDefault();else if(!this.addTag)return;this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),t.preventDefault()):this.showAddTag?(this.selectTag(),t.preventDefault()):this.close():this.close()}_handleEnter(t){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}t.preventDefault()}_handleSpace(t){this.isOpen||this._manualOpen||(this.open(),t.preventDefault())}_handleArrowDown(t){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),t.preventDefault()}_handleArrowUp(t){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),t.preventDefault())}_nextItemIsTag(t){const o=this.itemsList.markedIndex+t;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(o<0||o===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(t){this.placeholder=this.placeholder||t.placeholder,this.fixedPlaceholder=this.fixedPlaceholder||t.fixedPlaceholder,this.notFoundText=this.notFoundText||t.notFoundText,this.typeToSearchText=this.typeToSearchText||t.typeToSearchText,this.addTagText=this.addTagText||t.addTagText,this.loadingText=this.loadingText||t.loadingText,this.clearAllText=this.clearAllText||t.clearAllText,this.virtualScroll=ee(this.virtualScroll)?this.virtualScroll:!!ee(t.disableVirtualScroll)&&!t.disableVirtualScroll,this.openOnEnter=ee(this.openOnEnter)?this.openOnEnter:t.openOnEnter,this.appendTo=this.appendTo||t.appendTo,this.bindValue=this.bindValue||t.bindValue,this.bindLabel=this.bindLabel||t.bindLabel,this.appearance=this.appearance||t.appearance}static#e=this.\u0275fac=function(o){return new(o||l)(e.kS0("class"),e.kS0("autofocus"),e.rXU(k),e.rXU(H,8),e.rXU(e.aKT),e.rXU(e.gRc),e.rXU(V))};static#t=this.\u0275cmp=e.VBU({type:l,selectors:[["ng-select"]],contentQueries:function(o,c,y){if(1&o&&(e.wni(y,We,5,e.C4Q),e.wni(y,je,5,e.C4Q),e.wni(y,Ne,5,e.C4Q),e.wni(y,pe,5,e.C4Q),e.wni(y,se,5,e.C4Q),e.wni(y,Ie,5,e.C4Q),e.wni(y,ke,5,e.C4Q),e.wni(y,Fe,5,e.C4Q),e.wni(y,Le,5,e.C4Q),e.wni(y,de,5,e.C4Q),e.wni(y,xe,5,e.C4Q),e.wni(y,Ee,5,e.C4Q),e.wni(y,r,5)),2&o){let I;e.mGM(I=e.lsd())&&(c.optionTemplate=I.first),e.mGM(I=e.lsd())&&(c.optgroupTemplate=I.first),e.mGM(I=e.lsd())&&(c.labelTemplate=I.first),e.mGM(I=e.lsd())&&(c.multiLabelTemplate=I.first),e.mGM(I=e.lsd())&&(c.headerTemplate=I.first),e.mGM(I=e.lsd())&&(c.footerTemplate=I.first),e.mGM(I=e.lsd())&&(c.notFoundTemplate=I.first),e.mGM(I=e.lsd())&&(c.placeholderTemplate=I.first),e.mGM(I=e.lsd())&&(c.typeToSearchTemplate=I.first),e.mGM(I=e.lsd())&&(c.loadingTextTemplate=I.first),e.mGM(I=e.lsd())&&(c.tagTemplate=I.first),e.mGM(I=e.lsd())&&(c.loadingSpinnerTemplate=I.first),e.mGM(I=e.lsd())&&(c.ngOptions=I)}},viewQuery:function(o,c){if(1&o&&(e.GBs(i,5),e.GBs(et,7),e.GBs(ze,5)),2&o){let y;e.mGM(y=e.lsd())&&(c.dropdownPanel=y.first),e.mGM(y=e.lsd())&&(c.searchInput=y.first),e.mGM(y=e.lsd())&&(c.clearButton=y.first)}},hostVars:20,hostBindings:function(o,c){1&o&&e.bIt("keydown",function(I){return c.handleKeyDown(I)}),2&o&&e.AVh("ng-select-typeahead",c.typeahead)("ng-select-multiple",c.multiple)("ng-select-taggable",c.addTag)("ng-select-searchable",c.searchable)("ng-select-clearable",c.clearable)("ng-select-opened",c.isOpen)("ng-select",c.useDefaultClass)("ng-select-filtered",c.filtered)("ng-select-single",c.single)("ng-select-disabled",c.disabled)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:[2,"markFirst","markFirst",e.L39],placeholder:"placeholder",fixedPlaceholder:"fixedPlaceholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",preventToggleOnRightClick:"preventToggleOnRightClick",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",e.L39],closeOnSelect:[2,"closeOnSelect","closeOnSelect",e.L39],hideSelected:[2,"hideSelected","hideSelected",e.L39],selectOnTab:[2,"selectOnTab","selectOnTab",e.L39],openOnEnter:[2,"openOnEnter","openOnEnter",e.L39],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",e.Udg],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",e.Udg],virtualScroll:[2,"virtualScroll","virtualScroll",e.L39],selectableGroup:[2,"selectableGroup","selectableGroup",e.L39],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",e.L39],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",e.L39],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",e.Udg],readonly:[2,"readonly","readonly",e.L39],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",e.L39],minTermLength:[2,"minTermLength","minTermLength",e.Udg],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",e.L39],ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",e.L39],addTag:"addTag",searchable:[2,"searchable","searchable",e.L39],clearable:[2,"clearable","clearable",e.L39],isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick",keyDownFn:"keyDownFn"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},standalone:!0,features:[e.Jv_([{provide:_.kq,useExisting:(0,e.Rfq)(()=>l),multi:!0},Ce]),e.GFd,e.OA$,e.aNF],decls:13,vars:18,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(o,c){if(1&o){const y=e.RV6();e.j41(0,"div",10),e.bIt("mousedown",function(Y){return e.eBV(y),e.Njj(c.handleMousedown(Y))}),e.j41(1,"div",11),e.DNE(2,ut,3,1)(3,yt,2,0)(4,Je,1,5,null,12),e.j41(5,"div",13)(6,"input",14,0),e.bIt("blur",function(Y){return e.eBV(y),e.Njj(c.onInputBlur(Y))})("change",function(Y){return e.eBV(y),e.Njj(Y.stopPropagation())})("compositionend",function(){e.eBV(y);const Y=e.sdS(7);return e.Njj(c.onCompositionEnd(Y.value))})("compositionstart",function(){return e.eBV(y),e.Njj(c.onCompositionStart())})("focus",function(Y){return e.eBV(y),e.Njj(c.onInputFocus(Y))})("input",function(){e.eBV(y);const Y=e.sdS(7);return e.Njj(c.filter(Y.value))}),e.k0s()()(),e.DNE(8,gt,3,1)(9,ft,4,1,"span",15),e.j41(10,"span",16),e.nrm(11,"span",17),e.k0s()(),e.DNE(12,q,8,17,"ng-dropdown-panel",18)}2&o&&(e.AVh("ng-appearance-outline","outline"===c.appearance)("ng-has-value",c.hasValue),e.R7$(2),e.vxM(0===c.selectedItems.length&&!c.searchTerm||!0===c.fixedPlaceholder?2:-1),e.R7$(),e.vxM(c.multiLabelTemplate&&c.multiple||!(c.selectedItems.length>0)?-1:3),e.R7$(),e.vxM(c.multiple&&c.multiLabelTemplate&&c.selectedValues.length>0?4:-1),e.R7$(2),e.Y8G("disabled",c.disabled)("readOnly",!c.searchable||c.itemsList.maxItemsSelected)("value",c.searchTerm?c.searchTerm:""),e.BMQ("aria-activedescendant",c.isOpen?null==c.itemsList||null==c.itemsList.markedItem?null:c.itemsList.markedItem.htmlId:null)("aria-controls",c.isOpen?c.dropdownId:null)("aria-expanded",c.isOpen)("id",c.labelForId)("tabindex",c.tabIndex),e.R7$(2),e.vxM(c.loading?8:-1),e.R7$(),e.vxM(c.showClear()?9:-1),e.R7$(3),e.vxM(c.isOpen?12:-1))},dependencies:[Pe.T3,Be,i,Pe.YU],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0})}return l})(),oe=(()=>{class l{static#e=this.\u0275fac=function(o){return new(o||l)};static#t=this.\u0275mod=e.$C({type:l});static#n=this.\u0275inj=e.G2t({providers:[{provide:H,useValue:u}]})}return l})()},4722:(Q,D,s)=>{s.d(D,{Cp:()=>w,ew:()=>O,p4:()=>S});var e=s(3953),_=s(9417);const b={provide:_.kq,useExisting:(0,e.Rfq)(()=>E),multi:!0};let E=(()=>{class h{constructor(){this.btnCheckboxTrue=!0,this.btnCheckboxFalse=!1,this.state=!1,this.isDisabled=!1,this.onChange=Function.prototype,this.onTouched=Function.prototype}onClick(){this.isDisabled||(this.toggle(!this.state),this.onChange(this.value))}ngOnInit(){this.toggle(this.trueValue===this.value)}get trueValue(){return!(typeof this.btnCheckboxTrue<"u")||this.btnCheckboxTrue}get falseValue(){return typeof this.btnCheckboxFalse<"u"&&this.btnCheckboxFalse}toggle(f){this.state=f,this.value=this.state?this.trueValue:this.falseValue}writeValue(f){this.state=this.trueValue===f,this.value=f?this.trueValue:this.falseValue}setDisabledState(f){this.isDisabled=f}registerOnChange(f){this.onChange=f}registerOnTouched(f){this.onTouched=f}static#e=this.\u0275fac=function(R){return new(R||h)};static#t=this.\u0275dir=e.FsC({type:h,selectors:[["","btnCheckbox",""]],hostVars:3,hostBindings:function(R,x){1&R&&e.bIt("click",function(){return x.onClick()}),2&R&&(e.BMQ("aria-pressed",x.state),e.AVh("active",x.state))},inputs:{btnCheckboxTrue:"btnCheckboxTrue",btnCheckboxFalse:"btnCheckboxFalse"},features:[e.Jv_([b])]})}return h})();const m={provide:_.kq,useExisting:(0,e.Rfq)(()=>S),multi:!0};let S=(()=>{class h{get value(){return this.group?this.group.value:this._value}set value(f){this.group?this.group.value=f:(this._value=f,this._onChange(f))}get disabled(){return this._disabled}set disabled(f){this.setDisabledState(f)}get controlOrGroupDisabled(){return!!(this.disabled||this.group&&this.group.disabled)||void 0}get hasDisabledClass(){return this.controlOrGroupDisabled&&!this.isActive}get isActive(){return this.btnRadio===this.value}get tabindex(){if(!this.controlOrGroupDisabled)return this.isActive||null==this.group?0:-1}get hasFocus(){return this._hasFocus}constructor(f,R,x,d){this.el=f,this.cdr=R,this.renderer=x,this.group=d,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.uncheckable=!1,this.role="radio",this._disabled=!1,this._hasFocus=!1}toggleIfAllowed(){this.canToggle()&&(this.value=this.uncheckable&&this.btnRadio===this.value?void 0:this.btnRadio)}onSpacePressed(f){this.toggleIfAllowed(),f.preventDefault()}focus(){this.el.nativeElement.focus()}onFocus(){this._hasFocus=!0}onBlur(){this._hasFocus=!1,this.onTouched()}canToggle(){return!this.controlOrGroupDisabled&&(this.uncheckable||this.btnRadio!==this.value)}ngOnChanges(f){"uncheckable"in f&&(this.uncheckable=!1!==this.uncheckable&&typeof this.uncheckable<"u")}_onChange(f){this.group?this.group.value=f:(this.onTouched(),this.onChange(f))}writeValue(f){this.value=f,this.cdr.markForCheck()}registerOnChange(f){this.onChange=f}registerOnTouched(f){this.onTouched=f}setDisabledState(f){this._disabled=f,f?this.renderer.setAttribute(this.el.nativeElement,"disabled","disabled"):this.renderer.removeAttribute(this.el.nativeElement,"disabled")}static#e=this.\u0275fac=function(R){return new(R||h)(e.rXU(e.aKT),e.rXU(e.gRc),e.rXU(e.sFG),e.rXU((0,e.Rfq)(()=>O),8))};static#t=this.\u0275dir=e.FsC({type:h,selectors:[["","btnRadio",""]],hostVars:8,hostBindings:function(R,x){1&R&&e.bIt("click",function(){return x.toggleIfAllowed()})("keydown.space",function(F){return x.onSpacePressed(F)})("focus",function(){return x.onFocus()})("blur",function(){return x.onBlur()}),2&R&&(e.BMQ("aria-disabled",x.controlOrGroupDisabled)("aria-checked",x.isActive)("role",x.role)("tabindex",x.tabindex),e.AVh("disabled",x.hasDisabledClass)("active",x.isActive))},inputs:{btnRadio:"btnRadio",uncheckable:"uncheckable",value:"value",disabled:"disabled"},features:[e.Jv_([m]),e.OA$]})}return h})();const A={provide:_.kq,useExisting:(0,e.Rfq)(()=>O),multi:!0};let O=(()=>{class h{constructor(f){this.cdr=f,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.role="radiogroup",this._disabled=!1}get value(){return this._value}set value(f){this._value=f,this.onChange(f)}get disabled(){return this._disabled}get tabindex(){return this._disabled?null:0}writeValue(f){this._value=f,this.cdr.markForCheck()}registerOnChange(f){this.onChange=f}registerOnTouched(f){this.onTouched=f}setDisabledState(f){this.radioButtons&&(this._disabled=f,this.radioButtons.forEach(R=>{R.setDisabledState(f)}),this.cdr.markForCheck())}onFocus(){if(this._disabled)return;const f=this.getActiveOrFocusedRadio();if(f)f.focus();else if(this.radioButtons){const R=this.radioButtons.find(x=>!x.disabled);R&&R.focus()}}onBlur(){this.onTouched&&this.onTouched()}selectNext(f){this.selectInDirection("next"),f.preventDefault()}selectPrevious(f){this.selectInDirection("previous"),f.preventDefault()}selectInDirection(f){if(this._disabled)return;function R(d,F){let J=(d+("next"===f?1:-1))%F.length;return J<0&&(J=F.length-1),J}const x=this.getActiveOrFocusedRadio();if(x&&this.radioButtons){const d=this.radioButtons.toArray(),F=d.indexOf(x);for(let N=R(F,d);N!==F;N=R(N,d))if(d[N].canToggle()){d[N].toggleIfAllowed(),d[N].focus();break}}}getActiveOrFocusedRadio(){if(this.radioButtons)return this.radioButtons.find(f=>f.isActive)||this.radioButtons.find(f=>f.hasFocus)}static#e=this.\u0275fac=function(R){return new(R||h)(e.rXU(e.gRc))};static#t=this.\u0275dir=e.FsC({type:h,selectors:[["","btnRadioGroup",""]],contentQueries:function(R,x,d){if(1&R&&e.wni(d,S,4),2&R){let F;e.mGM(F=e.lsd())&&(x.radioButtons=F)}},hostVars:2,hostBindings:function(R,x){1&R&&e.bIt("focus",function(){return x.onFocus()})("blur",function(){return x.onBlur()})("keydown.ArrowRight",function(F){return x.selectNext(F)})("keydown.ArrowDown",function(F){return x.selectNext(F)})("keydown.ArrowLeft",function(F){return x.selectPrevious(F)})("keydown.ArrowUp",function(F){return x.selectPrevious(F)}),2&R&&e.BMQ("role",x.role)("tabindex",x.tabindex)},features:[e.Jv_([A])]})}return h})(),w=(()=>{class h{static forRoot(){return{ngModule:h,providers:[]}}static#e=this.\u0275fac=function(R){return new(R||h)};static#t=this.\u0275mod=e.$C({type:h});static#n=this.\u0275inj=e.G2t({})}return h})()},8621:(Q,D,s)=>{s.d(D,{Kk:()=>Ge,hs:()=>Me,zE:()=>le,UL:()=>Ce});var e=s(3953),_=s(5964);class b{constructor(i,r){this.open=i,this.close=r||i}isManual(){return"manual"===this.open||"manual"===this.close}}const E={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};const h=typeof window<"u"&&window||{};let re;function z(){const n=h.document.createElement("span");n.innerText="testing bs version",n.classList.add("d-none"),n.classList.add("pl-1"),h.document.head.appendChild(n);const i=h.getComputedStyle(n).paddingLeft;return i&&parseFloat(i)?(h.document.head.removeChild(n),"bs4"):(h.document.head.removeChild(n),"bs5")}function p(){return{isBs4:(re||(re=z()),"bs4"===re),isBs5:(re||(re=z()),"bs5"===re)}}typeof console>"u"||console;var Ke=s(177),ge=s(1413),He=s(7786),$e=s(3726),Ue=s(7673),Ye=s(536),Qe=function(n){return n.top="top",n.bottom="bottom",n.left="left",n.right="right",n.auto="auto",n.end="right",n.start="left",n["top left"]="top left",n["top right"]="top right",n["right top"]="right top",n["right bottom"]="right bottom",n["bottom right"]="bottom right",n["bottom left"]="bottom left",n["left bottom"]="left bottom",n["left top"]="left top",n["top start"]="top left",n["top end"]="top right",n["end top"]="right top",n["end bottom"]="right bottom",n["bottom end"]="bottom right",n["bottom start"]="bottom left",n["start bottom"]="start bottom",n["start top"]="left top",n}(Qe||{}),et=function(n){return n.top="top",n.bottom="bottom",n.left="start",n.right="end",n.auto="auto",n.end="end",n.start="start",n["top left"]="top start",n["top right"]="top end",n["right top"]="end top",n["right bottom"]="end bottom",n["bottom right"]="bottom end",n["bottom left"]="bottom start",n["left bottom"]="start bottom",n["left top"]="start top",n["top start"]="top start",n["top end"]="top end",n["end top"]="end top",n["end bottom"]="end bottom",n["bottom end"]="bottom end",n["bottom start"]="bottom start",n["start bottom"]="start bottom",n["start top"]="start top",n}(et||{});function ze(n,i){if(1!==n.nodeType)return[];const u=n.ownerDocument.defaultView?.getComputedStyle(n,null);return i?u&&u[i]:u}function lt(n){if(!n)return document.documentElement;let u,r=n?.offsetParent;for(;null===r&&n.nextElementSibling&&u!==n.nextElementSibling;)u=n.nextElementSibling,r=u.offsetParent;const M=r&&r.nodeName;return M&&"BODY"!==M&&"HTML"!==M?r&&-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===ze(r,"position")?lt(r):r:u?u.ownerDocument.documentElement:document.documentElement}function st(n){return null!==n.parentNode?st(n.parentNode):n}function nt(n,i){if(!(n&&n.nodeType&&i&&i.nodeType))return document.documentElement;const r=n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING,u=r?n:i,M=r?i:n,k=document.createRange();k.setStart(u,0),k.setEnd(M,0);const V=k.commonAncestorContainer;if(n!==V&&i!==V||u.contains(M))return function Xe(n){const{nodeName:i}=n;return"BODY"!==i&&("HTML"===i||lt(n.firstElementChild)===n)}(V)?V:lt(V);const H=st(n);return H.host?nt(H.host,i):nt(n,st(i).host)}function at(n){if(!n||!n.parentElement)return document.documentElement;let i=n.parentElement;for(;i?.parentElement&&"none"===ze(i,"transform");)i=i.parentElement;return i||document.documentElement}function ut(n,i){const r="x"===i?"Left":"Top",u="Left"===r?"Right":"Bottom";return parseFloat(n[`border${r}Width`])+parseFloat(n[`border${u}Width`])}function mt(n,i,r){return Math.max(i[`offset${n}`],i[`scroll${n}`],r[`client${n}`],r[`offset${n}`],r[`scroll${n}`],0)}function ct(n){const i=n.body,r=n.documentElement;return{height:mt("Height",i,r),width:mt("Width",i,r)}}function it(n){return{...n,right:(n.left||0)+n.width,bottom:(n.top||0)+n.height}}function Re(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function Je(n){const i=n.getBoundingClientRect();if(!(i&&Re(i.top)&&Re(i.left)&&Re(i.bottom)&&Re(i.right)))return i;const r={left:i.left,top:i.top,width:i.right-i.left,height:i.bottom-i.top},u="HTML"===n.nodeName?ct(n.ownerDocument):void 0,M=u?.width||n.clientWidth||Re(i.right)&&Re(r.left)&&i.right-r.left||0,k=u?.height||n.clientHeight||Re(i.bottom)&&Re(r.top)&&i.bottom-r.top||0;let V=n.offsetWidth-M,H=n.offsetHeight-k;if(V||H){const X=ze(n);V-=ut(X,"x"),H-=ut(X,"y"),r.width-=V,r.height-=H}return it(r)}function ht(n,i,r=!1){const u="HTML"===i.nodeName,M=Je(n),k=Je(i),V=ze(i),H=parseFloat(V.borderTopWidth),X=parseFloat(V.borderLeftWidth);r&&u&&(k.top=Math.max(k.top??0,0),k.left=Math.max(k.left??0,0));const oe=it({top:(M.top??0)-(k.top??0)-H,left:(M.left??0)-(k.left??0)-X,width:M.width,height:M.height});if(oe.marginTop=0,oe.marginLeft=0,u){const l=parseFloat(V.marginTop),a=parseFloat(V.marginLeft);Re(oe.top)&&(oe.top-=H-l),Re(oe.bottom)&&(oe.bottom-=H-l),Re(oe.left)&&(oe.left-=X-a),Re(oe.right)&&(oe.right-=X-a),oe.marginTop=l,oe.marginLeft=a}return oe}function dt(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function gt(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}const{overflow:i,overflowX:r,overflowY:u}=ze(n);return/(auto|scroll|overlay)/.test(String(i)+String(u)+String(r))?n:gt(dt(n))}function ft(n,i="top"){const r="top"===i?"scrollTop":"scrollLeft",u=n.nodeName;return"BODY"===u||"HTML"===u?(n.ownerDocument.scrollingElement||n.ownerDocument.documentElement)[r]:n[r]}function ot(n){const i=n.nodeName;return"BODY"!==i&&"HTML"!==i&&("fixed"===ze(n,"position")||ot(dt(n)))}function pt(n,i,r=0,u,M=!1){let k={top:0,left:0};const V=M?at(n):nt(n,i);if("viewport"===u)k=function Et(n,i=!1){const r=n.ownerDocument.documentElement,u=ht(n,r),M=Math.max(r.clientWidth,window.innerWidth||0),k=Math.max(r.clientHeight,window.innerHeight||0),V=i?0:ft(r),H=i?0:ft(r,"left");return it({top:V-Number(u?.top)+Number(u?.marginTop),left:H-Number(u?.left)+Number(u?.marginLeft),width:M,height:k})}(V,M);else{let H;"scrollParent"===u?(H=gt(dt(i)),"BODY"===H.nodeName&&(H=n.ownerDocument.documentElement)):H="window"===u?n.ownerDocument.documentElement:u;const X=ht(H,V,M);if(X&&"HTML"===H.nodeName&&!ot(V)){const{height:oe,width:l}=ct(n.ownerDocument);Re(k.top)&&Re(X.top)&&Re(X.marginTop)&&(k.top+=X.top-X.marginTop),Re(k.top)&&(k.bottom=Number(oe)+Number(X.top)),Re(k.left)&&Re(X.left)&&Re(X.marginLeft)&&(k.left+=X.left-X.marginLeft),Re(k.top)&&(k.right=Number(l)+Number(X.left))}else X&&(k=X)}return Re(k.left)&&(k.left+=r),Re(k.top)&&(k.top+=r),Re(k.right)&&(k.right-=r),Re(k.bottom)&&(k.bottom-=r),k}function Ct({width:n,height:i}){return n*i}function vt(n,i,r,u,M=["top","bottom","right","left"],k="viewport",V=0){if(-1===n.indexOf("auto"))return n;const H=pt(r,u,V,k),X={top:{width:H?.width??0,height:(i?.top??0)-(H?.top??0)},right:{width:(H?.right??0)-(i?.right??0),height:H?.height??0},bottom:{width:H?.width??0,height:(H?.bottom??0)-(i?.bottom??0)},left:{width:(i.left??0)-(H?.left??0),height:H?.height??0}},oe=Object.keys(X).map(o=>({position:o,...X[o],area:Ct(X[o])})).sort((o,c)=>c.area-o.area);let l=oe.filter(({width:o,height:c})=>o>=r.clientWidth&&c>=r.clientHeight);l=l.filter(({position:o})=>M.some(c=>c===o));const a=l.length>0?l[0].position:oe[0].position,t=n.split(" ")[1];return r.className=r.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${p().isBs5?et[a]:a}`),a+(t?`-${t}`:"")}const rt=(n,i=0)=>n?parseFloat(n):i;function _t(n){const r=n.ownerDocument.defaultView?.getComputedStyle(n),u=rt(r?.marginTop)+rt(r?.marginBottom),M=rt(r?.marginLeft)+rt(r?.marginRight);return{width:Number(n.offsetWidth)+M,height:Number(n.offsetHeight)+u}}function v(n,i,r){return ht(i,r?at(n):nt(n,i),r)}function P(n,i,r){const u=r.split(" ")[0],M=_t(n),k={width:M.width,height:M.height},V=-1!==["right","left"].indexOf(u),H=V?"top":"left",X=V?"left":"top",oe=V?"height":"width",l=V?"width":"height";return k[H]=(i[H]??0)+i[oe]/2-M[oe]/2,k[X]=u===X?(i[X]??0)-M[l]:i[function Dt(n){const i={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,r=>i[r])}(X)]??0,k}function j(n,i){return!!n.modifiers[i]?.enabled}const C={top:["top","top start","top end"],bottom:["bottom","bottom start","bottom end"],start:["start","start top","start bottom"],end:["end","end top","end bottom"]};function B(n,i){return!!p().isBs5&&C[i].includes(n)}function ue(n,i,r){!n||!i||Object.keys(i).forEach(u=>{let M="";-1!==["width","height","top","right","bottom","left"].indexOf(u)&&function yt(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(Number(n))}(i[u])&&(M="px"),r?r.setStyle(n,u,`${String(i[u])}${M}`):n.style[u]=String(i[u])+M})}function fe(n){let i=n.offsets.target;const r=n.instance.target.querySelector(".arrow");if(!r)return n;const u=-1!==["left","right"].indexOf(n.placement.split(" ")[0]),M=u?"height":"width",k=u?"Top":"Left",V=k.toLowerCase(),H=u?"left":"top",X=u?"bottom":"right",oe=_t(r)[M],l=n.placement.split(" ")[1];(n.offsets.host[X]??0)-oe<(i[V]??0)&&(i[V]-=(i[V]??0)-((n.offsets.host[X]??0)-oe)),Number(n.offsets.host[V])+Number(oe)>(i[X]??0)&&(i[V]+=Number(n.offsets.host[V])+Number(oe)-Number(i[X])),i=it(i);const a=ze(n.instance.target),t=parseFloat(a[`margin${k}`])||0,o=parseFloat(a[`border${k}Width`])||0;let c;if(l){const I=parseFloat(a.borderRadius)||0,Y=Number(t+o+I);c=V===l?Number(n.offsets.host[V])+Y:Number(n.offsets.host[V])+Number(n.offsets.host[M]-Y)}else c=Number(n.offsets.host[V])+Number(n.offsets.host[M]/2-oe/2);let y=c-(i[V]??0)-t-o;return y=Math.max(Math.min(i[M]-(oe+5),y),0),n.offsets.arrow={[V]:Math.round(y),[H]:""},n.instance.arrow=r,n}function ye(n){if(n.offsets.target=it(n.offsets.target),!j(n.options,"flip"))return n.offsets.target={...n.offsets.target,...P(n.instance.target,n.offsets.host,n.placement)},n;const i=pt(n.instance.target,n.instance.host,0,"viewport",!1);let r=n.placement.split(" ")[0],u=n.placement.split(" ")[1]||"";const H=vt("auto",n.offsets.host,n.instance.target,n.instance.host,n.options.allowedPositions),X=[r,H];return X.forEach((oe,l)=>{if(r!==oe||X.length===l+1)return;r=n.placement.split(" ")[0];const a="left"===r&&Math.floor(n.offsets.target.right??0)>Math.floor(n.offsets.host.left??0)||"right"===r&&Math.floor(n.offsets.target.left??0)<Math.floor(n.offsets.host.right??0)||"top"===r&&Math.floor(n.offsets.target.bottom??0)>Math.floor(n.offsets.host.top??0)||"bottom"===r&&Math.floor(n.offsets.target.top??0)<Math.floor(n.offsets.host.bottom??0),t=Math.floor(n.offsets.target.left??0)<Math.floor(i.left??0),o=Math.floor(n.offsets.target.right??0)>Math.floor(i.right??0),c=Math.floor(n.offsets.target.top??0)<Math.floor(i.top??0),y=Math.floor(n.offsets.target.bottom??0)>Math.floor(i.bottom??0),I="left"===r&&t||"right"===r&&o||"top"===r&&c||"bottom"===r&&y,Y=-1!==["top","bottom"].indexOf(r),he=Y&&"left"===u&&t||Y&&"right"===u&&o||!Y&&"left"===u&&c||!Y&&"right"===u&&y;(a||I||he)&&((a||I)&&(r=X[l+1]),he&&(u=function wt(n){return"right"===n?"left":"left"===n?"right":n}(u)),n.placement=r+(u?` ${u}`:""),n.offsets.target={...n.offsets.target,...P(n.instance.target,n.offsets.host,n.placement)})}),n}function me(n){if(!j(n.options,"preventOverflow"))return n;const i="transform",r=n.instance.target.style,{top:u,left:M,[i]:k}=r;r.top="",r.left="",r[i]="";const V=pt(n.instance.target,n.instance.host,0,n.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);r.top=u,r.left=M,r[i]=k;const X={primary(oe){let l=n.offsets.target[oe];return(n.offsets.target[oe]??0)<(V[oe]??0)&&(l=Math.max(n.offsets.target[oe]??0,V[oe]??0)),{[oe]:l}},secondary(oe){const l="right"===oe,a=l?"left":"top";let o=n.offsets.target[a];return(n.offsets.target[oe]??0)>(V[oe]??0)&&(o=Math.min(n.offsets.target[a]??0,(V[oe]??0)-n.offsets.target[l?"width":"height"])),{[a]:o}}};return["left","right","top","bottom"].forEach(oe=>{const l=-1!==["left","top","start"].indexOf(oe)?X.primary:X.secondary;n.offsets.target={...n.offsets.target,...l(oe)}}),n}function Oe(n){const i=n.placement,r=i.split(" ")[0],u=i.split(" ")[1];if(u){const{host:M,target:k}=n.offsets,V=-1!==["bottom","top"].indexOf(r),H=V?"left":"top",X=V?"width":"height",oe={start:{[H]:M[H]},end:{[H]:(M[H]??0)+M[X]-k[X]}};n.offsets.target={...k,[H]:H===u?oe.start[H]:oe.end[H]}}return n}const Be=new class Se{position(i,r){return this.offset(i,r)}offset(i,r){return v(r,i)}positionElements(i,r,u,M,k){const V=[ye,Oe,me,fe],X=function ee(n,i,r,u){if(!n||!i)return;const M=v(n,i);!r.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!r.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(r="auto");const k=!!r.match(/auto/g);let V=r.match(/auto\s(left|right|top|bottom|start|end)/)?r.split(" ")[1]||"auto":r;const H=V.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);return H&&(V=H[1]+(H[2]?` ${H[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(V)&&(V="auto"),V=vt(V,M,n,i,u?u.allowedPositions:void 0),{options:u||{modifiers:{}},instance:{target:n,host:i,arrow:void 0},offsets:{target:P(n,M,V),host:M,arrow:void 0},positionFixed:!1,placement:V,placementAuto:k}}(r,i,Qe[u],k);if(X)return V.reduce((oe,l)=>l(oe),X)}};function We(n,i,r,u,M,k){const V=Be.positionElements(n,i,r,u,M);if(!V)return;const H=function Ot(n){return{width:n.offsets.target.width,height:n.offsets.target.height,left:Math.floor(n.offsets.target.left??0),top:Math.round(n.offsets.target.top??0),bottom:Math.round(n.offsets.target.bottom??0),right:Math.floor(n.offsets.target.right??0)}}(V);ue(i,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${H.left}px, ${H.top}px, 0px)`},k),V.instance.arrow&&ue(V.instance.arrow,V.offsets.arrow,k),function ae(n,i){const r=n.instance.target;let u=r.className;const M=p().isBs5?et[n.placement]:n.placement;n.placementAuto&&(u=u.replace(/bs-popover-auto/g,`bs-popover-${M}`),u=u.replace(/ms-2|me-2|mb-2|mt-2/g,""),u=u.replace(/bs-tooltip-auto/g,`bs-tooltip-${M}`),u=u.replace(/\sauto/g,` ${M}`),-1!==u.indexOf("popover")&&(u=u+" "+function q(n){return p().isBs5?B(n,"end")?"ms-2":B(n,"start")?"me-2":B(n,"top")?"mb-2":B(n,"bottom")?"mt-2":"":""}(M)),-1!==u.indexOf("popover")&&-1===u.indexOf("popover-auto")&&(u+=" popover-auto"),-1!==u.indexOf("tooltip")&&-1===u.indexOf("tooltip-auto")&&(u+=" tooltip-auto")),u=u.replace(/left|right|top|bottom|end|start/g,`${M.split(" ")[0]}`),i?i.setAttribute(r,"class",u):r.className=u}(V,k)}let je=(()=>{class n{constructor(r,u,M){this.update$$=new ge.B,this.positionElements=new Map,this.isDisabled=!1,(0,Ke.UE)(M)&&r.runOutsideAngular(()=>{this.triggerEvent$=(0,He.h)((0,$e.R)(window,"scroll",{passive:!0}),(0,$e.R)(window,"resize",{passive:!0}),(0,Ue.of)(0,Ye.X),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(k=>{We(Ne(k.target),Ne(k.element),k.attachment,k.appendToBody,this.options,u.createRenderer(null,null))})})})}position(r){this.addPositionElement(r)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(r){this.positionElements.set(Ne(r.element),r)}calcPosition(){this.update$$.next(null)}deletePositionElement(r){this.positionElements.delete(Ne(r))}setOptions(r){this.options=r}static#e=this.\u0275fac=function(u){return new(u||n)(e.KVO(e.SKi),e.KVO(e._9s),e.KVO(e.Agw))};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Ne(n){return"string"==typeof n?document.querySelector(n):n instanceof e.aKT?n.nativeElement:n??null}class se{constructor(i,r,u){this.nodes=i,this.viewRef=r,this.componentRef=u}}class Ie{constructor(i,r,u,M,k,V,H,X,oe){this._viewContainerRef=i,this._renderer=r,this._elementRef=u,this._injector=M,this._componentFactoryResolver=k,this._ngZone=V,this._applicationRef=H,this._posService=X,this._document=oe,this.onBeforeShow=new e.bkB,this.onShown=new e.bkB,this.onBeforeHide=new e.bkB,this.onHidden=new e.bkB,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(i){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(i),this}to(i){return this.container=i||this.container,this}position(i){return i?(this.attachment=i.attachment||this.attachment,this._elementRef=i.target||this._elementRef,this):this}provide(i){return this._providers.push(i),this}show(i={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(i.content,i.context,i.initialState);const r=e.zZn.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(r,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,i),this.container instanceof e.aKT&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&typeof this._document<"u"){const u=this._document.querySelector(this.container)||this._document.querySelector(this.containerDefaultSelector);if(!u)return;u.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(i.id?{id:i.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(i){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const r=this._componentRef.location.nativeElement;return r.parentNode?.removeChild(r),this._contentRef?.componentRef?.destroy(),this._viewContainerRef&&this._contentRef?.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef?.viewRef?.destroy(),this._componentRef?.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit(i?{id:i}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(i){this.triggers=i.triggers||this.triggers,this._listenOpts.outsideClick=i.outsideClick,this._listenOpts.outsideEsc=i.outsideEsc,i.target=i.target||this._elementRef?.nativeElement;const r=this._listenOpts.hide=()=>i.hide?i.hide():void this.hide(),u=this._listenOpts.show=k=>{i.show?i.show(k):this.show(k),k()};return this._renderer&&(this._unregisterListenersFn=function A(n,i){const r=function m(n,i=E){const r=(n||"").trim();if(0===r.length)return[];const u=r.split(/\s+/).map(k=>k.split(":")).map(k=>{const V=i[k[0]]||k;return new b(V[0],V[1])}),M=u.filter(k=>k.isManual());if(M.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===M.length&&u.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return u}(i.triggers),u=i.target;if(1===r.length&&r[0].isManual())return Function.prototype;const M=[],k=[],V=()=>{k.forEach(H=>M.push(H())),k.length=0};return r.forEach(H=>{const X=H.open===H.close,oe=X?i.toggle:i.show;if(!X&&H.close&&i.hide){const l=H.close,a=i.hide;k.push(()=>n.listen(u,l,a))}oe&&M.push(n.listen(u,H.open,()=>oe(V)))}),()=>{M.forEach(H=>H())}}(this._renderer,{target:i.target,triggers:i.triggers,show:u,hide:r,toggle:k=>{this.isShown?r():u(k)}})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(i,r){return i&&r&&(this._inlineViewRef=i.createEmbeddedView(r)),this}_registerOutsideClick(){if(!this._componentRef||!this._componentRef.location)return;let i=Function.prototype,r=Function.prototype;if(this._listenOpts.outsideClick){const u=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(i=function O(n,i){return i.outsideClick?n.listen("document","click",r=>{i.target&&i.target.contains(r.target)||i.targets&&i.targets.some(u=>u.contains(r.target))||i.hide&&i.hide()}):Function.prototype}(this._renderer,{targets:[u,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}this._listenOpts.outsideEsc&&this._renderer&&this._elementRef&&(r=function w(n,i){return i.outsideEsc?n.listen("document","keyup.esc",r=>{i.target&&i.target.contains(r.target)||i.targets&&i.targets.some(u=>u.contains(r.target))||i.hide&&i.hide()}):Function.prototype}(this._renderer,{targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()})),this._globalListener=()=>{i(),r()}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef?.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=void 0)}_getContentRef(i,r,u){if(!i)return new se([]);if(i instanceof e.C4Q){if(this._viewContainerRef){const V=this._viewContainerRef.createEmbeddedView(i,r);return V.markForCheck(),new se([V.rootNodes],V)}const k=i.createEmbeddedView({});return this._applicationRef.attachView(k),new se([k.rootNodes],k)}if("function"==typeof i){const k=this._componentFactoryResolver.resolveComponentFactory(i),V=e.zZn.create({providers:this._providers,parent:this._injector}),H=k.create(V);return Object.assign(H.instance,u),this._applicationRef.attachView(H.hostView),new se([[H.location.nativeElement]],H.hostView,H)}const M=this._renderer?[this._renderer.createText(`${i}`)]:[];return new se([M])}}let ke=(()=>{class n{constructor(r,u,M,k,V,H){this._componentFactoryResolver=r,this._ngZone=u,this._injector=M,this._posService=k,this._applicationRef=V,this._document=H}createLoader(r,u,M){return new Ie(u,M,r,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}static#e=this.\u0275fac=function(u){return new(u||n)(e.KVO(e.OM3),e.KVO(e.SKi),e.KVO(e.zZn),e.KVO(je),e.KVO(e.o8S),e.KVO(Ke.qQ))};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Fe=s(9969);const Le=["*"],de=n=>({dropdown:n});let xe=(()=>{class n{constructor(){this.autoClose=!0,this.insideClick=!1,this.isAnimated=!1,this.stopOnClickPropagation=!1}static#e=this.\u0275fac=function(u){return new(u||n)};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ee=(()=>{class n{constructor(){this.direction="down",this.autoClose=!0,this.insideClick=!1,this.isAnimated=!1,this.stopOnClickPropagation=!1,this.isOpenChange=new e.bkB,this.isDisabledChange=new e.bkB,this.toggleClick=new e.bkB,this.counts=0,this.dropdownMenu=new Promise(r=>{this.resolveDropdownMenu=r})}static#e=this.\u0275fac=function(u){return new(u||n)};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();const _e=[(0,Fe.iF)({height:0,overflow:"hidden"}),(0,Fe.i0)("220ms cubic-bezier(0, 0, 0.2, 1)",(0,Fe.iF)({height:"*",overflow:"hidden"}))];let be=(()=>{class n{get direction(){return this._state.direction}constructor(r,u,M,k,V){this._state=r,this.cd=u,this._renderer=M,this._element=k,this.isOpen=!1,this._factoryDropDownAnimation=V.build(_e),this._subscription=r.isOpenChange.subscribe(H=>{this.isOpen=H;const X=this._element.nativeElement.querySelector(".dropdown-menu");this._renderer.addClass(this._element.nativeElement.querySelector("div"),"open"),X&&(this._renderer.addClass(X,"show"),(X.classList.contains("dropdown-menu-right")||X.classList.contains("dropdown-menu-end"))&&(this._renderer.setStyle(X,"left","auto"),this._renderer.setStyle(X,"right","0")),"up"===this.direction&&(this._renderer.setStyle(X,"top","auto"),this._renderer.setStyle(X,"transform","translateY(-101%)"))),X&&this._state.isAnimated&&this._factoryDropDownAnimation.create(X).play(),this.cd.markForCheck(),this.cd.detectChanges()})}_contains(r){return this._element.nativeElement.contains(r)}ngOnDestroy(){this._subscription.unsubscribe()}static#e=this.\u0275fac=function(u){return new(u||n)(e.rXU(Ee),e.rXU(e.gRc),e.rXU(e.sFG),e.rXU(e.aKT),e.rXU(Fe.S6))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["bs-dropdown-container"]],hostAttrs:[2,"display","block","position","absolute","z-index","1040"],ngContentSelectors:Le,decls:2,vars:9,consts:[[3,"ngClass"]],template:function(u,M){1&u&&(e.NAR(),e.j41(0,"div",0),e.SdG(1),e.k0s()),2&u&&(e.AVh("dropup","up"===M.direction)("show",M.isOpen)("open",M.isOpen),e.Y8G("ngClass",e.eq3(7,de,"down"===M.direction)))},dependencies:[Ke.YU],encapsulation:2,changeDetection:0})}return n})(),Ge=(()=>{class n{set autoClose(r){this._state.autoClose=r}get autoClose(){return this._state.autoClose}set isAnimated(r){this._state.isAnimated=r}get isAnimated(){return this._state.isAnimated}set insideClick(r){this._state.insideClick=r}get insideClick(){return this._state.insideClick}set isDisabled(r){this._isDisabled=r,this._state.isDisabledChange.emit(r),r&&this.hide()}get isDisabled(){return this._isDisabled}get isOpen(){return this._showInline?this._isInlineOpen:this._dropdown.isShown}set isOpen(r){r?this.show():this.hide()}get _showInline(){return!this.container}constructor(r,u,M,k,V,H,X){this._elementRef=r,this._renderer=u,this._viewContainerRef=M,this._cis=k,this._state=V,this._config=H,this.dropup=!1,this._isInlineOpen=!1,this._isDisabled=!1,this._subscriptions=[],this._isInited=!1,this._state.autoClose=this._config.autoClose,this._state.insideClick=this._config.insideClick,this._state.isAnimated=this._config.isAnimated,this._state.stopOnClickPropagation=this._config.stopOnClickPropagation,this._factoryDropDownAnimation=X.build(_e),this._dropdown=this._cis.createLoader(this._elementRef,this._viewContainerRef,this._renderer).provide({provide:Ee,useValue:this._state}),this.onShown=this._dropdown.onShown,this.onHidden=this._dropdown.onHidden,this.isOpenChange=this._state.isOpenChange}ngOnInit(){this._isInited||(this._isInited=!0,this._dropdown.listen({outsideClick:!1,triggers:this.triggers,show:()=>this.show()}),this._subscriptions.push(this._state.toggleClick.subscribe(r=>this.toggle(r))),this._subscriptions.push(this._state.isDisabledChange.pipe((0,_.p)(r=>r)).subscribe(()=>this.hide())))}show(){if(!this.isOpen&&!this.isDisabled){if(this._showInline)return this._inlinedMenu||this._state.dropdownMenu.then(r=>{this._dropdown.attachInline(r.viewContainer,r.templateRef),this._inlinedMenu=this._dropdown._inlineViewRef,this.addBs4Polyfills(),this._inlinedMenu&&this._renderer.addClass(this._inlinedMenu.rootNodes[0].parentNode,"open"),this.playAnimation()}).catch(),this.addBs4Polyfills(),this._isInlineOpen=!0,this.onShown.emit(!0),this._state.isOpenChange.emit(!0),void this.playAnimation();this._state.dropdownMenu.then(r=>{const u=this.dropup||typeof this.dropup<"u"&&this.dropup;this._state.direction=u?"up":"down";const M=this.placement||(u?"top start":"bottom start");this._dropdown.attach(be).to(this.container).position({attachment:M}).show({content:r.templateRef,placement:M}),this._state.isOpenChange.emit(!0)}).catch()}}hide(){this.isOpen&&(this._showInline?(this.removeShowClass(),this.removeDropupStyles(),this._isInlineOpen=!1,this.onHidden.emit(!0)):this._dropdown.hide(),this._state.isOpenChange.emit(!1))}toggle(r){return this.isOpen||!r?this.hide():this.show()}_contains(r){return this._elementRef.nativeElement.contains(r.target)||this._dropdown.instance&&this._dropdown.instance._contains(r.target)}navigationClick(r){const u=this._elementRef.nativeElement.querySelector(".dropdown-menu");if(!u)return;const M=this._elementRef.nativeElement.ownerDocument.activeElement,k=u.querySelectorAll(".dropdown-item");switch(r.keyCode){case 38:this._state.counts>0&&k[--this._state.counts].focus();break;case 40:this._state.counts+1<k.length&&(M.classList!==k[this._state.counts].classList?k[this._state.counts].focus():k[++this._state.counts].focus())}r.preventDefault()}ngOnDestroy(){for(const r of this._subscriptions)r.unsubscribe();this._dropdown.dispose()}addBs4Polyfills(){this.addShowClass(),this.checkRightAlignment(),this.addDropupStyles()}playAnimation(){this._state.isAnimated&&this._inlinedMenu&&setTimeout(()=>{this._inlinedMenu&&this._factoryDropDownAnimation.create(this._inlinedMenu.rootNodes[0]).play()})}addShowClass(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&this._renderer.addClass(this._inlinedMenu.rootNodes[0],"show")}removeShowClass(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&this._renderer.removeClass(this._inlinedMenu.rootNodes[0],"show")}checkRightAlignment(){if(this._inlinedMenu&&this._inlinedMenu.rootNodes[0]){const r=this._inlinedMenu.rootNodes[0].classList.contains("dropdown-menu-right")||this._inlinedMenu.rootNodes[0].classList.contains("dropdown-menu-end");this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"left",r?"auto":"0"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"right",r?"0":"auto")}}addDropupStyles(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&(this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"top",this.dropup?"auto":"100%"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"transform",this.dropup?"translateY(-101%)":"translateY(0)"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"bottom","auto"))}removeDropupStyles(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&(this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"top"),this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"transform"),this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"bottom"))}static#e=this.\u0275fac=function(u){return new(u||n)(e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.c1b),e.rXU(ke),e.rXU(Ee),e.rXU(xe),e.rXU(Fe.S6))};static#t=this.\u0275dir=e.FsC({type:n,selectors:[["","bsDropdown",""],["","dropdown",""]],hostVars:6,hostBindings:function(u,M){1&u&&e.bIt("keydown.arrowDown",function(V){return M.navigationClick(V)})("keydown.arrowUp",function(V){return M.navigationClick(V)}),2&u&&e.AVh("dropup",M.dropup)("open",M.isOpen)("show",M.isOpen)},inputs:{placement:"placement",triggers:"triggers",container:"container",dropup:"dropup",autoClose:"autoClose",isAnimated:"isAnimated",insideClick:"insideClick",isDisabled:"isDisabled",isOpen:"isOpen"},outputs:{isOpenChange:"isOpenChange",onShown:"onShown",onHidden:"onHidden"},exportAs:["bs-dropdown"],features:[e.Jv_([Ee])]})}return n})(),Me=(()=>{class n{constructor(r,u,M){r.resolveDropdownMenu({templateRef:M,viewContainer:u})}static#e=this.\u0275fac=function(u){return new(u||n)(e.rXU(Ee),e.rXU(e.c1b),e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:n,selectors:[["","bsDropdownMenu",""],["","dropdownMenu",""]],exportAs:["bs-dropdown-menu"]})}return n})(),Ce=(()=>{class n{constructor(r,u,M,k,V){this._changeDetectorRef=r,this._dropdown=u,this._element=M,this._renderer=k,this._state=V,this.isOpen=!1,this._subscriptions=[],this._subscriptions.push(this._state.isOpenChange.subscribe(H=>{this.isOpen=H,H?(this._documentClickListener=this._renderer.listen("document","click",X=>{this._state.autoClose&&2!==X.button&&!this._element.nativeElement.contains(X.target)&&(!this._state.insideClick||!this._dropdown._contains(X))&&(this._state.toggleClick.emit(!1),this._changeDetectorRef.detectChanges())}),this._escKeyUpListener=this._renderer.listen(this._element.nativeElement,"keyup.esc",()=>{this._state.autoClose&&(this._state.toggleClick.emit(!1),this._changeDetectorRef.detectChanges())})):(this._documentClickListener&&this._documentClickListener(),this._escKeyUpListener&&this._escKeyUpListener())})),this._subscriptions.push(this._state.isDisabledChange.subscribe(H=>this.isDisabled=H||void 0))}onClick(r){this._state.stopOnClickPropagation&&r.stopPropagation(),!this.isDisabled&&this._state.toggleClick.emit(!0)}ngOnDestroy(){this._documentClickListener&&this._documentClickListener(),this._escKeyUpListener&&this._escKeyUpListener();for(const r of this._subscriptions)r.unsubscribe()}static#e=this.\u0275fac=function(u){return new(u||n)(e.rXU(e.gRc),e.rXU(Ge),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(Ee))};static#t=this.\u0275dir=e.FsC({type:n,selectors:[["","bsDropdownToggle",""],["","dropdownToggle",""]],hostVars:3,hostBindings:function(u,M){1&u&&e.bIt("click",function(V){return M.onClick(V)}),2&u&&e.BMQ("aria-haspopup",!0)("disabled",M.isDisabled)("aria-expanded",M.isOpen)},exportAs:["bs-dropdown-toggle"]})}return n})(),le=(()=>{class n{static forRoot(){return{ngModule:n,providers:[ke,je,Ee]}}static#e=this.\u0275fac=function(u){return new(u||n)};static#t=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[Ke.MD]})}return n})()},3400:(Q,D,s)=>{s.d(D,{eK:()=>Z,x6:()=>re});var e=s(3953),_=s(9417),b=s(177);const E=(z,ie)=>({"pull-left":z,"float-left":ie}),m=(z,ie)=>({"pull-right":z,"float-right":ie}),S=(z,ie)=>({disabled:z,currentPage:ie}),A=(z,ie,g)=>({disabled:z,$implicit:ie,currentPage:g});function O(z,ie){if(1&z){const g=e.RV6();e.j41(0,"li",11)(1,"a",12),e.bIt("click",function(p){e.eBV(g);const L=e.XpG();return e.Njj(L.selectPage(1,p))}),e.eu8(2,13),e.k0s()()}if(2&z){const g=e.XpG(),W=e.sdS(13);e.AVh("disabled",g.noPrevious()||g.disabled),e.R7$(2),e.Y8G("ngTemplateOutlet",g.customFirstTemplate||W)("ngTemplateOutletContext",e.l_i(4,S,g.noPrevious()||g.disabled,g.page))}}function w(z,ie){if(1&z){const g=e.RV6();e.j41(0,"li",14)(1,"a",12),e.bIt("click",function(p){e.eBV(g);const L=e.XpG();return e.Njj(L.selectPage(L.page-1,p))}),e.eu8(2,13),e.k0s()()}if(2&z){const g=e.XpG(),W=e.sdS(11);e.AVh("disabled",g.noPrevious()||g.disabled),e.R7$(2),e.Y8G("ngTemplateOutlet",g.customPreviousTemplate||W)("ngTemplateOutletContext",e.l_i(4,S,g.noPrevious()||g.disabled,g.page))}}function h(z,ie){if(1&z){const g=e.RV6();e.j41(0,"li",15)(1,"a",12),e.bIt("click",function(p){const L=e.eBV(g).$implicit,U=e.XpG();return e.Njj(U.selectPage(L.number,p))}),e.eu8(2,13),e.k0s()()}if(2&z){const g=ie.$implicit,W=e.XpG(),p=e.sdS(7);e.AVh("active",g.active)("disabled",W.disabled&&!g.active),e.R7$(2),e.Y8G("ngTemplateOutlet",W.customPageTemplate||p)("ngTemplateOutletContext",e.sMw(6,A,W.disabled,g,W.page))}}function T(z,ie){if(1&z){const g=e.RV6();e.j41(0,"li",16)(1,"a",12),e.bIt("click",function(p){e.eBV(g);const L=e.XpG();return e.Njj(L.selectPage(L.page+1,p))}),e.eu8(2,13),e.k0s()()}if(2&z){const g=e.XpG(),W=e.sdS(9);e.AVh("disabled",g.noNext()||g.disabled),e.R7$(2),e.Y8G("ngTemplateOutlet",g.customNextTemplate||W)("ngTemplateOutletContext",e.l_i(4,S,g.noNext()||g.disabled,g.page))}}function f(z,ie){if(1&z){const g=e.RV6();e.j41(0,"li",17)(1,"a",12),e.bIt("click",function(p){e.eBV(g);const L=e.XpG();return e.Njj(L.selectPage(L.totalPages,p))}),e.eu8(2,13),e.k0s()()}if(2&z){const g=e.XpG(),W=e.sdS(15);e.AVh("disabled",g.noNext()||g.disabled),e.R7$(2),e.Y8G("ngTemplateOutlet",g.customLastTemplate||W)("ngTemplateOutletContext",e.l_i(4,S,g.noNext()||g.disabled,g.page))}}function R(z,ie){1&z&&e.EFF(0),2&z&&e.JRh(ie.$implicit.text)}function x(z,ie){if(1&z&&e.EFF(0),2&z){const g=e.XpG();e.JRh(g.getText("next"))}}function d(z,ie){if(1&z&&e.EFF(0),2&z){const g=e.XpG();e.JRh(g.getText("previous"))}}function F(z,ie){if(1&z&&e.EFF(0),2&z){const g=e.XpG();e.JRh(g.getText("first"))}}function N(z,ie){if(1&z&&e.EFF(0),2&z){const g=e.XpG();e.JRh(g.getText("last"))}}let J=(()=>{class z{constructor(){this.main={itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",pageBtnClass:"",rotate:!0},this.pager={itemsPerPage:15,previousText:"\xab Previous",nextText:"Next \xbb",pageBtnClass:"",align:!0}}static#e=this.\u0275fac=function(W){return new(W||z)};static#t=this.\u0275prov=e.jDH({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();const te={provide:_.kq,useExisting:(0,e.Rfq)(()=>De),multi:!0};let De=(()=>{class z{constructor(g,W,p){this.elementRef=g,this.changeDetection=p,this.align=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.firstText="First",this.previousText="\xab Previous",this.nextText="Next \xbb",this.lastText="Last",this.rotate=!0,this.pageBtnClass="",this.disabled=!1,this.numPages=new e.bkB,this.pageChanged=new e.bkB,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.classMap="",this.inited=!1,this._itemsPerPage=15,this._totalItems=0,this._totalPages=0,this._page=1,this.elementRef=g,this.config||this.configureOptions(Object.assign({},W.main,W.pager))}get itemsPerPage(){return this._itemsPerPage}set itemsPerPage(g){this._itemsPerPage=g,this.totalPages=this.calculateTotalPages()}get totalItems(){return this._totalItems}set totalItems(g){this._totalItems=g,this.totalPages=this.calculateTotalPages()}get totalPages(){return this._totalPages}set totalPages(g){this._totalPages=g,this.numPages.emit(g),this.inited&&this.selectPage(this.page)}get page(){return this._page}set page(g){const W=this._page;this._page=g>this.totalPages?this.totalPages:g||1,this.changeDetection.markForCheck(),!(W===this._page||typeof W>"u")&&this.pageChanged.emit({page:this._page,itemsPerPage:this.itemsPerPage})}configureOptions(g){this.config=Object.assign({},g)}ngOnInit(){typeof window<"u"&&(this.classMap=this.elementRef.nativeElement.getAttribute("class")||""),typeof this.maxSize>"u"&&(this.maxSize=this.config?.maxSize||0),typeof this.rotate>"u"&&(this.rotate=!!this.config?.rotate),typeof this.boundaryLinks>"u"&&(this.boundaryLinks=!!this.config?.boundaryLinks),typeof this.directionLinks>"u"&&(this.directionLinks=!!this.config?.directionLinks),typeof this.pageBtnClass>"u"&&(this.pageBtnClass=this.config?.pageBtnClass||""),typeof this.itemsPerPage>"u"&&(this.itemsPerPage=this.config?.itemsPerPage||0),this.totalPages=this.calculateTotalPages(),this.pages=this.getPages(this.page,this.totalPages),this.inited=!0}writeValue(g){this.page=g,this.pages=this.getPages(this.page,this.totalPages)}getText(g){return this[`${g}Text`]||this.config[`${g}Text`]}noPrevious(){return 1===this.page}noNext(){return this.page===this.totalPages}registerOnChange(g){this.onChange=g}registerOnTouched(g){this.onTouched=g}selectPage(g,W){W&&W.preventDefault(),this.disabled||(W&&W.target&&W.target.blur(),this.writeValue(g),this.onChange(this.page))}makePage(g,W,p){return{text:W,number:g,active:p}}getPages(g,W){const p=[];let L=1,U=W;const K=typeof this.maxSize<"u"&&this.maxSize<W;K&&this.maxSize&&(this.rotate?(L=Math.max(g-Math.floor(this.maxSize/2),1),U=L+this.maxSize-1,U>W&&(U=W,L=U-this.maxSize+1)):(L=(Math.ceil(g/this.maxSize)-1)*this.maxSize+1,U=Math.min(L+this.maxSize-1,W)));for(let $=L;$<=U;$++){const G=this.makePage($,$.toString(),$===g);p.push(G)}if(K&&!this.rotate){if(L>1){const $=this.makePage(L-1,"...",!1);p.unshift($)}if(U<W){const $=this.makePage(U+1,"...",!1);p.push($)}}return p}calculateTotalPages(){const g=this.itemsPerPage<1?1:Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(g||0,1)}static#e=this.\u0275fac=function(W){return new(W||z)(e.rXU(e.aKT),e.rXU(J),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:z,selectors:[["pager"]],inputs:{align:"align",maxSize:"maxSize",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",firstText:"firstText",previousText:"previousText",nextText:"nextText",lastText:"lastText",rotate:"rotate",pageBtnClass:"pageBtnClass",disabled:"disabled",itemsPerPage:"itemsPerPage",totalItems:"totalItems"},outputs:{numPages:"numPages",pageChanged:"pageChanged"},features:[e.Jv_([te])],decls:7,vars:24,consts:[[1,"pager"],[3,"ngClass"],["href","",3,"click"]],template:function(W,p){1&W&&(e.j41(0,"ul",0)(1,"li",1)(2,"a",2),e.bIt("click",function(U){return p.selectPage(p.page-1,U)}),e.EFF(3),e.k0s()(),e.j41(4,"li",1)(5,"a",2),e.bIt("click",function(U){return p.selectPage(p.page+1,U)}),e.EFF(6),e.k0s()()()),2&W&&(e.R7$(),e.HbH(p.pageBtnClass),e.AVh("disabled",p.noPrevious())("previous",p.align),e.Y8G("ngClass",e.l_i(18,E,p.align,p.align)),e.R7$(2),e.JRh(p.getText("previous")),e.R7$(),e.HbH(p.pageBtnClass),e.AVh("disabled",p.noNext())("next",p.align),e.Y8G("ngClass",e.l_i(21,m,p.align,p.align)),e.R7$(2),e.JRh(p.getText("next")))},dependencies:[b.YU],encapsulation:2})}return z})();const ne={provide:_.kq,useExisting:(0,e.Rfq)(()=>Z),multi:!0};let Z=(()=>{class z{constructor(g,W,p){this.elementRef=g,this.changeDetection=p,this.align=!0,this.boundaryLinks=!1,this.directionLinks=!0,this.rotate=!0,this.pageBtnClass="",this.disabled=!1,this.numPages=new e.bkB,this.pageChanged=new e.bkB,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.classMap="",this.inited=!1,this._itemsPerPage=10,this._totalItems=0,this._totalPages=0,this._page=1,this.elementRef=g,this.config||this.configureOptions(W.main)}get itemsPerPage(){return this._itemsPerPage}set itemsPerPage(g){this._itemsPerPage=g,this.totalPages=this.calculateTotalPages()}get totalItems(){return this._totalItems}set totalItems(g){this._totalItems=g,this.totalPages=this.calculateTotalPages()}get totalPages(){return this._totalPages}set totalPages(g){this._totalPages=g,this.numPages.emit(g),this.inited&&this.selectPage(this.page)}get page(){return this._page}set page(g){const W=this._page;this._page=g>this.totalPages?this.totalPages:g||1,this.changeDetection.markForCheck(),!(W===this._page||typeof W>"u")&&this.pageChanged.emit({page:this._page,itemsPerPage:this.itemsPerPage})}configureOptions(g){this.config=Object.assign({},g)}ngOnInit(){typeof window<"u"&&(this.classMap=this.elementRef.nativeElement.getAttribute("class")||""),typeof this.maxSize>"u"&&(this.maxSize=this.config?.maxSize||0),typeof this.rotate>"u"&&(this.rotate=!!this.config?.rotate),typeof this.boundaryLinks>"u"&&(this.boundaryLinks=!!this.config?.boundaryLinks),typeof this.directionLinks>"u"&&(this.directionLinks=!!this.config?.directionLinks),typeof this.pageBtnClass>"u"&&(this.pageBtnClass=this.config?.pageBtnClass||""),typeof this.itemsPerPage>"u"&&(this.itemsPerPage=this.config?.itemsPerPage||0),this.totalPages=this.calculateTotalPages(),this.pages=this.getPages(this.page,this.totalPages),this.inited=!0}writeValue(g){this.page=g,this.pages=this.getPages(this.page,this.totalPages)}getText(g){return this[`${g}Text`]||this.config[`${g}Text`]}noPrevious(){return 1===this.page}noNext(){return this.page===this.totalPages}registerOnChange(g){this.onChange=g}registerOnTouched(g){this.onTouched=g}selectPage(g,W){W&&W.preventDefault(),this.disabled||(W&&W.target&&W.target.blur(),this.writeValue(g),this.onChange(this.page))}makePage(g,W,p){return{text:W,number:g,active:p}}getPages(g,W){const p=[];let L=1,U=W;const K=typeof this.maxSize<"u"&&this.maxSize<W;K&&this.maxSize&&(this.rotate?(L=Math.max(g-Math.floor(this.maxSize/2),1),U=L+this.maxSize-1,U>W&&(U=W,L=U-this.maxSize+1)):(L=(Math.ceil(g/this.maxSize)-1)*this.maxSize+1,U=Math.min(L+this.maxSize-1,W)));for(let $=L;$<=U;$++){const G=this.makePage($,$.toString(),$===g);p.push(G)}if(K&&!this.rotate){if(L>1){const $=this.makePage(L-1,"...",!1);p.unshift($)}if(U<W){const $=this.makePage(U+1,"...",!1);p.push($)}}return p}calculateTotalPages(){const g=this.itemsPerPage<1?1:Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(g||0,1)}static#e=this.\u0275fac=function(W){return new(W||z)(e.rXU(e.aKT),e.rXU(J),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:z,selectors:[["pagination"]],inputs:{align:"align",maxSize:"maxSize",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",firstText:"firstText",previousText:"previousText",nextText:"nextText",lastText:"lastText",rotate:"rotate",pageBtnClass:"pageBtnClass",disabled:"disabled",customPageTemplate:"customPageTemplate",customNextTemplate:"customNextTemplate",customPreviousTemplate:"customPreviousTemplate",customFirstTemplate:"customFirstTemplate",customLastTemplate:"customLastTemplate",itemsPerPage:"itemsPerPage",totalItems:"totalItems"},outputs:{numPages:"numPages",pageChanged:"pageChanged"},features:[e.Jv_([ne])],decls:16,vars:6,consts:[["defaultPageTemplate",""],["defaultNextTemplate",""],["defaultPreviousTemplate",""],["defaultFirstTemplate",""],["defaultLastTemplate",""],[1,"pagination",3,"ngClass"],["class","pagination-first page-item",3,"disabled",4,"ngIf"],["class","pagination-prev page-item",3,"disabled",4,"ngIf"],["class","pagination-page page-item",3,"active","disabled",4,"ngFor","ngForOf"],["class","pagination-next page-item",3,"disabled",4,"ngIf"],["class","pagination-last page-item",3,"disabled",4,"ngIf"],[1,"pagination-first","page-item"],["href","",1,"page-link",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"pagination-prev","page-item"],[1,"pagination-page","page-item"],[1,"pagination-next","page-item"],[1,"pagination-last","page-item"]],template:function(W,p){1&W&&(e.j41(0,"ul",5),e.DNE(1,O,3,7,"li",6)(2,w,3,7,"li",7)(3,h,3,10,"li",8)(4,T,3,7,"li",9)(5,f,3,7,"li",10),e.k0s(),e.DNE(6,R,1,1,"ng-template",null,0,e.C5r)(8,x,1,1,"ng-template",null,1,e.C5r)(10,d,1,1,"ng-template",null,2,e.C5r)(12,F,1,1,"ng-template",null,3,e.C5r)(14,N,1,1,"ng-template",null,4,e.C5r)),2&W&&(e.Y8G("ngClass",p.classMap),e.R7$(),e.Y8G("ngIf",p.boundaryLinks),e.R7$(),e.Y8G("ngIf",p.directionLinks),e.R7$(),e.Y8G("ngForOf",p.pages),e.R7$(),e.Y8G("ngIf",p.directionLinks),e.R7$(),e.Y8G("ngIf",p.boundaryLinks))},dependencies:[b.YU,b.Sq,b.bT,b.T3],encapsulation:2})}return z})(),re=(()=>{class z{static forRoot(){return{ngModule:z,providers:[]}}static#e=this.\u0275fac=function(W){return new(W||z)};static#t=this.\u0275mod=e.$C({type:z});static#n=this.\u0275inj=e.G2t({imports:[b.MD]})}return z})()},3816:(Q,D,s)=>{s.d(D,{V6:()=>h,fw:()=>w,jr:()=>f});var e=s(3953),_=s(177);const b=["*"],E=R=>["nav-item",R];function m(R,x){if(1&R){const d=e.RV6();e.j41(0,"span",7),e.bIt("click",function(N){e.eBV(d);const J=e.XpG().$implicit,te=e.XpG();return N.preventDefault(),e.Njj(te.removeTab(J))}),e.EFF(1," \u274c"),e.k0s()}}function S(R,x){if(1&R){const d=e.RV6();e.j41(0,"li",3),e.bIt("keydown",function(N){const J=e.eBV(d).index,te=e.XpG();return e.Njj(te.keyNavActions(N,J))}),e.j41(1,"a",4),e.bIt("click",function(){const N=e.eBV(d).$implicit;return e.Njj(N.active=!0)}),e.j41(2,"span",5),e.EFF(3),e.k0s(),e.DNE(4,m,2,0,"span",6),e.k0s()()}if(2&R){const d=x.$implicit;e.AVh("active",d.active)("disabled",d.disabled),e.Y8G("ngClass",e.eq3(15,E,d.customClass||"")),e.R7$(),e.AVh("active",d.active)("disabled",d.disabled),e.BMQ("aria-controls",d.id?d.id:"")("aria-selected",!!d.active)("id",d.id?d.id+"-link":""),e.R7$(),e.Y8G("ngTransclude",d.headingRef),e.R7$(),e.JRh(d.heading),e.R7$(),e.Y8G("ngIf",d.removable)}}let A=(()=>{class R{set ngTransclude(d){this._ngTransclude=d,d&&this.viewRef.createEmbeddedView(d)}get ngTransclude(){return this._ngTransclude}constructor(d){this.viewRef=d}static#e=this.\u0275fac=function(F){return new(F||R)(e.rXU(e.c1b))};static#t=this.\u0275dir=e.FsC({type:R,selectors:[["","ngTransclude",""]],inputs:{ngTransclude:"ngTransclude"}})}return R})(),O=(()=>{class R{constructor(){this.type="tabs",this.isKeysAllowed=!0,this.ariaLabel="Tabs"}static#e=this.\u0275fac=function(F){return new(F||R)};static#t=this.\u0275prov=e.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}return R})(),w=(()=>{class R{get vertical(){return this._vertical}set vertical(d){this._vertical=d,this.setClassMap()}get justified(){return this._justified}set justified(d){this._justified=d,this.setClassMap()}get type(){return this._type}set type(d){this._type=d,this.setClassMap()}get isKeysAllowed(){return this._isKeysAllowed}set isKeysAllowed(d){this._isKeysAllowed=d}constructor(d,F,N){this.renderer=F,this.elementRef=N,this.clazz=!0,this.tabs=[],this.classMap={},this.ariaLabel="Tabs",this.isDestroyed=!1,this._vertical=!1,this._justified=!1,this._type="tabs",this._isKeysAllowed=!0,Object.assign(this,d)}ngOnDestroy(){this.isDestroyed=!0}addTab(d){this.tabs.push(d),d.active=1===this.tabs.length&&!d.active}removeTab(d,F={reselect:!0,emit:!0}){const N=this.tabs.indexOf(d);if(-1!==N&&!this.isDestroyed){if(F.reselect&&d.active&&this.hasAvailableTabs(N)){const J=this.getClosestTabIndex(N);this.tabs[J].active=!0}F.emit&&d.removed.emit(d),this.tabs.splice(N,1),d.elementRef.nativeElement.parentNode&&this.renderer.removeChild(d.elementRef.nativeElement.parentNode,d.elementRef.nativeElement)}}keyNavActions(d,F){if(!this.isKeysAllowed)return;const N=Array.from(this.elementRef.nativeElement.querySelectorAll(".nav-link"));if(13===d.keyCode||"Enter"===d.key||32===d.keyCode||"Space"===d.key)return d.preventDefault(),void N[F%N.length].click();if(39!==d.keyCode&&"RightArrow"!==d.key)if(37!==d.keyCode&&"LeftArrow"!==d.key)if(36!==d.keyCode&&"Home"!==d.key)if(35!==d.keyCode&&"End"!==d.key){if((46===d.keyCode||"Delete"===d.key)&&this.tabs[F].removable){if(this.removeTab(this.tabs[F]),N[F+1])return void N[(F+1)%N.length].focus();N[N.length-1]&&N[0].focus()}}else{d.preventDefault();let J,te=1,De=F;do{De-te<0?(De=N.length-1,J=N[De],te=0):J=N[De-te],te++}while(J.classList.contains("disabled"));J.focus()}else{d.preventDefault();let J,te=0;do{J=N[te%N.length],te++}while(J.classList.contains("disabled"));J.focus()}else{let J,te=1,De=F;do{De-te<0?(De=N.length-1,J=N[De],te=0):J=N[De-te],te++}while(J.classList.contains("disabled"));J.focus()}else{let J,te=1;do{J=N[(F+te)%N.length],te++}while(J.classList.contains("disabled"));J.focus()}}getClosestTabIndex(d){const F=this.tabs.length;if(!F)return-1;for(let N=1;N<=F;N+=1){const J=d-N,te=d+N;if(this.tabs[J]&&!this.tabs[J].disabled)return J;if(this.tabs[te]&&!this.tabs[te].disabled)return te}return-1}hasAvailableTabs(d){const F=this.tabs.length;if(!F)return!1;for(let N=0;N<F;N+=1)if(!this.tabs[N].disabled&&N!==d)return!0;return!1}setClassMap(){this.classMap={"nav-stacked":this.vertical,"flex-column":this.vertical,"nav-justified":this.justified,[`nav-${this.type}`]:!0}}static#e=this.\u0275fac=function(F){return new(F||R)(e.rXU(O),e.rXU(e.sFG),e.rXU(e.aKT))};static#t=this.\u0275cmp=e.VBU({type:R,selectors:[["tabset"]],hostVars:2,hostBindings:function(F,N){2&F&&e.AVh("tab-container",N.clazz)},inputs:{vertical:"vertical",justified:"justified",type:"type"},ngContentSelectors:b,decls:4,vars:3,consts:[["role","tablist",1,"nav",3,"click","ngClass"],[3,"ngClass","active","disabled","keydown",4,"ngFor","ngForOf"],[1,"tab-content"],[3,"keydown","ngClass"],["href","javascript:void(0);","role","tab",1,"nav-link",3,"click"],[3,"ngTransclude"],["class","bs-remove-tab",3,"click",4,"ngIf"],[1,"bs-remove-tab",3,"click"]],template:function(F,N){1&F&&(e.NAR(),e.j41(0,"ul",0),e.bIt("click",function(te){return te.preventDefault()}),e.DNE(1,S,5,17,"li",1),e.k0s(),e.j41(2,"div",2),e.SdG(3),e.k0s()),2&F&&(e.Y8G("ngClass",N.classMap),e.BMQ("aria-label",N.ariaLabel),e.R7$(),e.Y8G("ngForOf",N.tabs))},dependencies:[_.YU,_.Sq,_.bT,A],styles:["[_nghost-%COMP%] .nav-tabs[_ngcontent-%COMP%] .nav-item.disabled[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]{cursor:default}"]})}return R})(),h=(()=>{class R{get customClass(){return this._customClass}set customClass(d){this.customClass&&this.customClass.split(" ").forEach(F=>{this.renderer.removeClass(this.elementRef.nativeElement,F)}),this._customClass=d?d.trim():"",this.customClass&&this.customClass.split(" ").forEach(F=>{this.renderer.addClass(this.elementRef.nativeElement,F)})}get active(){return this._active}set active(d){if(this._active!==d){if(this.disabled&&d||!d)return void(this._active&&!d&&(this.deselect.emit(this),this._active=d));this._active=d,this.selectTab.emit(this),this.tabset.tabs.forEach(F=>{F!==this&&(F.active=!1)})}}get ariaLabelledby(){return this.id?`${this.id}-link`:""}constructor(d,F,N){this.elementRef=F,this.renderer=N,this.disabled=!1,this.removable=!1,this.selectTab=new e.bkB,this.deselect=new e.bkB,this.removed=new e.bkB,this.addClass=!0,this.role="tabpanel",this._active=!1,this._customClass="",this.tabset=d,this.tabset.addTab(this)}ngOnInit(){this.removable=!!this.removable}ngOnDestroy(){this.tabset.removeTab(this,{reselect:!1,emit:!1})}static#e=this.\u0275fac=function(F){return new(F||R)(e.rXU(w),e.rXU(e.aKT),e.rXU(e.sFG))};static#t=this.\u0275dir=e.FsC({type:R,selectors:[["tab"],["","tab",""]],hostVars:7,hostBindings:function(F,N){2&F&&(e.BMQ("id",N.id)("role",N.role)("aria-labelledby",N.ariaLabelledby),e.AVh("active",N.active)("tab-pane",N.addClass))},inputs:{heading:"heading",id:"id",disabled:"disabled",removable:"removable",customClass:"customClass",active:"active"},outputs:{selectTab:"selectTab",deselect:"deselect",removed:"removed"},exportAs:["tab"]})}return R})(),f=(()=>{class R{static forRoot(){return{ngModule:R,providers:[]}}static#e=this.\u0275fac=function(F){return new(F||R)};static#t=this.\u0275mod=e.$C({type:R});static#n=this.\u0275inj=e.G2t({imports:[_.MD]})}return R})()}}]);
Back to Directory
File Manager